You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
>>>
The text was updated successfully, but these errors were encountered:
Documentation
Clarify wich values are valid for call
api_tcase_report
TCs
The text was updated successfully, but these errors were encountered: