Suppose you have common functions and variables that needs to be re-used across different tests.
Here we explain how to include them in your test. Suppose that we have a file CommonUtils.js with a function GetHostInfo(). The function puts information about OS and current user into the report.
We assume that common files are stored in folder:
To the empty line in the code editor:
// Do the rest
Common file may contain functions and variables. If functions refer to Objects or contain object actions then different approach should be used (see Include subtests).
Please, note that common JS file should not contain overrides for base prototype (Object.prototype and Array.prototype).
Selected files will be attached to any email sent on saving ticket.
Select files to upload
Or drag and drop files here
Save to upload the selected file(s)