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

Test doesn't run if configure "use default path"

5 Answers 204 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jing
Top achievements
Rank 1
Jing asked on 20 Jun 2012, 03:03 PM

Hi,
I'm new to the test studio and still exploring the functions of Test studio. I run into a problem when I try to use scheduled test run.

I’m testing a desktop WPF application. I have already finished the WPF test case, run it locally successfully. I setup a test server which has test scheduler and executor. Run the test successfully.

Now, I went back to the test case, clicked configure, I changed the WPF application path to default path. (I have already setup the default path) basically what I did is change the setting from picture 1 to picture 2.

Then I run the test again locally, it worked, I scheduled a test run, I got this error message from the test executor:

------------------------------------------------------------'6/20/2012 10:17:06 AM' - Using .Net Runtime version: '4.0.30319.269' for tests execution.'6/20/2012 10:17:06 AM' - Starting execution....'6/20/2012 10:17:08 AM' - Failure detected during execution. Details:------------------------------------------------------------'6/20/2012 10:17:08 AM' - System.Exception: Unable to detect an application to launch for test 'WPFTest+verfication'. Make sure you configure an application for this test by clicking on 'Configure' from the 'Record' tab.   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)------------------------------------------------------------'6/20/2012 10:17:09 AM' - Test completed!

I don’t know why it can’t launch the application. Did I miss something or did something wrong?

Thanks for your help!

Jing

5 Answers, 1 is accepted

Sort by
0
Accepted
Ivaylo
Telerik team
answered on 25 Jun 2012, 03:55 PM
Hello Jing,

Please excuse me for the delayed reply.
What you are experiencing is an expected behavior, since when you choose the option "Use default path" it uses the path from your local machine, and this will not work on the remote machine where you are running your scheduled tests. While on your local machine should not make any difference what you will be using.
In order to get this working right when you are scheduling remote execution is to configure the DefaultApplicationPath in the Test list settings:

When you have Test Studio opened click on Test Lists > Edit Settings > Wpf tab > DefaultApplicationPath  (see the screenshot attached)

This must be the path as seen by the execution server. 

All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Jing
Top achievements
Rank 1
answered on 25 Jun 2012, 05:21 PM
Thanks for the reply. Yes, I see the setting under the wpf tab. What I end up to do is just put a share folder address in the test -> configure. So the remote machine can just pick it up from there. 
0
Ivaylo
Telerik team
answered on 26 Jun 2012, 07:29 AM
Hello Jing,

You are most welcome.

All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Chad
Top achievements
Rank 1
answered on 24 Feb 2015, 07:23 PM
Hi there

I have a frustrating situation. I created a Standalone Test Studio project and then exported to Visual Studio. I then followed the steps here (http://docs.telerik.com/teststudio/getting-started/test-execution/visual-studio-2012-and-later-test-list) as I want to run my tests from Microsoft Test Manager. I was able to do this successfully using a project created with the Test Studio-VS plugin. However, when I try with my standalone project that was exported to VS, I get the following error when run with Microsoft Test Manager:

'2015-02-24 12:15:09 PM' - System.Exception: Unable to detect an application to launch for test 'WPFTest1'. Make sure you configure an application for this test by clicking on 'Configure' from the 'Record' tab.
   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)

I have created a .testsettings file in my VS project which points to the default application that I want to run. I am not sure how to resolve this. Please help.

0
Cody
Telerik team
answered on 24 Feb 2015, 09:38 PM
Hello Chad,

I am sorry you are running into this problem. If you open the "Configure WPF Application Path" dialog, as shown in the attached screen shot, what does it look like? Is "Use default path" checked? This combination, along with the default path stored in the .testsettings file is what Test Studio uses to locate the WPF executable file to launch.


Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Jing
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Jing
Top achievements
Rank 1
Chad
Top achievements
Rank 1
Cody
Telerik team
Share this question
or