Project

General

Profile

Download (1.39 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * Copyright (C) 2009 EDIT
3
 * European Distributed Institute of Taxonomy
4
 * http://www.e-taxonomy.eu
5
 *
6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7
 * See LICENSE.TXT at the top of this package for the full license terms.
8
 */
9
package eu.etaxonomy.dataportal.junit;
10

    
11
import org.junit.After;
12
import org.junit.AfterClass;
13
import org.junit.Before;
14
import org.junit.BeforeClass;
15

    
16
import com.thoughtworks.selenium.Selenium;
17
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;
18

    
19
import eu.etaxonomy.dataportal.DataPortalSite;
20
import eu.etaxonomy.dataportal.DataPortalManager;
21

    
22
/**
23
 * http://seleniumhq.org/docs/03_webdriver.html#emulating-selenium-rc
24
 *
25
 * @author a.kohlbecker
26
 * @deprecated SeleniumRCTests should only be used if you are really desperatly
27
 *             short in time and you need to use the Selenium 1 IDE in order to
28
 *             quickly create tests.
29
 */
30
@Deprecated
31
public abstract class CdmDataPortalSeleniumRCTestBase extends CdmDataPortalTestBase {
32

    
33
    protected static Selenium selenium;
34

    
35
    @Before
36
    public void setUpSelenium() {
37
        if(selenium == null) {
38
            selenium = new WebDriverBackedSelenium(driver, getContext().getBaseUri().toString());
39
        }
40
    }
41

    
42
    @AfterClass
43
    public static void stopSelenium() {
44
        if (selenium != null) {
45
            selenium.stop();
46
            selenium = null;
47
        }
48
    }
49

    
50
}
(1-1/3)