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

Unable to configure Jenkins to execute TestStudio on slave

11 Answers 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cedric
Top achievements
Rank 1
Cedric asked on 26 Apr 2018, 03:50 PM

Hi,

Despite the reading of the documentation (here and there), i'm unsuccessful to configure my jenkins to execute my list of test on a slave.

I'm trying to see if we can use Test studio to run some test on our wpf application on a virtual machine by using the jenkins master-slave processus.

As i'm a using the lastest version of testStudio, am i concerned by the disclaimer a the end of the documentation ? I haven't notice the TestExecuteProxy.ExecuteTest() exception.

  • If we have to use the 'Test Studio Plugin for Jenkins CI' where i have to install it ? On the master, on the slave, both of them ?
  • Of course, the wpf tested application need a windows session to run.

How to handle it ?

Can the plugin be configured with a user/password to manage this point ?

11 Answers, 1 is accepted

Sort by
0
Cedric
Top achievements
Rank 1
answered on 26 Apr 2018, 04:00 PM

Today, i reach this point:

  • In my build jenkins, i have checked 'Restrict where this project can be run' and provide the name slave
  • i have only one build action of type Window powershell running a script found on the vm
  • On the vm i have change the credentials of the jenkins slave service to provide my credentials
  • When i start a build, i see ArtOfTest.Runner starting my wpf application
  • In the jenkins console i see the first log of my test

And nothing appends.

Am i right to think the main window of my application is not created because no session is opened ?

 

Nb: when i try to put a batch command with ArtOfTest.Runner with all the parameters instead of using a powershell build action, i get an error : Incorrect test list path. if copy/paste the command line in a cmd box on the vm, the tests are running

Thanks 

Cedric

0
Elena
Telerik team
answered on 01 May 2018, 08:29 AM
Hi Cedric,

Thank you for reaching us out. 

Please note that setting up a Jenkins master slave configuration is not subject of Test Studio related queries. 

Though I will try to assist you in implementing Test Studio execution in the Jenkins configuration. First important note is that Jenkins agent should not run as a Windows service and you will need to install the java web archive as listed in step 1. in this article

In regards the same topic in case you are using Jenkins slaves as well these should be running as a headless service - which concerns the disclaimer you referred to. 

An active session is a requirement for all UI tests to run successfully - here you could read some further details along with possible solutions. 

The Test Studio plugin should be installed where the Jenkins server is and where you maintain the jobs. 

In regards the last shared piece of information about the job configured to use the ArtOfTest.Runner.exe I would like to kindly ask you to double check the arguments passed to it and whether the path is a meaningful one for the Jenkins slave. As far as I am aware Jenkins is using its own workspace and any file paths should be provided according that. Also I guess you should first configure deployment to the Jenkins slave machine (which will be in that workspace) and then trigger test execution. 

I hope the provided information will be helpful to you to find out what you have missed. Though in case of any further queries you could get back and share details. Thanks!

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Cedric
Top achievements
Rank 1
answered on 03 May 2018, 01:39 PM

Hi Elena and thanks for your help.

Where the java web archive is needed ? On the slave ?

0
Cedric
Top achievements
Rank 1
answered on 04 May 2018, 12:29 PM

hi Elena,

I have some news:

- i got to have a session always opened on my slave

- I made a scheduled task to start the jenkins listener when the machine is booted and the session opened

- I tried to start tests by using a'Execute windows batch command' with this command:
"C:\Program Files (x86)\Progress\Test Studio\Bin\ArtOfTest.Runner.exe" list="C:\MSH\Tests\smag.msh.test\TestLists\Liste manuelle de démonstration.aiilist" junit junitstep settings="C:\MSH\Tests\smag.msh.test\Settings.aiis"

All the path are rights when i run the same command in a dos box on the slave. The only difference i see is the current directory when the command is runned by the jenkins listener.

Is Art.Of.Test makes some assumptions on the current path to find some parts of the test project ?

 

 

0
Cedric
Top achievements
Rank 1
answered on 04 May 2018, 12:32 PM

Oupps i forgot to put the error message:

ExecuteTestList: Incorrect test list path: 'C:\MSH\Tests\smag.msh.test\TestLists\Liste manuelle de démonstration.aiilist'!

 

Thanks

0
Cedric
Top achievements
Rank 1
answered on 04 May 2018, 12:34 PM

Oups i forgot to put the error message:

ExecuteTestList: Incorrect test list path: 'C:\MSH\Tests\smag.msh.test\TestLists\Liste manuelle de démonstration.aiilist'! 14:30:36

 

thanks

0
Cedric
Top achievements
Rank 1
answered on 04 May 2018, 12:54 PM

I think i get this part working : no accent in the path or filename are accepted

Ok, i'm near the end: the test are running, i need now to get the results

How ?

0
Accepted
Elena
Telerik team
answered on 07 May 2018, 10:20 AM
Hi Cedric,

Thanks for all your cooperation in this discussion. 

The results could be added as artifacts in a post-build action. I hope this will be also applicable for you. Though in case of questions please let me know! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Cedric
Top achievements
Rank 1
answered on 14 May 2018, 08:20 AM

Thanks for the link, i will try only today as i was in holidays

Ced

0
Cedric
Top achievements
Rank 1
answered on 15 May 2018, 12:28 PM

Hi Elena,

I 've successfully started artOfTest and get the results tests as expected.

Thanks for you support.

Ced

0
Elena
Telerik team
answered on 15 May 2018, 03:00 PM
Hi Ced,

Thanks for getting back! I am glad to know I managed to help you! 

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
Cedric
Top achievements
Rank 1
Answers by
Cedric
Top achievements
Rank 1
Elena
Telerik team
Share this question
or