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: 386, Answers: 64)
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: 807)
Answered on June 8, 2016 7:51 pm
That's exactly what I needed! Thanks!
( at June 8, 2016 7:51 pm)
@Michaeldx Kindly share the file, if it is still with you. Searching for a solution to pass a value from my .vbs script to the UFT test.
( at January 28, 2023 6:16 am)

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top