gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
48 stars 39 forks source link

Testrail CLI not updating existing test cases using Playwright/Typescript #145

Closed madhudeva81 closed 10 months ago

madhudeva81 commented 1 year ago

TestRail CLI Version

1.3.1

CLI Environment

ubantu

TestRail Version

7.8.0

TestRail Instance Type

Professional Cloud

Current behavior

test('C92 Invalid Password', async ({ page, loginPage}) => { ... } I have the above test as a sample and I am trying to update the test results for this test case in testrail after running the jenkins job but it creates a new testcase in testrail instead of updating the exsiting one. I have update the ID from testrail into my test which is C92

Please let me know

Desired behavior

No response

More Details

No response

Testinator-X commented 1 year ago

At first you should update your TRCLI Version to the latest.

madhudeva81 commented 1 year ago

pip install trcli I have the above command in jenkinsfile and it run everytime my tests are run

Below is the jenkins log

Testinator-X commented 1 year ago

pip install --upgrade trcli trcli -v should output: TestRail CLI v1.5.0

madhudeva81 commented 1 year ago

`trcli -v TestRail CLI v1.5.0 Copyright 2021 Gurock Software GmbH - www.gurock.com Usage: trcli [OPTIONS] COMMAND [ARGS]... Try 'trcli --help' for help.

Error: Missing command. this is what i get in command line and below is the log from jenkins

pip install --upgrade trcli Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: trcli in /home/jenkins/.local/lib/python3.10/site-packages (1.5.0)

but still new test cases are being created than updating the existing testcases

d-rede commented 10 months ago

Hello @madhudeva81

What you should be looking into is the specification-first approach, for which you need to pass the --case-matcher name option in your trcli command.

If you can provide more information, such as the report and command you are using, I may be able to assist further.

d-rede commented 10 months ago

Closing this issue since it's not an active blocker, but don't hesitate to re-open or send in new evidence.