Revision 50607782
Added by Andreas Kohlbecker over 12 years ago
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/junit/CdmDataPortalTestBase.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.dataportal.junit; |
5 | 5 |
|
6 |
import java.io.IOException; |
|
7 |
|
|
8 | 6 |
import org.apache.log4j.Logger; |
9 | 7 |
import org.junit.AfterClass; |
10 | 8 |
import org.junit.BeforeClass; |
11 | 9 |
import org.junit.runner.RunWith; |
12 | 10 |
import org.openqa.selenium.WebDriver; |
13 |
import org.openqa.selenium.chrome.ChromeDriver; |
|
14 |
import org.openqa.selenium.firefox.FirefoxDriver; |
|
15 |
import org.openqa.selenium.firefox.FirefoxProfile; |
|
16 |
import org.openqa.selenium.ie.InternetExplorerDriver; |
|
17 | 11 |
|
18 |
import eu.etaxonomy.dataportal.Browser; |
|
19 | 12 |
import eu.etaxonomy.dataportal.DataPortalContext; |
20 |
import eu.etaxonomy.dataportal.SystemUtils; |
|
21 | 13 |
import eu.etaxonomy.dataportal.selenium.WebDriverFactory; |
22 | 14 |
|
23 | 15 |
/** |
... | ... | |
44 | 36 |
|
45 | 37 |
@BeforeClass |
46 | 38 |
public static void setUpDriver() { |
39 |
logger.debug("@BeforeClass: setUpDriver()"); |
|
47 | 40 |
driver = WebDriverFactory.newWebDriver(); |
48 | 41 |
} |
49 | 42 |
|
50 | 43 |
@AfterClass |
51 | 44 |
public static void closeDriver() { |
45 |
logger.debug("@AfterClass: closeDriver()"); |
|
52 | 46 |
if (driver != null) { |
53 | 47 |
driver.quit(); |
54 | 48 |
} |
Also available in: Unified diff
refacoring and fine grained testing of taxon profile pages