VirtualUserScript Class

Implements DataDictionary

The VirtualUserScript class is the base class of all eggPlant Performance Script classes. All other virtual user types are specializations of this class. The script wizards (recorders and generators) create Scripts with source code files containing classes whose base class is VirtualUserScript, or one of its specializations.

C++ Accessing a Custom VU

Many of the operations (methods) of VirtualUserScript are delegated to the VirtualUser class. Access to the VirtualUser instance can be obtained via the attribute _vu.

Owing to delegation, the methods described in this section can be called directly from within the code of any script class. For example:

pause(2000); // pause this VU for 2000 milliseconds (think time)

writeMessage("My message"); // insert a message in the VU event log

 

This topic was last updated on 2月 01, 2019, at 11:13:24 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant