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

send back the result files to RQM while using RQM command line Adaptor.

 I am using RQM command line adaptor to run a test. It is successful and receiving the scheduled test id. I am using  another utility to poll the test status and once it is complete the result files are downloaded in the same location.

I am running this utility in a batch file. As a result of this batch execution i have to send back the files to RQM from 
the location where it stored. 


How to send back the result files to RQM?.

0 votes



One answer

Permanent link
As described in this article, you can attach files to test result by adding file labels and file paths to a text file which RQM provided through "qm_AttachmentsFile" environment variable.

Integrating your test tools with IBM Rational Quality Manager using the command-line adapter
https://jazz.net/library/article/809

If you are using windows .bat file, and your test generates a test result file into C:/test/result.dat, then inserting the following logic will work.

echo TestResultData=C:/test/result.dat >> %qm_AttachmentsFile%

!! FIXED (removed the double-quote marks) after the reply


0 votes

Comments

1) shall i use like below?

echo "TestResultData=C:/test/*.zip" >> %qm_AttachmentsFile%

2) when i tried the above one in a batch file it showed like below in result details of RQM

C:\ATS\RQMCommandLineAdapter>echo "TestResultData=C:/ATS/ResultFiles/ATS_Test4.zip"  1>>C:\Users\e537886\AppData\Local\Temp\QMAdapter8456976286409256132.attach 
    
Is it the right behaviour?
    

1) No. You cannot use wildcard (*). You must specify actual file path. If you have multiple files, you should write loop logic in the bat file.

2) Yes, it seems working for me. You should see the "TestResultData" file link on the RQM's Execution result page, just below the xxxxx.out (the result detail you mentioned) and xxxxx.err file link.


 I am using this command
echo "TestResultData=C:/ATS/ResultFiles/ATS_Test4.zip" >> %qm_AttachmentsFile% in my batch file.

It is not associating the file and showing it as a link below .out and .err file.


 In command prompt i am getting the below message

C:/ATS/ResultFiles/ATS_Test4.zip is not an existing file nor a valid URI link. Unable to associate with execution link.


But the files are available in the path.

Removing the quotes in the command is working fine.


Referred this link  - https://jazz.net/forum/questions/114998/unable-to-attach-files-or-links-to-execution-results-of-test-case.


That's fine. Thank you for additional information.
I'm sorry for confusing you.

 Thanks Shuhichi. Your inputs helped me to dig deeper and get right things.

showing 5 of 7 show 2 more comments

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
× 10,938

Question asked: Aug 04 '15, 6:43 a.m.

Question was seen: 3,538 times

Last updated: Aug 14 '15, 11:12 a.m.

Confirmation Cancel Confirm