Forum Discussion

z21ray's avatar
z21ray
Occasional Contributor
6 years ago

Run SoapUI tests on Jenkins taken from Github

I am trying to run SoapUI project/tests on Jenkins. I have installed Jenkins plugin, followed those steps: https://support.smartbear.com/readyapi/docs/integrations/jenkins.html But how do I set source/project file from gitHub? What do I put in "Path to testrunner" and "Path to SoapUI Pro project" ?

Path to testrunner - Specifies the fully-qualified path to the runner file (testrunner.bat or testrunner.sh). By default, you can find it in the <ReadyAPI installation>/bin directory.
Path to SoapUI Pro project - Specifies the fully-qualified path to the SoapUI Pro project you want to run.

I know there is field for "Repository URL", so should I have clean repo just for one .xml (project) file? And that is it? But what about Path to testrunner and Path to SoapUI Pro project ?

  • When I set up Jenkins in my environment to run ReadyAPI, I had to set up a step in the Jenkins project to clone my GIT repository of the ReadyAPI projects. This stores them in that Jenkins Project's Workspace, which Jenkins stores the location of as a variable like ${WORKSPACE}. So every the time Jenkins tests run, it's cloning the Git repository to its Workspace, and runs the tests. 

     

    So when I set up my testrunner script in Jenkins, it looked like this:

     

    /var/ReadyAPI-2.4.0/bin/testrunner.sh -"FHTML" "-RJUnit-Style HTML Report" -J -a -A -r "-f${WORKSPACE}/Reports/WriteReport" "-EAutomated" "-PAutomated=true" "-PIP=${EndPoint}"  ${WORKSPACE}/Project/File/Location/In/Workspace/ProjectName.xml
  • Lucian's avatar
    Lucian
    Community Hero

    Hey,

     

    On the project I work on we clone the repo on Jenkins with every build. That's a good question though. I am wondering if this can be done without any of this. :smileyvery-happy:

    • z21ray's avatar
      z21ray
      Occasional Contributor

      What do you mean by that? Could you give more details (example) on your solution please? :) 

      • Lucian's avatar
        Lucian
        Community Hero

        I'm sorry but I don't know the details. All I know is there is a step in the Jenkins build that is copying the test automation repository on the Jenkins machine and after that the tests are run. This has very little to do with ReadyApi but rather with Jenkins.

  • Hi

    I am trying to integrate the Ready API suite with Jenkins, I provided the GIT path in Jenkins build path and have copied the test runner path from ready API, now to provide this path in Jenkins should I replace the local directory path with {workplace} variable? And do Ready Api plugin need to installed in Jenkins