Skip to content

4.3 Multi-machine collaboration script

In our script, we support switching the currently connected mobile phone through the set_current interface, so in one script we can call multiple mobile phones and write some complex multi-machine interactive scripts.

When running the script from the command line, you only need to add the phone to the command line by using the --device Android:/// command, for example:

>airtest run untitled.air --device Android:///serialno1 --device Android:///serialno2 --device Android:///serialno1

For the running and writing of multi-machine scripts, please refer to our relevant chapters in Getting Started - Testing on Android Phones.