Code Behind error

6 posts, 0 answers
  1. Siva
    Siva avatar
    28 posts
    Member since:
    Apr 2012

    Posted 22 Aug 2012 Link to this post

    If i make changes in my code behind , its giving me a error


    ------------------------------------------------------------
    '8/22/2012 10:35:16 AM' - Starting execution....
    '8/22/2012 10:35:19 AM' - Detected custom code in test. Locating test assembly:
    '8/22/2012 10:35:19 AM' - Assembly Found:
    '8/22/2012 10:35:19 AM' - Loading code class
    '8/22/2012 10:35:19 AM' - Failure detected during execution. Details:
    ------------------------------------------------------------
    '8/22/2012 10:35:19 AM' - System.ArgumentException: Unable to find the test class type  in your test assembly. Please make sure your test code behind is compiled with your latest changes.
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureTypeExists(Assembly assm, String typeName)
       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(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
    ------------------------------------------------------------
    '8/22/2012 10:35:20 AM' - Test completed!


    But I rebuild my code several times, still getting this error.
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 23 Aug 2012 Link to this post

    Hello Siva,
    try manually building the test project in Visual Studio before running the test. Are you able to build it successfully?

    Can you please go ahead and send us your VS test project - we would like to examine it. If you wish I can provide you with an email so that you don't have to post the project on a public forum.

    Greetings,
    Stoich
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Siva
    Siva avatar
    28 posts
    Member since:
    Apr 2012

    Posted 23 Aug 2012 Link to this post

    Hi

     With the Quick execute, its working . But in a TestList Editor I'm getting this error.

  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 28 Aug 2012 Link to this post

    Hello Siva,
    could you please send us your test project so that we may examine it. Let me know if you're not comfortable with sharing this on a public forum like this. In this case I will provide my e-mail to you so that you may send me the project.

    Kind regards,
    Stoich
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Siva
    Siva avatar
    28 posts
    Member since:
    Apr 2012

    Posted 05 Sep 2012 Link to this post

    Hi Stoich

    I'm getting this code - behind error if i run the tests (gtting this error in several tests)  in a testlist editor, I need to know immediate solution for this. If i Run them alone i'm not getting error, only with the group of tests in testlist editor.
    I cannot share my test file in public, can i have your email id, and what are the files  i need to send you.

    Thanks in Advance

  6. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 11 Sep 2012 Link to this post

    Hi Siva,
    I apologize for the late response - I've went ahead and sent you an email with the details on how to provide the test project to me.

    Regards,
    Stoich
    the Telerik team
    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!