Unit test error

May 15, 2009 at 2:35 PM

I'm runnint VS2008 and EL 4.1. I created a simple web service class that calls a private class that performs the DB access. When I try to generate Unit Tests, I get the following error:

"There was an unexpected error in displaying the Create Unit Tests Dialog. Please rebuild and try again."

We basically started a new project, added the references and the code and the Unit Testing generation worked. I found that we get the error as soon as I update the config file with my App Block settings. I read some of the threads and links to the blogs that discuss issues with EL and Unit testing, but they didn't seem to have resolved the issue.

Did nyone have this issue before?

Thanks

Alex

May 18, 2009 at 3:43 AM

I haven't encountered this issue before but I'm not sure that it has something to do with entlib.  I suggest you try to google the error message itself.  These are one of those results I got.

http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/95de8901-987f-4162-984e-7119561aa29f

http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/4c2921dd-c9a9-4ca1-b7da-276b65e6e19e

 

Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.

entlib.support@avanade.com

May 18, 2009 at 1:16 PM
Thanks. I already searched for the error message, and I tried to implement or check all suggestions. but none of them apply. I know that this is EL related simply because I tested it. As soon as I set the EL properties in the config file, the UT code will not be generated. It could be a combination of EL and web service code, or other scenarios, but all I know is that as soon as I configure EL and save the config file, the generation fails.


From: [email removed]
To: [email removed]
Date: Sun, 17 May 2009 19:44:00 -0700
Subject: Re: Unit test error [entlib:56441]

From: AvanadeSupport
I haven't encountered this issue before but I'm not sure that it has something to do with entlib. I suggest you try to google the error message itself. These are one of those results I got.
http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/95de8901-987f-4162-984e-7119561aa29f
http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/4c2921dd-c9a9-4ca1-b7da-276b65e6e19e

Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.

entlib.support@avanade.com



Hotmail® has a new way to see what's up with your friends. Check it out.
May 19, 2009 at 7:50 AM

Hi,

I tried your steps, created a simple webservice and try generating tests. It worked successful. Do you have a repro project for this? Another thing, do you encounter this error the first time you will generate test? Does the same thing happen when you manually created the test project then added the test classes later?

Valiant Dudan
Global Technology & Solutions
Avanade, Inc.

entlib.support@avanade.com

 

May 19, 2009 at 1:05 PM
I did further testing and I found out the issue. We have a custom database logger class that we wrote to log information in our custom table. When I added the required classes to the project, UT generation failed. To resolve the issue, I created a separate project with these classes and referenced the dll from the main project. I have a few other Unit Testing issues, but this is the wrong discussion group and I think this is part of the learning curve...

Thank you for trying to help.

Alex


From: [email removed]
To: [email removed]
Date: Mon, 18 May 2009 23:51:00 -0700
Subject: Re: Unit test error [entlib:56441]

From: AvanadeSupport
Hi,
I tried your steps, created a simple webservice and try generating tests. It worked successful. Do you have a repro project for this? Another thing, do you encounter this error the first time you will generate test? Does the same thing happen when you manually created the test project then added the test classes later?
Valiant Dudan
Global Technology & Solutions
Avanade, Inc.

entlib.support@avanade.com




Windows Live™: Keep your life in sync. Check it out.