Simple Web Testing with Team Test Edition


Team System's web testing functionality is, in my opinion, one of the strongest features in any of the Team System Editions. The web test functionality is only included in Team Test Edition and, of course, Team Suite-- which has everything.

Here's how easy it is to create a basic web test. First, add a test project to your solution via File, New, Project, Web Test:



The new test project will show up in your solution, and your first empty web test will be open by default:



At this point you would typically launch the web recorder, which is based on an IE plugin. You can do that by clicking the red "record" button on the toolbar, or right clicking and selecting Add Recording.



I'm recording a simple little web site that echoes back whatever we typed in a label with "Hello, " prefixed. This is why I make the big bucks as a professional developer, people!

Once I've completed the recording, the recorded HTTP transactions will show up in the web test. One request, one post:



Let's make this a real web test by right clicking and adding a validation rule to the second step, the post:



We'll check the results for the string "Hello, Cleveland!". Now that we've added our validation rule and made this a bona-fide test, click the run button on the toolbar to run it:



Woo-hoo! We passed!

Of course, I'm barely scratching the surface of what you can do here, but it's pleasingly simple to get a basic test up and running. And that's one less excuse for not having web tests on your web project.

posted on Thursday, March 09, 2006 2:16 PM by jatwood

Comments

# VSTS Links - 03/10/2006

Charles Young says he has found a bug in Team Build in the RC of Team Foundation Server.

Gene Webb...
Friday, March 10, 2006 7:19 AM by Team System News

# Simple Load Testing with Team Test Edition

In my previous post, we set up a simple web test using VSTS test functionality. Let's turn that web test...
Friday, March 10, 2006 9:52 AM by Team System

# re: Simple Web Testing with Team Test Edition

I am trying to do testing in TFS and using webtest but for my pages where I have popups or if the page is getting submitted to itself then the parameter values are not getting recorded. Do you have any idea about this? I tried using FIddler but even this doesn't help.
Monday, February 26, 2007 7:13 AM by Ekta

# re: Simple Web Testing with Team Test Edition

i am trying the same but it gives me the primary and dependency error? how do i get its solutions......
Wednesday, March 14, 2007 12:13 AM by bugs