Consider following example code:
public class testcases()
{
@Before method
public void setup()
{
-----------
some code
-----------
}
@Test
public void test1()
{
---------- some code-----
}
@Test
public void test2()
{
---------- some code-----
}
@After method
public void setup()
{
-----------
some code
-----------
}
}
Now i will a create hub and launch 2 firefox nodes. i want the method test1() to run in one firefox node and the method test2() in another firefox node. Please let me know how to configure this using testng.xml file