Error when running the same test again

8 posts, 0 answers
  1. Vihar
    Vihar avatar
    1 posts
    Member since:
    Apr 2012

    Posted 30 Apr 2012 Link to this post

    I can't run the same test again. Once I create a script. It runs for the first time and if I click the run button again, I am getting this error in my error log report. I am not sure what I am supposed to change. I just have a simple test that clicks some buttons.
    Thanks in advance!

    ------------------------------------------------------------
    '4/30/2012 2:18:05 PM' - Using .Net Runtime version: '4.0.30319.261' for tests execution.
    '4/30/2012 2:18:05 PM' - Starting execution....
    '4/30/2012 2:18:08 PM' - Failure detected during execution. Details:
    ------------------------------------------------------------
    '4/30/2012 2:18:08 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWpf(ExecutionEngineCreateParams initParams)
       at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
       at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
    ------------------------------------------------------------
    '4/30/2012 2:18:09 PM' - Test completed!

  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 03 May 2012 Link to this post

    Hello Vihar,

    I am sorry you are experiencing this behavior. I tried to reproduce this on several different WPF apps, but I wasn't able to do so. Are you able to execute tests against other WPF applications without seeing this error?  

    If this is something specific to your application, we will need to investigate what's going wrong locally. Would it be possible for you to share it or send us a stripped-down version that we can use to reproduce this issue? That will be the best way to troubleshoot the problem here and propose a possible solution. You can attach the files to a new support ticket which is confidential unlike this forum thread.

    In the meantime one thing you can try is to Clear the WPF Font Cache. It can cause odd behavior on WPF applications.

    All the best,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Vihar
    Vihar avatar
    1 posts
    Member since:
    May 2012

    Posted 07 May 2012 Link to this post

    I really appreciate you getting back to me regarding this issue. I have spoken to my manager and we can set up a webex session for you to have aceess to our stripped-down version.

    Please let me know what time is convenient for you.
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 08 May 2012 Link to this post

    Hi Vihar,

    I don't mind looking at this problem via a GoToMeeting, however I'm afraid a GoToMeeting won't be of much help. Keep in mind that we won't be able to find and fix a bug in our software until we're able to reproduce the problem in-house. While you may be able to show me the problem, my software developers have to be able to reproduce the problem in our source code debugging environment before they can find the root cause. The best way for this is if you can send us the stripped-down version into a .zip file. If it's too large, I can provide a Dropbox link.   

    Knowing that, if it's still not possible for you to send us the files, please go ahead and suggest a date/time and I'll send you a meeting request. I'm in Sofia Bulgaria  which is UTC +3:00.

    All the best,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Karen
    Karen avatar
    4 posts
    Member since:
    Jul 2012

    Posted 18 Jul 2012 Link to this post

    What was the solution to this problem? I am experiencing the same error.
  6. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 20 Jul 2012 Link to this post

    Hi Karen,

    We still don't have a real solution for this. We need a sample application that exhibits this behavior in order to reproduce the issue locally in our debugging environment and fix it. Can you provide us with such sample app?
     
    You can do that in a support ticket, which is confidential unlike this forum thread. 

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  7. Karen
    Karen avatar
    4 posts
    Member since:
    Jul 2012

    Posted 20 Jul 2012 Link to this post

    Hi Plamen,

    A support ticket is not necessary, I figured out the problem.

    The problem I had was that I had the ArtOfTest.Runner.exe running from a service, as opposed to from the command line. So, while my WPF application was running, there was no UI for it to test. 

    Hopefully this helps others who may have experienced the same problem.

  8. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 23 Jul 2012 Link to this post

    Hello Karen,

    I am glad to hear you found the solution on your own and thank you for sharing it! Please feel free to contact us again if you have further problems.

    All the best,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top