i want to connect to two multiple devices (device1,device2) using AndroidViewclient for automating a test case , where i have to make a call from device1 and receive the call on device2 . Please help how to connect to two devices simultaneously .
相关问题
- how to define constructor for Python's new Nam
- How can I create this custom Bottom Navigation on
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Bottom Navigation View gets Shrink Down
Update
culebra now supports multi-device mode so the steps described in this answer are no longer necessary. Description, example and video showing the same test running concurrently on 3 different devices can be found at android: culebra multi-device capabilities.
Answer
As always. my recommendation is to let culebra create your script and then you can adapt it. culebra will generate a script for one device, then you can replicate the lines for the other, or you can iterate over a list of devices if the need arises.
Here is a modified script generated by (replace serialno1 and serialno2 by actual serial numbers of your devices):
and
myscript.py
would look like this after your modifications:This will connect to both devices concurrently, obtain the dumps, and find a View with id
id/no_id/1
on both and print the result.