How to set up a Load Test step by step??  
Author Message
BobTheBuild





PostPosted: Visual Studio Team System - Testing, How to set up a Load Test step by step?? Top

Somehow I can't find a step-by step guide for beginners to set up a load test in VSTS so I'd appreciate if someone can help.

I have a solution with a Web Site project.  I want to do some simplest load test against one page.  I have VSTS Premium installed and have done the following:

1.  with the solution open, clicked on Test -> New Test from the VS menu.
2.  Chose "Load Test", and entered the New Load Test Wizard.
3.  Kept everything on the Scenario screen as is (only increased the Think time to 5 seconds).
4.  Kept Load Pattern screen as is
5.  Kept Test Mix screen as is, that is, no items.
6.  Kept the Browser Mix screen default to what's on it, that is, a IE 6.0 browser type.
7.  Removed LAN from the Network Mix screen so no items there.
8.  Kept Counter Sets screen as is.
9.  On the Run Settings screen, 10 seconds for Warm-up duration, 10 minutes for Run duration, and everyting else as is.

Now when I run the test, I get this popup message:  "Test did not execute.  The test/run was aborted on agent 'Desktop12345' due to error: 'There are no tests in this load test.'.

I kind of understand as nowhere it asked me which page or site I want to test.  So I right clicked on Scenario1 and clicked Edit Test Mix, thinking that's what's needed.  I clicked on the Add button, there's a TestMehtod1 available in the Availabe tests list,  I added that, and ran the test again.  Then I got anoher popup error message:  "Error HRESULT E_FAIL has been returned from a call to a COM component."

I don't know here TestMethod1 came from and can't find it in the proejct to edit either.  Again since I don't see anywhere I can tell the test project what page I want to test, I'm not suprised it didn't run, but I have no clue at this point what else to do.

It's my frist time trying to do a test and I have gone some articles on MSDN2 and there's no mentioning on the specifics.  I thought the old Application Test Center in VS 2003 was pretty intuitive to setup.  Anyway, if anyone can point me in the right direcitons with some specifics, I'd appreciate.

 



Visual Studio Team System1  
 
 
Nagaraj K





PostPosted: Visual Studio Team System - Testing, How to set up a Load Test step by step?? Top

Hi Bob,
Did u record any web test prior to configuring the load test

Either you have a web test recorded or have a unit test created before configuring the Load Test.

You need to click on Add... which opens a pop-up displaying the tests in the 'available tests' list. You can either double click or select and click the arrow sign ">" to include it into the "Selected Tests". If you want to remove any test from the "Selected Tests", follow the same procedure of double clicking or selecting and clicking the "<" arrow
Click on OK. Now you'll see the test you selected in the Test Mix screen.
Try running the load test now.

HTH



 
 
BobTheBuild





PostPosted: Visual Studio Team System - Testing, How to set up a Load Test step by step?? Top

Thanks for the reply Raj.  How exactly do I record a web test   Again in Application Center Test, either on the menu or in the wizard, you can easily find the Record function, but in VSTS, I have looked at every menu path, hit all the screen I can hit, but nowhere can I find a Record function.  Do I need to use another tool to record a script for the test project to play   I understand that I need to tell it what test to do, but for a simple load test, I don't want to spend time writing a whole test class in C#.  

I think I can see adding something at step #5 is the key but it's frustrating a way to record that "something" is not prominently made available.  Did MS want everyone to manually write test script rather than to record    We won't be using this tool if the only way to create test cases is to write them manually from scratch.


 
 
Bill Barnett - MSFT





PostPosted: Visual Studio Team System - Testing, How to set up a Load Test step by step?? Top

You certainly don't need to write Web tests manually. See the online docs on "Creating a Web Test" at http://msdn2.microsoft.com/en-us/library/ms182538.aspx.

Also, "Working with Load Tests" at http://msdn2.microsoft.com/en-us/library/ms182561.aspx.

This should help a lot, but if you still have questions, please post them.


 
 
BobTheBuild





PostPosted: Visual Studio Team System - Testing, How to set up a Load Test step by step?? Top

Thanks Bill. I see now, adding a web test means recording a web test squence. I kept looking for the keyword 'record'.