JeanL
14 years agoContributor
Set StopOnError in script
Hello,
Is there any other way to set the value of StopOnError in script than Project.TestItems.Current.StopOnError = 0.
This isn't working if I run a subroutine without creating testitem (e.g. I use Run Current Routine).
I would like to do Regions.Items(region).Check in loop few times before stopping the execution. So I don't want that the execution stops in first check if it's not true. I don't want to turn errors off completely. I could use Log.Enabled = false, but then I don't get the log messages wheter the check has succeeded or not.
I would use Regions.Compare method where I can specify the failure message type, but with that method I can't use masks.
Edit. I just realized that I can't use Project.TestItems.Current.StopOnError method to set the value. But the question still remains, is there a way to do this?
Is there any other way to set the value of StopOnError in script than Project.TestItems.Current.StopOnError = 0.
This isn't working if I run a subroutine without creating testitem (e.g. I use Run Current Routine).
I would like to do Regions.Items(region).Check in loop few times before stopping the execution. So I don't want that the execution stops in first check if it's not true. I don't want to turn errors off completely. I could use Log.Enabled = false, but then I don't get the log messages wheter the check has succeeded or not.
I would use Regions.Compare method where I can specify the failure message type, but with that method I can't use masks.
Edit. I just realized that I can't use Project.TestItems.Current.StopOnError method to set the value. But the question still remains, is there a way to do this?