public interface IFtVerificationPoint
Consider the following limitations and issues when acting directly against a verification-point data object:
-rt.interactive true
option.
Modifier and Type | Method and Description |
---|---|
boolean |
compare()
Compares the baseline, that is, expected data to the actual data.
|
boolean |
compare(double delayBetweenRetries,
double maximumTestTime)
Compares the expected result
with the actual result.
|
boolean |
compareAndLog()
Compares the baseline, that is, expected data to the actual data and logs the result to the
script log.
|
boolean |
compareAndLog(boolean compareTrueEqualsPass)
Allows
failing verification points to return and log a passing result.
|
java.lang.Object |
getActualData()
Enables access to the actual, that is, currently active data associated with a verification point.
|
java.lang.Object |
getBaselineData()
Enables access to the baseline data associated with a verification point.
|
java.lang.Object |
getExpectedData()
Enables access to the expected data associated with a verification point.
|
java.lang.String |
getVPName()
Returns the name of the verification point or
null if the
name is not known at the time of the call. |
boolean |
performTest()
Performs a verification-point test.
|
boolean |
performTest(boolean compareTrueEqualsPass)
Allows
failing verification points to return and log a passing result.
|
boolean |
performTest(double delayBetweenRetries,
double maximumTestTime)
Allows
failing verification points to retry until a passing result can be
returned or the retry timeout is reached.
|
boolean |
performTest(double delayBetweenRetries,
double maximumTestTime,
boolean compareTrueEqualsPass)
Allows
failing verification points to retry until a passing result can be
returned or the retry timeout is reached.
|
void |
setData(int dataInstance,
java.lang.Object data) |
boolean performTest()
The net result of these steps is that expected and actual verification point data instances are persisted to the log directory. Also, an appropriate entry is made into the log file. If for any reason these actions cannot be performed, an appropriate exception is thrown. For example, if a baseline file cannot be read from or written to, an IO exception may be thrown.
true
value is returned if the passing result is
logged, otherwise false
is returned.performTest(boolean)
boolean performTest(boolean compareTrueEqualsPass)
compareTrueEqualsPass
- If true
the expected
and actual data must match to get a passing result. If
false
the expected and actual data must
NOT match to get a passing result.true
value is returned if the passing result is
logged, false
is returned for a failing result.performTest()
,
performTest(double,double)
,
performTest(double,double,boolean)
boolean performTest(double delayBetweenRetries, double maximumTestTime)
delayBetweenRetries
- the delay in seconds after a failed result
is recaptured and retested.maximumTestTime
- the maximum time in seconds spent attempting
to receive a passing result. Note that at least
one attempt will be made to return a failed
result, even if this value is a zero or negative
value.true
value is returned if the passing result is
logged, false
is returned for a failing result.performTest()
,
performTest(boolean)
,
performTest(double,double,boolean)
boolean performTest(double delayBetweenRetries, double maximumTestTime, boolean compareTrueEqualsPass)
compareTrueEqualsPass
is false
, this
method will spin for the supplied interval if the actual value compares
to true
with the expected value. This spins until a passing
result can be returned.delayBetweenRetries
- the delay in seconds after a failed result
is recaptured and retestedmaximumTestTime
- the maximum time in seconds spent attempting
to receive a passing result. Note that at least
one attempt will be made to return a failed
result, even if this value is a zero or negative
value.compareTrueEqualsPass
- If true
, the expected
and actual data must match to get a passing result. If
false
, the expected and actual data must
NOT match to get a passing result.true
value is returned if the passing result is
logged, false
is returned for a failing result.performTest()
,
performTest(boolean)
,
performTest(double,double)
boolean compare()
compare(double,double)
boolean compare(double delayBetweenRetries, double maximumTestTime)
delayBetweenRetries
- the delay in seconds after a failed result
is recaptured and retestedmaximumTestTime
- the maximum time in seconds spent attempting
to receive a passing result. Note that at least
one attempt will be made to return a failed
result, even if this value is a zero or negative
value.compare()
boolean compareAndLog()
compare()
method so that it too automatically logs the result in the script
log.true
value is returned if the passing result is
logged, false
is returned if a failing result is logged.compareAndLog(boolean)
boolean compareAndLog(boolean compareTrueEqualsPass)
compareTrueEqualsPass
- If true
, the expected
and actual data must match to get a passing result. If
false
, the expected and actual data must
NOT match to get a passing result.true
value is returned if the passing result is
logged, false
is returned if a failing result is logged.compareAndLog()
java.lang.Object getBaselineData()
null
is returned.
A baseline may not be available if:
java.lang.Object getExpectedData()
null
is returned.java.lang.Object getActualData()
getBaselineData()
,
getExpectedData()
java.lang.String getVPName()
null
if the
name is not known at the time of the call.void setData(int dataInstance, java.lang.Object data)