Android UI Test

#1

I am trying to create a workflow with the virtual-device-testing-for-android but I cannot make it work.
Amy clue what I am missing?

ui_test:
    steps:
    - cache-pull@2.5:
        inputs:
        - is_debug_mode: 'true'
    - gradle-runner@1:
        inputs:
        - gradle_task: ":app:assembleAndroidTest"
    - gradle-runner@1:
        inputs:
        - gradle_task: ":app:assemble"
    - sign-apk@1:
        inputs:
        - verbose_log: 'true'
        - android_app: "$BITRISE_APK_PATH"
    - virtual-device-testing-for-android@1.1:
        inputs:
        - inst_test_runner_class: androidx.test.runner.AndroidJUnitRunner
        - inst_use_orchestrator: 'true'
        - test_devices: Nexus9,25,en,portrait
        - test_type: instrumentation
    - cache-push@2.5:
        is_always_run: true
Waiting for test results
- Validating
- (1/1) running
- (0/1) running
=> Test finished
Test results:
Model    API Level   Locale   Orientation   Outcome              
Nexus9   25          en       portrait      failure   
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | virtual-device-testing-for-android@1.1 (exit code: 1)         | 4.8 min  |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...se-steplib/steps-virtual-device-testing-for-android/issues |
| Source: ...thub.com/bitrise-steplib/steps-virtual-device-testing-for-android |
+---+---------------------------------------------------------------+----------+

And when I navigate to the Test Reports I see only a 4sec video with the setting of the device, our app doesn’t start

0 Likes

#2

Hello there @g.metaxakis :wave:

Can you please send us the log file or the URL of the related build and also enable Support Access on the Settings tab of the app ( https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/ ) so that we can take a more in-depth look? :slightly_smiling_face:

0 Likes