Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EPP/Obsolete/Logging/Testplan"
(smaller updates and new testcase for ui deadlock) |
(Update to latest version) |
||
Line 1: | Line 1: | ||
== Manual Release Tests == | == Manual Release Tests == | ||
− | Before starting, the value <tt>org.eclipse.epp.logging.aeri. | + | Before starting, the value <tt>org.eclipse.epp.logging.aeri.core/debug</tt> in <tt>org.eclipse.epp.logging.aeri.core/.options</tt> should be set to true. |
The application should be started with a debug configuration and tracing enabled with the plugin checked (Debug Configuration - Tracing). | The application should be started with a debug configuration and tracing enabled with the plugin checked (Debug Configuration - Tracing). | ||
− | Please ensure that the <tt>org.eclipse.epp.logging.aeri. | + | Please ensure that the <tt>org.eclipse.epp.logging.aeri.ide.tests</tt>-plugin is enabled. The workspace should be cleared before each test. |
− | The tests-plugin will contribute a <i>Test Errors</i> dropdown to the toolbar. | + | The product configuration <tt>org.eclipse.epp.logging.aeri.ide.tests/aeri.ide.tests.product</tt> is recommended. |
+ | The tests-plugin will contribute a <i>Test Errors</i> dropdown to the toolbar. This menu is used to trigger various test-errors which are referred as <u>underlined</u> in the next steps. | ||
If a testcase contains no instructions for the configuration dialog, the dialog can be skipped with 'Enable' and default settings. | If a testcase contains no instructions for the configuration dialog, the dialog can be skipped with 'Enable' and default settings. | ||
Line 10: | Line 11: | ||
* Start with default settings | * Start with default settings | ||
* Wait for the <i>Updating Error Reports Database</i>-job to finish | * Wait for the <i>Updating Error Reports Database</i>-job to finish | ||
− | * <b>Verify</b>: in the runtime-workspace: <tt>.metadata/.plugins./org.eclipse.epp.logging.aeri. | + | * <b>Verify</b>: in the runtime-workspace: <tt>.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-index/</tt> exists |
− | * <b>Verify</b>: in the runtime-workspace: <tt>.metadata/.plugins./org.eclipse.epp.logging.aeri. | + | * <b>Verify</b>: in the runtime-workspace: <tt>.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/server-config.json</tt> exists |
* Restart the instance | * Restart the instance | ||
* <b>Verify</b>: remote-index folder was not changed | * <b>Verify</b>: remote-index folder was not changed | ||
Line 19: | Line 20: | ||
* <u>Log Error</u> | * <u>Log Error</u> | ||
* Open configuration-dialog from popup link ('Enable') | * Open configuration-dialog from popup link ('Enable') | ||
− | * In the configuration-dialog, enter a name, an email and set both | + | * In the configuration-dialog, enter a name, an email and set both anonymize-settings to checked |
* Open the details-dialog for the error in the upcoming popup ('View Details') | * Open the details-dialog for the error in the upcoming popup ('View Details') | ||
* <b>Verify</b>: name end email of REPORT are the same as configured | * <b>Verify</b>: name end email of REPORT are the same as configured | ||
* <b>Verify</b>: Status and Exception messages are replaced by <tt>HIDDEN</tt> | * <b>Verify</b>: Status and Exception messages are replaced by <tt>HIDDEN</tt> | ||
* <b>Verify</b>: second stackframe anonymized to <pre>at HIDDEN.HIDDEN(HIDDEN:-1)</pre> | * <b>Verify</b>: second stackframe anonymized to <pre>at HIDDEN.HIDDEN(HIDDEN:-1)</pre> | ||
+ | * <b>Verify</b>: <tt>Anonymize Messages</tt> and <tt>Anonymize Stack Trace</tt> icons checked. | ||
* Cancel sending ('Don't send') | * Cancel sending ('Don't send') | ||
* Open Preferences - General - Error Reporting | * Open Preferences - General - Error Reporting | ||
− | * Change name and email, deselect | + | * Change name and email, deselect both anonymize fields and select <tt>enable debug mode</tt> |
* <u>Log error</u> again and open details view | * <u>Log error</u> again and open details view | ||
* <b>Verify</b>: name end email of REPORT are the new configured values | * <b>Verify</b>: name end email of REPORT are the new configured values | ||
* <b>Verify</b>: No messages replaced by <tt>HIDDEN</tt> | * <b>Verify</b>: No messages replaced by <tt>HIDDEN</tt> | ||
* <b>Verify</b>: second stackframe <pre>at any.third.party.Clazz.thirdPartyMethod(Clazz.java:42)</pre> is not anonymized | * <b>Verify</b>: second stackframe <pre>at any.third.party.Clazz.thirdPartyMethod(Clazz.java:42)</pre> is not anonymized | ||
− | + | * <b>Verify</b>: <tt>Anonymize Messages</tt> and <tt>Anonymize Stack Trace</tt> icons not checked. | |
− | + | ||
− | + | ||
− | * < | + | |
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
=== Disable === | === Disable === | ||
Line 51: | Line 40: | ||
* Click disable in upcoming popup | * Click disable in upcoming popup | ||
* <u>Log Error</u> again | * <u>Log Error</u> again | ||
− | * <b> Verify</b>: No popup | + | * <b> Verify</b>: No error popup |
− | * <b>Verify</b>: Both errors in the error log | + | * <b>Verify</b>: Both errors in the error log |
+ | |||
+ | === Temporary Disable === | ||
+ | * Start with default settings | ||
+ | * <u>Log Error</u> | ||
+ | * Wait for popup fade-out | ||
+ | * <u>Log Error</u> again | ||
+ | * <u>Log MS Error</u> | ||
+ | * <b>Verify</b>: No further popups | ||
+ | * Restart without cleaning workspace | ||
+ | * <u>Log ClassNotFound</u> | ||
+ | * <b>Verify</b>: Configure popup shows | ||
+ | |||
+ | === Temporary Disable 2=== | ||
+ | * Start with default settings | ||
+ | * <u>Log Error</u> | ||
+ | * Use 'x' to cancel the popup | ||
+ | * <u>Log Error</u> again | ||
+ | * <u>Log MS Error</u> | ||
+ | * <b>Verify</b>: No further popups | ||
+ | * Restart without cleaning workspace | ||
+ | * <u>Log ClassNotFound</u> | ||
+ | * <b>Verify</b>: Configure popup shows | ||
+ | |||
+ | === Report skipped === | ||
+ | * Set the debug option to false for this test | ||
+ | * Start with default settings | ||
+ | * <u>Log Error</u> | ||
+ | * Confirm all settings and use 'x' to cancel the report preview popup | ||
+ | * <u>Log Error</u> again | ||
+ | * <b>Verify</b>: No further popups | ||
+ | * <u>Log MS Error</u> | ||
+ | * <b>Verify</b>: Popup opens and both errors visible in the preview dialog | ||
+ | |||
+ | |||
+ | === Report skipped 2 === | ||
+ | * Set the debug option to false for this test | ||
+ | * Start with default settings | ||
+ | * <u>Log Error</u> | ||
+ | * Confirm all settings and wait until the report preview popup fades out | ||
+ | * <u>Log Error</u> again | ||
+ | * <b>Verify</b>: No further popups | ||
+ | * <u>Log MS Error</u> | ||
+ | * <b>Verify</b>: Popup opens and both errors visible in the preview dialog | ||
=== Disable by system parameter === | === Disable by system parameter === | ||
− | * Start with <pre> | + | * Start with the VM argument <pre>-Dorg.eclipse.epp.logging.aeri.skipReports=true</pre> |
* <b>Verify</b>: No startup-progress and download job visible in progress view | * <b>Verify</b>: No startup-progress and download job visible in progress view | ||
* <u>Log Error</u> | * <u>Log Error</u> | ||
* <b>Verify</b>: No upcoming error popups | * <b>Verify</b>: No upcoming error popups | ||
* <b>Verify</b>: Error log contains only the error but no predicate debug output | * <b>Verify</b>: Error log contains only the error but no predicate debug output | ||
+ | * <b>Verify</b>: <tt>.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/*</tt> not created | ||
=== Multistatus Handling === | === Multistatus Handling === | ||
Line 70: | Line 103: | ||
* Start with default settings | * Start with default settings | ||
* In Preferences-General-UI Responsiveness check the <i>Detect periods of unresponsive UI checkbox</i> and save the settings | * In Preferences-General-UI Responsiveness check the <i>Detect periods of unresponsive UI checkbox</i> and save the settings | ||
− | * <u> | + | * <u>UI Freeze</u> |
* Open the details view | * Open the details view | ||
* <b>Verify</b>: Multiple status objects, message of the first one has suffix <tt>[n child-status duplicates removed by Error Reporting]</tt> | * <b>Verify</b>: Multiple status objects, message of the first one has suffix <tt>[n child-status duplicates removed by Error Reporting]</tt> | ||
Line 90: | Line 123: | ||
* <b>Verify</b>: Eclipse interface still responsive | * <b>Verify</b>: Eclipse interface still responsive | ||
− | === | + | === Error Severity === |
* Start with default settings | * Start with default settings | ||
* <u>Log Error</u> | * <u>Log Error</u> | ||
* Open the details view | * Open the details view | ||
− | * <b>Verify</b>: | + | * <b>Verify</b>: severity is <tt>UNKNOWN</tt> |
− | + | * Change the <tt>This error's severity is...</tt> combobox value | |
− | * | + | * <b>Verify</b>: The report severity reflects the setting of the combobox (true/false) |
− | + | ||
− | * <b>Verify</b>: | + | |
− | === | + | === Report Processors === |
− | + | * Start with default settings | |
− | * Start with | + | |
* <u>Log Error</u> | * <u>Log Error</u> | ||
− | * <b>Verify</b>: | + | * Open the details view |
+ | * <b>Verify</b>: <tt>Extended Classpath Analysis</tt> not selectable and all other processors disabled. | ||
+ | * Enable all possible processors | ||
+ | * <b>Verify</b>: Section in the preview are created for each processor | ||
+ | * Edit one section and change the text to another value | ||
+ | * <b>Verify</b>: Reset option visible for the edited section | ||
+ | * Reset the edited section | ||
+ | * <b>Verify</b>: Section reset to previous state and reset option no longer visible | ||
− | === | + | |
− | + | === Wiring Analysis === | |
− | * Start with: <pre> | + | * Start with default settings |
− | * <u>Log | + | * <u>Log ClassNotFound</u> |
− | * <b>Verify</b>: | + | * <b>Verify</b>: In the report details dialog, the preview field should contain a section like: |
+ | <pre>Extended Classpath Analysis | ||
+ | The problematic package ‘org.eclipse.epp.logging.aeri.core.util’ may originate in the following bundles: | ||
+ | org.eclipse.epp.logging.aeri.core 2.0.3.qualifier, imported by: | ||
+ | org.eclipse.epp.logging.aeri.ide 2.0.3.qualifier | ||
+ | </pre> | ||
+ | * Disable and enable the <tt>Extended Classpath Analysis</tt> icon. | ||
+ | * <b>Verify</b>: The section is removed and added accordingly to the icon state | ||
+ | |||
+ | === Problem State Dialog === | ||
+ | * Start with default settings | ||
+ | * <u>Log ClassNotFound</u> | ||
+ | * In the report details dialog, open the problem state dialog (info icon) | ||
+ | * <b>Verify</b>: Server message shown and additional information request for the wiring analysis visible | ||
[[Category:EPP]] | [[Category:EPP]] |
Revision as of 10:37, 19 August 2016
Contents
- 1 Manual Release Tests
- 1.1 Remote Data Download
- 1.2 Configuration
- 1.3 Disable
- 1.4 Temporary Disable
- 1.5 Temporary Disable 2
- 1.6 Report skipped
- 1.7 Report skipped 2
- 1.8 Disable by system parameter
- 1.9 Multistatus Handling
- 1.10 UI Freeze
- 1.11 CoreException Handling
- 1.12 No UI Deadlock
- 1.13 Error Severity
- 1.14 Report Processors
- 1.15 Wiring Analysis
- 1.16 Problem State Dialog
Manual Release Tests
Before starting, the value org.eclipse.epp.logging.aeri.core/debug in org.eclipse.epp.logging.aeri.core/.options should be set to true. The application should be started with a debug configuration and tracing enabled with the plugin checked (Debug Configuration - Tracing). Please ensure that the org.eclipse.epp.logging.aeri.ide.tests-plugin is enabled. The workspace should be cleared before each test. The product configuration org.eclipse.epp.logging.aeri.ide.tests/aeri.ide.tests.product is recommended. The tests-plugin will contribute a Test Errors dropdown to the toolbar. This menu is used to trigger various test-errors which are referred as underlined in the next steps. If a testcase contains no instructions for the configuration dialog, the dialog can be skipped with 'Enable' and default settings.
Remote Data Download
- Start with default settings
- Wait for the Updating Error Reports Database-job to finish
- Verify: in the runtime-workspace: .metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-index/ exists
- Verify: in the runtime-workspace: .metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/server-config.json exists
- Restart the instance
- Verify: remote-index folder was not changed
Configuration
- Start with default settings
- Log Error
- Open configuration-dialog from popup link ('Enable')
- In the configuration-dialog, enter a name, an email and set both anonymize-settings to checked
- Open the details-dialog for the error in the upcoming popup ('View Details')
- Verify: name end email of REPORT are the same as configured
- Verify: Status and Exception messages are replaced by HIDDEN
- Verify: second stackframe anonymized to
at HIDDEN.HIDDEN(HIDDEN:-1)
- Verify: Anonymize Messages and Anonymize Stack Trace icons checked.
- Cancel sending ('Don't send')
- Open Preferences - General - Error Reporting
- Change name and email, deselect both anonymize fields and select enable debug mode
- Log error again and open details view
- Verify: name end email of REPORT are the new configured values
- Verify: No messages replaced by HIDDEN
- Verify: second stackframe
at any.third.party.Clazz.thirdPartyMethod(Clazz.java:42)
is not anonymized - Verify: Anonymize Messages and Anonymize Stack Trace icons not checked.
Disable
- Start with default settings
- Log Error
- Click disable in upcoming popup
- Log Error again
- Verify: No error popup
- Verify: Both errors in the error log
Temporary Disable
- Start with default settings
- Log Error
- Wait for popup fade-out
- Log Error again
- Log MS Error
- Verify: No further popups
- Restart without cleaning workspace
- Log ClassNotFound
- Verify: Configure popup shows
Temporary Disable 2
- Start with default settings
- Log Error
- Use 'x' to cancel the popup
- Log Error again
- Log MS Error
- Verify: No further popups
- Restart without cleaning workspace
- Log ClassNotFound
- Verify: Configure popup shows
Report skipped
- Set the debug option to false for this test
- Start with default settings
- Log Error
- Confirm all settings and use 'x' to cancel the report preview popup
- Log Error again
- Verify: No further popups
- Log MS Error
- Verify: Popup opens and both errors visible in the preview dialog
Report skipped 2
- Set the debug option to false for this test
- Start with default settings
- Log Error
- Confirm all settings and wait until the report preview popup fades out
- Log Error again
- Verify: No further popups
- Log MS Error
- Verify: Popup opens and both errors visible in the preview dialog
Disable by system parameter
- Start with the VM argument
-Dorg.eclipse.epp.logging.aeri.skipReports=true
- Verify: No startup-progress and download job visible in progress view
- Log Error
- Verify: No upcoming error popups
- Verify: Error log contains only the error but no predicate debug output
- Verify: .metadata/.plugins/org.eclipse.epp.logging.aeri.ide/* not created
Multistatus Handling
- Start with default settings
- Log MS Error
- Open the details-dialog for the error
- Verify: 4 status objects logged, each with a different message
UI Freeze
- Start with default settings
- In Preferences-General-UI Responsiveness check the Detect periods of unresponsive UI checkbox and save the settings
- UI Freeze
- Open the details view
- Verify: Multiple status objects, message of the first one has suffix [n child-status duplicates removed by Error Reporting]
CoreException Handling
- Start with default settings
- Log CE Error
- Open the details view
- Verify: First status with message: Core-Exception outer status
- Verify: Second status with message: Core-Exception inner status [detached from CoreException of Status 'Core-Exception outer status' by Error Reporting]
No UI Deadlock
- Start with default settings
- Log Error and configure system, close error popup
- Test UI Deadlock
- Confirm first dialog ('Test lock')
- Verify: Second dialog opens ('No lock')
- Verify: Error popup shows up
- Verify: Eclipse interface still responsive
Error Severity
- Start with default settings
- Log Error
- Open the details view
- Verify: severity is UNKNOWN
- Change the This error's severity is... combobox value
- Verify: The report severity reflects the setting of the combobox (true/false)
Report Processors
- Start with default settings
- Log Error
- Open the details view
- Verify: Extended Classpath Analysis not selectable and all other processors disabled.
- Enable all possible processors
- Verify: Section in the preview are created for each processor
- Edit one section and change the text to another value
- Verify: Reset option visible for the edited section
- Reset the edited section
- Verify: Section reset to previous state and reset option no longer visible
Wiring Analysis
- Start with default settings
- Log ClassNotFound
- Verify: In the report details dialog, the preview field should contain a section like:
Extended Classpath Analysis The problematic package ‘org.eclipse.epp.logging.aeri.core.util’ may originate in the following bundles: org.eclipse.epp.logging.aeri.core 2.0.3.qualifier, imported by: org.eclipse.epp.logging.aeri.ide 2.0.3.qualifier
- Disable and enable the Extended Classpath Analysis icon.
- Verify: The section is removed and added accordingly to the icon state
Problem State Dialog
- Start with default settings
- Log ClassNotFound
- In the report details dialog, open the problem state dialog (info icon)
- Verify: Server message shown and additional information request for the wiring analysis visible