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

[Solved] FileNotFoundException error for ExecuteStep

1 Answer 80 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.
Michael
Top achievements
Rank 1
Michael asked on 29 Aug 2018, 10:29 PM

This is my coded step in my main test:

public void SubtestRunner()
        {
            // Execute test 'WorkoutOptionResults'
            //this.ExecuteTest("WorkoutOptionResults.tstest");
            if (string.IsNullOrWhiteSpace(Data["WOR-XXX"].ToString()))
            {
                Log.WriteLine("Error Msg.");
            }
            else
            {
                Log.WriteLine("Info Msg");
                this.ExecuteTest("WorkoutOptionResults.tstest");
            }
        }

 

This is the error I got:

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:\Users\xxxx\documents\visual studio 2015\Projects\projectfolder\project\bin\Debug\
   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)

 

I've looked at some of the other responses out there, and (1) have Copy Always turned on. (2) I am unable to figure out how to enable deployment because I cannot seem to make a settings file that opens with the UI shown in other examples.

 

Any help would be great!

Michael

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 31 Aug 2018, 12:48 PM
Hi Michael,

Thank you for reaching us out. 

Could you please elaborate more on the project you have created - do you use the Testing Framework only or the Test Studio plugin for Visual Studio? How do you try to execute the test which throws that error?

Were you able to built the project without errors before executing it? The folder listed in the path from the error message contains the project dll which is being created after a successful build. 

I will appreciate any details on the issue to be able to find a solution for that. If you could send me a sample project and steps how to reproduce the error it also be very beneficial. Thanks in advance! 

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