Stop Method
Stops the run session.
Visual Basic
Public Sub Stop() 
To make it possible to stop a run session from an automation script, you must set the argument of the Test.Run method to False. If you choose to do this, make sure that all automation steps following the Run statement can run successfully even before the UFT One run session ends.
See Also