Forcing maintenance mode
Posted: Mon Aug 17, 2020 7:12 pm
I am using some custom code to report some failures while comparing a large data table. I concat all of the failures into one string, and report that single string as a Report.Fail.
I know the Maintenance Mode cannot help me resolve the actual failures I am seeing, but I would like to pause the test at the point of the report failure, but only when Maintenance Mode is turned on.
Also, I don't want to throw a real exception, because in this instance, I want the test to continue on fail, instead of shunting to the teardown.
Is there a simple way to trigger maintenance mode in user code?
I know the Maintenance Mode cannot help me resolve the actual failures I am seeing, but I would like to pause the test at the point of the report failure, but only when Maintenance Mode is turned on.
Also, I don't want to throw a real exception, because in this instance, I want the test to continue on fail, instead of shunting to the teardown.
Is there a simple way to trigger maintenance mode in user code?