When a load test is run, Virtual Users simulate the actions of real users by running scripts. Each script is a subclass of the VirtualUserScript class. You can write a test script by adding actions to the Script method of the VirtualUserScript subclass.
The actions you use to put load on the System Under Test will vary depending on the type of system being tested. It could involve sending HTTP requests to a web server, manipulating a client-side API or automating a thick-client graphical user interface.
The VirtualUser class controls the test execution, and can be used to record transaction timings and metrics for statistical analysis after the test run.