testLab namespace

Functions

FunctionDescription
onTestMatrixCompleted(handler)Event handler which triggers when a Firebase test matrix completes.
onTestMatrixCompleted(opts, handler)Event handler which triggers when a Firebase test matrix completes.

Interfaces

InterfaceDescription
ClientInfoInformation about the client which invoked the test.
ResultStorageLocations where test results are stored.
TestMatrixCompletedDataThe data within all Firebase test matrix completed events.

Type Aliases

Type AliasDescription
OutcomeSummaryOutcome summary for a finished test matrix.
TestStatePossible test states for a test matrix.

testLab.onTestMatrixCompleted()

Event handler which triggers when a Firebase test matrix completes.

Signature:

exportdeclarefunctiononTestMatrixCompleted(handler:(event:CloudEvent<TestMatrixCompletedData>)=>any|Promise<any>):CloudFunction<CloudEvent<TestMatrixCompletedData>>;

Parameters

ParameterTypeDescription
handler(event:CloudEvent<TestMatrixCompletedData>) => any | Promise<any>Event handler which is run every time a Firebase test matrix completes.

Returns:

CloudFunction<CloudEvent<TestMatrixCompletedData>>

A Cloud Function that you can export and deploy.

testLab.onTestMatrixCompleted()

Event handler which triggers when a Firebase test matrix completes.

Signature:

exportdeclarefunctiononTestMatrixCompleted(opts:EventHandlerOptions,handler:(event:CloudEvent<TestMatrixCompletedData>)=>any|Promise<any>):CloudFunction<CloudEvent<TestMatrixCompletedData>>;

Parameters

ParameterTypeDescription
optsEventHandlerOptionsOptions that can be set on an individual event-handling function.
handler(event:CloudEvent<TestMatrixCompletedData>) => any | Promise<any>Event handler which is run every time a Firebase test matrix completes.

Returns:

CloudFunction<CloudEvent<TestMatrixCompletedData>>

A Cloud Function that you can export and deploy.

testLab.OutcomeSummary

Outcome summary for a finished test matrix.

Signature:

exporttypeOutcomeSummary=/** The default value. This value is used if the state is omitted. */"OUTCOME_SUMMARY_UNSPECIFIED"/** * The test matrix run was successful, for instance: * - All test cases passed. * - No crash of the application under test was detected. */|"SUCCESS"/** * A run failed, for instance: * - One or more test case failed. * - A test timed out. * - The application under test crashed. */|"FAILURE"/** * Something unexpected happened. The test run should still be considered * unsuccessful but this is likely a transient problem and re-running the * test might be successful. */|"INCONCLUSIVE"/** All tests were skipped. */|"SKIPPED";

testLab.TestState

Possible test states for a test matrix.

Signature:

exporttypeTestState=/** The default value. This value is used if the state is omitted. */"TEST_STATE_UNSPECIFIED"/** The test matrix is being validated. */|"VALIDATING"/** The test matrix is waiting for resources to become available. */|"PENDING"/** The test matrix has completed normally. */|"FINISHED"/** The test matrix has completed because of an infrastructure failure. */|"ERROR"/** The test matrix was not run because the provided inputs are not valid. */|"INVALID";

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-02-14 UTC.