Recording and playing back scripts

You can record your MITE interactions with websites and save them in a script file. The script is then available for future testing in MITE, or in the Keynote Mobile Web Perspective monitoring service.

Scripts can be played back using any supported device, regardless of which device was used to record them.

Scripts can be edited after recording.

Recording a script

  1. Click the Record script button.

  2. Enter the URL to browse, a device profile, and a location to browse from.

  3. You can create a new location by clicking the button to the right of the location list. The selected location will be seen by web sites you visit as the location of your mobile device.

  4. Click Advanced Options. There are two options for when you want recording to start:

    • Start recording with the first page (default), or
    • Start recording whenever I press the record button. You can start the script where you want by clicking the red recording button in the ribbon after you have browsed to the preferred starting point.
  5. You can select Use basic authentication and supply a password and username for sites that require login.

  6. Interact with the Web site by clicking links, buttons, and other controls. If your device has a keyboard, you can use your computer keyboard to enter text.

    Browsing

    As you interact with the site each action is captured in a script, which is displayed next to the browser.

  7. Optionally, you can pause during script recording by clicking the Pause button. Restart by clicking the Record button again.

  8. Optionally, add validation steps. Validation helps insure that scripts are actually going to the pages you intend. If a validation step fails during playback, for example if a key word or phrase is not present on a visited page, the test run stops and is marked as failing. Add validation steps by selecting text in on the page and right-clicking and selecting one of the available options:

    • Search in link - Select this option to validate against text found within a hypertext link on the page.
    • Search in page - Select this option to validate against text found anywhere on a page.
    • Search in title - Select this option to validate against text found in the page's HTML title. To use this option, you have to find text on the page that matches text in the page title.
  9. When you have completed recording the interactions that you want in your script, click the Stop button. You are asked for a name for the script. Once a script has been named it is saved and is available to be played back from the Script Repository.

Recording touch interactions

HTML5 introduced a standard for touch events to support gestures for mobile websites. MITE supports this standard and can navigate HTML5 touch-enabled websites by performing taps and swipes when you use a device that supports them. Touch events are indicated as Taps and Swipes in the Script view, and Touch in the Advanced Script View.

Touch events in Script view and Advanced Script view

Playing back a script

  1. To play back a script you have previously recorded, right-click the script name in the Script Repository and select Play Script.
  2. Optionally, provide a name for this script run, and select the device profile you want to use for the test. A different
  3. Click the Run button. The script will run and the results of the run will be displayed.

Editing a script after recording

Scripts can be edited after recording. See Editing a MITE Script for more information.

Information displayed after script playback

When you play back a script you have recorded, the results of the test are displayed.

Test Results - Displays a single indicator for the overall test results, which by default indicates whether the test passed or failed. You can use the drop-down to change the indicator to show other aspects of test results, such as total bytes received, script duration, or errors.

Test Run Steps - Presents each action (step) in the script, along with thumbnails of the Web site at each script step, download times, and status messages.

Test Run Summary - Gives overall details about the test.