allankp / pytest-testrail

pytest plugin for integration with TestRail, for creating testruns and updating results
MIT License
96 stars 124 forks source link

Test run is not added to the configured plan #143

Open tiborb opened 3 years ago

tiborb commented 3 years ago

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

clifter1 commented 3 years ago

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 commented 3 years ago

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