It's all about the answers!

Ask a question

Using CommandLineAdapters


Andrew Taylor (1111) | asked May 05 '10, 6:32 a.m.
Hi,

I have been playing with the sample CommandLineAdapter that comes with RQM, and have to say I'm not that impressed.

As it uses Runtime.exec(), which isn't a shell, so we can't do any variable replacement and command concatenation (using ; or && for instance).
Runtime.exec() also has many well publicised faults, mainly with it's handling of quotes etc.

I have managed to get around these first stumbling blocks by modifying the java to write out the command line to a temporary file, and execute that with a shell, leaving the Runtime.exec() method to only have "sh script.sh" in it's argument.


How are others using the commandLineAdapter ? Have you created your own version based on the sample one, or does that one suffice for everybody else?

Has anyone else created a SSH adapter (on the server side), so that a java adpater is not required on the client machine, or is this integral to the way that RQM can automate the running of tests, and hence a non-starter from the outset?

I would be interested to hear how others have solved the problem of working this way when there are a lot of automated jobs to run through RQM

thanks in advance,
-Andy

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered May 27 '15, 7:31 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Note: This post is 4+ years old.

Please upgrade to the latest version of RQM (see https://jazz.net/downloads/rational-quality-manager/) and review the product documentation (see https://jazz.net/help-dev/clm/topic/com.ibm.help.common.jazz.calm.doc/com.ibm.help.common.jazz.calm.doc_eclipse-gentopic1.html) and jazz.net resources (see https://jazz.net/help).  If your issue persists, please ask a new question (https://jazz.net/forum/questions/ask), open a defect (see https://jazz.net/mystuff/#tab=workitems), or open a PMR (see http://www-01.ibm.com/support/docview.wss?uid=swg21507639).

Your answer


Register or 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.