From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
{{QA/Test_Case
== [Configuration] ==
|description=This test case tests the functionality of the [[Features/ABRT|ABRT]] feature using the ''Bugzilla'' plugin.
 
|actions=
* If you don't have an account on the [https://bugzilla.redhat.com bugzilla], [https://bugzilla.redhat.com/createaccount.cgi create] one.
* If you don't have an account on the [https://bugzilla.redhat.com bugzilla], [https://bugzilla.redhat.com/createaccount.cgi create] one.
* Edit <code>/etc/abrt/abrt.conf</code> and list the ''Bugzilla'' plugin in ''CCpp'' and ''Python'' lines (which will enable and activate it). For example:
* Edit <code>/etc/abrt/abrt.conf</code> and list the ''CCpp'' and ''Python'' lines (activate it). For example:
<pre>
<pre>
...
...
CCpp = Mailx, Bugzilla, Logger
CCpp = Bugzilla
Python = Mailx, Bugzilla, Logger
Python = Bugzilla
...
...
</pre>
</pre>


* Edit ''~/.abrt/Bugzilla.conf'' and make sure the configuration is valid. Insert your bugzilla username and password
* Edit ''/etc/abrt/plugins/Bugzilla.conf'' and make sure the configuration is valid. Insert your bugzilla username and password. Or you can wait and you will be invoke to set password and login before sending report
<pre>
<pre>
Enabled = yes
Enabled = yes
BugzillaURL = https://bugzilla.redhat.com/xmlrpc.cgi
# Bugzilla URL
NoSSLVerify = yes
BugzillaURL = https://bugzilla.redhat.com/
#enter your login here
# yes means that ssl certificates will not be checked
NoSSLVerify = no
# your login has to exist, if you don have any, please create one
Login =
Login =
#enter your password here
# your password
Password =
Password =
</pre>
</pre>


* Optionally, you may set up the username and password using ''abrt-gui''.  Launch ''abrt-gui'' and select ''Edit -> Plugins'', find Bugzilla in the list, press ''Configure plugin''.  Once complete, you may check using ''seahorse'' tool that data is saved in Gnome keyring (in seahorse, in should be on "Passwords" tab).
* Optionally, you may set up the username and password using ''abrt-gui''.  Launch ''abrt-gui'' and select ''Edit -> Preferences -> Enable Bugzilla -> Configure plugin''.  Once complete, confirm that ''/etc/abrt/plugins/Bugzilla.conf'' lists the information supplied.
* Restart ABRT: <pre>$ service abrt restart</pre>
* Restart ABRT: <pre>$ service abrt restart</pre>
== [Test 'report'] ==
* Ensure that the ''abrt'' and ''abrt-applet'' processes are both running
* Ensure that the ''abrt'' and ''abrt-applet'' processes are both running
* Kill a running process: <tt>kill -SIGSEGV (pid)</tt>. It must be a process that is part of a signed Fedora package
* Kill a running process: <tt>kill -SIGSEGV (pid)</tt>. It must be a process that is part of a signed Fedora package
* Click on the panel applet to start ''abrt-gui''
* Click on the Report button in popup bubble applet to start ''abrt-gui''
* Select the entry matching the recently crashed application, click '''Report'''
* Select the entry matching the recently crashed application, click '''Report'''
* At the report window, click '''Send'''
* Click on Bugzilla button
|results=
* Check out "I checked backtrace and removed sensitive data(password, etc)". Please do the check. 
# A popup message should say: "Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=NNNNNN"
* At the report window, click '''Send report'''
# A bug entry should be filled in the Bugzilla, the entry should be assigned to the package you crashed.
 
# Now it might be a good idea to close the entry in Bugzilla since this "crash" was created during testing by us, it's important to prevent making package maintainer upset by a bunch of bogus bugzilla records.
Results:
}}
* A popup message should say:  
[[Category:ABRT_Test_Cases]]
    ''STATUS: NEW(or proper status if you hit already reported bug)''
    ''Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=NNNNNN''
* A bug entry should be filled in the Bugzilla, the entry should be assigned to the package you crashed.
* Store link to bug
 
== [Test 'duplicate jump'] ==
* Open browser with reported bug(click on link or copy&paste it into your favorite browser)
* Modified Status whiteboard(for example erase some letters or add some)
* File a new bug(does not matter if is same application), but be sure that new bug is not already reported and close it as CLOSE DUPLICATE where duplicate id is your modified bug
* Try to report again bug
 
Result:
* A progress message should say:
Bugzilla("id"): Jump to bug "id"
* A popup message should say:
    ''STATUS: proper status''
    ''Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=NNNNNN'' <-- link should be your modified bug.
 
== [Test 'limit jump only 5x'] ==
* Chain 6 bugs as you did in [Test 2]
* Run test
Result:
* A progress message should say:
Bugzilla(id): Jump to bug "id"
A popup message should say:
Bugzilla couldn't find parent of bug(id)

Revision as of 16:42, 31 March 2010

[Configuration]

  • If you don't have an account on the bugzilla, create one.
  • Edit /etc/abrt/abrt.conf and list the CCpp and Python lines (activate it). For example:
...
CCpp = Bugzilla
Python = Bugzilla
...
  • Edit /etc/abrt/plugins/Bugzilla.conf and make sure the configuration is valid. Insert your bugzilla username and password. Or you can wait and you will be invoke to set password and login before sending report
Enabled = yes
# Bugzilla URL
BugzillaURL = https://bugzilla.redhat.com/
# yes means that ssl certificates will not be checked
NoSSLVerify = no
# your login has to exist, if you don have any, please create one
Login =
# your password
Password =
  • Optionally, you may set up the username and password using abrt-gui. Launch abrt-gui and select Edit -> Preferences -> Enable Bugzilla -> Configure plugin. Once complete, confirm that /etc/abrt/plugins/Bugzilla.conf lists the information supplied.
  • Restart ABRT:
    $ service abrt restart

[Test 'report']

  • Ensure that the abrt and abrt-applet processes are both running
  • Kill a running process: kill -SIGSEGV (pid). It must be a process that is part of a signed Fedora package
  • Click on the Report button in popup bubble applet to start abrt-gui
  • Select the entry matching the recently crashed application, click Report
  • Click on Bugzilla button
  • Check out "I checked backtrace and removed sensitive data(password, etc)". Please do the check.
  • At the report window, click Send report

Results:

  • A popup message should say:
   STATUS: NEW(or proper status if you hit already reported bug)
   Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=NNNNNN
  • A bug entry should be filled in the Bugzilla, the entry should be assigned to the package you crashed.
  • Store link to bug

[Test 'duplicate jump']

  • Open browser with reported bug(click on link or copy&paste it into your favorite browser)
  • Modified Status whiteboard(for example erase some letters or add some)
  • File a new bug(does not matter if is same application), but be sure that new bug is not already reported and close it as CLOSE DUPLICATE where duplicate id is your modified bug
  • Try to report again bug

Result:

  • A progress message should say:

Bugzilla("id"): Jump to bug "id"

  • A popup message should say:
   STATUS: proper status
   Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=NNNNNN <-- link should be your modified bug.

[Test 'limit jump only 5x']

  • Chain 6 bugs as you did in [Test 2]
  • Run test

Result:

  • A progress message should say:
Bugzilla(id): Jump to bug "id"

A popup message should say:

Bugzilla couldn't find parent of bug(id)