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

Unable to execute Automation test cases using ArtOfTest.Runner

3 Answers 159 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.
Prashant
Top achievements
Rank 1
Prashant asked on 26 May 2011, 07:45 AM
Hi,
I am getting follwing error while executing Automation Test cases using ArtOfTest.Runner.
The Test case is executing successfully if there is no Coded Step added. But when i add Coded step i am getting follwing error -

'5/26/2011 11:35:54 AM' - Starting execution....

'5/26/2011 11:35:54 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True

'5/26/2011 11:35:56 AM' - Detected custom code in test. Locating test assembly: iRelexUIAutomationTest.dll.

'5/26/2011 11:35:56 AM' - Failure detected during execution. Details:

------------------------------------------------------------

'5/26/2011 11:35:56 AM' - System.IO.FileNotFoundException: Unable to find the code behind assembly. Please make sure you have compiled your code behind without errors before attempting to execute the test. Looking for: C:\RelexAutomation\iRelexUIAutomationTest\iRelexUIAutomationTest\AboutBox\bin\iRelexUIAutomationTest.dll

If you are running VS 2010, make sure Deployment is checked in your .settings file (in the solution items)

at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly)

at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result)

at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)

at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType, Guid lastStepGuid, DebuggerOptions debuggerOptions)

------------------------------------------------------------

'5/26/2011 11:35:56 AM' - Test completed!

Do i need to add any dll ?? I have also verified the Deployment option is checked in Setting file.

Thanks,
Madhav Jadhav.
PTC Software

3 Answers, 1 is accepted

Sort by
0
Prashant
Top achievements
Rank 1
answered on 26 May 2011, 12:00 PM
Hi,

The problem is solved after copying the Test Project.dll into the bin folder.

C:\RelexAutomation\iRelexUIAutomationTest\iRelexUIAutomationTest\AboutBox\bin\iRelexUIAutomationTest.dll


Thanks,
Madhav Jadhav
0
Atul
Top achievements
Rank 1
answered on 21 Nov 2013, 10:54 AM
Hello prashant ,

I am facing the same problem .
could you please describe me with more detailed steps , how to solve from this issues.
thanks in advance

'20-11-2013 12:51:48' - Using .Net Runtime version: '4.0.30319.18052' for test execution. Build version is '2013.1.911.0'.
'20-11-2013 12:51:48' - Starting execution....
'20-11-2013 12:51:48' - Detected a Silverlight Test. Setting EnableSilverlight=True
'20-11-2013 12:51:50' - Detected custom code in test. Locating test assembly: TestStudioProject1.dll.
'20-11-2013 12:51:50' - Failure detected during execution. Details:
------------------------------------------------------------
'20-11-2013 12:51:50' - System.IO.FileNotFoundException: Unable to find the code behind assembly. Please make sure you have compiled your code behind without errors before attempting to execute the test. Looking for: D:\Demo\New Folder\BuildServerPOC\TestStudioProject1\TestResults\atul.vishwakarma_ATUL-VISHWAKARM 2013-11-20 12_51_47\Out\TestStudioProject1.dll
If you are running VS 2010, make sure Deployment is checked in your .settings file (in the solution items)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
   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(ExecuteTestCommand command)
0
Ivaylo
Telerik team
answered on 25 Nov 2013, 02:52 PM
Hello Prashant,

I am glad to hear you've managed to fix this problem.

@Atul please try the very same approach by copying the project dll into the bin folder.

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