I have 100 features, i need over 1 hour to run all of them. I want to divide them into 5 groups and run in 5 chrome windows, one group have 20 features. So i can run completely 100 features faster.And number features will always change. How can i control that?
Asked
Active
Viewed 77 times
0
-
Use the Selenium Grid with Selenium WebDriver – Ali Jan 24 '19 at 05:13
-
Thanks, now i'm using Selenium Grid but I can't dispatch any number of features to per chrome window. Can use tag and group, but i don't want hard set like that, this is so hard to maintain. Do you have any ideas? – hangamy Jan 24 '19 at 06:43
-
Check this [link] (https://stackoverflow.com/questions/34424477/how-to-execute-cucumber-test-cases-in-parallel-using-grid), I don't think we can do it without a tag support. – Ali Jan 24 '19 at 07:03
-
Do you mean running them on the same browser, but on 5 different tabs? If so, it's not possible. You need to have 1 Chrome browser PER test group. – Timothy T. Jan 24 '19 at 07:56
-
@TimothyT. Yes, I want to run 1 chrome browser per test group. But test number of 1 test group is not fixed because the number of all tests will change consecutively. Ex: sum is 100 test -> run 5 chrome with 20 tests/chrome, sum is 300 test -> run 5 chrome with 60 tests/chrome, etc. How does it automatically divide? – hangamy Jan 24 '19 at 08:48
-
Selenium should be able to handle the test orchestration, which is what you're asking here. Have you setup your Selenium hub + nodes? By sending the test-cases to the hub, it will distribute the test-cases for you in a round-robin manner, depending on the number of nodes you have running. – Timothy T. Jan 24 '19 at 08:55
-
@hangamy Running 100 or 300 tests with 5 chromes is possible but can't guarantee the count, I mean 20 tests/chrome instance or 60 tests/chrome instance because the Selenium Hub will take care of distributing the tests to Available Nodes. – Ali Jan 24 '19 at 09:57
-
Thank @AliCSE, I understanded – hangamy Jan 25 '19 at 01:18