RemotingException during Ordered Test?
-
jueves, 02 de agosto de 2012 18:51
I have a selection of CodedUI tests. Each test runs just fine by iteself. If I place two of them in an Ordered Test, the first one runs fine, but the second errors immediately with this RemotingException:
Exception in Asserts::Object '/b19c5c11_5413_4a2f_86ae_840fdf0dab8b/s5vbggh8lccjqazvlmwfi9dp_10.rem' has been disconnected or does not exist at the server.
As you may have guessed, I have no idea what object it's even talking about since the name provided isn't exactly useful.
So...any ideas?
- Editado vHaB jueves, 02 de agosto de 2012 18:51
Todas las respuestas
-
lunes, 06 de agosto de 2012 4:27Moderador
Hi vHaB,
Thank you for posting in the MSDN forum.
Could you share us the detailed error message? We know that an ordered test contains other tests that are meant to be run in a specified order. Maybe you could change the two coded UI tests’ order and check it again. If you have other Environment, maybe you could try to run the same test project in it, check the result.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
lunes, 06 de agosto de 2012 18:39
Hi vHaB,
Thank you for posting in the MSDN forum.
Could you share us the detailed error message? We know that an ordered test contains other tests that are meant to be run in a specified order. Maybe you could change the two coded UI tests’ order and check it again. If you have other Environment, maybe you could try to run the same test project in it, check the result.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
That's actually the entirety of the error message.
It doesn't matter what tests, doesn't matter what order they are in. The first executes (and passes) the second always fails. Hence my stumpedness. :)
Also doesn't matter if I'm running locally or on a test farm via MTM. Same error.- Editado vHaB lunes, 06 de agosto de 2012 18:40
-
martes, 07 de agosto de 2012 6:37Moderador
Hi vHaB,
Glad to receive your reply.
I try to create two simple coded UI tests, and then add them to an ordered test, the result is normal. If you create two simple coded UI tests, whether it has the same issue?
I doubt that it is related your specific tests, for example, your coded test1 could impact your code test2 and vice versa. Maybe you could check your event log to get some information. Since we could run two coded UI tests well, if still no help, you could share us your project, we try to run it.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
martes, 07 de agosto de 2012 17:53
I did this:
[TestMethod] [Description("ordered test 1")] public void OrderedTest1() { bool foo = true; WFMAsserts.IsTrue(foo); } [TestMethod] [Description("ordered test 2")] public void OrderedTest2() { bool bar = false; WFMAsserts.IsFalse(bar); }
Setup a new ordered test calling these two test methods. Same error. I switched the order of the tests in the ordered test. Same error.
-
jueves, 09 de agosto de 2012 5:06Moderador
Hi vHaB,
Sorry for my delay.
I’m afraid that I misunderstanding this issue. Did you using the Ordered Test in VS like this? If not, how did you create the ordered Test for your Coded UI test? Since it is hard for us to repro this issue, could you share us this project? Please also attach your Visual Studio project, you can upload it to the sky driver, and then share the download link in your post. We will down load and check it.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
jueves, 09 de agosto de 2012 14:22
Hi vHaB,
Sorry for my delay.
I’m afraid that I misunderstanding this issue. Did you using the Ordered Test in VS like this? If not, how did you create the ordered Test for your Coded UI test? Since it is hard for us to repro this issue, could you share us this project? Please also attach your Visual Studio project, you can upload it to the sky driver, and then share the download link in your post. We will down load and check it.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
Yes, that is the procedure I used to set up the ordered test.
I can't upload the project for several reasons - first - it's huge, second - it has sensitive company data in it. We had a consulting firm come in and setup this framework with a lot of stuff specific to our applications. I am thinking I may need to reach out to them with this issue. That's why I have WFMAsserts instead of just Asserts, for example. The WFM prefix is part of their framework they created for us.
I'm guessing that the object which is throwing the RemotingException is something internal their code is using.
I am hoping they will be able to offer some insight.
- Marcado como respuesta Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator martes, 28 de agosto de 2012 2:55
-
viernes, 10 de agosto de 2012 4:47Moderador
Hi vHaB,
I'm guessing that the object which is throwing the RemotingException is something internal their code is using.
I’m afraid that your opinion is correct, since if we just add two simple coded UI test to the default ordered test, it worked well. So I’m afraid that you would discuss this issue with your team.
Since it is hard for us to repro this issue, these questions require a more in-depth level of support. I suggest you visit the following link to see the various paid support options that are available to better meet your needs.http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone.
If this issue is resolved by the in-depth level of support expert, hope you could share us the solution here.
Sincerely,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
- Editado Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator martes, 14 de agosto de 2012 3:11

