how to run my selenium test methods in parallel using testng
I am trying to run my automated tests(Selenium webdriver) in parallel using testng. this is the node which I am running: java -Dwebdriver.gecko.driver=chromedriver.exe -jar selenium-server-standalone-3.4.0.jar -role node -hub http://localhost:4444/grid/register -browser browserName=chrome,maxInstances=2 -maxSession 2 this is my test class: public class TestParallel { Login login; //@BeforeMethod(alwaysRun = true) public SeleniumDriverCore testSetup() throws FileNotFoundException, IOException{ SeleniumDriverCore driver = new SeleniumDriverCore("config/chromeDriverConfig"); Properties config =