Revision 24ee49b9
Added by Andreas Kohlbecker over 12 years ago
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/DataPortalContext.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
cichorieae, |
25 | 25 |
palmae, |
26 |
diptera, |
|
26 | 27 |
cyprus, |
27 | 28 |
floramalesiana; |
28 | 29 |
|
... | ... | |
36 | 37 |
public final Logger logger = Logger.getLogger(DataPortalContext.class); |
37 | 38 |
|
38 | 39 |
private DataPortalContext() { |
39 |
this.baseUri = TestConfiguration.getProperty(composePropertyKey("baseUri"), URI.class); |
|
40 |
this.cdmServerUri = TestConfiguration.getProperty(composePropertyKey("cdmServerUri"), URI.class); |
|
41 |
this.classificationUUID = TestConfiguration.getProperty(composePropertyKey("classificationUUID"), UUID.class); |
|
42 |
this.siteName = TestConfiguration.getProperty(composePropertyKey("siteName")); |
|
40 |
|
|
41 |
try { |
|
42 |
this.baseUri = TestConfiguration.getProperty(composePropertyKey("baseUri"), URI.class, true); |
|
43 |
this.cdmServerUri = TestConfiguration.getProperty(composePropertyKey("cdmServerUri"), URI.class, false); |
|
44 |
this.classificationUUID = TestConfiguration.getProperty(composePropertyKey("classificationUUID"), UUID.class, true); |
|
45 |
this.siteName = TestConfiguration.getProperty(composePropertyKey("siteName")); |
|
46 |
} catch (TestConfigurationException e) { |
|
47 |
logger.error("Configuration Error: ", e); |
|
48 |
System.exit(-1); |
|
49 |
} |
|
43 | 50 |
} |
44 | 51 |
|
45 | 52 |
private String composePropertyKey(String fieldName) { |
... | ... | |
63 | 70 |
return siteName; |
64 | 71 |
} |
65 | 72 |
|
73 |
public String prepareTitle(String pageHeader) { |
|
74 |
return pageHeader + " | " + getSiteName(); |
|
75 |
} |
|
76 |
|
|
66 | 77 |
} |
Also available in: Unified diff
switching to selenium 2.3.1 & SearchPage & OriginalSource tests