Skip to content

How to configure device for firebasetest #12

Description

@liyaka

Since Pipeline syntax for firebaseTest configuration, I can't find the way to configure a device for the test. Here is my pipeline command:

firebaseTest command: instrumentation(app: "myApp.apk",
                                        test: "myTestApp.apk",
                                        device: [ "model=Nexus5,version=23,locale=en,orientation=portrait" ],
                                        directoriesToPull: "/sdcard/Download/report",
                                        resultsHistoryName: "${env.JOB_NAME}_${env.BUILD_NUMBER}"),
                            gcloud: "/usr/bin/gcloud",
                            resultsDir: 'firebase_results'

and I get this error:

java.lang.ClassCastException: class com.simple.jenkins.firebase.AdHocCommand.setDevice() expects class com.simple.jenkins.firebase.AndroidDevice but received class java.lang.String

What is the right format for setting the device?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions