Is there any way to run Jenkins job directly by checking out Ready API code from Bitbucket?
- 3 years ago
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