Skip to the content.

fwk.includeScript

Purpose

This action injects the actions of a specific script into the current script. It allows to reuse other scripts to create a modular, scalable and maintainable automation design.

Use Cases

Fields

Parameter Description Type Mandatory Encrypted
script Script name to execute string Y N
version Version of the script to run string N N

Example 1

  - number: 1
    type: "fwk.includeScript"
    name: "example1"
    description: "Include version 1 of script"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "script"
      value : "helloworldversion"
    - name: "version"
      value : "1"

Example 2

  - number: 2
    type: "fwk.includeScript"
    name: "example1"
    description: "Include latest version of script"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "script"
      value : "helloworldversion"
    - name: "version"
      value : ""

Note: the parameter version can also been removed from the yaml definition since it is empty. When no version is provided, the latest version will be selected.