Dynamic vs. Static Resources in Pages

Pages simulate web browser behavior. They include a main HTML Document, and all of the resources (JavaScript, CSS, images, etc.) that it includes. Pages include special timing, while groups include no such timing. On playback, the first message in a page is played first and then the subsequent messages in the Page—both static and dynamic—are played in bursts similar to a burst of file requests made from a web browser

For example, CloudTest plays the first message (this is called the HTML Document), and when its response is returned all subsequent messages in the Page are played in a way that simulates browser behavior (e.g. in a “burst”-like manner, using the number of connections per host as specified in the Target).

  • When static resources are used, CloudTest plays exactly those resources that are specified in the page, regardless of whether they were recorded or inserted during clip editing.
  • When dynamic resources are used, CloudTest parses the response of the HTML Document and dynamically makes requests for all of the resources found in that response.

Dynamic simulates what browsers do, and is a more robust way to handle pages since the resources in the HTML Document may change. For example, using static pages will not submit the right requests to the servers if an HTML Document has changed since it was recorded, but using dynamic pages will.

However, CloudTest cannot always determine with complete accuracy what resources a browser might retrieve. For example, if there is dynamic JavaScript that executes in the page, that would not be detected by CloudTest as it does not actually execute any received JavaScript files. Static Resources can be added to the Page to manually cause such resources to be retrieved.

A Page can use static resources, dynamic resources, or both simultaneously.

Pages contain two “segments”. The first segment contains the HTML document as well as optionally scripts and delays. The items in the first segment play sequentially. The second segment contains static resource Messages, which are played in a “burst”.