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.Test that the
Yes, share information
is disabled and theEmail
box is outlined in red until a valid email (something@something.somthing
) is entered in theEmail
box.In the
Name
box enterPrivate
and in theEmail
box enterprivate@private.com
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 button 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
checkboxClick the
Don't share any information
buttonCheck 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 tickedIn the
Name
box enterPublic
and in theEmail
box enterpublic@public.com
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
Tick the
Remember Me
checkboxClick the
Yes, share information
buttonCheck 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 shared contact details from test 2 should be displayed and the
Remember Me
checkbox tickedMake sure the hyperlink to the privacy policy works
In the
Name
box enterPrivate2
and in theEmail
box enterprivate2@private.com
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 checkedClick the
Don't share any information
buttonYou 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 shared contact details from test 2 should be displayed and the
Remember Me
checkbox tickedClick the
Show More Details
button to open the Show More Details dialog. This should show user details such as OS.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 theEmail
box enterpublic2@public.com
Tick the
Remember Me
checkboxMake sure the
Continue
radio button is checkedClick the
Yes, share information
buttonYou 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@public.com
email from test 4 should be displayed in the email box and theRemember Me
checkbox ticked.In the Name box enter
Public3
and in theEmail
box enterpublic3@public.com
Input some additional information into the main textbox. Try to include characters that need to be escaped such as
"
Tick the
Remember Me
checkboxMake sure the
Terminate
radio button is checkedClick the
Yes, share information
buttonMantid 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 shared contact details from test 5 should be displayed and the
Remember Me
checkbox tickedClose the error reporter and MantidWorkbench
Open your
Mantid.user.properties
file
Add the incorrect rooturl
errorreports.rooturl = https://fake.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
Enter a fake email address into the
Email
boxClick 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
Click the
Don't share any information
button and close MantidWorkbenchRemove the line added to the
Mantid.user.properties
file
Test the error reporter with any weird and wonderful ideas. Note any problems with Workbench or these testing instructions.
Thanks for testing!!!