Ask a Question

Run SoapUI tests on Jenkins taken from Github

SOLVED
z21ray
Occasional Contributor

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 ?

5 REPLIES 5
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. Smiley Very Happy



If my answer helped please click on the 'Accept as Solution' button.
z21ray
Occasional Contributor

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

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.



If my answer helped please click on the 'Accept as Solution' button.

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



---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
guptavv
New Member

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
cancel
Showing results for 
Search instead for 
Did you mean: