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

Question about configuration #410

Open
eduardlavrov opened this issue Oct 10, 2024 · 2 comments
Open

Question about configuration #410

eduardlavrov opened this issue Oct 10, 2024 · 2 comments

Comments

@eduardlavrov
Copy link

Hello,

Is it possible to use this integration with several projects and test suites? For example, I have automated tests in Project ID = 25 and Project ID = 29. Could I use a single wdio.conf.js file for it? Or I need to rewrite it each time for each project?
Thanks

@MaikelBruin
Copy link
Contributor

Hi @eduardlavrov . To my knowledge it is not possible to change the reporter options during the execution of your automated tests. What you can do is split your automated test runs in a way that corresponds with the projectId's and suiteId's in testrail.

I.e. execute all automated tests for project A with projectId: 1 and execute all automated tests for project B with projectId: 2.
The projectId and suiteId can be determined dynamically in for example the onPrepare hook. This way you do not have to alter your project manually before each automated test suite execution.

@christian-bromann
Copy link
Contributor

Should we document a concrete example in the README.md?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants