Knowledgebase

Scripting Introduction


In order to create much more complex behavior from the simulated clients in a load test, you might want to take a look at the scripting functionality of Load Impact. By using the high-level programming language Lua together with the Load Impact API you can make your simulated clients perform very advanced tasks on the site being tested.

The User Scenario (load script) is a program that describes what each simulated client should do during the load test. Every Virtual User will run its own execution thread, executing the User Scenario until it runs to completion. After that, the VU will run the load script again and again, repeating it infinitely until the load test is finished. During ramp downs, we will stop VUs from executing during the ramp down period.

In this section we will provide you with a set of examples on how to create load scripts that perform several common actions.

Refer to our full list of examples: Scripting Examples