Pass values from .vbs file to UFT

Question ID: 106899

I have a .vbs script that launches my UFT tests and runs them.

How can I pass a value from my .vbs script to the UFT test?

Marked as spam
Posted by (Questions: 348, Answers: 26)
Asked on June 8, 2016 7:47 pm
Answers (1)
Private answer

In order to do this, you have to have test input parameters linked to the action input parameters. Then you have to get the parameter collection, change the parameter value, then run the test passing the parameter collection to UFT.

I have created an example test that does this. It is attached to this post. Just extract VBS_Parameters test folder and the runParams.vbs file. You will need to modify the .vbs line 7 and edit the location of the test:

uftApp.Open ''VBS_Parameters'', False, False

Then, execute the .vbs file.

[1]: /storage/temp/

Marked as spam
Posted by (Questions: 16, Answers: 759)
Answered on June 8, 2016 7:51 pm
That's exactly what I needed! Thanks!
( at June 8, 2016 7:51 pm)