Test scenarios are designed to determine the typical and not typical situations that may be found in the application.
In the case of regression testing test scenarios can provide repeatable iterations of regression testing, which allow more precise planning and the stability of the test results.
A load test scenario consists of the scripts that will be performed, the percentages in which those scripts will be performed, and a description of how the load will be increased.
In order to write a typical load test scenario you should perform the following steps:
- Write down one or more tasks. Then you need to generate a script or a request. To achieve this goal you can use such test automation tools as TestComplete, LoadRunner, The Grinder and many others.
- Create a load test (specify the exact number of users, distribute tasks among users, define the browser, connection speed and the time of beginning for each user, make sure that the simultaneous use was started).
- Run your test.
- Repeat the test several times increasing (or decreasing) the number of virtual users.