Getting INVALID(DETAILS_UNAVAILABLE) when using Android Virtual Device Testing

#1

Below are the logs for the last step when I am trying to run Android Instrumentation test cases with Bitrise.
------------------------------------------------------------------------------+

| (5) virtual-device-testing-for-android@1.1.1 |
±-----------------------------------------------------------------------------+
| id: virtual-device-testing-for-android |
| version: 1.1.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2020-01-21T18:40:25Z |
±-----------------------------------------------------------------------------+
| |
Configs:

  • AppPath: /bitrise/deploy/ChargePoint_5.58.0-233-1434-qa-debug.apk
  • TestTimeout: 900.000000
  • FlakyTestAttempts: 0
  • DownloadTestResults: false
  • DirectoriesToPull: storage/sdcard/Pictures/screenshots
  • AutoGoogleLogin: false
  • EnvironmentVariables:
  • ObbFilesList:
  • TestDevices:

Model API Level Locale Orientation

Nexus10 22 en portrait

  • TestType: instrumentation
  • TestApkPath: /bitrise/deploy/ChargePoint_5.58.0-233-1434-qa-debug-androidTest.apk
  • InstTestPackageID:
  • InstTestRunnerClass: androidx.test.runner.AndroidJUnit4
  • InstTestTargets:
  • UseOrchestrator: false
    Uploading app and test files
    => Files uploaded
    Starting test
    => Test started
    Waiting for test results
  • Validating
    Failed to get test status, error: Failed to get test status: INVALID(DETAILS_UNAVAILABLE)
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | virtual-device-testing-for-android@1.1.1 (exit code: 1) | 21.67 sec|
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: …se-steplib/steps-virtual-device-testing-for-android/issues |
    | Source: …thub.com/bitrise-steplib/steps-virtual-device-testing-for-android |
    ±–±--------------------------------------------------------------±---------+

Below are the bitrise.yml details for this particular workflow

steps:

  • activate-ssh-key@4.0.3:
    run_if: ‘{{getenv “SSH_RSA_PRIVATE_KEY” | ne “”}}’
  • git-clone@4.0.14:
    inputs:
  • clone_depth: ‘1’
  • install-missing-android-tools@2.3.6:
    inputs:
  • gradlew_path: “$PROJECT_LOCATION/gradlew”
  • android-unit-test@1.0.0:
    inputs:
  • module: “$MODULE”
  • variant: “$VARIANT”
  • project_location: “$PROJECT_LOCATION”
  • android-build-for-ui-testing@0.1.1:
    inputs:
  • variant: “$VARIANT”
  • project_location: “$PROJECT_LOCATION”
  • module: “$MODULE”
  • virtual-device-testing-for-android@1.1.1:
    inputs:
  • test_devices: Nexus10,22,en,portrait
  • directories_to_pull: storage/sdcard/Pictures/screenshots
  • inst_test_runner_class: androidx.test.runner.AndroidJUnit4
  • test_type: instrumentation
  • deploy-to-bitrise-io@1.9.5:
    inputs:
  • is_enable_public_page: ‘false’
  • notify_user_groups: developers
0 Likes

#2

Hey there @gaurav.bansal!

Could you please send us the build URL and also enable Support User (https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/) so that we could investigate? :slight_smile:

0 Likes

#3

Hi @Roland-Bak

Support user is enabled and below is the build url.http://app.bitrise.io/build/5694d14b768be22a#

0 Likes

#4

Thanks for the patience @gaurav.bansal!

It seems that in the Test runner class input field you used androidx.test.runner.AndroidJUnit4 This class is deprecated, you should
use androidx.test.ext.junit.runners.AndroidJUnit4 instead. :slight_smile:
Let me know if this helps!

0 Likes

#5

Thanks @Roland-Bak for getting back.
Can you please let me know how did you found out the issue because as per the logs I was not able to figure out the exact issue. Is there a better way to figure out the errors?

I am asking this because now I am getting some other error. Want to know exactly how to check for error details.
±-----------------------------------------------------------------------------+

| (5) virtual-device-testing-for-android@1.1.1 |
±-----------------------------------------------------------------------------+
| id: virtual-device-testing-for-android |
| version: 1.1.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2020-01-29T08:45:08Z |
±-----------------------------------------------------------------------------+
| |
Configs:

  • AppPath: /bitrise/deploy/ChargePoint_5.58.0-233-1489-qa-debug.apk
  • TestTimeout: 900.000000
  • FlakyTestAttempts: 0
  • DownloadTestResults: true
  • DirectoriesToPull: /sdcard/screenshots
  • AutoGoogleLogin: false
  • EnvironmentVariables:
  • ObbFilesList:
  • TestDevices:

Model API Level Locale Orientation
Nexus10 22 en portrait

  • TestType: instrumentation
  • TestApkPath: /bitrise/deploy/ChargePoint_5.58.0-233-1489-qa-debug-androidTest.apk
  • InstTestPackageID:
  • InstTestRunnerClass: androidx.test.ext.junit.runners.AndroidJUnit4
  • InstTestTargets:
  • UseOrchestrator: false
    Uploading app and test files
    => Files uploaded
    Starting test
    => Test started
    Waiting for test results
  • Validating
  • (1/1) running
  • (0/1) running
    => Test finished
    Test results:
    Model API Level Locale Orientation Outcome
    Nexus10 22 en portrait failure
    Downloading test assets
    => Assets downloaded
    The downloaded test assets path (/tmp/vdtesting_test_assets240576362) is exported to the VDTESTING_DOWNLOADED_FILES_DIR environment variable.
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | virtual-device-testing-for-android@1.1.1 (exit code: 1) | 3.6 min |
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: …se-steplib/steps-virtual-device-testing-for-android/issues |
    | Source: …thub.com/bitrise-steplib/steps-virtual-device-testing-for-android |
    ±–±--------------------------------------------------------------±---------+
0 Likes