Coding Mode (evaluating as a JS-expression)
Include calculations and JavaScript features in your scenarios 🧠
You have the option to enable or disable JavaScript evaluation in scenario steps (ECMAScript 5.1):
Please note that if you enable this option and make a syntax mistake, the scenario will pause with an exception message.
Checking expressions
You can verify the result of your expression by clicking the "Check the expression" link. You'll need to provide an object ID for validation.
Don't mix "Check the expression" feature with step testing.
Examples of JavaScript expressions
Expression | 🅾️ JS-interpreter is off | ✅ JS-interpreter is on |
|
|
|
|
|
|
and similar expressions |
|
|
|
|
|
|
|
Don't forget to enclose '{{fields}}'
in quotes if you want them to be processed as strings.
Other resources
MDN JavaScript Guide - Get a high-level overview of fundamental JavaScript concepts.
Codecademy Introduction to JavaScript - Learn JavaScript in this free online course with interactive lessons.
Last updated