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

How to get RQM server information from a command line adapter execution

In my environment we have two RQM servers: a production server which executes production level automations and is used for "official" test case tracking and reporting, and a development server which is used for testing code updates and new automations, and for verifying software update compatibility.  I am currently trying to write common utility code for providing basic REST/OSLC support to Python executions run by a command line adapter connected to one of these two servers.  Since my code cannot guarantee which server will be associated with the execution at development time, the executing server needs to be determined at run time.  However, short of explicitly passing the server information as an execution variable (which adds a user dependency I'd rather not have to deal with), I cannot find any way to determine which server the execution is associated with based on the execution/environment information provided by the adapter.

Other adapters provide this information by creating a temporary file which contains the full RQM Task information for the execution.  However, this feature seems to be specific to those adapter implementations and is not provided with the command line adapter.  Does anyone know of a way to programatically determine the server that is managing a command line adapter execution from the execution itself?  


0 votes



One answer

Permanent link
Hi Aaron,

Would two adapters (dev and prod) work for you? You can pass in each adapter by name or webId for script execution.

Cheers,
Will

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: Jul 08 '13, 3:17 p.m.

Question was seen: 5,105 times

Last updated: Jul 18 '13, 4:46 p.m.

Confirmation Cancel Confirm