Retrieving running RQM Test Case Name from RFT
I have an RFT script which many test cases use. The script needs to determine which test case RQM is running in order to retrieve the correct data to execute. In 2.0, I was able to retrieve the test case name simply by getting the system property "rqm.task" and getting the <testCaseName> element. In 3.0, however, this element seems to have been removed from the rqm.task xml file.
To try to help myself, I thought I would use the executionWorkItem href listed in this xml to find the testcase href. Then I could find the test case name from that. This is all working, however, currently I have to use my own user ID and password (LDAP) to authenticate to RQM. Many other users use this script and I would like to avoid having them put their username/password somewhere in a config file.
Is there any way to use the current adapter's credentials via API? Is there any other way to get the test case name (or ID) through some other means? Is there any way the testCaseName could just be put back in the rqm.task file? :wink:
To try to help myself, I thought I would use the executionWorkItem href listed in this xml to find the testcase href. Then I could find the test case name from that. This is all working, however, currently I have to use my own user ID and password (LDAP) to authenticate to RQM. Many other users use this script and I would like to avoid having them put their username/password somewhere in a config file.
Is there any way to use the current adapter's credentials via API? Is there any other way to get the test case name (or ID) through some other means? Is there any way the testCaseName could just be put back in the rqm.task file? :wink:
One answer
This is a known regression that has been fixed in RQM 3.1.0.2.
Please see the following work item for additional details:
60673: Include test case name information in rqm system task xml file
Please see the following work item for additional details:
60673: Include test case name information in rqm system task xml file