Execute JavaScript command
Uses Javascript for executing tests, for example to auto-generate a job number for each job run.
Parameters
Name | Type | Possible values | Description |
---|---|---|---|
Inline script* |
String |
Runs custom logic using JavaScript. This could include, but is not limited to, date/time formatting, manipulation of strings, and arithmetic operations. Avoid using comments (such as Following are some basic examples you can use: Copy
Basic examples
You can also integrate this parameter with Scriptless Mobile variables, as follows:
Copy
Examples using variables
|
|
Comment |
String |
Adds a comment to the script |
|
On-fail Result* |
Condition |
Ignore | Break | Continue | Abort | Catch |
The behavior when the command fails. |
* Mandatory