From Fedora Project Wiki

(Initial)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=
|description=
* This test case tests libreport integration with anaconda installer
* This test case tests libreport integration with Anaconda installer on installed system
* Please test also [[QA:Testcase Libreport Anaconda Install| Anaconda installer directly in installation proccess]]
|actions=
|actions=
# Anaconda package is required. Run following command to install it:  {{command|su -c 'yum -y install anaconda'}}
# Anaconda package is required. Run following command to install it:  {{command|su -c 'yum -y install anaconda'}}
# Edit the anaconda file :
# Edit the anaconda file :
#* run {{command|su -c 'vim $(which anaconda)'}}
#* run {{command|su -c 'vim $(which anaconda)'}}
#* find line which contains ''# set up the headless case'' (line 765 in time of writing the testcase)
#* find line which contains ''# set up the headless case'' (line 859 in time of writing the testcase)
#* introduce an error - put '''0/0''', or '''import error''' before the line
#* introduce an error - put '''0/0''', or '''import error''' before the line
#* error line should have the same indent as surrounding lines (not to generate syntax error)
#* error line should have the same indent as surrounding lines (not to generate syntax error)

Latest revision as of 07:03, 1 October 2012

Description


How to test

  1. Anaconda package is required. Run following command to install it: su -c 'yum -y install anaconda'
  2. Edit the anaconda file :
    • run su -c 'vim $(which anaconda)'
    • find line which contains # set up the headless case (line 859 in time of writing the testcase)
    • introduce an error - put 0/0, or import error before the line
    • error line should have the same indent as surrounding lines (not to generate syntax error)
  3. Run anaconda as root - su -c 'anaconda'
  4. Unhandled exception should occur
  5. Hit Save button to report the problem
  6. Try to report the problem with Logger reporter

Expected Results

  1. Report should be generated and saved into the file
  2. The file should contain well formed report of the crash you have caused

If concerned, run su -c 'yum reinstall anaconda' to revert the changes you have made.