RUNbutton to execute the script. The execution continues to the last line of the code and finishes when all asynchronous tasks are done (e.g.
setTimeout). The execution is successful if:
awaitkeyword. For convenience, we've added
delayfunction that will allow you to pause the script. This function is compatible with async/await:
tmand it is available in the global scope.
currentNode: nodeAPI- the current Script node API
project: nodeAPI- the project node API
env: envAPI- the API for accessing the environment variables
cookies: cookie- a list of cookies used in the project
system: object- an object, which contains the system's environment variables
parent: nodeAPI- returns a parent node API and null for the project node
name: string- the given node name
type: string- the given node type
path: string- the path to the given node starting with the project root
children: nodeAPI- a list of child nodes APIs
findChild(name: string): nodeAPI- searches for the child node using its name and returns null if the node doesn't exist
next: nodeAPI- the API of the next node in the group. If the given node is the last one, null is returned
prev: nodeAPI- the API of the previous node in the group. If the given node is the first one, null is returned
nextNodes: nodeAPI- a list of all next nodes in the group. If the given node is the last one, an empty list is returned
prevNodes: nodeAPI- a list of all previous nodes in the group. If the given node is the first one, an empty list is returned
vars: object- the object that stores all static variables of the given node
dynamicVars: object- the object that stores all dynamic variables of the given node
setDynamicVar(name: string, value: any): void- sets the name dynamic variable with a certain value for the given node
RequestStepnode is more advanced.
request: object- the object that stores the node's request configuration
response: object- the object that stores the results of the last request
active: string- the active environment title
vars: object- the object that stores the current environment variables
fakerlibrary and setting as the next node's dynamic variable
UUI. Once you've run the script, you can reference this variable in an URL, request body, etc.