Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api_tcase_report, clarify valid values for new TestCase status #57

Open
netzulo opened this issue Jul 30, 2018 · 0 comments
Open

api_tcase_report, clarify valid values for new TestCase status #57

netzulo opened this issue Jul 30, 2018 · 0 comments

Comments

@netzulo
Copy link
Owner

netzulo commented Jul 30, 2018

Documentation

Clarify wich values are valid for call api_tcase_report

$tcaseStatusCode['passed']='p'; // passed
$tcaseStatusCode['blocked']='b'; // blocked
$tcaseStatusCode['failed']='f'; // failed
$tcaseStatusCode['wrong']='w'; // The status code (w) provided is not valid!
$tcaseStatusCode['departed']='d'; // The status code (d) provided is not valid!

TCs

>>> tlm.api_tcase_report(external_id="qatl-2", tplan_id=5, build_id=5, platform_id=2, status="f")
2018-07-30 15:12:01,543 - qatestlink - INFO - POST request:
2018-07-30 15:12:01,686 - qatestlink - INFO - POST response:
2018-07-30 15:12:01,687 - qatestlink - INFO -     status_code=200
RTCase: id=118, status:bool=True, operation=reportTCResult,overwrite=True, message=Success!
>>> tlm.api_tcase_report(external_id="qatl-2", tplan_id=5, build_id=5, platform_id=2, status="b")
2018-07-30 15:12:28,012 - qatestlink - INFO - POST request:
2018-07-30 15:12:28,141 - qatestlink - INFO - POST response:
2018-07-30 15:12:28,141 - qatestlink - INFO -     status_code=200
RTCase: id=119, status:bool=True, operation=reportTCResult,overwrite=True, message=Success!
>>> tlm.api_tcase_report(external_id="qatl-2", tplan_id=5, build_id=5, platform_id=2, status="p")
2018-07-30 15:12:49,845 - qatestlink - INFO - POST request:
2018-07-30 15:12:49,953 - qatestlink - INFO - POST response:
2018-07-30 15:12:49,953 - qatestlink - INFO -     status_code=200
RTCase: id=120, status:bool=True, operation=reportTCResult,overwrite=True, message=Success!
>>> tlm.api_tcase_report(external_id="qatl-2", tplan_id=5, build_id=5, platform_id=2, status="w")
2018-07-30 15:19:07,862 - qatestlink - INFO - POST request:
2018-07-30 15:19:07,991 - qatestlink - INFO - POST response:
2018-07-30 15:19:07,991 - qatestlink - INFO -     status_code=200
RTCase: id=None, status:bool=None, operation=None,overwrite=None, message=The status code (w) provided is not valid!
>>> tlm.api_tcase_report(external_id="qatl-2", tplan_id=5, build_id=5, platform_id=2, status="d")
2018-07-30 15:19:14,702 - qatestlink - INFO - POST request:
2018-07-30 15:19:14,787 - qatestlink - INFO - POST response:
2018-07-30 15:19:14,788 - qatestlink - INFO -     status_code=200
RTCase: id=None, status:bool=None, operation=None,overwrite=None, message=The status code (d) provided is not valid!
>>> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant