Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Why does RQM execution variables pass only null values to RFT using IVariablesManager

I have connected RQM to RFT via the default adapter.

On RQM, I have a test case and some test scripts for which I have created some execution variables at test case level.

The RQM successfully runs the RFT test on the local machine on which RFT is running.

The problem is that any reference to the execution variables from RQM only returns null values.

I am using the IVariablesManager interface.

The sample code is shown below.

What could be the problem?

Why is RQM passing only null values for the execution variables to RFT test scripts?

code below: //RFT Script code below


import com.rational.test.ft.script.*;

public class QueryScript extends QueryScriptHelper
{
//main or starting method in RFT
public void testMain(Object[] args){
    //Call the method that retrieves the execution variables
    getRQMVariable();
}

public void getRQMVariable(){
    try{
        IVariablesManager vm = getVariablesManager();
        IParameter _query = vm.getInputParameter("query");
        logInfo("Grab value of  RQM query : " + _query.getValue() ); 
    }
    catch(Exception e){
        logInfo("Exception " + e.getMessage()+ " While fetching Execution variable input varaibles");
    } 
}

        

}


Test case variable shown below:


0 votes

Comments

Can you provide more details on how you configure the execution variables in RQM?  Also, can you attach the sample code? 

Hello Paul. Thanks for the reminder.
I have updated the context as requested.
Execution variables were created under the test case. e.g. variable name was "query" and value was "Select * from table", without the quotes. Thanks in advance



One answer

Permanent link
Hi,

RFT adapter first reads the execution variables from RQM execution task and then pass those variables to RFT application via command line arguments. I will suggest to check with RFT team or open a defect against RFT for this issue.
Also if possible, can you please check, if the execution variables are working fine with RQM Command Line Adapter. If it is, then mostly this issue will be from RFT side.
Please check following help document about how to use execution variables with RQM Command Line Adapter -

Please let me know, if you have any questions.
Thanks,
Vijay

0 votes

Comments

Thanks for the suggestions. I would give the command line a try to see If I get something. If not not I will escalate it as a defect.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 21 '18, 4:59 a.m.

Question was seen: 1,661 times

Last updated: Sep 25 '18, 8:08 a.m.

Confirmation Cancel Confirm