2

I am getting the error below when I run a unit test:

completed successfully without running the test. This can occur when configuring the Web application for testing fails (an ASP.NET server error occurs when processing the request), or when no ASP.NET page is executed (the URL may point to an HTML page, a Web service, or a directory listing). Running tests in ASP.NET requires the URL to resolve to an ASP.NET page and for the page to execute properly up to the Load event. The response from the request is stored in the file 'WebRequestResponse_populateData.html' with the test results; typically this file can be opened with a Web browser to view its contents.

I'm not sure what this means. Do you have any pointers I could look into?

HaskellElephant
  • 9,819
  • 4
  • 38
  • 67
patil
  • 127
  • 1
  • 7
  • 2
    providing what unit testing framework you are using and what the unit test was doing might help get you some answers – John Sobolewski Dec 05 '11 at 12:46
  • see this question http://stackoverflow.com/questions/2051028/unit-test-configuration-for-asp-net-application – John Sobolewski Dec 05 '11 at 12:47
  • The title says the test runs successfully, but the question content says you're getting an error. Well, which is it? –  Dec 05 '11 at 14:29
  • Duplicate: http://stackoverflow.com/questions/2051028/unit-test-configuration-for-asp-net-application – Gert Arnold Dec 05 '11 at 15:03

1 Answers1

4

Set the attribute UrlToTest to the Url In test. Like:

[UrlToTest("URL your testing")]
masif
  • 3,950
  • 4
  • 19
  • 22