Monday, July 21, 2014

The agent was stopped while test was running in Visual Studio



It is known issue that we come across "The agent was stopped while the test was running" message during our testing.  There is a bug that still active at Microsoft. To get rid of this, there is a resolution. This is very simple as such adding a key to your QTAgent/app.config file.

Just add :
<legacyUnhandledExceptionPolicy enabled="1"/> to your QTAgent.config file in <runtime> 
section or just runtime section to your app.config and put this enabler into that section.

This resolves you the problem of seeing this agent stopped message. 
Reference:
1. http://msdn.microsoft.com/en-us/library/ms228965.aspx
2. https://connect.microsoft.com/VisualStudio/feedback/details/556702/
unit-testing-the-agent-process-was-stopped-while-the-test-was-running


No comments:

Post a Comment