Getting started with mobile application testing on the iOS Simulator

Use this topic to help you get started with your testing of Web applications on the iOS Simulator.

Before you begin

Note the following requirements:

  • Testing with the iOS Simulator requires a Macintosh computer and Xcode.
  • Install the mobile web recorder mobile web recorder on the iOS Simulator. The mobile 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.
  • To test with the native mobile test client in the iOS Simulator, you will first need to install the client. For details, see Installing the mobile test client on the iOS Simulator.

Procedure

  1. Install IBM Rational Test Workbench Web UI Tester on a Macintosh, Windows or Linux computer. For details, see Installing the product software.
  2. From the test workbench, create a test project by clicking File > New > Test Workbench Project.
  3. 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

    Example: http://192.0.2.24:7878/mobile

  4. Create a test by recording gestures and interactions. Actions are represented in natural language, which allows you to document and reproduce the test manually.
  5. 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 datapool 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.
  6. Run the test in the iOS Simulator.

    You can start a test run from the iOS Simulator or from the test workbench.

  7. Evaluate the test results.

What to do next

For additional guidance, see the Testing mobile applications with Rational Test Workbench playlist on YouTube.

Feedback