Execute Tests on remote machine

4 posts, 0 answers
  1. Thomas
    Thomas avatar
    2 posts
    Member since:
    Feb 2018

    Posted 28 Feb Link to this post

    Hi,

    We recently started to evaluate Testing Framework as new Framework for our Automated UI tests (for our WPF application) and so far are very pleased. One thing we haven't figured out yet is how to execute tests on a remote machine. Executing tests locally via Visual Studio test runner works fine. We can also build the tests on one of our TFS Build agents. However, we cannot and don't want to install the application we want to test on the build agents. We want the tests to be executed on a clean dedicated test machine.

    Is there any way to achieve this?

    Best regards

    Thomas

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    942 posts

    Posted 02 Mar Link to this post

    Hi Thomas,

    Thank you for the detailed description. 

    You could install the application under test on a shared network location and configure the tests in project to point to that network location. It will be necessary to ensure the access to it is allowed for the machine which executes the tests.

    Please let me know if you will need further assistance on that topic. Thanks!  

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. Thomas
    Thomas avatar
    2 posts
    Member since:
    Feb 2018

    Posted 05 Mar Link to this post

    Hey Elena,

    Thank you for looking at this.

    I actually do need further assistance. What exactly to you mean by “configure the tests in project to point to that network location.”?

    Currently I do the following:

       WpfApplication wpfApp = Manager.Current.LaunchNewApplication(@"C:\Local Path to Application ");

    Are you suggesting the following?

       WpfApplication wpfApp = Manager.Current.LaunchNewApplication(@"\\ Path to network location");

    Wouldn’t this still execute the test locally and run the application under test locally? Only the installation path would differ. I think this only works if the applications allows it.

    I am looking more for a way to build the test on a TFS Build agent then automatically send it to a dedicated test machine and execute it via e.g. MSBuild or vstest.console on the test machine. I could also live with a Testing Framework runtime, but as I understood Testing Studio runtime cannot be used here.

    looking forward to hearing from you,

    Thomas

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    942 posts

    Posted 07 Mar Link to this post

    Hello Thomas,

    Thank you for getting back to me. 

    My suggestion for the shared network location was based on the idea to not install the application under test across all machines. Apparently your requirements differ a bit. 

    Anyways, you could add a deploy task in the TFS build to deploy the compiled project to the dedicated testing environment and then use MSBuild or vstest.console.exe to run the tests. Please find a list with all available tasks which Microsoft includes in the TFS builds. 

    I hope this will be helpful to you. In case of any further questions please let me know! 

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top