Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test plan name for test runs #206

Closed
AlbertoValdivia20 opened this issue Feb 21, 2024 · 3 comments
Closed

Test plan name for test runs #206

AlbertoValdivia20 opened this issue Feb 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@AlbertoValdivia20
Copy link

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

Hello, I would like to ask if trcli will have in the future a way to add test runs to an specific test plan passing the name of the test plan, right now I only see a way to do it with the id.

Why is this feature necessary on the TestRail CLI?

This is very useful for grouping the nightly regressions by month into a test plan.
As it is right now I would need each month to create a new test plan and modify the pipeline.

More details

No response

Interested in implementing it yourself?

No

@AlbertoValdivia20 AlbertoValdivia20 added the enhancement New feature or request label Feb 21, 2024
@Testinator-X
Copy link
Contributor

The name of the plan is not necessarily unique. There can be several active plans with the same name at the same time. How do you suggest that the CLI tool itself should decide to which plan the run should be assigned if several plans with the same name exist at the same time (intentionally or unintentionally)?

In my opinion, it makes much more sense for your use case if your pipeline creates the new plan via API. You will then receive the ID as a response and you should remember this in your pipeline in order to add plans to this run in the future. 🤔

At least that's how we do it. When we deploy a new version of our application, a milestone with the version number and a run with the name of the milestone are automatically created and the results are then added to this run via CLI Tool.

@AlbertoValdivia20
Copy link
Author

I was think in managing like suite for example that you can use the option you want
From the Readme:
--suite-id Suite ID to submit results to. [x>=1]
--suite-name Suite name to submit results to.

Because what I want is to use the same test plan for a whole month and create a new one for each month.
As you say to deploy a new version it's easy to do it the way everything is right now.
I'm also taking into account that the way we create testplans in our team it's almost impossible for us to duplicate testplans.

@AlbertoValdivia20
Copy link
Author

The idea would be, I have in the pipeline this test plan name AUTO_REGRESSION_${ENV}_${monthAndYear}
If it already exists add the test run, if not create a new test plan with that name

@AlbertoValdivia20 AlbertoValdivia20 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants