From Fedora Project Wiki

mNo edit summary
No edit summary
(27 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests the functionality of the [[Features/CrashCatcher|Crash Catcher]] feature using the ''Logger'' plugin.
|description=This test case tests the functionality of the ABRT feature using the ''Logger'' reporting plugin.
|actions=
|actions=
Edit ''/etc/crash-catcher/crash-catcher.conf'' to '''enable''' and '''activate''' the ''Logger'' plugin.  A sample config is noted below
# Ensure you have the plugin installed with the command {{command|su -c 'yum install libreport-plugin-logger'}}
<pre>
# Confirm that the ''abrtd'' and ''abrt-applet'' processes are both running
# Enable GPG check
# Kill some running process: <tt>kill -SIGSEGV (pid)</tt>. It must be a process that is part of a signed Fedora package.
EnableOpenGPG = no
# The ''abrt-applet'' system tray icon should emerge with notification stating "Crash in package foo-1.2.3 has been detected"
# GPG keys
# Run gnome-abrt in expert mode ''gnome-abrt -x''
OpenGPGPublicKeys = /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
# Select the entry matching the recently crashed application, then click '''Analyze'''.
# blacklisted packages
# When you reach reporter selector page, select '''Logger'''
BlackList = bash, bind, apache2
# Use "Preferences" button in the same window and go to "Events" tab to change log file path. The file does not have to exist, it will be created
# enabled plugins
# Click through to the last window of the wizard
EnabledPlugins = SQLite3, CCpp, Mailx, Logger
# selected DB plugin
Database = SQLite3
# reporters association
CCpp = Logger, Mailx
</pre>
Restart ABRT: <pre># service restart abrt </pre>
 
And final steps are:
# Ensure that the ''crash-catcher'' and ''cc-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
# Click on the panel applet to start ''cc-gui''
# Select the entry matching the recently crashed application, select '''Forward'''
# At the report window, click ''Apply''
|results=
|results=
# A crash log should be reported by the ''Logger'' plugin into ''/var/log/crash-catcher-logger''
# After you finish the steps in wizard at the last screen you should see ''"The report was stored/appended to <FILENAME>"''
# Open the log file and see if crash information is in it and is well-formatted
}}
}}
[[Category:ABRT_Test_Cases]]
[[Category:Package_abrt_test_cases]]

Revision as of 15:15, 2 May 2013

Description

This test case tests the functionality of the ABRT feature using the Logger reporting plugin.


How to test

  1. Ensure you have the plugin installed with the command su -c 'yum install libreport-plugin-logger'
  2. Confirm that the abrtd and abrt-applet processes are both running
  3. Kill some running process: kill -SIGSEGV (pid). It must be a process that is part of a signed Fedora package.
  4. The abrt-applet system tray icon should emerge with notification stating "Crash in package foo-1.2.3 has been detected"
  5. Run gnome-abrt in expert mode gnome-abrt -x
  6. Select the entry matching the recently crashed application, then click Analyze.
  7. When you reach reporter selector page, select Logger
  8. Use "Preferences" button in the same window and go to "Events" tab to change log file path. The file does not have to exist, it will be created
  9. Click through to the last window of the wizard

Expected Results

  1. After you finish the steps in wizard at the last screen you should see "The report was stored/appended to <FILENAME>"
  2. Open the log file and see if crash information is in it and is well-formatted