Overview

Skill Level: Any

Prerequisites

Note: The Target Simulator is not expected to be used in most scenarios. It should only be used when the Android Image Capture Tool is unable to support your image replay experience. For example, to capture all MD5s.

The Target Simulator acts as a target page on your local machine. After you start the simulator, you exercise every page in your application. The simulator takes the images that are embedded in the application, uses the image check sum to create a unique file name for each image, and saves the images in the same location as the Target Simulator tool. After you have the images, they must be transferred to the replay server images folder.

Before you begin using the Target Simulator:

Step-by-step

  1. Extract the Target Simulator archive on the device that you used to create your application.

  2. Open a terminal or command line prompt.

    Change your directory to the folder where the Android Image Capture tool is located:
    cd <path to Target Simulator>

  3. Run the Tealeaf Target Simulator with the node.js

    Use the command: node target_sim.js

    Your terminal should look like this:

  4. Open Android Studio

    1. Select Open an existing Android Studio project.
    2. Select your application’s project.
    3. Press OK.
  5. Open your TealeafBasicConfig.properties file.

    1. Replace the PostMessageUrl value with one of the target URLs (from the terminal), as shown below:
    2. Check that GetImageDataOnScreenLayout=true.
  6. Run your application from Android Studio.

  7. Navigate between your application’s activities.

    Every .png image of your applications is extracted. On the terminal, you should see the following:

  8. Add all content to the

    In the Target Simulator directory (where the target_sim.js is located), there is a folder called “images.” All its content must be added to the “images” folder that is uploaded to Replay.

Expected outcome

You can use the Target Simulator tool to capture the images in your application and transfer them to the replay server for replay.

Join The Discussion

Your email address will not be published. Required fields are marked *