public class QAFTestBase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
QAFTestBase.STBArgs
QAFTestBase setup arguments
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELENIUM_DEFAULT_TIMEOUT |
Modifier | Constructor and Description |
---|---|
protected |
QAFTestBase() |
Modifier and Type | Method and Description |
---|---|
void |
addAssertionLog(java.lang.String msg,
MessageTypes type) |
void |
addAssertionLogWithScreenShot(java.lang.String msg,
MessageTypes type) |
void |
addVerificationError(java.lang.String message) |
void |
addVerificationError(java.lang.Throwable e) |
void |
checkForVerificationErrors()
Asserts that there were no verification errors during the current test,
failing immediately if any are found
|
void |
claerAssertionsLog() |
void |
clearVerificationErrors()
Clears out the list of verification errors
|
static void |
fail(java.lang.String message) |
protected void |
finalize() |
java.lang.String |
getAssertionsLog() |
java.lang.String |
getBaseUrl() |
java.lang.String |
getBrowser()
Deprecated.
use
getDriverName() instead |
java.util.List<CheckpointResultBean> |
getCheckPointResults() |
PropertyUtil |
getContext() |
java.lang.String |
getDriverName() |
java.lang.String |
getHTMLFormattedLog() |
java.lang.String |
getLastCapturedScreenShot() |
java.lang.String |
getLastCapturedScreenShotFile() |
java.util.List<LoggingBean> |
getLog() |
protected java.lang.String |
getReportDir() |
protected java.lang.String |
getTestCaseName() |
UiDriver |
getUiDriver() |
int |
getVerificationErrors() |
boolean |
hasDriver()
Method to check driver session exist or not.
|
boolean |
hasDriver(java.lang.String driverName)
Method to check driver session exist or not.
|
protected boolean |
isAlwaysCaptureScreenShot() |
protected boolean |
isCaptureScreenShotOnFailure() |
boolean |
isPrepareForShutdown() |
boolean |
isVerificationFailed() |
static void |
main(java.lang.String[] args) |
static void |
pause(long millisecs)
Sleeps for the specified number of milliseconds
|
void |
setAlwaysCaptureScreenShot(boolean alwaysCaptureScreenShot) |
protected void |
setCaptureScreenShotOnFailure(boolean captureScreetShotOnFailure) |
void |
setDriver(java.lang.String driverName) |
void |
setDriver(java.lang.String driverName,
UiDriver driver) |
void |
setLastCapturedScreenShot(java.lang.String lastCapturedScreenShot) |
void |
setMethod(java.lang.reflect.Method method) |
void |
setPrepareForShutdown(boolean prepareForShutdown) |
protected void |
setReportDir(java.lang.String reportDir) |
protected void |
setScreenShotDir(java.lang.String screenShotDir) |
java.lang.String |
takeScreenShot() |
void |
tearDown()
checks for verification errors and stops the browser
|
void |
tearDown(java.lang.String driverName)
checks for verification errors and stops the browser
|
public static final java.lang.String SELENIUM_DEFAULT_TIMEOUT
public java.lang.String getHTMLFormattedLog()
public java.util.List<LoggingBean> getLog()
public java.lang.String getBrowser()
getDriverName()
insteadpublic java.lang.String getDriverName()
getUiDriver()
call.public void tearDown()
public void tearDown(java.lang.String driverName)
public void setDriver(java.lang.String driverName)
public void setDriver(java.lang.String driverName, UiDriver driver)
public java.lang.String getBaseUrl()
public boolean hasDriver(java.lang.String driverName)
driverName
- public boolean hasDriver()
getDriverName()
hasDriver(String)
public UiDriver getUiDriver()
public static void pause(long millisecs)
public boolean isPrepareForShutdown()
public void setMethod(java.lang.reflect.Method method)
public void setPrepareForShutdown(boolean prepareForShutdown)
public java.lang.String getLastCapturedScreenShot()
public void setLastCapturedScreenShot(java.lang.String lastCapturedScreenShot)
public boolean isVerificationFailed()
public void checkForVerificationErrors()
public static void fail(java.lang.String message)
public void claerAssertionsLog()
public void clearVerificationErrors()
public int getVerificationErrors()
public java.lang.String getAssertionsLog()
public java.util.List<CheckpointResultBean> getCheckPointResults()
public java.lang.String getLastCapturedScreenShotFile()
public void setAlwaysCaptureScreenShot(boolean alwaysCaptureScreenShot)
public java.lang.String takeScreenShot()
public void addVerificationError(java.lang.Throwable e)
public void addVerificationError(java.lang.String message)
public void addAssertionLogWithScreenShot(java.lang.String msg, MessageTypes type)
public void addAssertionLog(java.lang.String msg, MessageTypes type)
public PropertyUtil getContext()
protected java.lang.String getReportDir()
protected boolean isCaptureScreenShotOnFailure()
protected void setCaptureScreenShotOnFailure(boolean captureScreetShotOnFailure)
protected boolean isAlwaysCaptureScreenShot()
protected java.lang.String getTestCaseName()
protected void setScreenShotDir(java.lang.String screenShotDir)
protected void setReportDir(java.lang.String reportDir)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public static void main(java.lang.String[] args)
Copyright © 2000 Infostretch Corp.