A sample iOS app supporting XCUI Tests on Browserstack.
Note: Developer Certificate would be required to build the iOS App.
Once the above steps are in place. Execute the below command.
pod install
-
Select the device as "Generic iOS device"
-
Product -> Clean Build
-
Product -> Clean Test
-
Build the ipa
- Product -> Archive
- Window -> Organizer -> Select the most recently created archive -> Export
- Export for "Development"
- Select the location where you want the ipa to be saved
-
Build the XC UI Tests zip
- Product -> Build For -> Testing
- From the shell, go to the DerivedData directory (normally ~/Library/Developer/Xcode/DerivedData/)
- cd Sample_iOS-<random characters>
- cd Build/Products/Debug-iphoneos/
- zip -r SampleUITests.zip SampleXCUITests-Runner.app/
-
Use the ipa file and zip file you have created using the above steps to run on Browserstack
- Follow This for executing the tests on BrowserStack
- There are multiple tests that you can use from A11yUItests used in the
SampleXCUITests/SampleXCUITests.swiftfile. Please refer to this for the range of tests you can choose from.
To learn more about accessibility testing, visit the accessibility testing page on Accessibility on iOS - Apple Developer.
Get the source for the A11yUITests by visiting its GitHub repository.
Documents for reference:

