Unable to execute Automation test cases using ArtOfTest.Runner

4 posts, 0 answers
  1. Prashant
    Prashant avatar
    20 posts
    Member since:
    Nov 2010

    Posted 26 May 2011 Link to this post

    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

  2. Prashant
    Prashant avatar
    20 posts
    Member since:
    Nov 2010

    Posted 26 May 2011 Link to this post

    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
  3. Atul
    Atul avatar
    1 posts
    Member since:
    Jan 2013

    Posted 21 Nov 2013 Link to this post

    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)
  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 25 Nov 2013 Link to this post

    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
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!