Unable to configure Jenkins to execute TestStudio on slave

12 posts, 1 answers
  1. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 26 Apr Link to this post

    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 ?

  2. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 26 Apr Link to this post

    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

  3. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    942 posts

    Posted 01 May Link to this post

    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!
  4. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 03 May in reply to Elena Tsvetkova Link to this post

    Hi Elena and thanks for your help.

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

  5. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 04 May in reply to Cedric Link to this post

    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 ?

     

     

  6. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 04 May in reply to Cedric Link to this post

    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

  7. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 04 May in reply to Cedric Link to this post

    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

  8. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 04 May in reply to Cedric Link to this post

    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 ?

  9. Answer
    Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    942 posts

    Posted 07 May Link to this post

    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!
  10. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 14 May in reply to Elena Tsvetkova Link to this post

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

    Ced

  11. Cedric
    Cedric avatar
    19 posts
    Member since:
    Nov 2017

    Posted 15 May in reply to Elena Tsvetkova Link to this post

    Hi Elena,

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

    Thanks for you support.

    Ced

  12. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    942 posts

    Posted 15 May Link to this post

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