Thursday, May 19, 2011

The agent process was stopped while the test was running

I have successfully ran a web test and then added a webtest plug in with it. After that I generated coded webtest for this and try to run it and getting an error saying--"The agent process was stopped while the test was running."

Please let me know why it is throwing this error. Mention that I am using VS 2010 ultimate. VS 2008 doesn;t have any problem on webtest plug in.
==================================================
Hello,

Could you please verify whether the test is already running in 'Test Runs' window when you decide to run it?

When you run the declarative test after adding plug-in, are there any issues?

If you debug the test(right-click the test in test view, choose 'debug selection'), could you find anything helpful?

Thanks.
---------------------------------------------------------------------------
Edwer Fang [MSFT]
===============================================================
You asked: Could you please verify whether the test is already running in 'Test Runs' window when you decide to run it?

Answer:No, the test is not running in 'Test Runs's

You asked: When you run the declarative test after adding plug-in, are there any issues?

Answer: Yes that is the issue I'm talking about in this post..

You asked:If you debug the test(right-click the test in test view, choose 'debug selection'), could you find anything helpful?

Answer: the test run stop at this request:





this.PreRequestDataBinding += new EventHandler(this.testPlugin0.PreRequestDataBinding);

and threw an error as follows:

"The runtime has encountered a fatal error. The address of the error was at 0xeb567b50, on thread 0x15cc. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack."

If you need full code, please let me know. Thanks,

===================================================

Hello,

Could you please run as Administrator(righ-click the shortcut for VS, choose 'Run As Administrator') to see if this issue exists?

In addition, if you recreate the project start from scratch, does this issue still exist?

What is the version of your VS?

Thanks.


--------------------------------------------------------------------------------
Edwer Fang [MSFT]
===================================================
Hi Edwer,

I was running test as Administrator and in this case the issue exist.

Even I recreate the project from scratch, the issue still exist.

Version of VS: VS 2010 version 10.0.31118.1 SP1 Rel

Microsoft .Net Framework version 4.0.30319 SP Rel

Anybody tried web test plug in in VS2010?

Thanks,

Abdur
======================================================
Hello,

Could you please send the project to me for better troubleshooting (v-jinfan@microsoft.com)?

Thanks.


--------------------------------------------------------------------------------
Edwer Fang [MSFT]
===================================
Before sending you the full project, can you just answer me one question: Were you be able to run any web test plugin with VS2010 successfully? If yes then I need to send the code for debugging otherwise it is an obvious bug. Thanks.
===================================
Hi Jaeed,

Yes, we are able to run any web test plugin with VS2010 so this issue is something specific. So Please share your project with Edwer as he requested.

Thanks, Rubel


======================================
Hi Edwer,

I have just sent you the project in your email. Noted that project is so simple that it is hard to belive of failure. Please run "CBSOutdoorCoded.cs" test to see the error.

Regards,

Abdur

====================================
Hello,

Any update on this? I appreciate your response. Thanks. - Jaeed

====================================================
Hi Jaeed,

Can you please send me your project? I'll check on it and will get back to you.

Thanks, Rubel

==============================================
How is this issue now?
--------------------------------------------------------------------------------
Ruiz Yi [MSFT]
============================================
I didn't hear back from Jaeed yet on it.
--------------------------------------------------------------------------------
http://blogs.msdn.com/rubel/
==========================================
Hi Rubel,

Please send me your email address as if I can send the project as attachment. Thanks.-- Jaeed

===========================================
Hi All,

I was able to resolve the issue. Here is what happened:

My web test plugin project's class .Net framework version was differing with regular project.

Regular project's "Microsoft.VisualStudio.QualityTools.WebTestFramework" version was 10.0.0.0

Web test plug project's "Microsoft.VisualStudio.QualityTools.WebTestFramework" version was 8.0.0.0



After replacing the version of 8.0.0.0 by version 10.0.0.0, there is no more issue.

What happened was-- I was upgrading my old 2008 project to 2010 project. But during upgrade time web test plug in project framework wasn't upgraded correctly. I did manually upgrade the version and now I am fine.

I Hope this will be a very helpful post if anyone want to upgrade their VS 2008 version to VS2010 and if they encounter the issue I faced.

Regards.

Abdur

=======================

No comments:

Unix/Linux Commands

  Flow control Syntax break Exit a loop. continue Exit the current iteration of the loop and proceed with the next iteration. Ctrl+C Key com...