@Swapan_Chhabra Thanks a lot for the help, now I am able to run the test sequentially on a single session by following your suggestion.
Steps followed:
I tried getting the bundle id of the app by using “ideviceinstaller -l” but it went into some error then I finally got the bundle id by using the below steps.
- Copy the .ipa file and rename the extension to .zip. (So e.g. Pages.ipa will become Pages.zip)
- Unzip the zip file. You will get a new folder named like the zip file.
- Search for the file iTunesMetadata.plist in that new folder.
- Open the file with a text editor and search for softwareVersionBundleId.
After getting the bundle id’s I managed to run YouTube and WhatsApp sequentially by passing bundle id’s and app value through TestNG but I want to know how to reinitialize the capabilities in the code (I was using startActivity() for android but not sure how to do for iOS) so that my code is more flexible in that way.
Thanks a lot in advance.
Regards,
Mohammed Asif