Run Error Dialog- Not able to Skip the statement
I am loading vbscripts in my UFT actions.
In one of vbscript, I am setting up text and there is object identification error occurs, So QTP shows me error dialog box with Retry STOP SKIP DEBUG and HELP. When i click on SKIP it stops the execution.
I am not able to understand why this is happening. I have put msgbox statement just after that statement("setting up text") so ideally it should be showing me that msgbox when i click on SKIP but it stops execution.
I want it to skip that statement on error and continue with next steps after object identification error. The type of file is vbs loaded in UFT test using executefile.
In the Test Settings , Run options I have show pop up box set for Run time error setting
Instead of loading it at runtime try adding the VBS lib as a resource.
But then i will not have all my VBS in global scope. Is there any other way yo have them as resource and also available in global scope?
I am using UFT 12.02
In UFT test I have only 1 action, In it i am loading all my vbs files using Executefile. In those all vbs files there are classes.
Now when comment executefile statement and add all my vbs files resource by Adding them through File->Settings-Run dialog,So in the same action when i am trying to create objects of that class it is throwing class not defined error. I am getting the same error when using loadfunctionlibrary
Libraries that are added as a resource do have global scope. Just be mindful of the order you load them. If one of your libraries references code in another library then they have to be loaded in the correct order. UFT loads the list from bottom to top. It sounds like you just need to re-arrange them. Also, I'm willing to bet that the issue you're having with skipping the line of code is due to your use of classes. Classes do not work well in the UFT debugger. Classes in VBScript usually do more harm than good, in my experience.