Error Reporter Testing¶
Error Reporter test¶
Preparation
Ensure that Report usage data is checked in the First Time Setup screen
Below you will be asked to produce a hard crash (by running the
Segfault
Algorithm) or a soft crash (bring up an error report pop-up without also closing Mantid, by LoadingTraining_Exercise3a_SNS.nxs
available from the Training Course Data and running theNormaliseToMonitor
Algorithm. If one or both of these methods to crash Mantid no longer works, then ask other developers for a suitable method and update these instructions.Make sure the location of this file is included in your search directories. Full instructions are available online.
These tests should be run with someone who has access to the error reports database. Please contact the developer managing support before you run these tests.
Time required 10 - 20 minutes
Open MantidWorkbench
Cause a crash by running the
Segfault
algorithm, Workbench should closeThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
Make sure the hyperlink to the privacy policy works
Click the Show More Details button to open the Show More Details dialog. This should show user details such as OS. The python stacktrace should be empty as the Workbench unhandled exception occurred in C++. Close this dialog.
Enter some text in the Name box; make sure the Share non-identifiable information button gets greyed out
In the Name box enter Private and in the Email box enter private
Input some additional information into the main textbox. Check that the character count label updates as you type, copy paste etc.
Check that the character count label changes to red and the buttons to send the report are disabled if you exceed the character limit.
Check that these changes revert when brining the number of characters back within the limit.
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
Tick the Remember Me checkbox
Click the Don’t share any information button
Check with the database admin that an error report was not sent.
Open MantidWorkbench
Cause a crash by running the
Segfault
algorithm, Workbench should closeThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
The Private contact details from Test 1 should NOT be displayed and the Remember Me checkbox should NOT be ticked
In the Name box enter Public and in the Email box enter public
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
Tick the Remember Me checkbox
Click the Yes, share information button
Check with the database admin that an error report was sent WITH the correct name, email and textbox.
Open MantidWorkbench
Load the file
Training_Exercise3a_SNS.nxs
Run the
NormaliseToMonitor
algorithmThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
The Public contact details from Test 2 should be displayed and the Remember Me checkbox ticked
Make sure the hyperlink to the privacy policy works
Enter some text in the Name box; make sure the Share non-identifiable information button gets greyed out
In the Name box enter Private2 and in the Email box enter private2
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
Make sure the Continue radio button is checked
Click the Don’t share any information button
You should be returned to the main Mantid window
Check with the database admin that an error report was not sent.
MantidWorkbench is still open
Load the file
Training_Exercise3a_SNS.nxs
Run the
NormaliseToMonitor
algorithmThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
The Public contact details from Test 2 should be displayed and the Remember Me checkbox ticked
Click the Show More Details button to open the Show More Details dialog. This should show user details such as OS. There should be a python stacktrace as this unhandled exception occurred in Python. Close this dialog.
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
This time, UNTick the Remember Me checkbox
Make sure the Continue radio button is checked
Click the Share non-identifiable information button
You should be returned to the main Mantid window
Check with the database admin that an error report was sent without a name, email or stacktrace, BUT WITH a textbox.
MantidWorkbench is still open
Load the file
Training_Exercise3a_SNS.nxs
Run the
NormaliseToMonitor
algorithmThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
Contact details from before should NOT be displayed and the Remember Me checkbox should NOT be ticked
Enter some text in the Name box; make sure the Share non-identifiable information button gets greyed out
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
Leave the Name box EMPTY and in the Email box enter public2
Tick the Remember Me checkbox
Make sure the Continue radio button is checked
Click the Yes, share information button
You should be returned to the main Mantid window
Check with the database admin that an error report was sent WITH a name, email, stacktrace and a textbox.
MantidWorkbench is still open
Load the file
Training_Exercise3a_SNS.nxs
Run the
NormaliseToMonitor
algorithmThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
Only the public2 email from Test 5 should be displayed in the email box and the Remember Me checkbox ticked. Make sure the Share non-identifiable information button is currently enabled (not greyed out)
Enter some text in the Name box; make sure the Share non-identifiable information button gets greyed out
In the Name box enter Public3 and in the Email box enter public3
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
Tick the Remember Me checkbox
Make sure the Terminate radio button is checked
Click the Yes, share information button
Mantid should shut down
Check with the database admin that an error report was sent WITH a name, email, stacktrace and a textbox.
Open MantidWorkbench
Load the file
Training_Exercise3a_SNS.nxs
Run the
NormaliseToMonitor
algorithmThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
The Public3 contact details from Test 6 should be displayed and the Remember Me checkbox ticked
Close the error reporter and MantidWorkbench
Open your
Mantid.user.properties
file
Add the incorrect rooturl
errorreports.rooturl = https://error.mantidproject.org
anywhere in the file (correct url ishttps://errorreports.mantidproject.org
)This will cause the error reporter to fail to send the report
Open MantidWorkbench
Cause a crash using either of the previous methods
Click the
Yes, share information
button to send the reportA message box should appear informing you that the error report has failed to send
Close the message box and the error reporter should stay open
Check you can still access the additional information
Test the error reporter with any weird and wonderful ideas. Note any problems with Workbench or these testing instructions.
Thanks for testing!!!