Testing in AMP for iOS
After you have completed the process of Installing AMP for iOS, testing your app using AMP for iOS is fairly straightforward.
- Open your instance of AMP in your web browser and select the Toolbox tab.
- Scroll down to the AMP for iOS section and pick the appropriate report for your project from the drop-down menu, or create a new report. Then, select Make It Happen.
Note that you can only select reports and projects that you have explicit editor permissions for, and that have Android listed as a technology type in the testing criteria. If you do not have explicit editor permissions to a report, it will not show up in the drop-down list, even if you are an organization administrator. This is to give you a way to manage which reports show up in the drop-down menus.
- Return to your Xcode application and press the Play button in the top left corner of Xcode. This will confirm that the build is successful and will open the iOS Simulator. This can also be done by navigating to the Product menu and choosing Run.
- Interact with your app in Xcode in the emulator. As you interact with the app, AMP for iOS will gather the information from the emulator, post it to the SSB servers, and create a module for each screen that you interact with.
- To confirm that this process is working, navigate to AMP in your web browser, select the Toolbox tab again, and select the active report link under AMP for iOS. This will take you to the active report where your screens are being tested. Then, navigate to the modules list in your report, where you can view the modules as they appear in your report after you interact with them in the emulator.
Testing Hybrid Applications with AMP for iOS
Developers can test hybrid iOS applications for accessibility using AMP for iOS. Hybrid applications are those iOS applications that contain both native iOS components as well as web components. As a result of testing a hybrid applications with AMP for iOS, the active AMP report will contain both the testing results for iOS as well as the web components. You can view the results of both reports and easily navigate between the results of the reports by using the Web and iOS technology platform icons to toggle between web testing results and native iOS testing results.
For more information on navigating through AMP reports, please visit our AMP Report Navigation help page.
AMP for iOS officially supports hybrid iOS applications built on the Cordova v2.3 platform. AMP for iOS unofficially supports the testing of hybrid iOS applications built on Cordova versions earlier than v3 as well as hybrid applications not built on the Cordova platform. To learn more about Cordova, please visit the following URL: https://cordova.apache.org/