...
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<forkCount>2C</forkCount>
<reuseForks>true</reuseForks>
<parallel>methods</parallel>
<threadCount>10</threadCount>
...
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/aade1e8d-2b53-4aa9-9171-cbebc461c6bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the pointers Mark,
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/cfd4481e-a48e-41e0-881a-520be83e0bef%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6a5f59c6-ff79-4a52-b14a-fc3d990319ee%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4517ec48-997b-4964-9c54-04619f0fb46e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/90769CDF-6BC4-4C7A-A684-C648204BB136%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Krishnan,
package a_suite;
import static org.testng.Assert.assertEquals;
import java.lang.reflect.Method;
import org.openqa.selenium.WebDriver;import org.openqa.selenium.browserlaunchers.Sleeper;import org.openqa.selenium.firefox.*;import org.openqa.selenium.remote.RemoteWebDriver;import org.testng.annotations.AfterMethod;import org.testng.annotations.BeforeMethod;import org.testng.annotations.Test;
public class Set_01_Test {
long delay = 2; String address = "http://google.com"; //public RemoteWebDriver driver; private static InheritableThreadLocal<WebDriver> driver = new InheritableThreadLocal<WebDriver>(); protected static void setDriverValue() { driver.set(new FirefoxDriver()); } public static WebDriver getDriver() { try { return driver.get(); } catch (Exception e) { return null; } } @BeforeMethod(alwaysRun = true) public void setUp() { setDriverValue(); } @AfterMethod(alwaysRun = true) public void tearDown() { if (getDriver() != null) { getDriver().quit(); driver.remove(); } }
@Test public void set_01_test01(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test02(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test03(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test04(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test05(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test06(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test07(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test08(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test09(Method method) { System.out.println(method.getName()); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }
@Test public void set_01_test10(Method method) { System.out.println(method.getName()); getDriver().get(address); Sleeper.sleepTightInSeconds(delay); assertEquals(4, 4); }}