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

Setting the build id in the command line adapter

I am using the RQM command line adapter (the version from RQMCommandLineAdapter_3011m3) to automatically run some tests. I would like to associate the test execution record with a particular build so that I can track back failures to the original RTC build. I already have the RTC builds mirrored in RQM using the RTC/RQM connection adapter.

I have looked at the source for the command line adapter and I see that there is a method setBuildId in CommandLineLogResult that I could call. However I am having a problem finding the right id to set in here.

Is this id the build record identifier that can be found using the REST API, or is it some other id?

Someone has also pointed out that there is a line:
#build_id=undefined

in the commandline.properties file provided in the RQMCommandLineAdapter zip file. Can this be used to set the build id. I still need to find out the form of the id to be used here.

Thanks for any help, Colin.

0 votes



3 answers

Permanent link
The RQM Reportable REST API can be used to GET builddefinition and buildrecord (https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op). However, the buildrecord does not have a build ID property. I would suggest using the title property (https://jazz.net/projects/rational-quality-manager/api-doc-3.0/api-files/schemas/qm_xsd/elements/buildrecord_3.html#r9). This is the property that is displayed in the test result editor when a test result is linked to a build record.

In addition, please see the article attached to https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/58909 for more information on setting properties in commandline.properties.

0 votes


Permanent link
Thanks for your quick response Paul - I will give that a go and study the article you mention - it looks like just the sort of information I need to understand the command line adapter.

Colin.

0 votes


Permanent link
I have had a play with this now and thanks to the document I can add a build_id property to the customer properties section of the test execution result.

However what I cannot seem to do is link the build execution result to a build record in the same way you can do in the test result editor. I was hoping to be able to use the CommandLineLogResult.setBuildId() method to set a value, and then RQM will show the test execution result linked to a build record in the same way as I could manually in the test result editor.

Is that what you mean by saying that I should use the title property? The title property in my build results is just something like: 20120112-1701 and so does not include the build definition description.

Thanks Colin.

0 votes

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

Question asked: Jan 16 '12, 5:16 a.m.

Question was seen: 8,759 times

Last updated: Oct 18 '12, 9:31 a.m.

Confirmation Cancel Confirm