Is there a way to run a whole test suite in ONE node with Selenium Grid?

I’m using TestNG as the framework and I’m noticing that on the Selenium Grid tests are being run on every node. I have 3 nodes. I don’t want to run my tests in parallel. I’m getting a lot of timeouts and test scripts are taking very long run. Is there a way to run all of the classes inside a test tag run on ONE node? I don’t care about nodes changing after all of the classes within the test tag are done. Here is what my testng.xml file looks like:


<suite name="Test Suite - Positive Testing" parallel="none">
<test name="Positive Testing - Chrome">

<parameter name="browser" value="chrome" />

<classes>

<class name="automationFramework.PT_LoginLogout" />

<class name="automationFramework.PT_NewUserRegistration" />

<class name="automationFramework.PT_ChangeYourPassword" />

</classes>

</test>

<test name="Positive Testing - Firefox">

<parameter name="browser" value="firefox" />

<classes>

<class name="automationFramework.PT_LoginLogout" />

<class name="automationFramework.PT_NewUserRegistration" />

<class name="automationFramework.PT_ChangeYourPassword" />

</classes>

</test>

<test name="Positive Testing - IE">

<parameter name="browser" value="ie" />

<classes>

<class name="automationFramework.PT_LoginLogout" />

<class name="automationFramework.PT_NewUserRegistration" />

<class name="automationFramework.PT_ChangeYourPassword" />

</classes>

</test>

</suite>

 

Default Asked on May 11, 2016 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Create only one type of webdriver.

    If you have all machines that are exactly the same in configuration, its better to run your tests by removing other two machines from node. No other way to do this.

    Virender

    Professor Answered on June 3, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.