Defect Management in HP ALM (Quality Center)

Default Defect Life Cycle in ALM:
When a defect is posted, the default status is 'New'
When the defect is accepted by developers it is moved to 'Open' Status
When the defect is rejected by developers it is moved to 'Rejected' Status
When the defect is fixed by developers it is moved to 'Fixed' Status. Testers would pick up all defects for testing that are in status 'Fixed'.
If the testing has failed, the defect is moved to 'Reopen' status
If the testing has passed, the defect is moved to 'Closed' Status.
How to Create a New Defect
Step 1) Navigate to defects Tab in Quality Center and Click on "New Defect" button.
Step 2) The "New Defect" Dialog Open up. Fill in the following mandatory information.
  • Enter Detected By Field
  • Enter the Detected on Date – By Default current date would be picked up
  • Set the severity level of the defect.
  • User can also enter other information and enter a brief description about the defect
Step 3) Tester can also attach screenshots/other relevant files associated with the defect using 'attachments' tab.
  1. Click 'Attachments' Tab
  2. Click 'Attachments' Button
  3. Select a File from the File explorer dialog.
  4. Click 'Open'
Step 4) Upon clicking 'Open' we will be able to see that the file is attached under the attachment section.
  1. The Selected file has been uploaded
  2. Click 'Submit' to post a defect after which it generates a defect ID.
Step 5) The defect is posted, the same be accessed in Defects Tab as shown below. You can also notice that the defect ID is generated upon posting the defect.

How to Link Defect to a Requirement

Users can link a defect with other defects or link a defect with requirements. By Linking defects and requirement we can generate coverage analysis graph and traceability matrix.
Step 1) After creating the defect, testers can map the linked requirements against it. To do the same,
  1. Click on 'Defect ID'
  2. The defect details dialog opens as shown below.
Step 2) To Link entities,
  1. Navigate to 'Linked Entities'
  2. Click 'Others' for linking requirements against this defect.
  3. Click 'Link' button and choose 'by Id'(we can also select based on a requirement name)
  4. Enter the Requirement ID against which this defect has to be mapped.
  5. Click 'Link' Button
Step 3) After clicking link button the defect details window displayed back to the user with the added link as shown below.
Step 4) Once the requirement is linked against a defect, the requirement displays with the link symbol against it as shown below.
Step 5) Once the requirement is linked against a defect, the requirement traceability matrix can be generated. To generate the traceability matrix navigate to view menu of 'Requirements' and select 'Traceability matrix'. The generated traceability matrix would be generated as shown below.
Note: Please refer the tutorial 'Requirements Module' for generating traceability matrix where the steps are elaborated in detail.

How to Upload Defect using Excel

  • Every time users won't be in position to create each one of those defects manually.
  • This module helps users to upload the defects from excel into ALM. This really helps when users want to migrate from one defect management system to ALM.
  • The process remains the same as that of uploading Tests and requirements.
  • One has to ensure that the excel file is prepared in a format such that ALM allows importing of the data.
Step 1) Create the excel file with the required columns that user wishes to upload as shown below.
The Field 'attachments' takes the local path where the screenshot/any other attachment is kept. Users have to just mention the path of the attachment so that it would be picked up for uploading into ALM along with the other details of the defect.
Step 2) Now,
  1. Navigate to 'Add-ins' Tab
  2. Select 'Export to HP ALM'
Step 3) The ALM Export Wizard opens. Enter the HP ALM Server URL and Click 'Next'.
Step 4) Enter the user name and password for authentication and Click 'Next'.
Step 5) Select the Domain, Project Name into which we would like to upload the tests and Click 'Next'.
Step 6) Select the type of data that we would like to upload. In this case, it is Defects.
Step 7) Enter the New Map name. The first option, 'Select a map' is disabled because we haven't created a map so far for uploading defects. Hence we should create new map name and click 'Next'. We haven't selected 'Create a Temporary map' as we would like to reuse every time for uploading defects.
Step 8) Upon Clicking 'Next', the mapping dialog opens as shown below.
  1. The left pane grid items that are listed correspond to the fields that are available for upload in HP ALM. Please note that the fields marked in 'RED' should be mapped as they are mandatory fields.
  2. The right pane grid items refer to the fields that are mapped so that values in Excel will flow into those corresponding fields of ALM.
Step 9) Now let us understand how to map the fields in Excel against the fields in ALM.
  1. Select the Field that user would like to map and click on the arrow button as shown below.
  1. Enter the column name in Excel that corresponds to the appropriate column name in HP ALM.
  1. Map all the required columns in excel against the appropriate fields in HP ALM. After mapping all the required fields, click 'Export'.
Step 10) Upon successful upload, ALM displays the message as shown below.

How to search a Defect

The Defect module contains all the defects that are logged right from the very first defect it has been logged.
Hence user would be in a position to search defects based on certain criteria.
Step 1) Navigate to 'Edit' Menu and choose 'Find'.
Step 2) TheFind dialog would be displayed.
  1. Enter the Field name based on which the search has to be performed ( In this case we use Defect ID to search)
  2. Enter the Value
  3. Click 'Find Next'
Step 3) ALM displays the item in the background as shown below.

Email Notification of Defects

  • Assigned users will automatically receive an email if there is a change in status/assigned to fields, provided the email configurations are set appropriately by ALM admin
  • The Email would be triggered based on setting under 'Alerts' tab of project customization module (refer to Project Customization for details).
Let us say the assigned user 'Glenn' has to receive email when the defect status moved to 'Fixed' status. The email would be sent as shown in the below. The screenshot is taken after receiving an email (from MS Outlook).
  1. The mail is sent to 'Glenn'
  2. The mail has the details about the defect
  3. The mail is triggered because the status has moved from 'Reopen' to 'Fixed' as shown below.

No comments:

Post a Comment

Face Book