It's all about the answers!

Ask a question

Programmically stop a test suite run in the command line adapter.


Anthony Howe (133) | asked Mar 11 '13, 4:23 p.m.
We use both the RFT adapter and the Command-Line Adapter. We have as part of the test suite as test script that check-outs a given branch and builds the binaries before testing. Is there an exit code or other method to signal that the test suite run should stop in the event of build errors?

Specifying "Stop suite execution if any test does not pass " isn't sufficient since if the build test case passes we do not want subsequent tests that fail to interrupt the test suite run. We want script control of a test suite run were "soft fails", typically normal failures do not interrupt, while "hard fails" would stop a test suite run.

Can this be done for both CLA and RFT?


One answer



permanent link
Vijay Patil (4813) | answered Mar 12 '13, 10:17 a.m.
JAZZ DEVELOPER
Hi Anthony,

Unfortunately, there is no other option than "Stop suite execution if any test does not pass " to stop suite execution from adapter.

If execution request for one of the step is cancelled, then the whole suite execution gets cancelled. But there is no way to mark execution request cancelled from CLA or RFT (any adapter).

I would suggest to open an RFE in RQM with your use-case.

Thanks,
Vijay

Comments
Anthony Howe commented Mar 12 '13, 2:44 p.m.

Is there any explanation some place as to how "Stop suite execution if any test does not pass" is implemented? Maybe I can kludge a solution until such time as a feature is implemented.

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.