Web test details are not displayed when ran from a

2019-02-27 16:27发布

I have an ordered test that contains 4 web tests. The problem is that Visual Studio seems to have a problem loading the test results for an individual test.

I included a screenshot to supplement for the 1000 words. :)

Test results screenshot

As you may see the 3rd test, called intuitively Webservice03, failed. The screenshot above was taken after I double-clicked on the corresponding line to open the detailed information about that test run. The panels with requests and other useful information are empty.

The issue is quite annoying, because the test is part of a bigger test suite that runs periodically, so when it fails, I have to manually disable the setup and cleanup scripts from the test configuration, run them manually, then run each of the tests manually, instead of just comfortably opening the test results.

Did anyone experienced this problem? Thanks.

Version details:

Microsoft Visual Studio 2010 Ultimate Version 10.0.40219.1 SP1Rel

Microsoft .NET Framework Version 4.0.30319 SP1Rel

2条回答
虎瘦雄心在
2楼-- · 2019-02-27 16:56

I had the same problem and tryed to clarify it via Microsoft forum:

Web test details are not displayed when ran from an ordered test

According to the answer you can not have detailed test result for a web test run as a part of an ordered test.

查看更多
放荡不羁爱自由
3楼-- · 2019-02-27 17:06

Here is an alternative to Ordered Tests:

  1. Add the web tests to a load test

  2. In the test mix choose 'Test mix based on sequential test order'. This will achieve the same thing as an Ordered Test.

    enter image description here

  3. In the load test run settings, make sure 'Save Log on Test Failure' is set to True:

    enter image description here

  4. Set a Constant Load Pattern of 1 user

At the end of the "load" test you will be able to see the number of failures and on the Tables view you can click on the error count which takes you to a dialog that lets you browse the individual web test failures.

enter image description here

enter image description here

查看更多
登录 后发表回答