|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.ztl.util.ConfigHelper
public class ConfigHelper
ZTL configuration helper.
Field Summary | |
---|---|
protected static java.lang.String |
RESULT_FILE_ENCODING
TODO Logging untested yet |
protected static java.lang.String |
RESULTS_BASE_PATH
|
protected static java.lang.String |
SCREENSHOT_PATH
|
protected java.lang.String |
screenshotsResultsPath
|
Method Summary | |
---|---|
void |
clearCache(ZKSelenium browser)
|
java.lang.String |
getAction()
|
java.lang.String |
getBrowser()
|
java.util.List<com.thoughtworks.selenium.Selenium> |
getBrowsers(java.lang.String keys)
Deprecated. as of release ZTL 2.0.0 version |
java.util.List<com.thoughtworks.selenium.Selenium> |
getBrowsersForLazy(java.lang.String keys,
java.lang.String caseName)
|
java.lang.String |
getClient()
|
int |
getConnectionReducePeriod()
|
int |
getConnectionWaitPeriod()
|
java.lang.String |
getContextPath()
|
java.lang.String |
getDelay()
|
int |
getGranularity()
Returns the granularity for each comparing section. |
java.lang.String |
getImageDest()
Returns the path of the image destination directory. |
java.lang.String |
getImageSrc()
Returns the path of the image source directory. |
static ConfigHelper |
getInstance()
|
int |
getLeniency()
Returns the leniency for each comparing section. |
int |
getMaxTimeoutCount()
|
java.lang.String |
getMutexDir()
|
int |
getRestartSleep()
|
java.lang.String |
getServer()
|
java.lang.String |
getTheme()
|
java.lang.String |
getTimeout()
|
boolean |
isAllIgnoreCase(java.lang.String fileName)
|
boolean |
isComparable()
Returns whether in a comparable mode. |
boolean |
isDebuggable()
|
boolean |
isIgnoreCase(java.lang.String key,
java.lang.String fileName)
|
long |
lastModified()
|
void |
setConnectionReducePeriod(int connectionReducePeriod)
|
void |
setConnectionWaitPeriod(int connectionWaitPeriod)
|
void |
setMaxTimeoutCount(int maxTimeoutCount)
|
void |
setMutexDir(java.lang.String mutexDir)
|
void |
setRestartSleep(int _restartSleep)
|
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String RESULT_FILE_ENCODING
protected static final java.lang.String SCREENSHOT_PATH
protected static final java.lang.String RESULTS_BASE_PATH
protected java.lang.String screenshotsResultsPath
Method Detail |
---|
public static ConfigHelper getInstance()
public boolean isDebuggable()
public java.lang.String getTheme()
public java.lang.String getClient()
public java.lang.String getServer()
public java.lang.String getContextPath()
public java.lang.String getAction()
public java.lang.String getDelay()
public java.lang.String getTimeout()
public java.lang.String getBrowser()
public long lastModified()
public boolean isAllIgnoreCase(java.lang.String fileName)
public boolean isIgnoreCase(java.lang.String key, java.lang.String fileName)
public void clearCache(ZKSelenium browser)
public void shutdown()
public java.util.List<com.thoughtworks.selenium.Selenium> getBrowsersForLazy(java.lang.String keys, java.lang.String caseName)
@Deprecated public java.util.List<com.thoughtworks.selenium.Selenium> getBrowsers(java.lang.String keys)
getBrowsersForLazy(java.lang.String, java.lang.String)
public java.lang.String getImageSrc()
Property name in config.properties: imgsrc, which means the source directory of the base image.
public java.lang.String getImageDest()
Property name in config.properties: imgdest, which means the destination directory of the compared result, if fails.
public boolean isComparable()
default: false. Property name in config.properties: comparable, which means the image comparison is in a comparable mode, if true specified. Otherwise, the image is stored to the imgsrc directory as the base images.
public int getGranularity()
Property name in config.properties: granularity
It is better to have 1~15, less is a precise comparison, but performance is slow. Don't specify too high, it may compare without any different.
public int getLeniency()
Property name in config.properties: leniency
It is better to have 1~10, less is a precise comparison.
public int getConnectionWaitPeriod()
public void setConnectionWaitPeriod(int connectionWaitPeriod)
public java.lang.String getMutexDir()
public void setMutexDir(java.lang.String mutexDir)
public int getConnectionReducePeriod()
public void setConnectionReducePeriod(int connectionReducePeriod)
public int getRestartSleep()
public void setRestartSleep(int _restartSleep)
public int getMaxTimeoutCount()
public void setMaxTimeoutCount(int maxTimeoutCount)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |