| || |
settings. on error go to next line.stopping
I want to use rhe EXITxxx functioms such as
There hanve been many posrs on this board about how they only work in Actions. I saw a post saying that On Error Resume next makes rhe exit functions not work. A solutuon is to go into settings. In the run tab, I selected on erroe go to the next li e of code. Now the Exit fumctions work even in a few levels deep. I put in a functuon call call at the end of each function. I aworked on a large frame work that took the same approach and it surprisingly worked well.
Now I am noticing in rare occasions such as setting an edit box with more chars than it can hold causes the script to stop with a dialog box showing the stop, skip, debug buttons.
Why does QTP work only most of the time. Every feature is a little bit broken. It seems as if HP just gets features to work enough to put in advertising material. Maybe the internals are more complicated than I can imagine.
The exit functions are broken with on error resume next turned on.
It shows the debug window when the settings say it should not.
There are lot such issues open. But the problem is that HP doesn't take them too seriously. Here is one worst example. Create a function with x=2/0 in a library file. Use On error resume next and call the function in your test and see what happens. You will be surprised