2017-07-06 23:22:41 +02:00
|
|
|
package com.baeldung;
|
|
|
|
|
|
|
|
|
|
import org.testng.annotations.AfterGroups;
|
|
|
|
|
import org.testng.annotations.BeforeGroups;
|
|
|
|
|
import org.testng.annotations.Test;
|
|
|
|
|
|
|
|
|
|
public class GroupIntegrationTest {
|
|
|
|
|
|
|
|
|
|
@BeforeGroups("database")
|
|
|
|
|
public void setupDB() {
|
|
|
|
|
System.out.println("setupDB()");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AfterGroups("database")
|
|
|
|
|
public void cleanDB() {
|
|
|
|
|
System.out.println("cleanDB()");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test(groups = "selenium-test")
|
|
|
|
|
public void runSelenium() {
|
|
|
|
|
System.out.println("runSelenium()");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test(groups = "selenium-test")
|
|
|
|
|
public void runSelenium1() {
|
|
|
|
|
System.out.println("runSelenium()1");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test(groups = "database")
|
|
|
|
|
public void testConnectOracle() {
|
|
|
|
|
System.out.println("testConnectOracle()");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test(groups = "database")
|
|
|
|
|
public void testConnectMsSQL() {
|
|
|
|
|
System.out.println("testConnectMsSQL");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test(dependsOnGroups = {"database", "selenium-test"})
|
|
|
|
|
public void runFinal() {
|
|
|
|
|
System.out.println("runFinal");
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-18 07:31:10 +01:00
|
|
|
}
|