The integration between PractiTest and Azure DevOps allows users to report issues from PractiTest test runs directly to Azure, link issues from the Azure project to a test step In PractiTest, import Azure tickets as Requirements in PractiTest and synch issues into PractiTest from the Azure project. Tickets’ name, description, and state are synched when the integration is configured.
Note: Azure DevOps integration is supported only for PractiTest’s Enterprise and Ultimate plans.
Following are important points to know and to prepare up-front before setting up the integration:
- The configuration needs to be done by PractiTest’s Account Owner.
- In order to configure the integration, you need to create long term personal access token in Azure DevOps by following the steps on this page.
- The user that creates the token must have permissions to create work items in the relevant project inside Azure DevOps.
- The token must have permissions to read and write work items.
Table of Contents
- Fail & Issue - Report issues to Azure DevOps
- Link existing issue
- Import Requirements
- Synchronizing Issues
Start in PractiTest Account Settings, and select the Integrations tab. Select ‘Azure DevOps' from the options menu.
Then click on:
Paste the personal token you have created from your Azure DevOps project in the indicated box, and fill in the Azure DevOps Organization in the indicated box.
Then click on “Update and Get Projects”:
Create a unique Prefix for your project by pressing on:
Enter a unique prefix for each of the integrated projects (between 1-4 characters), and click on ‘Update Projects Prefixes’
Create a project service hook for every project you want to integrate with PractiTest - In Azure, go to Project settings - service hooks, and create a new subscription. Then, select the ‘Work item updated’ item for the ‘Trigger on this type of event’ field, and click on next. Finally, paste the webhook you got from PractiTest integration settings page, and click on finish.
Project Settings - For each of the PractiTest projects you want to integrate with your Azure instance, you need to activate the integration at the project level.
In order to enable the integration, go to Settings - Integrations, and activate the issue integration support
Then, select 'Azure DevOps' from the dropdown list, and click on 'Update issue integration'
Fail & Issue - Report issues to Azure DevOps
After the integration is configured, you can create issues directly to your Azure project from a test run in PractiTest, by using the Fail & Issue option.
Go to the Test Sets & Runs tab and select a test set
Choose an instance to run
Click Fail & issue under the relevant step
A modal box will open, from which you can edit the issue’s fields (or leave them with default values). When you finish editing, click on ‘Create the Work Item In Azure DevOps’
The new Azure Work Item will be connected to a new PractiTest issue. The Name, Description and Issue’s state in Azure will be synched to the equivalent PractiTest’s issue.
If the description field is not visible in your Azure work items by default, you can add it to the relevant work item type (the integration works with the ‘Bug’ item type) by following these steps:
- Click on the three dots on the top right corner of your screen, then select ‘Customize’.
- Click the ‘New Field’ button at the top of the screen.
- Check the ‘Use an existing field’ checkbox, then select ‘Description’ from the drop-down list. Click on ‘Add field’.
Note: if you don’t see all Azure DevOps projects you integrated with PractiTest when creating a new issue, please go to the Account Settings – Integrations tab – press on the ‘Update and Get Projects’ button.
Link existing issue
The Link Existing issue option allows you to link issues that already reside in your PractiTest project. If you want to link a work item directly from Azure, you can import it from within the test run, and link it to the test step
Click on the down arrow next to the “New Requirement” button and select “Import a Requirement” option. This will help you choose any work item you want to import into PractiTest. You can import work items in bulk, by separating their ID’s by commas. After the work item was imported, you can link it to your test cases via the Traceability tab in order to create traceability links between them.
Note: When importing requirements, state the work item system ID in Azure without the Prefix you selected when configuring the integration (numeral values only).
If you want to import existing work items from Azure DevOps as Issues in PractiTest, you can click on the down arrow next to “New Issue” button, and select “Sync a new Issue from Azure DevOps” option. Paste the numeral value of your Azure DevOps work item/s. You can Synch issues in bulk, separated by commas.