locked
Test passes in Debug not in Run mode RRS feed

  • Question

  • I have a unit test written for webservice call and web method test. It works fine if i run the test with my localhost in both Run and Debug mode, but while I try to run this test with some external agent it always fails though if i debug this test with the external agent, it passes.

    Here is what I found but don't know the solution. It always fails while try to communicate with the webservices located on different server with external agent. Works fine with localhost though!

    Thanks in advance!

    Wednesday, November 2, 2011 4:59 PM

All replies

  • OK, I found the problem.

    I have had a XML setting file stored in TFS, When I was debuging it, it looks for the local refn but while I was running it, it was looking for refn on agent server and was failing. I changed the refn and it is working fine now.

    Thursday, November 3, 2011 4:49 PM