abstract public ResultPage getPageObject(WebDriver webDriver);
public void decorateContext(Context context) {
try {
if (!StringUtil.isEmpty(getProperty(PROP_OVERRIDE_CONNECTIONS_BE))) {
BasicEndpoint connections = (BasicEndpoint) EndpointFactory
.getEndpoint("connections");
connections.setUrl(getProperty(PROP_OVERRIDE_CONNECTIONS_BE));
context.getSessionMap().put("connections", connections);
}
if (!StringUtil.isEmpty(getProperty(PROP_OVERRIDE_SMARTCLOUD_BE))) {
BasicEndpoint smartcloud = (BasicEndpoint) EndpointFactory
.getEndpoint("smartcloud");
smartcloud.setUrl(getProperty(PROP_OVERRIDE_SMARTCLOUD_BE));
context.getSessionMap().put("smartcloud", smartcloud);
}
} catch (Throwable e) {
logger.severe(e.getMessage());
}