* When you carry out 'run accessibility test', it overwrites the report that you are testing, which includes previously tested modules. So, if you are running a new test and don't want your modules overwritten, change the 'active report' in the 'toolbox' tab in AMP.
* Your Testing Bundle is linked to your AMP Account, so don't share testing bundles with coworkers/peers; have them download their own.
- Open your instance of AMP in your web browser and select the Toolbox tab.
- Scroll down to the AMP for Android OS section and pick the appropriate project and report from the drop-down menus, or create a new report. Then, select Make It Happen to set the chosen report as the Active Report.
Note that you can only select reports and projects that you have explicit editor permissions for, and that have Android listed as a technology platform type.
- Open your project in Android Studio
Note, before using AMP for Android with Android Studio ensure that your project has been built successfully with your latest changes.
Note, before running an accessibility test, connect an Android device or launch an Android emulator of your choice.
- Select Run > 'Run Accessibility Test' (or select the project and press Ctrl+Shift+F10).
The Android Module Chooser window is displayed. Select the correct Android module to run. The Android Choose Device window is displayed.
Note, if a single Android device or emulator is connected and enabled, the device or emulator is selected by default in the Choose Device window. You can select a different Android device or emulator if needed. If two or more Android devices or emulators are connected and enabled, you can select an Android device or emulator on which to run the application from the Choose a running device section of the Choose Device window. If there is no Android device or emulator running, you need to select Cancel to close the Choose Device window, then connect a device or launch an emulator before performing step 4.
- Select OK.
- Navigate throughout the applications to capture all desired screens for testing. Each unique screen visited will be captured as a module in the Active report configured in step 2.
Testing Hybrid Apps with AMP for Android
Developers can test hybrid Android applications for accessibility using AMP for Android. Hybrid applications are applications that contain both native Android components as well as web components. As a result of testing a hybrid applications with AMP for Android, the active AMP report will contain both the testing results for Android as well as for 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 Android technology platform icons to toggle between web testing results and native Android testing results.
For more information on navigating through AMP reports, please visit our AMP Report Navigation help page.
AMP for Android officially supports hybrid Android applications built on the Cordova v2.3 platform. AMP for Android unofficially supports the testing of hybrid Android applications build 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/