YuTong's Blog

Web/Load Testing

How to Enable VSTS Logging?

Normally, when a test fails to execute or is aborted, a brief error message will be displayed in the Test Result Window. For a Web test that completes with error(s), detailed information can be found in the Web Test Playback window. For a load test completes with error(s), the errors are written to the Errors table, Tests table, and sometimes also the Requests table. Under certain (rare) conditions, it is difficult to find out why VSTS or the system does not behave as expected based on the given error messages and you may turn on VSTS tracing.

If you are running test locally, enable logging for the VSTestHost process.

1.     Open <Program Files>\Microsoft Visual Studio 9.0\Common7\IDE\VsTestHost.exe.config file.

2.     Add the following system.diagnostics section.

<system.diagnostics>

    <trace autoflush="true" indentsize="4">

        <listeners>                   

           <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\VSTestHost.log" />

        </listeners>

    </trace>

    <switches>

        <!-- You must use integral values for "value".  Use 0 for off, 1 for

             error, 2 for warn, 3 for info, and 4 for verbose. -->

        <add name="EqtTraceLevel" value="3" />

    </switches>

  </system.diagnostics>

 

3.     Specify the path to the log file and the trace level.

If you are running test on Rig, enable logging for the Agent and/or Controller processes.

 

1.     Under <Program Files>\Microsoft Visual Studio 9.0 Team Test Load Agent\LoadTest\, find QTAgent.exe.config for Agent process and QTController.exe.config for Controller process.

2.     In the config file, under appSettings section, locate line <add key="CreateTraceListener" value="no" />, and  change the value from “no” to “yes”.

3.     After you modify the config files, you need to restart the Controller and Agent.

The log files, vsttagentprocess.log and vsttcontroller.log, will be created in the same directory as the configure files.

 

Published Tuesday, October 03, 2006 5:14 PM by yutong

Comments

 

Team System News said:

Brian Harry on Promised SP1 docs and Last Word on TFS Expirations (I Hope). YuTong on How to Enable...

October 9, 2006 10:49 AM
 

iiqbal said:

Hi

I am learning visual studio for tester, I am having one query

Please clear my point

Scenario I want to test

Objective =Load testing of hotmail

Steps to execute this scenario

Open the hotmail page

Enter the user name and password

Click on new link

Enter the email in “To” field say test@test.com

Click on send button

Application submit the mail and  Sign-out from hotmail

Record the above scenario in Visual studio test editions

Vs Test editions record and play the above scenario with out any error

Problem

But it doesn’t send mail in testing environment or in Visual studio browser or when I play this record web test

Issue

What is reason of this, if Visual studio for tester is not supporting these kinds of things, how we can test application in real environment

Suppose we provide the 100 of user email and password with the help of data binding at login page, but application is not sending mail what is the benefit of this tool

I am very confuse, please tell me solutions

Thanks in advance

March 22, 2007 10:53 AM
 

myspace graphics glitter free layouts codes icons said:

myspace graphics glitter free layouts codes icons

September 24, 2007 10:18 PM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker