Methods
-
<static> done()
-
function to be called at the end of asynchronous test, setup and tearDown. This indicates that the next scheduled item can be executed. Only call this function when all tasks are complete within a PFT.tester.run
-
<static> fail(message)
-
function to signal a failed completion of a test and increment the current number of failures by 1. function will also call PFT.tester.assert.done so that any subsequent tests can continue.
Parameters:
Name Type Description message
string a message to display describing the pass. -
<static> isFalse(value, message)
-
function to test the value of a passed in boolean is false and to signal a halt to the current test if it is not. function will also call PFT.tester.assert.done so that any subsequent tests can continue on failure. triggers the PFT.tester.onAssertionFailure function call if passed in value is true
Parameters:
Name Type Description value
boolean the boolean value to be compared to 'false' message
string a message to display describing the failure in the case of a failed comparison. this message is referenced in the current test.failures -
<static> isTrue(value, message)
-
function to test the value of a passed in boolean is true and to signal a halt to the current test if it is not. function will also call PFT.tester.assert.done so that any subsequent tests can continue on failure. triggers the PFT.tester.onAssertionFailure function call if passed in value is false
Parameters:
Name Type Description value
boolean the boolean value to be compared to 'true' message
string a message to display describing the failure in the case of a failed comparison. this message is referenced in the current test.failures -
<static> ok(value, message)
-
alias of PFT.tester.assert.isTrue
Parameters:
Name Type Description value
boolean the boolean value to be compared to 'true' message
string a message to display describing the failure in the case of a failed comparison. this message is referenced in the current.failures -
<static> pass(message)
-
function to signal a successful completion of a test and increment the current number of passes by 1. function will also call PFT.tester.assert.done so that any subsequent tests can continue.
Parameters:
Name Type Description message
string a message to display describing the pass.