FileNotFoundException error for ExecuteStep

2 posts, 0 answers
  1. Michael
    Michael avatar
    2 posts
    Member since:
    Sep 2017

    Posted 29 Aug Link to this post

    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

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    902 posts

    Posted 31 Aug Link to this post

    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
     
Back to Top