I need to automate this scenario:
Do sth on 1st device (tap UI element)
Verify sth on 2nd device (verify UI element)
Do sth on 2nd device
Verify sth on 1st device
Is this doable on XCUITest? Is it possible to sync this sequence?
So far its not possible with pure XCUITest:
XCUITest tests is a UI Testing Bundle -> another iOS application, that is installed on same device and runs tests for main bundle (your application)
So when you run tests these 2 apps (test app and main application) are installed on devices and all the execution is limited to that device.
You still can do parallel testing (same tests on multiple devices), but no way to have one scenario manipulating with 2 devices.
However Appium with XCode 9 supports multiple concurrent sessions, so you can write the test that: