It's all about the answers!

Ask a question

Passing built-in variable to HP Unified Functional Testing (UFT) Adapter

Qaiser Islam (31297074) | asked Mar 03 '16, 9:57 a.m.
I configured HP Unified Functional Testing (UFT) Adapter with CLM 6.0.1. But while creating scripts when i select type HP QTP 11.x i am not able to see Execution Variable section in left side pane. How can i pass built in variable?

One answer

permanent link
Yajuvendra Sankhala (111) | answered Mar 07 '16, 2:11 a.m.

We cannot pass execution variable at test script level for HP QTP/UFT type test script in RQM. But we can

pass the execution variable to RQM QTP/UFT Adapter at test case level.

Please follow the below steps:

1.     1. Create test script of type HP QTP Professional 11.x  and add it to the test case

Clic2. Click on Execution Variable option in left pane of Test Case window

3.     3. Execution Variable Window will open, now click on Create Execution Variable button

4.     4. Create execution variable window will open, Add the variable name with the prefix

env_  (Example:env_<nameOfVariable>) with same name as defined in QTP/UFT script in Name textbox,

5.     5. Insert the value of variable in value textbox

6.     6. Save test case

As built_in variables are type of environment variable in QTP/UFT, we can pass them as well, but we cannot modify built_in variables using execution variables.

We can only modify or initiate User Defined environment variables using RQM execution variable.

Qaiser Islam commented Mar 07 '16, 7:27 a.m.

you meant that if i need RQM_TESTCASE_WEBID in my UFT script, i have to pass the value manually at test case level by user defined variable?

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.