Testcases ignores executionTimeout in app.config

8 posts, 0 answers
  1. kwee
    kwee avatar
    28 posts
    Member since:
    Sep 2011

    Posted 07 May 2012 Link to this post

    Hi,

    I am using Telerik 2011.1.

    When my tests run for more than 30 min, WebAii fails due to executionTimeout
    exceeded. It seems to ignore the app.config setting for executionTimeout that I have
    increased.

    To reproduce the problem ( in reverse ), I used the
    Samples/QuickStarts_VSTS_CS project and picked a passing testcase,
    eg SimpleWin32UI.

    Then I updated the app.config WebAii.Settings so that executionTimeout=0 ( or 1).
    The testcase still runs and passes, and does not produce testcase timeout.
                                                 
    This shows that WebAii.Settings/executionTimeout is not being used.

    Where should the executionTimeout value be set so that it can be effective?

    Thanks,
  2. kwee
    kwee avatar
    28 posts
    Member since:
    Sep 2011

    Posted 09 May 2012 Link to this post

    Additional information

    My test runs timeout like this:
     
         | Start Time:  5/7/2012 12:42:21 PM
         | Finish Time: 5/7/2012 1:12:21 PM
         | Test 'Create150Ships' exceeded execution timeout period.

    It seems that my executionTimeout setting is ignored and the default 18000 ( 30 min ) value is
    used.

    There is another forum posting regarding the same issue, but no resolution was reported.

    Reference : "Test exceeded execution timeout period"
       http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/test-exceeded-execution-timeout-period.aspx
  3. kwee
    kwee avatar
    28 posts
    Member since:
    Sep 2011

    Posted 09 May 2012 Link to this post

    Additional information

    I updated my TTF to 2012.1.411 and repeated the test.
    The executionTimeout value is being read into the SettingsConfigSectionHandler,
    but has no effect on the testcase. When the value is set to very low, eg 0, 1, the
    testcase continues to run to completion.

    Hopefully, I get an answer soon.

    Thanks,
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 10 May 2012 Link to this post

    Hello kwee,

    I apologize for the confusion on the correct use of the executionTimeout parameter. It does not control the total amount of time the test may execute. It is the same thing as the ExecuteCommandTimeout setting documented here.

    The setting you really need is the Visual Studio Test Timeouts contained in the Visual Studio .testsettings file (see attached screen shot).

    Greetings,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. kwee
    kwee avatar
    28 posts
    Member since:
    Sep 2011

    Posted 10 May 2012 Link to this post

    Great! I'll try it out soon. Thanks for the clarification.
  6. Mostafa
    Mostafa avatar
    22 posts
    Member since:
    Aug 2012

    Posted 27 Nov 2012 Link to this post

    how can i create the Visual Studio .testsettings file, i can't find the file and i have the same Problem with the Timeout.

    I run the test with mstest program through a test list,The first  test succeeds, and the second one has a timeout?

    can u please help me???

    regards
    Mostafa
  7. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 27 Nov 2012 Link to this post

    Hello Mostafa,

    Please see this video on how to add the .testsettings file and where to find the Visual Studio Test Timeouts settings.

    Let me know if you need further assistance on this.

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  8. Mostafa
    Mostafa avatar
    22 posts
    Member since:
    Aug 2012

    Posted 27 Nov 2012 Link to this post

    Thanks for the clarification.
Back to Top