A user scenario defines what URLs or web pages will be requested by the simulated users during a load test. The best user scenarios are ones that mimic real user behavior.
You can create multiple user scenarios and use them all in a single load test. E.g. if you have a shopping site, you can then have one user scenario that simulates a user just browsing on the site, and another user scenario that simulates a user who logs in on the site, puts some products into the shopping cart, and then performs a check-out.
User scenarios can be created in several ways. Starting on the User scenarios page, you click the New user scenario button.
You then have several options – You can enter a URL in the Submit a URL for a quick scenario field and then either click the Proceed button. If you know exactly what individual URLs you want the user scenario to load, you can write the load script for the scenario manually, choosing the Scripting option. You can also choose the Scenario Recorder option, or the Proxy Recorder option.
The Submit a URL for a quick scenario field will make the system load the URL and parse it like a web browser does. i.e. if you specified the address of a certain web page, the system would load that address, parse the HTML code it gets and find out what other resources (images, CSS files, etc) would be necessary to load for a web browser to be able to render the web page. Then a load script would be generated that fetched all these resources, in the same order a web browser would have fetched them. When the user scenario is run in a load test it would be just like a real user loaded that one, single web page with all its dependent resources.
The Scenario session button will make Load Impact launch a site on Chrome and emulate the actions of real-life users on your site.
The Proxy session button will make Load Impact launch a HTTP proxy server, allowing you to configure your web browser so that it uses this proxy server to access the web. You will be able to surf around on your site, loading multiple pages.This will create a load script that contains all the HTTP transactions that were executed by your own browser while you were surfing around in the new browser window, mimicking your behavior exactly (including pauses in between page loads).
Tip: You don’t have to configure user scenarios in order to run a load test – we will create a user scenario automatically for you if you don’t specify one. The automatic user scenario will be based on the target URL you type in for your test, and will load just that one page.
Note: User scenarios are NOT automatically refreshed when your website is updated, or if you change the Target URL in the test configuration. You will need to re-enter the Script generation URL in the user scenario, then perform a new recording or auto-generate an updated User Scenario.