pytest-testrail icon indicating copy to clipboard operation
pytest-testrail copied to clipboard

Test run is not added to the configured plan

Open tiborb opened this issue 4 years ago • 2 comments

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:

  1. Configure library as shown above
  2. Execute pytest using: python -m pytest <path_to_testfile.py> --testrail
  3. 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

tiborb avatar Jan 08 '21 14:01 tiborb

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.

clifter1 avatar Sep 09 '21 15:09 clifter1

This is a duplicate issue of https://github.com/allankp/pytest-testrail/issues/91

clifter1 avatar Sep 09 '21 16:09 clifter1