I can automate test cases to run multiple devices in parallel. I use Appium for this and it works great. My problem is that I have some test cases that require the device to register with certain Apple Store accounts. In addition, it is possible that the device may already be registered in another account, and I have no way to log out manually. My test cases for logging in to the account, if the device does not have an account attached to it, already work well (inside my application I try to perform an action that requires an Apple ID, a warning appears that requires a login, and I already automated the login process into the system). The problem is that the device is already registered in a different account.
My two options:
- For the device to exit the Apple Store,
- Back up the device without registering and restoring this backup before my test
I could not find a way to handle the first option. The second one works using idevicebackup2 (lib from libimobiledevice). The problem here is that after the device data is restored, the installation wizard appears, and there is no way to automatically get rid of it. I tried using cfgutils to delete the steps of the wizard, but even after deleting all the steps, the wizard appears, waiting for confirmation after recovery.
I would like to know if there is a way to go to the first option or skip the installation wizard in the second option or maybe partially restore the backup (just by clearing the Apple ID data) in order to avoid rebooting the device and getting stuck with the wizard again. Thanks in advance.
source share