Follow these steps to configure Practitest Bugzilla two way integration.
PractiTest has two types of issue-integration with Bugzilla:
- One-Way integration – standard integration that works like all other PractiTest integrations. Once you click on the Fail & Issue link in a test run, it will open a new bug form in Bugzilla, with all the data (steps and actual results) already pre-entered inside Bugzilla.
- Two-Way integration – works like the one way integration, but in addition, displays in PractiTest the bug’s subject and status as it appears in Bugzilla, and also allows Bugzilla to update PractiTest (via a dedicated plugin) whenever the subject or status are modified.
Updated: PractiTest allows you to set different projects to open directly in Bugzilla – See
Multi project configuration.
This document describes how the two-way integration works and how to set it up.
Note that the two-way integration is supported by PractiTest’s Enterprise license only.
Configuring and working with the two-way Integration
To configure the two-way integration follow these steps:
1. Adding the designated Bugzilla Extention for PractiTest
- Install Bugzilla
- Install extra perl modules: REST::Client, JSON, Digest::MD5, Crypt::SSLeay, Data::Dumper (via cpan)
- Copy this folder to the ‘Extensions‘ directory of bugzilla.
- Change the directory’s name to “PractiTest”.
- In Extension.pm, update the CONFIG_API_TOKEN constant (line 33).
- Add a custom field in Bugzilla, named cf_pt_id (Type is ‘Free Text‘). If you don’t know how to do this, see the instructions below.
- Restart Bugzilla
Note: If you need to disable extension, create empty file with name ‘disabled’.
- To add an integer custom field named “cf_pt_id”:
- In Bugzilla, go to Administration.
- Click on the “Custom Fields” link.
- Create a field named “cf_pt_id” and set the field’s type to “Free Text”.
- Click on the “Create” button.
2. Configuring PractiTest to integrate with Bugzilla
- Goto Project Settings > Integrations and select Activate.
- On Issue integration select Bugzilla, enter the url prefix, and the project prefix
- Enter the ID for the cf_pt_id field (which you received after adding the field to Bugzilla.
That’s it! You and your users are ready to start enjoying the Two-Way Integration.
3. Working with Two-Way Integration
This step is the same for both one-way and the two-way integration with Bugzilla.
To work with the integration, start by running the test from PractiTest’s Test-Sets and Runs.
- Go to a TestSet
- Choose the test you want to run and click the “Run” link
- When a step fails, update the actual results
- Click on the “Fail and Issue” link. PractiTest will open Bugzilla’s New Issue form with all the data pre-entered.
- Fill out the relevant information for your bug report.
- Save the Issue. The plugin will do the rest in order to keep the bug and test synchronized.
Using the 2-way integration, you can then edit the issue in either platform, and your changes will be saved in both Bugzilla and PractiTest.
Multi projects configuration
Set different projects to open directly in Bugzilla –
Once you run the test, when you put your mouse over ‘Fail and Issue‘ you can select which project (based on your previous configuration) you’ll open in Bugzilla.
If you have any questions, please don’t hesitate to contact us