Script
Last updated
Last updated
A Script assertion allows to write a JavaScript test script. The script itself is a function named test
, that takes an assertion object and an object with variables (a key/value pair). If the function returns true
the test is successfull. If it returns false
or raises an exception, then the Script assertion failed.
The Script assertion interface is as follows:
Script is the only field this assertion has, and it contains the script described above.
This assertion doesn't have any error fixing algorythm.
The assertion has the script
type in the file. The type description can be found in Assertion file representation Assertion file representation documentation in the #/definitions/ScriptAssertion
definition.