vPerformer has two recording modes, Web and HTTP. What is the difference between these modes? To explain this, I’ll first attempt to describe the HTTP traffic generated by your browser in response to a web page. Consider a web page, newpage.html where the HTML is as follows.
<A HREF=”http://news.google.com”><IMG SRC=”news-32.png” ALT=”Google News” name=”img”></A>
When a browser is pointed this location, it will first load the page, newspage.html, process its HTML and then load the image news-32.png. This will translate from an HTTP context into two requests,
If this page is recorded in Web mode we will only record requests that relate to user actions.
WebSendRequest(“GET”, “http://localhost/news/newspage.html”, …
In HTTP mode we will record all HTTP requests.
HttpSendRequest(“GET”, “http://localhost/news/newspage.html”, …
HttpSendRequest(“GET”, “http://localhost/news/news-32.png”, …
In Web mode, when the script is executed the load agent will process the HTML and then load the image news-32.png. It doesn’t generate a function for this request, since it will parse and ‘discover’ this item at runtime. In HTTP mode, when the script is executed the agent will simply load whatever was recorded. It doesn’t need to process the page any further since the web page was already processed by the browser during the recording phase. This brings up the question, which mode should you use.