I am running a batch of tests from a VBScript. The QTP generated error messages are not very easy to interpret for everyone. Is there a way to pass the error from the QTP test to the VBScript? I tried using User-Defined Environment variables - set the value in the test, but cannot be retrieved in the script.
User-Defined Environment variables belong to QTP. Not easy readable outside of it.
Use external Environment file or XML to set value by QTP in run time and read this value from VBscript whenever you need it.
Actually I'm not sure anything I've found so far is going to do what I want;
What I want to do;
Be able to dynamically create variables either in AOM before running a script or during the QTP run (ideally the later) which can then be returned to the AOM script
What I've thought about using so far;
Test Parameters; Can't find a way to dynamically or programmatically create these. Is the GUI the only way?
Environment variables; The AOM only appears to be able to extract the default values of defined variables and not extract at all variables created during the QTP script
The other options I can think of are the Windows Environment Variables (which I've never used and am not sure if i can create during a QTP run), or write out to a temporary file. However I want to be able to update these values during runtime as well.