Completed
Last Updated: 21 Apr 2017 21:47 by Wendy
ADMIN
Rodney
Created on: 29 Oct 2013 17:15
Type: Bug Report
3
Remote execution failure caused by compilation error
ISSUE:

I have a test that references another test-as-step. We'll refer to it as Test 'A'.  The test-as-step contains some coded steps. We'll refer to it as Test 'B'.  If I run a remote test list that includes Test 'A' but does not include Test 'B', that test will fail with the following compilation error. 

'10/29/2013 12:11:05 PM' - Error attempting to execute a Test As Step. Details:
'10/29/2013 12:11:05 PM' - 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:\Users\Telerik User\AppData\Local\Temp\Projects\07a00c8f-4e98-4137-aa5f-f925f69d6348\DemoTests\bin\new-test-project.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.ExecutionEngine.ExecuteTestInCurrentContext(Test test)

Once you add Test 'B' and place it before the Test 'A', the test will pass. If Test 'B' runs after Test 'A', then Test 'A' will fail. 

REQUEST:

The issue appears to happen because at the time you click Run List Remotely or Schedule Testlist Test Studio tries to intellegently only upload into the storage server the necessary tests and supporting files that are needed by that specific test list. Because the test-as-step includes a code step, Test Studio should detect this and upload the code-behind file associated with the sub test. 
3 comments
Wendy
Posted on: 21 Apr 2017 21:47
I also have the same issue. Any updates?
Wesley
Posted on: 05 Apr 2017 13:57
Hello
Are you able to confirm if this issue is fully resolved.  I am still having problems when running test lists that do not contain Elements on which they are dependent
ADMIN
Daniel Djambov
Posted on: 04 Nov 2013 11:44
Telerik: this issue is fixed and solution will be available in next product release planned in beginning of December 2013.