Issue
I'm trying to run my ui tests on at least 2 phones but it can't be simultaneously, they have to run after each other. So when Phone 1 has completed the test run, Phone 2 begin its test run.
I'm looking for a command similar to ./gradlew cAT
but not simultaneously. An alternative would be to specify which phone the tests should run on. The reason is I need to be able to run the tests through GitLab CI.
Is it possible to do this from the terminal?
Solution
The easiest way to do this would likely be to create a script that calls your gradle task with each specific device serial set beforehand. This is theoretical, but should work.
ANDROID_SERIAL=<firstDeviceSerial> ./gradlew <yourCommand>
ANDROID_SERIAL=<secondDeviceSerial> ./gradlew <yourCommand>
Answered By - Mike Collins
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.