%%
date:: [[2022-10-25]]
%%
# [[Making load testing scripts more realistic]]
A good load testing script exercises the functions and components as specified in the [[Requirements]] gathering phase while simulating real users as much as is feasible. There is a tradeoff between realism and cost, so the exact ratio should be decided based on test objectives and requirements.
A [[Workload Modeling|workload model]] is the process of identifying the amount, shape, distribution, duration, and weight of the load to be simulated. One of the factors to keep in mind when creating a workload model is whether or not it is realistic.
Here are a few ways to make scripts more realistic.
<iframe width="560" height="315" src="https://www.youtube.com/embed/Xz6drbGuUdI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
#### [[Parameterization]]
If you have several environments that you might like to test with the same script, it would be a good idea to set up your script so that it’s easy to switch between environments.
#### [[Add static resources]]
#### [[Set cache and cookie behavior]]
#### [[Increasing throughput of a load test]]
#### Adding [[Dynamic think time and pacing]]
#### Using [[Concurrent requests]]
#### Setting and tweaking [[Test parameters]]
#### Adding [[Test Data]]
#### Using different [[User Paths]]
## Related
- [[API Load Testing - A Beginner's Guide]]
- [[Load Testing]]