Xml Test Node-----Xml interacts with CAPL

Foreword: The biggest feature of Xml Test Node is that it can write test cases through CAPL, and at the same time cooperate with Xml to flexibly call the use cases written by CAPL.

A simple example is used below to demonstrate the interaction between Xml and CAPL. The main function implemented is to implement session switching

The Xml code is as follows:

The CAPL code is as follows:

Note: The Name in Xml must be consistent with the function name in CPAL.

The test results are as follows:

It can be seen from the test report that all gave positive feedback, indicating that it is possible to jump from Default Session to Extend Session. Next, I want to jump from the Extended Session back to the Default Session.

At this time, there is no need to write CAPL anymore, just copy the Default Session to the Extended Session in Xml.

The Xml code is as follows:

The test results are as follows:

Of course, Xml can also pass parameters to CAPL. For specific operations, you can refer to the Help document of CAPL.

Guess you like

Origin blog.csdn.net/WlzSnail/article/details/129448122