Menu

The Concept of a Web Page in a Single Page Application

With the advent of AJAX and one-page applications, the concent of a “web page” as a single file with HTML is antiquated. A simple website where the user navigates from page to page has been turned into a web-based application, with complicated user interface elements that aren’t web pages in the traditional sense.

And yet for testing purposes, we need to separate the different stages of a workflow for a web-based application. In Load Tester, then, the concent of a “page” could be anything from a traditional HTML file, so a single asynchronous AJAX call. The common denominator is each “page” is a response to user input for which they have to wait to see the change, i.e. clicking on a button, selecting an item, etc.

But how do we make sure these elements are recorded as separate pages in Load Tester? Testers often are familiar with websites, and thus will record as quickly as possible, but this only places every single HTTP transaction in a single page in the recording.

If this happens the use case will not work because different parts of a web page are all fetched simultaneously!

Instead, when recording you need to use one of these techniques:

1. Use the Control->Insert Page Break menu to tell the recording when a page has ended.

OR

2. Wait 3-4 seconds between each user input.

Of these options, #1 is greatly preferred.
You can also split a single page into multiple pages after recording, but that requires that you know for sure where the pages should be split. Splitting in the wrong spot will guarantee the playback will never work.

If you do need to separate recorded web page into two web pages, right-click on the first URL in the new web page, and select Start new Web Page with URL, as shown below.

Add Your Comment

You must be logged in to post a comment.

Resources

Copyright © 2019 Web Performance, Inc.

A Durham web design company

×

(1) 919-845-7601 9AM-5PM EST

Just complete this form and we will get back to you as soon as possible with a quote. Please note: Technical support questions should be posted to our online support system.

About You
What you Need