Passing parameters to UFT using BatchRunnerCMD

Category:
Question ID: 110129
0
0

Objective: be able to run uft script command line and pass arguments to the test via batch/command line
uftBatchRunnerCMD -source “c:\UFT\Scripts\GUITest2a” -parameter “Parameter1=Hello;Parameter2=Bye”
How do I render these parameters in the test (GUITest2a)?
I have:
1. Right clicked on the actions and added 2 parameters, param1 and param2
2. I am trying to call these parameter in the test as var = Parameter.Item(“Param1”)
3. I am not any values from the command line parameters

Marked as spam
Posted by (Questions: 214, Answers: 22)
Asked on April 29, 2021 12:56 pm
5 views
Answers (1)
0
Private answer

https://admhelp.microfocus.com/uft/en/15.0-15.0.2/UFT_Help/Content/User_Guide/prop_pane_BPT_compParams.htm?Highlight=create%20input%20parameters

Take a look at this guide. It shows how to use parameters with Jenkins, which would be along the same technique as using parameters in the BatchRunner commandline:

https://sumeetkushwah.com/2015/08/25/how-to-pass-uft-test-parameter-values-from-jenkins/#:~:text=For%20creating%20the%20test%20parameters%20in%20UFT%2C%20open,you%20can%20access%20the%20test%20parameter%20by%20using

 

Marked as spam
Posted by (Questions: 2, Answers: 464)
Answered on April 29, 2021 12:56 pm