Dynamic vs. Static Resources in Pages
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.
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”.