Skip to content

Add option to disable deletion of test suite/case when upload failsΒ #99

@ian-ann

Description

@ian-ann

What would you like the TestRail CLI to be able to do?

I'd like to have an option not to delete create test suites when test run results failed to be uploaded

Why is this feature necessary on the TestRail CLI?

There are times that the account used is an app account with add/delete/edit role. At the same time, test suites are already available and being maintained. With just 1 error during test run upload, all the test suites that already been created will be deleted together with the test cases, section and test runs which is not a good idea specially if we are running 100+ tests. There is no need to delete the test suite just the test run should be enough for this case.

More details

Below is a sample of failed upload since the initial upload for the run-id has more than test cases/results than previous run.

`Checking project. Done.
Adding missing sections to the suite.
Found test cases not matching any TestRail case (count: 27)
Adding missing test cases to the suite.
Adding test cases: 27/27, Done.
Adding results: 0/76
Error during add_results. Trying to cancel scheduled tasks.

Aborting: add_results. Trying to cancel scheduled tasks.
Adding results: 0/76
Field :results contains one or more invalid results (case C497 unknown or not part of the test run)
Deleted created test cases
Deleted created section
Deleted created suite`

Interested in implementing it yourself?

Maybe, let's talk!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions