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

How do I read the name of the Test Environment of the currently executing RQM test from RFT test script ?

In my Rational Functional Tester Java script I want to be able to read the Test Environment of the currently executing RQM test case. Is there some way of doing this ?

0 votes


Accepted answer

Permanent link

Hi Paul,

This was introduced in 4.0. https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/35822

Thanks,

Deepa

Paul Sandie selected this answer as the correct answer

0 votes


One other answer

Permanent link
Hi Paul,

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.

When this check box is selected, the following additional execution variables are created:
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
		

0 votes

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

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
× 12,025

Question asked: Oct 28 '13, 11:43 a.m.

Question was seen: 4,474 times

Last updated: Oct 29 '13, 10:46 a.m.

Confirmation Cancel Confirm