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

Error when running the same test again

7 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vihar
Top achievements
Rank 1
Vihar asked on 30 Apr 2012, 07:20 PM
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!

7 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 03 May 2012, 08:58 AM
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
0
Vihar
Top achievements
Rank 1
answered on 07 May 2012, 06:11 PM
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.
0
Plamen
Telerik team
answered on 08 May 2012, 10:21 AM
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
0
Karen
Top achievements
Rank 1
answered on 18 Jul 2012, 02:32 PM
What was the solution to this problem? I am experiencing the same error.
0
Plamen
Telerik team
answered on 20 Jul 2012, 12:00 PM
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
0
Karen
Top achievements
Rank 1
answered on 20 Jul 2012, 01:14 PM
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.

0
Plamen
Telerik team
answered on 23 Jul 2012, 12:45 PM
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
Tags
General Discussions
Asked by
Vihar
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Vihar
Top achievements
Rank 1
Karen
Top achievements
Rank 1
Share this question
or