pytest-testrail
pytest-testrail copied to clipboard
Test run is not added to the configured plan
Test run is not added to configured plan in TestRail. Invalid test plan_ids are being ignored, valid test plan_ids result in no post at all.
[TESTRUN]
project_id = 41
suite_id = 582
plan_id = 4235
description = 'This is test run from abcd'
[TESTCASE]
custom_comment = 'This is a custom comment'
To Reproduce Steps to reproduce the behavior:
- Configure library as shown above
- Execute pytest using:
python -m pytest <path_to_testfile.py> --testrail - Observe console output
Expected behavior Test is appears in testrail in specified testplan.
Env
- TestRail: 6.7.0.1097
- PyTest: pytest-6.2.1
- OS: Linux
In my testing, plan_id and run_id are used for updating existing test_runs (run_id) or all test_runs within a plan (plan_id)
We need something like a --tr-testrun-milestone and --tr-testrun-plan that will create a test run under a milestone or plan.
Or, the logic is broken and simply needs fixed.
This is a duplicate issue of https://github.com/allankp/pytest-testrail/issues/91