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
SegfaultAlgorithm) or a soft crash (bring up an error report pop-up without also closing Mantid, by LoadingTraining_Exercise3a_SNS.nxsavailable from the Training Course Data and running theNormaliseToMonitorAlgorithm. 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
Segfaultalgorithm, 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 Detailsbutton 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 informationis disabled and theEmailbox is outlined in red until a valid email (something@something.somthing) is entered in theEmailbox.In the
Namebox enterPrivateand in theEmailbox enterprivate@private.comInput 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 MecheckboxClick the
Don't share any informationbuttonCheck with the database admin that an error report was not sent.
Open MantidWorkbench
Cause a crash by running the
Segfaultalgorithm, 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 Mecheckbox should NOT be tickedIn the
Namebox enterPublicand in theEmailbox enterpublic@public.comInput some additional information into the main textbox. Try to include characters that need to be escaped such as
"Tick the
Remember MecheckboxClick the
Yes, share informationbuttonCheck 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.nxsRun the
NormaliseToMonitoralgorithmThis 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 Mecheckbox tickedMake sure the hyperlink to the privacy policy works
In the
Namebox enterPrivate2and in theEmailbox enterprivate2@private.comInput some additional information into the main textbox. Try to include characters that need to be escaped such as
"Make sure the
Continueradio button is checkedClick the
Don't share any informationbuttonYou 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.nxsRun the
NormaliseToMonitoralgorithmThis 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 Mecheckbox tickedClick the
Show More Detailsbutton 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
Namebox EMPTY and in theEmailbox enterpublic2@public.comTick the
Remember MecheckboxMake sure the
Continueradio button is checkedClick the
Yes, share informationbuttonYou 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.nxsRun the
NormaliseToMonitoralgorithmThis should cause an error reporter dialog saying Mantid has thrown an unexpected exception
Only the
public2@public.comemail from test 4 should be displayed in the email box and theRemember Mecheckbox ticked.In the Name box enter
Public3and in theEmailbox enterpublic3@public.comInput some additional information into the main textbox. Try to include characters that need to be escaped such as
"Tick the
Remember MecheckboxMake sure the
Terminateradio button is checkedClick the
Yes, share informationbuttonMantid 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.nxsRun the
NormaliseToMonitoralgorithmThis 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 Mecheckbox tickedClose the error reporter and MantidWorkbench
Open your
Mantid.user.propertiesfile
Add the incorrect rooturl
errorreports.rooturl = https://fake.mantidproject.organywhere 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
EmailboxClick the
Yes, share informationbutton 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 informationbutton and close MantidWorkbenchRemove the line added to the
Mantid.user.propertiesfile
Test the error reporter with any weird and wonderful ideas. Note any problems with Workbench or these testing instructions.
Thanks for testing!!!