Test instances are generated when you test auto triggered nodes. You can manage test instances.

Limits

Test instances of a node can be run only after the running of an auto triggered node instance is complete.

Go to the Test Instance page

  1. Log on to the DataWorks console.
  2. In the left-side navigation pane, click Workspaces.
  3. Find your workspace and click Data Analytics in the Actions column.
  4. On the DataStudio page, click the Icon icon in the upper-left corner and choose All Products > Operation Center.
  5. In the left-side navigation pane of the Operation Center page, choose Cycle Task Maintenance > Test Instance. Then, you can view test instances and the directed acyclic graphs (DAGs) of the test instances.

Manage test instances in the instance list

You can manage test instances in the instance list. For example, you can rerun, freeze, or unfreeze test instances, set the status of test instances to successful, view the lineage of test instances, and check operational logs. Test instances
Operation Description
Filter Allows you to specify filter conditions to search for your desired test instance in the section marked with 1 in the preceding figure.

You can search for a test instance by node name or node ID. You can also specify filter conditions, such as Owner, Run At, Data Timestamp, Status, Region, Engine Type, Engine Instance, Baseline, My Nodes, Tested by Me Today, and Frozen Nodes, to perform the operation.

Stop Allows you to stop the test instance. You can stop a test instance only in the Pending or Running state. After you perform this operation, the test instance enters the Failed state.
Rerun Allows you to rerun the test instance. After the test instance is rerun, its pending descendant test instances are run as scheduled. Perform this operation if a test instance fails to be run or a test instance is not run as scheduled.
Note Only the test instances in the Successful or Failed state can be rerun.
More Allows you to perform other operations on the test instance. You can click More in the Actions column of the test instance and select an operation. The operations include Set Status to Successful, Freeze, Unfreeze, View Lineage, and View Runtime Log.
Batch operations Allows you to perform an operation on multiple test instances at a time. You can click one of the following buttons in the section marked with 3 in the preceding figure to perform an operation: Stop, Rerun, Set Status to Successful, Freeze, and Unfreeze.

Manage test instances in a DAG

Click the name of a test instance or DAG in the Actions column to view the DAG of the test instance. In the DAG, you can right-click the test instance to perform the related operations. DAG
Operation Description
View Runtime Log Allows you to view the operational logs of the test instance in a state such as Running, Successful, or Failed.
View Code Allows you to view the code of the test instance.
Edit Node Allows you to go to the DataStudio page to modify the node to which the test instance belongs.
View Lineage Allows you to view the lineage of the test instance.
Stop Allows you to stop the test instance. You can stop a test instance only in the Pending or Running state. After you perform this operation, the test instance enters the Failed state.
Rerun Allows you to rerun the test instance. After the test instance is rerun, its pending descendant test instances are run as scheduled. Perform this operation if a test instance fails to be run or a test instance is not run as scheduled.
Note Only the test instances in the Successful or Failed state can be rerun.
Set Status to Successful Allows you to set the status of the test instance to Successful and run its pending descendant test instances. Perform this operation if a test instance fails to be run.
Note This operation applies only to failed test instances.
Freeze Allows you to freeze the test instance and pause the scheduling of the test instance.
Unfreeze Allows you to unfreeze the frozen test instance.
  • If the test instance is not run, the system automatically runs this test instance after its ancestor test instances are successfully run.
  • If all the ancestor test instances of the test instance are successfully run, the status of the test instance is directly set to Failed. You must manually rerun the test instance.

Instance states

No. State Icon
1 Run successfully 1
2 Not running 2
3 Run failed 3
4 Running 4
5 Waiting time 5
6 Freeze 6