Skip to main content

Developing Virtual User Scripts

Virtual User Scripting Process

Creating a virtual user script usually involves the following steps:

  • Record/generate or hand-code a script
  • Enhance the script and/or add parameterisation
  • Build (compile) the script
  • Add the script into a workflow (optional)
  • Create a test with a Virtual User group to run the script/workflow
  • Configure runtime settings of the Virtual User group
  • Create and assign test data
  • Run the test

Creating the script

Depending upon the virtual user type and particular circumstances of the system under test, Virtual User Scripts can be created in a number of ways:

  • Recording user actions to generate a script
  • Generating a script based upon a set of rules and properties
  • Hand-coding a script

See the section Working with Virtual User Scripts for more information.

Enhancing the script

Virtual User Scripts can be further enhanced by adding logic and control flow, response verification and also data parameterization. Because Eggplant Performance Virtual User Scripts are implemented in industry standard programming languages, the full power of those languages and their Integrated Development Environments (IDEs) are available to the Eggplant Performance user. The Virtual User Scripts are compiled/built using the installed and configured builders.

Running the script

Virtual User Scripts can be executed individually by a virtual user or by placing them within a workflow as part of a sequence of scripts. A test is then created with one or more Virtual User Groups. Each Virtual User Group is constructed to either run a script or workflow and their runtime settings are configured. Next, data sources are assigned to the test and/or Virtual User Groups before finally running the test.