Jira
Last updated
Last updated
Loadmill's Jira integration is a great way to automatically create tickets when tests fail or the expected outcome is not what was planned. You can set your own automatic ticket information directly from the Loadmill platform, making it easy to keep track of your testing progress. This integration is a great way to improve your workflow and ensure that your testing is always on track.
Loadmill supports Jira version 5 and later versions.
Project Key
Login to your Jira account.
Navigate to Projects > View all projects
You can see the project key on the second column after the project name.
You can also create a new project and gather the project key by following the same steps above.
Jira Server URL
The Jira server url is the origin url of your Jira account: https://companyname.atlassian.net
API Token
Navigate to Settings > Atlassian account settings.
Select Security on the left menu.
Click on "Create and manage API tokens".
The email is the account email used for your Jira account.
Setting up Issue Types
Many projects have their own default issue types. Make sure the issue type of your choice is created in the project.
You can verify this by going through the following steps:
Navigate to Projects > View all projects.
Select the "Project Settings" by clicking on the 3 dots [•••] of the project.
Select "Issue Types" from the left menu.
Make sure the issue type is present. You can create a new issue type by clicking on the "+ Add issue type" button at the end of the issue types menu.
Login to your Loadmill Account
Navigate to Settings > Integration.
Paste all the credentials copied from Step 1.
Loadmill automatically sets the test description on the default fields of the issue type. You can add fields to the ticket layout by dragging and dropping the field type from the fields section to your right.
You can also set the type of description you wish to have aside from the default ones assigned and custom your ticket message using the Loadmill dynamic variables.
The Loadmill dynamic variables are dynamic variables taken from the test run to help creating a ticket more comfortably without the copy/paste hassle.
Those variables are:
Test Environment: ${environment}
Test Description: ${test_description}
Test URL: ${test_url}
Run URL: ${run_url}
Failed Assertion: ${failed_assertions}
HTTP Status: ${http_status}
Error Message: ${error_message}
Quick Example
Login to your Jira account and into your issue type layout.
Drag and drop the "Paragraph" component to the ticket layout.
Give a title to the "Paragraph" component and click on "Save". ex: Test Update
Login to your Loadmill account > Go to Settings > Integrations > Add Jira Field.
Select the component name your created from step 2 and 3.
Give the value a description using the dynamic variables.
ex: Test Update on ${environment}
: ${test_description}
Below is a more detailed example of using dynamic variables
Once your integration is complete you can now run your test cases (or use the current test runs) and open a Jira ticket based on fail criteria.
Select and run your test case/flow.
Select the failed API requests of your failed test.
This will open a new tab with the ticket information with the dynamic values already set on the ticket description. You can add more information if and when you see fit and when ready click on the "Create" button at the bottom of the Jira ticket to create your ticket issue.
Select the integration. A window will pop up.
Click
Click on the button.