Skip to content

Record UI Test Cases with 'Tap to cases'

HydraXMan edited this page Dec 26, 2022 · 1 revision

Installation

1. Download T2C recorder via pipeline

Go to the pipeline link to download T2C release. We recommend choosing the latest build with success.

image.png

Click artifact to download Install package.

image.png

2. Environment

Before install Taps_to_Cases.exe, please enable your powershell script execution permission:

  1. Launch "Powershell" app in your windows.

  2. Input "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy unrestricted" in the command line to unrestrict the execution policy.

Click Next. After loading, T2C installation will automatically run an environment configuration script.

image.png

  • Choose the folder to download installation packages

image.png

  • This script will automatically download the dependencies required by T2C, and you just need to select the installed version and press enter.

image.png

  • If you have downloaded and installed the dependency, just enter y to skip

image.png

3. Finish

You are now finish the installation.

image.png

Getting Start

1. Connect to server

Click the startSever button in T2C Recorder, it will pop up a sever alert.

image.png

Click Start Sever button in sever alert. If the alert status becomes the following, the server connection succeeded. Minimize this window.

image.png

2. Start session

Select a connected device and an initialized app if needed. Then click the Start Session button in the lower right corner.

image.png

Record test case

1. Start recording

Click Start Recording button, T2C will start recording your next actions.

image.png

2. Actions

  • Select an element on page you want to operate on
  • select action in action panel

image.png

3. Tap Detection for Android

You are able to operate the touch actions on the phone to generate the test case directly.

  • The current connected device is an Android device
  • Click Tap to Case Button
  • Supported touch actions image.png

4. Drag & Drop for Windows

Drag & Drop by Element

image

Drag & Drop by Coordinates

image

5. Switch Devices

You are able to switch to another device to record cross-platform test cases. Just select the device that you want to switch to, then click the Switch button.

image

5. Test case

The recorded test cases will be displayed in the Recorder panel. You can perform the following operations on the test cases:

  • reorder
  • delete
  • clear all
  • action type and attributes editing
  • choose case is optional

image.png

6. Export as Json File

After the test case is recorded, click save case and select the save path and filename.

image.png

Run T2C Test Task

1. Run T2C test task from Web UI

See Trigger a test task from Web UI

For T2C test, upload the Json File as the test file:

image

Tigger the test task and select the JSON-Described Test image

2. Run T2C test task from ADO pipeline

See Trigger a test task from ADO pipeline

The T2C test results can be found in the Extensions tab

image

Clone this wiki locally