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:
Comments
Paul Slauenwhite
FORUM MODERATOR / JAZZ DEVELOPER Sep 24 '18, 6:21 a.m.Can you provide more details on how you configure the execution variables in RQM? Also, can you attach the sample code?
Obed Tetteh
Sep 24 '18, 7:29 a.m.