AbhreshSugandhi / Edureka_27thMay

0 stars 1 forks source link

Issue with Prarallet Testing #5

Open jayanaidu33 opened 5 years ago

jayanaidu33 commented 5 years ago

Here is the Code for parallel testing.Somehow they are not executed parallel

package day5;

import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.Test;

public class paralleltesting{

@Test public void Test1() { System.setProperty("webdriver.chrome.driver","C:\SeleniumTraining\Installation Stuff\Driver\chromedriver.exe"); ChromeDriver driver=new ChromeDriver(); driver.manage().deleteAllCookies(); driver.get("http://demo.guru99.com/"); }

@Test public void Test2() { System.setProperty("webdriver.chrome.driver","C:\SeleniumTraining\Installation Stuff\Driver\chromedriver.exe"); ChromeDriver driver=new ChromeDriver(); driver.manage().deleteAllCookies(); driver.get("https://www.yahoo.com/"); }

@Test public void Test3() {

  System.setProperty("webdriver.chrome.driver","C:\\SeleniumTraining\\Installation Stuff\\Driver\\chromedriver.exe");
    ChromeDriver driver=new ChromeDriver();
    driver.manage().deleteAllCookies();
    driver.get("https://www.google.com/gmail/about/#");

}

}

TestNG.xml

<?xml version="1.0" encoding="UTF-8"?>

AbhreshSugandhi commented 5 years ago

I need XML file for the same as well and also pls do raise such queries with the support team as well along with posting here! I just checked with them and there is no support request from you on the doubts.