Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
<optional>
|
Job name. |
Returns:
|
|
|
errorReport (e)
Shows a dialog with error report.
Parameters:
Name |
Type |
Description |
e |
*
|
Error object or message. |
|
getConfig (name) → {*}
Parameters:
Name |
Type |
Description |
name |
string
|
Name of the option. |
Returns:
-
*
:
Config value or undefined.
|
report ()
Shows a dialog with tester result.
|
runJobFiles (folder, fileFilteropt, folderFilteropt)
Runs all test files in the folder. Default allowed file names: *job.(jsx|jsxinc|js).
Parameters:
Name |
Type |
Attributes |
Description |
folder |
string
|
Folder
|
|
Full path to a job file or folder with job files. |
fileFilter |
function
|
<optional>
|
Callback filters the files in the job folders: function(path){return boolean;} . By default, accepts all files whose name ends with job.jsx / job.jsxinc / job.js. (optional) |
folderFilter |
function
|
<optional>
|
Callback filters the job folders: function(path){return boolean;} . By default, accepts all folders and subfolders. (optional) |
Throws:
|
setConfig (nameOrObject, valueopt)
Changes default config options or adds custom values. All options are available in job files via tester.getConfig('something') .
Parameters:
Name |
Type |
Attributes |
Description |
nameOrObject |
string
|
object
|
|
Name of the config option. If object is given, all key/value pairs are set to config and value parameter is ignored. |
value |
*
|
<optional>
|
Value of the config option. (optional) |
Throws:
|
toString () → {string}
Returns a string representation of the object.
Returns:
|