Testing mobile web applications on Android devices
Use this topic to help you get started with your testing of web applications that run on Android devices.
About this task
The following diagram shows a high-level overview of mobile testing for Android. In the diagram, test workbench refers to HCL OneTest™ UI.
Note:
Procedure
-
Set up your mobile test environment.
- Prepare your mobile web application for testing. From the Mobile and Web UI Applications window, add the web application to the list. Or from your mobile device, upload the native or hybrid mobile application to the test workbench.
- From HCL OneTest™ UI, create a test project by clicking .
- Verify that the application is visible in the Mobile and Web UI Applications window.
-
Create a test by recording gestures and user interactions
on the mobile device.
You can initiate the recording on the device or from HCL OneTest™ UI. Actions are represented in natural language, which allows you to document and reproduce the test manually.
-
Examine and enhance the test script recording as needed.
Here are some of the things you can do:
- Add verification points to verify that an expected value or behavior is returned during a test run.
- Add variables to the test script.
- Add a loop so that the test runs multiple times.
- Add a dataset to provide variable data rather than the data that you recorded.
- Add application stubs to simulate the behavior of actual objects that interact with the application under test.
-
Run the test.
You can initiate a test run from the mobile device or from HCL OneTest™ UI.
- Evaluate the test results.