billylam / wdio-wdiov5testrail-reporter

https://www.npmjs.com/package/wdio-wdiov5testrail-reporter
MIT License
6 stars 8 forks source link

Including in "strictCaseMatching" option opportunity to check matching of cases for custom test runs #16

Closed SonnyGe closed 2 years ago

SonnyGe commented 2 years ago

Current implementation of "strictCaseMatching" support handling only one type of error - "if a test case found is not apart of the suite". But in practice, sometimes we have situations when we need to export to already created test run our test results, which includes cases not part of the test run . And instead of just skipping such results testrailApi show error like:

{"error":"Field :results contains one or more invalid results (case C5534 unknown or not part of the test run)"}

This PR solves this problem by adding a new testRail request (/api/v2/get_tests/runId).

SonnyGe commented 2 years ago

@billylam please check

billylam commented 2 years ago

Please hold. I'm busy personally and professional and this may take a while to get to, but also it's been less than 24 hours.

billylam commented 2 years ago

If you need this sooner consider npm linking within your repo, or publishing your own npm fork.