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 #208

Open
AlbertoValdivia20 opened this issue Feb 28, 2024 · 3 comments
Open

Test plan name for test runs #208

AlbertoValdivia20 opened this issue Feb 28, 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 have 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.

My idea in a first instance it's to manage like suite:
--suite-id Suite ID to submit results to. [x>=1]
--suite-name Suite name to submit results to.

Why is this feature necessary on the TestRail CLI?

Because what I want is to use the same test plan for a whole month and create a new one for each month.
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.

More details

No response

Interested in implementing it yourself?

Yes

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

What is your suggestion if someone has two plans with the same name? To which plan should the run then be added? Or should the import simply fail?

For more details on this discussion / a possible workaround see ticket #206.

@AlbertoValdivia20
Copy link
Author

I have been taking a look to --suite-name behaviour, and it uses the first one that you have, if you have two or more with the same name, I don't like this way too much, but I wouldn't mind to have it like that for plan-name.

From my point of view, it should fail warning the user, because if you have more than one with same name you should use id option, in fact I think it also should be fixed for suite options.

@bitcoder
Copy link
Collaborator

bitcoder commented Mar 5, 2024

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.

I'm not sure what I "feel" about the idea of creating test plans from the automation side. Usually a plan is something that we plan... ahead of time. Reporting against an existing test plan sound reasonable and it's a common practice. Whether we identify that plan by an ID or by a name.. I think that's something we can think a bit

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

3 participants