How do I read the name of the Test Environment of the currently executing RQM test from RFT test script ?
Accepted answer
Hi Paul,
This was introduced in 4.0. https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/35822
Thanks,
Deepa
One other answer
You could use the built-in execution variables to obtain information about the test environment. RQM_CONFIGURATION execution variables given below are test environment related.
https://jazz.net/library/article/809 has a section on how to use the built in variables in a Command Line script through an environment variable. These built-in variables should be available within the RFT script similarly.
Thanks
Deepa
Built-in execution variables
In certain cases your test might need to obtain information about the test execution environment it is running in, such as the name of the test suite or the test case that is being run. Built-in execution variables provide environment information. To enable built-in variables, select the Include built-in variables check box in the Execution Variables section of the test script editor.
RQM_TESTSCRIPT_NAME
RQM_TESTSCRIPT_WEBID
RQM_TESTCASE_NAME
RQM_TESTCASE_WEBID
RQM_TESTSUITE_NAME
RQM_TESTSUITE_WEBID
RQM_TESTPLAN_NAME
RQM_TESTPLAN_WEBID
RQM_TESTPHASE_NAME
RQM_TESTPHASE_WEBID
RQM_TESTCASE_EXECUTIONRECORD_NAME
RQM_TESTCASE_EXECUTIONRECORD_WEBID
RQM_SUITEEXECUTIONRECORD_NAME
RQM_SUITEEXECUTIONRECORD_WEBID
RQM_PROJECT_NAME
RQM_PROJECT_ALIAS
RQM_BUILDRECORD_NAME
RQM_BUILDRECORD_WEBID
RQM_BUILDDEFINITION_NAME
RQM_BUILDDEFINITION_WEBID
RQM_CONFIGURATION_NAME
RQM_CONFIGURATION_CPU
RQM_CONFIGURATION_BROWSER
RQM_CONFIGURATION_ADAPTER
RQM_CONFIGURATION_DATABASE
RQM_CONFIGURATION_APPLICATIONSERVER
RQM_CONFIGURATION_MANAGEMENTAGENT
RQM_CONFIGURATION_OS
Comments
Hi Deepa,
That sounds like a good solution. Unfortunately I can't see the checkbox for including built-in variables. I looked at both command line adapter and Functional Tester scripts and it wasn't there in either case. It would have to be available for Functional Tester scripts. I'm using Rational Quality Manager 3.0.1.6. Do you know if I need a newer version of RQM to access this feature.
thanks,
Paul