Wednesday, August 25, 2010

Visual Studio 2010 - Load Test Tool Details

Scripting(Web test):

- Do we have Initialization section and Termination section for a user.(Ex: A user log in and does some set of action and log out from the web page. when a user enters the login and logout is done only once,the set of actions must be Iterated).
http://msdn.microsoft.com/en-us/library/bb514192.aspx
http://blogs.msdn.com/b/chrispat/archive/2010/01/10/branching-and-looping-in-a-declarative-web-test.aspx

- Error Handling (Ex:If error occurs need to stop the iteration and continue with the next).
http://blogs.msdn.com/b/slumley/archive/2007/04/10/how-to-debug-a-web-test.aspx

- How to include the custom messages to debug the script and display in the log. (Enhanced the code using Console.Writeln() but unable to see in the log).
http://msdn.microsoft.com/en-us/library/bb514192.aspx

- To suppress a particular dependent request instead of all the requests which are not required(Ex: some .gif, blocked contents etc).

A top-level request can appear to have failed because one of its dependent requests could not be found. This might indicate a problem with the Web application's HTML. These errors can be suppressed by disabling the ParseDependentRequests property on the request.
http://msdn.microsoft.com/en-us/library/ms364082(VS.80).aspx


- Log window options such as to enable/disable during the test run.
http://blogs.msdn.com/b/edglas/archive/2007/12/02/web-test-authoring-and-debugging-techniques-for-vs-2008.aspx
http://teamtestplugins.codeplex.com/

- Functions related to build the dynamic form data for a request.
Please share more details on the above point.

- How to extract data when a response page consists of multiple frames.
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.rules.extracthiddenfields.aspx

- Parameterization: If we select the random username from the data source file, then how to retrieve the corresponding password of the username.
If both username & password are picked up from same datasource then corresponding password will be select with random username automatically.

- If we enhance the code in .cs filethen how to .webtest should get reflected.
It is not supported, since both are different files.

Execution(Load test):
- Can we limit the number of users per Load Agent(Ex: To execute 1000 users, can we distribute 500users from each LA instead of 1000 from a single LA).

You can use the Test Agent property called weighting to distribute the load.

Test Agent Property Description
Weighting Used to distribute load when you use test agents with different performance levels. For example, a test agent with a weighting of 100 receives two times the load as a test agent with a weighting of 50.

Please find below the link for more information on changing the test agent settings:
Changing the Settings for a Test Agent
http://msdn.microsoft.com/en-us/library/dd695837.aspx#ChangeAgent

- Do we have any options to Ramp down the users?
There are no built-in support for this, but one can write custom load test plug-in for ramp down users, please refer below link for more information:
http://blogs.msdn.com/b/yutong/archive/2010/03/15/load-test-plug-in-simulate-multiple-and-repeated-user-load-patterns-step-2-1.aspx
http://blogs.msdn.com/b/slumley/archive/2009/04/10/load-test-plug-ins.aspx

- Can we dynamically increase/decrease the user load during the test run.
http://blogs.msdn.com/b/yutong/archive/2010/03/15/load-test-plug-in-simulate-multiple-and-repeated-user-load-patterns-step-2-1.aspx

Reporting:
- How can we generate the automated report with graphs.
http://blogs.msdn.com/b/slumley/archive/2009/05/22/dev10-feature-load-test-excel-report-integration.aspx

No comments: