public abstract class AbstractTestBase<D> extends java.lang.Object implements UiTestBase<D>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
baseUrl |
protected java.lang.String |
browser |
protected java.lang.String |
browserToLaunch |
protected D |
driver |
protected boolean |
inUse |
protected org.apache.commons.logging.Log |
logger |
protected java.lang.reflect.Method |
method |
protected boolean |
prepareForShutDown |
Constructor and Description |
---|
AbstractTestBase() |
Modifier and Type | Method and Description |
---|---|
void |
addAssertionsLog(java.lang.String msg) |
void |
addAssertionsLog(java.lang.String msg,
MessageTypes type) |
void |
addTestStepLog(java.lang.String msg) |
protected QAFTestBase |
getBase() |
java.lang.String |
getBaseUrl()
Get BaseUrl for current test base
|
java.lang.String |
getBrowser()
Get current running browser string i.e.
|
protected java.lang.String |
getDefaultBrowser() |
abstract D |
getDriver() |
protected boolean |
isInUse()
UiTestBase provider can check this flag timely basis and can remove
unused reference
|
boolean |
isPreparedForShutDown() |
protected abstract void |
launch(java.lang.String baseurl) |
void |
prepareForShutDown() |
protected void |
setTestDone() |
void |
tearDown() |
protected java.lang.String browser
protected java.lang.String browserToLaunch
protected java.lang.String baseUrl
protected final org.apache.commons.logging.Log logger
protected boolean prepareForShutDown
protected boolean inUse
protected D driver
protected java.lang.reflect.Method method
protected java.lang.String getDefaultBrowser()
protected void setTestDone()
protected abstract void launch(java.lang.String baseurl)
public abstract D getDriver()
getDriver
in interface UiTestBase<D>
public boolean isPreparedForShutDown()
isPreparedForShutDown
in interface UiTestBase<D>
public void prepareForShutDown()
prepareForShutDown
in interface UiTestBase<D>
public java.lang.String getBaseUrl()
UiTestBase
getBaseUrl
in interface UiTestBase<D>
public java.lang.String getBrowser()
UiTestBase
getBrowser
in interface UiTestBase<D>
public void tearDown()
tearDown
in interface UiTestBase<D>
protected QAFTestBase getBase()
protected boolean isInUse()
public void addTestStepLog(java.lang.String msg)
addTestStepLog
in interface UiTestBase<D>
public void addAssertionsLog(java.lang.String msg)
addAssertionsLog
in interface UiTestBase<D>
public void addAssertionsLog(java.lang.String msg, MessageTypes type)
addAssertionsLog
in interface UiTestBase<D>
Copyright © 2000 Infostretch Corp.