Is there any way to run Jenkins job directly by checking out Ready API code from Bitbucket?
Hi ,
Currently in our organization, we are using Bitbucket repo as Source Code Repository. We have integrated bitbucket with ReadyAPI successfully. But in Bitbucket repo it is storing all ReadyAPI testcases in separate xml file without any project xml file (which we have used to run our Testsuites from Jenkins before using Bitbucket.
So, is there any way to run Jenkins job directly by checking out Ready API code from Bitbucket? If yes, could you please share me the steps.
Thanks,
Avra
Hi avraroy
when you store your ReadyAPI project in an SCM like Bitbucket via ReadyAPI git integration it stores the project as a composite project (e.g multiple files/artifacts) as you are seeing
https://support.smartbear.com/readyapi/docs/integrations/git/project-structure.html
There are a number of ways you could execute those tests in Jenkins. For example, on a Freestyle project
You could install a BitBucket plugin to get the project file from repository and add that as the first build step
Add an Execute batch command build step to execute the ReadyAPI tests via command line
https://support.smartbear.com/readyapi/docs/functional/running/automating/cli.html
The command line might look something like the below (where %WORKSPACE% is the location where Jenkins has pulled your Bitbucket project files)
"C:\Program Files\SmartBear\ReadyAPI-3.40.1\bin\testrunner.bat" -J "-RJUnit-Style HTML Report" -FXML "-EDefault environment" %WORKSPACE%
Some more information on running tests via Jenkins
https://support.smartbear.com/readyapi/docs/integrations/jenkins.html