Execute Tests

2025-12-27 15:44:36
Sanplex Content
124
Last edited by WANG JING on 2025-12-27 15:44:36
Share links
Summary : This section explains how to configure automation settings, sync script metadata to Sanplex via the ZTF CLI, and run automated test cases to review results and create bugs or reports.

After you configure environments, you need to complete automation settings in Sanplex to run automated tests.

1. Automation Settings

On the Execution Node detail page, click Automation Settings.

图1

You can also configure automation settings from the test case list.

图2

Select the Product and the Execution Node, then specify:

  • the directory where the automation scripts are located; and
  • the shell commands to run before automated testing starts.

图3

2. Sync Script Information to Sanplex

After installing the ZTF CLI, run the following command in your terminal to sync script information to Sanplex. The -y parameter skips confirmation.

ztf ci <absolute-path-to-your-script-directory> -y --withCode true 

After the command runs, the test case list will display an automation case indicator.

图4

When creating a test case, you can also create an automated test case directly. After creation, you can view the script.

图5

View the script associated with a test case.

图6

3. Run Automated Test Cases

Run automated test cases and review execution results.

图7

After executing test cases, you can convert results to a bug or generate a test report.

Write a Comment
Comment will be posted after it is reviewed.