Testing web applications with pop ups
Last week, I had someone come to ask me help around adopting web testing solutions for their team. The application that needed to be tested was a web application that needed to be hit by 50 users to stress it. The web app itself was a maze of popups and hence wasn't recorded very well by web test recorder in VSTT.
The problems they were hitting was stuff made of FAQs, but I sensed that the FAQs' replies didn't indicate how very simple the solutions were. So, here is a brief rundown on recording web tests on apps that have pop ups.
First, go to www.fiddlertool.com to download this super-cool HTTP debugging proxy called Fiddler. It installs on your machine before you can blink and loads up a simple UI. Hit an F12 and it starts capturing all HTTP traffic on your machine. Now here is what you have to do:
1. Record actions in the web test as usual until you encounter the pop-up
2. When you want to record actions on the pop up, launch Fiddler and hit F12. Here is how the tool captures your HTTP headers while you record actions on the popup. In this instance, I just opened a pop-up tester web site
3. Next choose the URLs that you would want to record in your web test and click Save as->Session->web test
Ain’t that cool?
4. Save the web test on your hard disk and open it up in VS. Get the requests from the new web test and import those into the web test that you already recorded in step 1
5. Voila – you have your web test on web apps with pop ups ready.
Now, the web application might be on secure http. You can use RPA Spy to view HTTPS headers and capture those in Fiddler.
More on load testing web applications in later posts.
Comments
Anonymous
March 02, 2007
We recently ran a bootcamp for some of our internal teams on the testing capabilities of Visual StudioAnonymous
March 02, 2007
We recently ran a bootcamp for some of our internal teams on the testing capabilities of Visual StudioAnonymous
June 13, 2007
I have a question about Step 4 - Get the requests from the new web test and import those into the web test that you already recorded in step 1. When I am in VS and I open the file and select the saved file from Fiddler, I receive the following pop up: File contains tests, and hence should be opened from a test project. I get the same error when I open from a test project. Did I set it up wrong in Fiddler?Anonymous
March 17, 2008
Visual Studio Team System for Testers Content Index for Web Tests and Load Tests Getting Started OnlineAnonymous
October 30, 2013
Hello can fiddler still do this since it is already owned by Telerik?