I have integrated the Selenium Code with jenkins to execute the test cases with following steps:
https://wiki.jenkins.io/display/JENKINS/Zephyr+For+Jira+Test+Management+Plugin
Right now I have to narrate my Test cases according to the project structure. Example : PackageName.ClassName.MethodName which is not the correct approach.
Please let me know if there is any other way to identify test cases using Test ID
public class AppTest {
public static WebDriver driver;
public static String path = System.getProperty("user.dir");
@BeforeSuite
public void setUp() {
System.setProperty("webdriver.chrome.driver", path + "\\Utilities_files\\chromedriver.exe");
driver = new ChromeDriver();
System.out.println(driver);
driver.manage().window().maximize();
}
@Test
public void testApp() {
try {
driver.get("");
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
} catch (Exception e) {
e.printStackTrace();
}
}
@Test
public void testApp1() {
driver.findElement(By.xpath("aaa")).click();
}
@AfterSuite
public void tear() {
driver.quit();
}
}