Call this method at the end of the test. This terminates the sequence of checkpoints, and then waits synchronously for the test results and returns them.
If your tests can run concurrently and you don't need to wait for the results before starting the next test, then it is highly recommended that you call the method Eyes.CloseAsync instead of this method. the call to CloseAsync ends the test without waiting for the results and the next test can start immediately, greatly reducing overall test time. When you use CloseAsync, you obtain the results by calling GetAllTestResults after all the tests have run.
TestResults result = eyes.Close(throwEx); TestResults result = eyes.Close();
- Type:bool [Optional : default = true ]
- If this parameter has a value of true, then if there are new, missing, or mismatched steps, an exception will be thrown. If the parameter is set to false, then an exception will not be thrown for the above cases. If the parameter is not passed, then it is as if a true value was passed.