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

Execute Tests on remote machine

3 Answers 339 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 28 Feb 2018, 04:11 PM

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

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 02 Mar 2018, 04:36 PM
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
 
0
Thomas
Top achievements
Rank 1
answered on 05 Mar 2018, 03:34 PM

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

0
Elena
Telerik team
answered on 07 Mar 2018, 02:59 PM
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
 
Tags
General Discussions
Asked by
Thomas
Top achievements
Rank 1
Answers by
Elena
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or