I am automating a Test of a VbScript through HP UFT. I want to submit to the script several Variables and then capture the output of my Script.
So far i have started the script with a click from the user-interface. However this does not allow me to get information back from the test case.
I think i have several options:
EDIT:
I have now integrated this script into UFT itself. However the script starts another Application. From the vbscript this runs fine. However from within UFT i get a "General run error". My code is as follows:
Set App = CreateObject( "CANoe.Application")
Set Measurement = App.Measurement
WScript.ConnectObject App, "App_"
Albeit the Createobject
fails already. From within VBscript everything is OK.
But I have no clue as to how I get the output of my script back into my test case.
Can someone enlighten me?
Try changing the variable name to a word OTHER THAN 'App', I ran into this issue previously and mine worked when I changed the variable name.
For example:
Set newApp = CreateObject( "CANoe.Application")