This is a migrated thread and some comments may be shown as answers.

Code Behind error

5 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Siva
Top achievements
Rank 1
Siva asked on 22 Aug 2012, 02:43 PM
If i make changes in my code behind , its giving me a error


------------------------------------------------------------
'8/22/2012 10:35:16 AM' - Starting execution....
'8/22/2012 10:35:19 AM' - Detected custom code in test. Locating test assembly:
'8/22/2012 10:35:19 AM' - Assembly Found:
'8/22/2012 10:35:19 AM' - Loading code class
'8/22/2012 10:35:19 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'8/22/2012 10:35:19 AM' - System.ArgumentException: Unable to find the test class type  in your test assembly. Please make sure your test code behind is compiled with your latest changes.
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureTypeExists(Assembly assm, String typeName)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'8/22/2012 10:35:20 AM' - Test completed!


But I rebuild my code several times, still getting this error.

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 23 Aug 2012, 12:59 PM
Hello Siva,
try manually building the test project in Visual Studio before running the test. Are you able to build it successfully?

Can you please go ahead and send us your VS test project - we would like to examine it. If you wish I can provide you with an email so that you don't have to post the project on a public forum.

Greetings,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Siva
Top achievements
Rank 1
answered on 23 Aug 2012, 03:49 PM
Hi

 With the Quick execute, its working . But in a TestList Editor I'm getting this error.

0
Stoich
Telerik team
answered on 28 Aug 2012, 02:08 PM
Hello Siva,
could you please send us your test project so that we may examine it. Let me know if you're not comfortable with sharing this on a public forum like this. In this case I will provide my e-mail to you so that you may send me the project.

Kind regards,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Siva
Top achievements
Rank 1
answered on 05 Sep 2012, 08:12 PM
Hi Stoich

I'm getting this code - behind error if i run the tests (gtting this error in several tests)  in a testlist editor, I need to know immediate solution for this. If i Run them alone i'm not getting error, only with the group of tests in testlist editor.
I cannot share my test file in public, can i have your email id, and what are the files  i need to send you.

Thanks in Advance

0
Stoich
Telerik team
answered on 11 Sep 2012, 03:13 PM
Hi Siva,
I apologize for the late response - I've went ahead and sent you an email with the details on how to provide the test project to me.

Regards,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Siva
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Siva
Top achievements
Rank 1
Share this question
or