munch
munch

Reputation: 2093

Run TestNG groups sequentially and tests in each group in parallel

I have several tests suites based on the functionality they test and I want to run them in parallel - to complete more quickly. It turned out that within one suite I need to put several tests that run against different environmental setting. I think I can do this by assigning tests to groups and then use the @BeforeGroups annotation to insert a method which set ups the environmental settings. However I don't know how to make the tests within each group to run in parallel and groups to wait for each other - otherwise there will be tests working in the wrong environment. Any suggestions would be appreciated.

Upvotes: 1

Views: 1715

Answers (1)

niharika_neo
niharika_neo

Reputation: 8531

You can define your dependencies of the groups in the xml. Example here

Upvotes: 2

Related Questions