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.
6 Answers, 1 is accepted
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.
Thank you Lena, I will try asap
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
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.