Jenkins
Last updated
Last updated
Jenkins is an open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. It is a server-based system that runs in servlet containers.
Qase integration for Jenkins allows you to start your automated runs directly from Qase, without the need to go to Jenkins to set them up separately.
Log into your Jenkins instance.
Create a Jenkins API token and copy it.
Go to the apps page in Qase.
Choose Jenkins app:
Click the “Install now” button:
Input your data in the form and press the “Install” button.
Go to the Test Runs page.
Click the “Start new test run” button
Select "Automated" test run to be created:
Select Jenkins CI/CD system:
Then choose a "Job", which you want to start and fill in other parameters:
Start the test run
You can observe the pipeline status:
...and the pipeline result:
Prepare a job that runs your tests.
Configure a Qase reporter for your testing framework.
Make your job parameterized:
Add string parameters for the Qase reporter. They will be used to link test results with automated test runs and they will be filled in by Qase automatically:
QASE_PROJECT_CODE
QASE_RUN_ID
QASE_REPORT
QASE_RUN_COMPLETE
QASE_API_BASE_URL
Go to the Apps page on Qase, then activate and generate a new token for reporter app. You can also use regular (user-issued) API tokens.
Save created token as credentials in Jenkins: https://www.jenkins.io/doc/book/using/using-credentials/#adding-new-global-credentials
Configure your job to pass saved token in QASE_API_TOKEN environment variable:
You can also use the pipeline plugin. Example is below: