GitHub CI
Last updated
Last updated
GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
With the GitHub app, you can:
connect a GitHub workflow to Qase.
execute automated runs in GitHub from a Qase test run.
To install the app, follow these steps:
Click the GitHub card, and hit "Install now"
Log in to GitHub, if you're not already.
Select the GitHub Repositories where you want to install the app, then hit "Install"
After the redirect, hit "Authorize" to complete the installation.
The app is now installed successfully.
Step 4 is important because it authorizes GitHub to access your Qase workspace.
To create a GitHub issue together with a defect in Qase:
In the test run, mark your test case as Failed, Blocked, or Invalid and proceed with creating a Defect
In the Defect creation form, under “Choose Integrations”, select "GitHub App" and click "Add defect"
Choose the GitHub repository to create an issue in, then hit "Create"
In the Qase Defect you will now have a connected GitHub issue link
The statuses of the Qase Defect and the connected GitHub issue synced, meaning marking one as closed resolves the other (and vice versa).
For Test cases -
Click on the test case you want to link the GitHub issue to.
Switch to the properties tab in the preview window.
Scroll down and click on "Link GitHub app issue"
In the modal window- select your repository, search for the issue and click on 'link'.
For Test runs -
Go to your Test runs view and click on the run you want to link the GitHub issue to.
In the Run dashboard, to the bottom right, find the button 'Select an integration' under External issue.
In the modal window- select your repository, search for the issue and click on 'link'.
Follow these steps to connect a GitHub workflow to Qase:
One of Qase reporter apps should be used in order to receive the test run results.
Create a token in Qase and add it to the QASE_API_TOKEN
secret in your GitHub repository settings.
The inputs and env variables that are required need to be defined in a workflow:
Add a step to the first place in the job. It allows to link a GitHub workflow run with a Qase test run.
Add additional steps to execute your tests.
After the workflow is connected, you can initiate automated test runs from Qase:
Start a new automated test run:
Choose a CI/CD system to use (Github):
Fill in the required fields:
Click "Start a run" button.
You will be redirected to a test run you started. In the test run details section, you will see a link to the workflow run in GitHub and the current status.
When the tests have been executed, the test run will contain all the results sent by a reporter (it should be properly configured):
If integration with GitHub has already been enabled before, it’s required to accept new permissions in the GitHub application settings.
In case of insufficient permissions after clicking on the “Start a run” button, a message with an error will appear.
An example of Github integration: https://github.com/qase-tms/qase-javascript/tree/master/examples/github-qase-integration