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

How to validate python code written for automation in RQM?

I have written a test script using python which needs to be automated. When I run it through Command Line Adapter the test-case executes successfully. This is executing successfully because the code has no syntax errors.But, what if I need to validate certain aspects of the code, i.e. whether it has passed or failed w.r.t a particular test case. How does one do that?

0 votes


Accepted answer

Permanent link

You would make sure that your python code exited with a non zero return to indicate an error.  You can look at the config sample I believe indicates various types of return codes as well.  Also anything you write to stdout or stderr is captured by the command line adapters and is stored as part of the results so you can indicate what was successful or what failed there as well.

Rfudge A selected this answer as the correct answer

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: Mar 20 '17, 3:22 a.m.

Question was seen: 2,090 times

Last updated: Mar 20 '17, 2:01 p.m.

Confirmation Cancel Confirm