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

Launch application with parameters

6 Answers 18 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alessio
Top achievements
Rank 1
Alessio asked on 15 Apr 2019, 11:19 PM

Hello,

I am trying to setup some tests that require a WPF application to be started with some command line parameters.

In the configuration screen Configure WPF Application Path this option isn't available. 

What can do the trick? It is critical for our project to be able to set up and maintain tests with minimal coding.

 

Thank you

6 Answers, 1 is accepted

Sort by
0
Accepted
Elena
Telerik team
answered on 16 Apr 2019, 08:05 AM
Hi Allessio,

Thank you for your interest in Test Studio. 

As you have noticed already, starting the WPF app with certain parameters is not possible out-of-the-box. However, there is a solution you can adjust and apply described here

Please, take some time to give this a try and let me know in case you need any further assistance. 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Alessio
Top achievements
Rank 1
answered on 16 Apr 2019, 03:58 PM

Thank you Lena, I will try asap

0
Elena
Telerik team
answered on 17 Apr 2019, 03:42 PM
Hello Alessio,

Thank you for your cooperation. Please do not hesitate to contact me back in case you have any questions on the case. 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Alessio
Top achievements
Rank 1
answered on 19 Apr 2019, 11:39 PM
Ok this worked. Is it in your plans to include this feature in a... less hacky way? 
0
Alessio
Top achievements
Rank 1
answered on 20 Apr 2019, 01:28 AM

Additionally, the second step of the solution you recommended says

2.  Record a WPF Test against your "real" application

The application I am working shows quite different UIs depending on the parameters provided: so in my case, in order to make the test work, I had to run it in the right configuration settings and attach the test application and then record the test. Any other way did not work.

Thanks again for you help

0
Elena
Telerik team
answered on 24 Apr 2019, 03:11 PM
Hi Allesio,

Thank you for your cooperation in this discussion. 

As you have noticed starting the application with different arguments needs to be workarounded in both recording and execution process - sorry to have missed to share what the recording approach should be. The workaround here is to start the application and then attach the recorder to the already running instance of the app as you have found yourself. 

As a side note, there is a feature request on our public feedback portal concerning the implementation of this workaround to work out of the box. The public item can be found here and this is where you can follow its progress. To increase the importance of the feature, you can vote for it and add comments - that way the development team will be notified this is a valuable feature for our customers and could increase its internal priority. 

I hope this information will be useful as well. Thank you for your understanding. 

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