java.lang.Objectcom.cyscape.browserhawk.RuleEngineResult
This class encapsulates the result of a RuleEngine execution. With it you you can examine the generated HTML table or redirect URL and determine which and how many tests were pass, fail, warn, info, or suppress.
| Constructor Summary | |
RuleEngineResult()
|
|
| Method Summary | |
int |
getFailCount()
Returns the number of tests in the execution that were Fail |
java.lang.String[] |
getFailIds()
Returns the set of test ids in the execution that were Fail |
java.lang.String |
getHtmlTable()
Returns the generated HTML table, or null if none. |
int |
getInfoCount()
Returns the number of tests in the execution that were Info |
java.lang.String[] |
getInfoIds()
Returns the set of test ids in the execution that were Info |
int |
getPassCount()
Returns the number of tests in the execution that were Pass |
java.lang.String[] |
getPassIds()
Returns the set of test ids in the execution that were Pass |
java.lang.String |
getRedirect()
Returns the redirect URL, or null if none. |
int |
getSuppressCount()
Returns the number of tests in the execution that were Suppress |
java.lang.String[] |
getSuppressIds()
Returns the set of test ids in the execution that were Suppress |
int |
getTotalCount()
Returns the total number of tests in the rule execution |
int |
getWarnCount()
Returns the number of tests in the execution that were Warn |
java.lang.String[] |
getWarnIds()
Returns the set of test ids in the execution that were Warn |
boolean |
isFail(java.lang.String id)
Returns true if the given test id failed |
boolean |
isInfo(java.lang.String id)
Returns true if the given test id was info |
boolean |
isPass(java.lang.String id)
Returns true if the given test id passed |
boolean |
isSuppress(java.lang.String id)
Returns true if the given test id was suppressed |
boolean |
isWarn(java.lang.String id)
Returns true if the given test id warned |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RuleEngineResult()
| Method Detail |
public java.lang.String getRedirect()
public java.lang.String getHtmlTable()
public int getPassCount()
public java.lang.String[] getPassIds()
public boolean isPass(java.lang.String id)
id - the test id to examine
public int getFailCount()
public java.lang.String[] getFailIds()
public boolean isFail(java.lang.String id)
id - the test id to examine
public int getWarnCount()
public java.lang.String[] getWarnIds()
public boolean isWarn(java.lang.String id)
id - the test id to examine
public int getInfoCount()
public java.lang.String[] getInfoIds()
public boolean isInfo(java.lang.String id)
id - the test id to examine
public int getSuppressCount()
public java.lang.String[] getSuppressIds()
public boolean isSuppress(java.lang.String id)
id - the test id to examine
public int getTotalCount()