Issue
I am trying to run android test using aws devicefarm and the code for creating a device pool is given below.
The CLI command below creates a Device Pool consisting of all available Android devices:
[ec2-user]$ aws devicefarm create-device-pool --project-arn
arn:aws:devicefarm:us-west-2:705582597265:project:2c21a412-bb7b-4657-a28c-d7d78b3888f7
--name myAndroidDevicePool --rules '[{"attribute": "PLATFORM", "operator": "EQUALS", "value": "\"ANDROID\""}]'
But the issue here is, it will run for all android devices, and I only want to run in LG Nexus 5
.
Could anyone tell me how we can define for device pool for a single mobile device or set of devices but not all. I couldn't find a clear documentation for it. Thank you
Solution
In addition to what @Rohan mentioned in this comment and to answer your question about identifying the ARN of a device.
- You can first call list-devices. This will give you the device ARN for all the devices so you can locate the device ARN for LG Nexus 5.
- Use that ARN in the rules as ARN parameter.
Since the ARN is a unique identifier of a resource within device farm you should be able to create a device pool with a single device which in your case is LG Nexus 5.
Let me know if you are not able to proceed.
Answered By - NikofTime
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.