Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure device for firebasetest #12

Open
liyaka opened this issue Feb 26, 2018 · 0 comments
Open

How to configure device for firebasetest #12

liyaka opened this issue Feb 26, 2018 · 0 comments

Comments

@liyaka
Copy link

liyaka commented Feb 26, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant