Cannot get correct test result by RQM command line adapter
Hi,
I have successfully configured RQM command line adapter on my Windows test machine. I am able to run my test script in RQM by calling a batch file on that test machine. The test script can be executed successfully. The problem I have is that the progress bar always hangs somewhere in RQM and I can see a line like "Status: Calling comparer utility..." in both RQM and the start command line adapter window on my test machine. As a result, the test result is always unknown (a question mark) in RQM even if the test script execution is successful. I am aware of the following RQM command line adapter configuration guide. This is the batch file I am using. run.bat @echo off rem start BVT test script staf local stax execute file {STAF/Env/Home}/testcase/itfimBVT_existingWAS_init.xml wait returnresult exit /b 0 Can anybody shed a light on how to indeed make my batch file to return an exit code which is recognizable by RQM so that I can see the correct test result in RQM? Thanks. |
One answer
I'm not sure where "Status: Calling comparer utility..." is coming from. What version of RQM are you using? In either case the quote you have from the adapter configuration guide seems correct. In your case your batch script always returns 0 via "exit /b 0" so the result status will always be Pass. I see you call a separate staf command and I believe your run.bat waits for that command to return. If you want a status other than Pass, you would need to remove the hardcoded "exit /b 0" from run.bat and come up with a way for run.bat to return the status code returned from the staf command it invoked.
|
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.