Launch application with parameters

7 posts, 1 answers
  1. Alessio
    Alessio avatar
    6 posts
    Member since:
    Jan 2018

    Posted 15 Apr Link to this post

    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

  2. Answer
    Elena
    Admin
    Elena avatar
    1077 posts

    Posted 16 Apr Link to this post

    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!
  3. Alessio
    Alessio avatar
    6 posts
    Member since:
    Jan 2018

    Posted 16 Apr in reply to Elena Link to this post

    Thank you Lena, I will try asap

  4. Elena
    Admin
    Elena avatar
    1077 posts

    Posted 17 Apr Link to this post

    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!
  5. Alessio
    Alessio avatar
    6 posts
    Member since:
    Jan 2018

    Posted 19 Apr in reply to Elena Link to this post

    Ok this worked. Is it in your plans to include this feature in a... less hacky way? 
  6. Alessio
    Alessio avatar
    6 posts
    Member since:
    Jan 2018

    Posted 19 Apr in reply to Alessio Link to this post

    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

  7. Elena
    Admin
    Elena avatar
    1077 posts

    Posted 24 Apr Link to this post

    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!
Back to Top