- Simulated wait times
- Full page loads
- User sessions
Wait Times
Real users wait between page loads—they consume the content, let animations or videos play, and interact with the page. Because of this, you need to simulate a realistic wait time in your test, which depends on the type of site or content. Recommended wait times:- Slow - 15 to 60 seconds
- Casual - 8 to 20 seconds
- Standard - 5 to 9 seconds
wait_time
variable, which typically looks like this:
Loading Static Content
A real user also loads all your static content—images, CSS, JavaScript, etc. However, browsers cache this content, meaning they load it less frequently as users continue browsing. You want to simulate loading static content first and then focus on dynamic content. Here’s an example of a test script that simulates a real user visiting a blog:- The
index_page
task loads the homepage along with its static assets. - The
visit_pages
task simulates navigating through various pages of the site. - The
wait_time
ensures that user behavior remains realistic, with a pause between actions.
Next Steps
- Use the Wizard to create your own test.
- Copy test examples from the documentation under the Example Tests and Snippets category.
- Customize your tests further based on your website’s user behavior patterns.