Testing mobile web applications on iOS Simulators

You can test web applications on an iOS Simulator using the browser-based client for iOS. This client is a web application that runs in the Safari browser on your Simulator.

About this task

The following diagram shows a high-level overview of mobile testing for iOS applications. In the diagram, test workbench refers to the Web UI Test perspective in HCL OneTest™ UI .

iOS flow


  1. Install HCL OneTest UI on a Windows, Apple Macintosh, or Linux computer. For more information, see Installing HCL OneTest UI.
  2. From HCL OneTest UI, create a test project by clicking File > New > Test Workbench Project.
  3. Install the Test Workbench Web Recorder on the iOS Simulator. The Test Workbench Web Recorder is required to record and play back user actions of a Web application under test. It is invoked automatically during the recording and playback process. For details see Installing the mobile web recorder on the iOS Simulator.
  4. Open the browser-based client by typing the Workbench URL in the following format in the Safari browser on the iOS Simulator:

    Format: http://Workbench_URL:port/mobile


  5. Install the mobile web recorder on the iOS Simulator. For more information, see Installing the mobile web recorder on the iOS Simulator.
  6. Create a test by recording gestures and interactions on the Simulator. Actions are represented in natural language, which allows you to document and reproduce the test manually.
  7. Examine and enhance the recording as needed. Here is a partial list of what 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.
  8. Run the test on the iOS Simulator.

    You can start a test run from the iOS Simulator or from HCL OneTest UI.

  9. Evaluate the test results.