Load testing

This testing strategy consists of simulating a specified number of user, all of them using your application at the same time and at normal human speed.

What is load testing?

You can use the GGC to test your application during development to see how it would behave in conditions in a production environment. This can help you identify, for example, server (e.g. how many servers, how much memory, etc.) and network requirements based on the number of anticipated users. Observations made under these test conditions will also show up the application's weaknesses and will allow you to fix them before release.

Load testing with Ghost Client

The GGC allows you to specify several options through the Launcher class for load testing:

Developing Scenario for load testing

The Scenario for load testing needs to reflect how a real user would use an application. For example, the setDelay() method can be set to make the GhostRunner instance wait for a specified number of seconds between each action. This allows you to try to reproduce the human speed of interaction with an application, which is usually much slower than computer speed. Apart from that any interaction a user would normally do on an application can be played.

Performance testing

Performance testing is similar to load testing as it also consists of simulating a significant number of users but the aim is to determine when the system's performance will start to degrade. So, in this case you would specify the number of simulated user as high as possible so as to observe when the request/response delay begins to be affected by the number of users.