Thursday, December 29, 2022

Bugzilla Tutorial – Defect Tracking Tool

What is Bugzilla?

Bugzilla is an open-source issue/bug tracking system that allows developers to keep track of outstanding problems with their product. It is written in Perl and uses MYSQL database.

Bugzilla is a Defect tracking tool, however, it can be used as a test management tool as such it can be easily linked with other Test Case management tools like Quality Center, Testlink etc.

This open bug-tracker enables users to stay connected with their clients or employees, to communicate about problems effectively throughout the data-management chain.

Key features of Bugzilla includes

  • Advanced search capabilities
  • E-mail Notifications
  • Modify/file Bugs by e-mail
  • Time tracking
  • Strong security
  • Customization
  • Localization

How to log-in to Bugzilla

Step 1) Use the following link for your hands-on. To create an account in Bugzilla tool or to login into the existing account go to New Account or Log in option in the main menu.

Bugzilla Tutorial for Beginners

Step 2) Now, enter your personal details to log into Bugzilla

  1. User ID
  2. Password
  3. And then click on “Log in”

Bugzilla Tutorial for Beginners

Step 3) You are successfully logged into Bugzilla system

Bugzilla Tutorial for Beginners

Creating a Bug-report in Bugzilla

Step 1) To create a new bug in Bugzilla, visit the home-page of Bugzilla and click on NEW tab from the main menu

Bugzilla Tutorial for Beginners

Step 2) In the next window

  1. Enter Product
  2. Enter Component
  3. Give Component description
  4. Select version,
  5. Select severity
  6. Select Hardware
  7. Select OS
  8. Enter Summary
  9. Enter Description
  10. Attach Attachment
  11. Submit

NOTE: The above fields will vary as per your customization of Bugzilla

Bugzilla Tutorial for Beginners

NOTE: The mandatory fields are marked with *.

In our case field’s

  • Summary
  • Description

Are mandatory

If you do not fill them you will get a screen like below

Bugzilla Tutorial for Beginners

Step 4) Bug is created ID# 26320 is assigned to our Bug. You can also add additional information to the assigned bug like URL, keywords, whiteboard, tags, etc. This extra-information is helpful to give more detail about the Bug you have created.

  1. Large text box
  2. URL
  3. Whiteboard
  4. Keywords
  5. Tags
  6. Depends on
  7. Blocks
  8. Attachments

    Bugzilla Tutorial for Beginners

Step 5) In the same window if you scroll down further. You can select deadline date and also status of the bug. Deadline in Bugzilla usually gives the time-limit to resolve the bug in given time frame.

Bugzilla Tutorial for Beginners

Create Graphical Reports

Graphical reports are one way to view the current state of the bug database. You can run reports either through an HTML table or graphical line/pie/bar-chart-based one. The idea behind graphical report in Bugzilla is to define a set of bugs using the standard search interface and then choosing some aspect of that set to plot on the horizontal and vertical axes. You can also get a 3-dimensional report by choosing the option of “Multiple Pages”.

Reports are helpful in many ways, for instance, if you want to know which component has the largest number of bad bugs reported against it. In order to represent that in the graph, you can select severity on X-axis and component on Y-axis, and then click on generate a report. It will generate a report with crucial information.

Bugzilla Tutorial for Beginners

The graph below shows the Bar chart representation for the Bugs severity in component “Widget Gears”. In the graph below, the most severe bug or blockers in components are 88 while bugs with normal severity are at the top with 667 number.

Bugzilla Tutorial for Beginners

Likewise, we will also see the line graph for %complete Vs Deadline

Step 1) To view your report in a graphical presentation,

  • Click on Report from Main Menu
  • Click on the Graphical reports from the given option

Bugzilla Tutorial for Beginners

Step 2) Let’s create a graph of % Complete Vs Deadline

In here on the vertical axis we chose % Complete and on our horizontal axis we chose Deadline. This will give the graph of amount of work done in percentage against the set-deadline.

Now, set various option to present reports graphically

  1. Vertical Axis
  2. Horizontal Axis
  3. Multiple Images
  4. Format- Line graph, Bar chart or Pie chart
  5. Plot data set
  6. Classify your bug
  7. Classify your product
  8. Classify your component
  9. Classify bug status
  10. Select resolution
  11. Click on generate a report

Bugzilla Tutorial for Beginners

The image of the graph will appear somewhat like this

Bugzilla Tutorial for Beginners

Browse Function

Step 1) To locate your bug we use browse function, click on Browse button from the main menu.

Bugzilla Tutorial for Beginners

Step 2) As soon as you click on browse button a window will open saying “Select a product category to browse” as shown below, we browse the bug according to the category.

  • After clicking the browse button
  • Select the product “Sam’s Widget” as such you have created a bug inside it

Bugzilla Tutorial for Beginners

Step 3) It opens another window, in this click on component “widget gears”. Bugzilla Components are sub-sections of a product. For instance, where our product is SAM’S WIDGET whose component is WIDGET GEARS.

Bugzilla Tutorial for Beginners

Step 4) when you click on the component, it will open another window. All the Bugs created under particular category will be listed over here. From that Bug-list, choose your Bug#ID to see more details about the bug.

Bugzilla Tutorial for Beginners

It will open another window, where information about your bug can be seen more in detail. In the same window, you can also change the assignee, QA contact or CC list.

Bugzilla Tutorial for Beginners

How to use Simple search option in Bugzilla

Bugzilla provides two ways of searching for bugs, they are Simple Search and Advance Search methods.

Step 1) We will first learn the “Simple Search” method. Click on search button from the main menu and then follow these steps

  1. Click on “Simple Search” button
  2. Choose the status of the Bug – choose Open if you are looking the bug in Open status and closed for bug in closed status
  3. Choose your category and component, and you can also put keywords related to your bug
  4. Click on the search

Bugzilla Tutorial for Beginners

Step 2) Here we will search for both option open and closed status, first we have selected closed status for bug and clicked search button.

Bugzilla Tutorial for Beginners

For closed status, it fetched 12 bugs.

Bugzilla Tutorial for Beginners

Step 3) Likewise we have searched for Open status as well, and it has fetched 37 bugs related to our queries.

Bugzilla Tutorial for Beginners

Also, at the bottom of the screen you have various options like how you want to see your bug – an XML format, in Long format or just Time summary. Apart from that you can also use other option like send mail to bug assignee, change several bugs at once or change column of the screen, etc.

Bugzilla Tutorial for Beginners

In next step, we will demonstrate one of this function change column of the screen, through which we will learn how to add or remove the column to the existing column.

How to add or remove a column to default search screen

Step 1) Click on the Change Column as shown in above screen-shot. It will open a new window where you have to follow these steps.

  • Select any given option from the column you want to appear in the main screen – here we have selected % complete
  • Click on the arrow button, it will move % complete column from à Available Column to the Selected column

These steps will move the selected column from left to right.

Bugzilla Tutorial for Beginners

The % complete is moved from left to right as shown below, and once we click on change column it will appear in the main screen

Bugzilla Tutorial for Beginners

Before- Search result screen before using “Change Column” option-

  • There is no % complete column appears in search screen result as shown below

Bugzilla Tutorial for Beginners

After- Search result screen after using “Change Column” option

  • You can see % complete column added to the extreme right in the existing column in the main screen, which was not their previously.

Bugzilla Tutorial for Beginners

NOTE: Likewise you can remove or add any column you want.

How to use Advanced Search in Bugzilla

Step 1) After a Simple search we will look into the Advanced Search option for that you have to follow the following steps.

  1. Click on the advanced search option
  2. Select option for a summary, how you want to search
  3. Enter the keyword for your bug- for example, Widget gears twisted
  4. Select the category of your Bug under classification, here we selected Widget
  5. Choose your product under which your Bug was created- Sam’s Widget
  6. Component- Widget gears
  7. Status- Confirmed
  8. Resolution

Bugzilla Tutorial for Beginners

Step 2) Once you select all the option, click on search button. It will detect the bug you created

Bugzilla Tutorial for Beginners

The advanced search will find your bug, and it will appear on the screen like this

Bugzilla Tutorial for Beginners

How to use preferences in BugZilla

Preferences in Bugzilla is used to customize the default setting made by Bugzilla as per our requirement. There are mainly five preferences available

  • General Preferences
  • E-mail Preferences
  • Saved Searches
  • Account Information
  • Permissions

General Preferences

For general preferences, you have a various option like changing Bugzilla general appearance, a position of the additional comment box, automatically add me to cc, etc. Here we will see how to change the general appearance of the Bugzilla.

There are many changes you can do which are self-explanatory, and you can choose the option as per your requirement.

Step 1)

  • To set the background Skin of Bugzilla
  • Go to Bugzilla general preference (Skin)
  • Select the option you want to see as a change and submit the change ( DuskàClassic )
  • A message will appear on the window saying changes have been saved, as soon as you submit the changes

Bugzilla Tutorial for Beginners

After the skin preference is changed to Classic from Dusk, the background color of the screen appears white

Bugzilla Tutorial for Beginners

Likewise, for other default settings changes can be done.

E-mail preferences

E-mail preferences enable you to decide how to receive the message and from whom to receive the messages.

Step 1) To set the e-mail preferences

  1. Click on e-mail services
  2. Enable or disable the mail to avoid receiving notification about changes to a bug
  3. Receiving a mail when someone asks to set a flag or when someone sets a flag you asked for
  4. When and from whom you want to receive mail and under which condition. After marking your option at the end, submit the changes.

Bugzilla Tutorial for Beginners

Saved Searches Preference

Saved searches preference gives you the freedom to decide whether to share your bug or not to share.

Step 1) Click on saved searches, it will open window with the option like edit bugs, don’t share, can confirm, etc. Choose the option as per your need.

Bugzilla Tutorial for Beginners

Step 2) We can run our bug from “Saved Searches”.

  • Go to Saved Searches under preference
  • Click on the “Run” button

Bugzilla Tutorial for Beginners

As soon as you run your search from Saved Searches it opens your bug as shown below

Bugzilla Tutorial for Beginners

Step 3) In the same window we can also choose specific users with whom we want to share the search by marking or unmarking the checkbox against the users

Bugzilla Tutorial for Beginners

That’s all to BugZilla!

No comments:

Post a Comment

Understanding Wire vs Imperative Apex Method Calls in Salesforce Lightning Web Components (LWC)

Understanding Wire vs Imperative Apex Method Calls in Salesforce Lightning Web Components (LWC) Introduction: Salesforce Lightning Web ...