![]() ![]() Test Lab provides several exit codes that you can use to better understand If gcloud firebase test ios run -test MyTest.zip -timeout 2mĮcho "Test matrix exited abnormally with non-zero exit code: " $? Script runs an XCTest with a two-minute timeout, and reports if the test run That you would otherwise run using the gcloud command line. You can use shell scripts or batch files to automate mobile app testing commands ![]() Step 3 (Optional): Automate future tests you build Scripting gcloud commands with Test Lab type game-loop -app path/to/my/App.ipa -scenario-numbers 1,4,6-8įor more information on the gcloud CLI, see the -timeout=1h forces your test to terminate when it runs up to an hour.įor example, the following command runs a Game Loop test that executes loopsġ, 4, 6, 7, and 8 on an iPhone 8 Plus: gcloud beta firebase test ios run.-timeout=200 forces your test to terminate when it runs up to 200.Represent the duration in seconds, or an integer and enumeration to represent the The maximum duration you want your test to run. The physical device you want to run your test on The default loop is 1.įor example, -scenario-numbers=1-3,5 runs loops 1, 2, 3, and 5. You can enter one loop, a list or loops, or a range of loops. The loops (aka scenarios) you want to run in your app. This flag is only valid when running Game Loop tests. Required: Absolute path (GCS or filesystem) to your app’s IPA file. Test types xctest (default) or game-loop. Required: Specifies the type of iOS test you want to run. Run the gcloud beta firebase test ios run command and use the followingįlags to configure the run: Flags for Game Loop tests Re-sign user apps, we can only use the app group ID that isĪssociated with the Test Lab developer account. Read more onĮstablishing a Token-Based Connection to APNs.Īpp group IDs are universally unique. Hour and need to be refreshed every 60mins. The generated tokens would be valid for one More such entitlements can be supported in the future based onįor authorizing push notification requests, users can create JSON webĪlong with the Key ID - C7FD9DJAA8 and the Team ID -ĩCKCGNNUQN. Note: This currently only supports Push/VoIP testing on a singleĪpp requiring the apns-environment entitlement within a Re-signs the application with a new bundle-identifier to support specialĮntitlements, so please make sure there are no resources in your zip fileĬontaining direct references to the app's bundle id. Setting the -test-special-entitlements flag. To test entitlements that require an explicit App ID, you can do so by client-details matrixLabel="my label" Note: The -client-details flag is only supported in the Alpha and Beta device model=MODEL_ID_1,version=VERSION_ID_1,locale=LOCALE_1,orientation=ORIENTATION_1 \ Gcloud beta firebase test ios run -test PATH/TO/MyTests.zip \ client-details matrixLabel="" flag in the following example: To help you identify and locate your test matrices in theįirebase console, you can optionally label your test matrix using the To specify a supported Xcode version for your test, use the -xcode-version flag: Which the test was built and the default Xcode version used by Test Lab. It is possible that your test will fail due to an incompatibility between the Xcode version with device model= MODEL_ID_2,version= VERSION_ID_2,locale= LOCALE_2,orientation= ORIENTATION_2 \ device model= MODEL_ID_1,version= VERSION_ID_1,locale= LOCALE_1,orientation= ORIENTATION_1 \ Gcloud firebase test ios run -test PATH/TO/MyTests.zip \ For eachĬombination of test dimensions you'd like to test on, include a separate -device flag: Your tests using the firebase test ios run command. Once you've chosen a set of test dimensions, you can have Test Lab run ![]() That Test Lab uses if you don't otherwise specify a value for that dimension. TAGS column, with one row tagged as default. Note: Each dimension's list table includes a Maximum number of combinations you can run per day. Look through the list of test dimensions, and select a few combinations that you'd like to Screen orientation is somewhat simpler, as its only options are portrait and (e.g., supported Xcode versions for the device's iOS version), substituteĭimension in the following command: gcloud firebase test ios dimension list These configurations are known as the test's ![]() Test Lab lets you run tests on a variety of iOS versions, devices, screen Zip -r MyTests.zip Debug-iphoneos YOUR_SCHEME_iphoneos DEPLOYMENT_TARGET-arm64.xctestrun zip file of your test by running the following command (if youĬd FOLDER_WITH_TEST_OUTPUT/Build/Products \ Set your Firebase project in gcloud, where PROJECT_ID is.Log in to the gcloud CLI using your Google account:.Make sure your installation is up-to-date and includes.Step 1: Configure your local Google Cloud SDK environment This guide describes how to run an XCTest or a Game Loop test using the gcloudĬLI. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |