Saturday, April 30, 2011

VS 2010 - Different Timeouts in Testsettings file

The following are the different types of timeouts that can be configured in testsettings file:
  • agentNotRespondingTimeout
  • deploymentTimeout
  • runTimeout
  • scriptTimeout
  • testTimeout
Setting these timeouts are not very obvious when the testsetting is opened with 'Test Settings Editor'. Hence, open the testsettings file in 'XML (text) Editor'

You can then add various timeouts in milliseconds in the Timeouts node under the Execution node.
<TestSettings name="Local" id="46d8e12e-16c0-4ba4-9dd9-eda66fb2ccc6" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
   <Description>These are default test settings for a local test run.</Description>
   <Execution>
     <Timeouts agentNotRespondingTimeout="1800000" deploymentTimeout="" runTimeout="1800000" scriptTimeout="1800000" testTimeout="1800000"/>

2 comments:

  1. Hi Anuj,

    i tried the update local.testsetting



    but getting this error Opening 'local.testsetting' from VS2010 , any help is appreciated

    thanks
    subbu

    ---------------------------
    Microsoft Visual Studio
    ---------------------------
    The Test Settings file "D:\hci.desktop.tfs\JLTGroup\R11\OnlineBenefits\Source\JLT.OnlineBenefits.Web.UI.AutomatedTests\Local.testsettings" does not have the expected format:



    Unexpected end of file has occurred. The following elements are not closed: Execution, TestSettings. Line 141, position 16.
    ---------------------------
    OK
    ---------------------------

    ReplyDelete
  2. thanks Anuj , yes I can see it working once I update local.testsetting and re-starting Controller

    Regards
    subbu

    ReplyDelete