• Documentation
  • Tutorials
  • Case studies
  • Blogs
  • Product

What's on this Page

  • Parameters definition
    • Create new parameter
    • Use activation script
    • Use prioritized activation script
    • Use other scopes
  • Parameters table view
    • Protected parameters
    • Encryption manager
  • step
  • User guide
  • Parameters
Categories: USER GUIDE PARAMETERS
This article references one of our previous releases, click here to go to our latest version instead.

Parameters

Parameters in Step are used to define variables that are globally accessible from any Plans and Keywords. You can think of Parameters the same way as “Global” variables in programming language.

Parameters definition

The required basic configuration for creating Parameters are the Key and Value fields, which are defined as Strings. In addition to the required fields, a Parameter configuration can also be modified using the following fields :

  • Scope : indicates the entity that has access to the parameter
    • Global : accessible by all Keywords
    • Application : accessible by keywords registered to a given application
    • Keyword : accessible only by the specified Keyword
  • Activation script : a Groovy boolean expression can optionally be used here to set the parameter value dynamically. The following bindings are available for use in activation script:
    • user : the currently logged in user
    • screen settings : any defined screen settings can be used via ID
  • Priority : indicates the priority rating for the activation scripts. Activation scripts with the highest priority rating gets evaluated first.

Create new parameter

To create a Parameter, click Parameters on the sidebar menu, then click the Add new (+) button as shown on the following screenshot.

Fill in the Key and Value fields, then click Save.

Create parameter dialog

You can now use “myBasicParameter” in any of your Plans or Keywords as shown in the following screenshot:

parameter-basic-test.png

Use activation script

Let’s now use activation script to set a parameter “log” based on the “environment” setting. In the following screenshot, we created the “log” parameter twice with different activation scripts for each environment:

  • “TEST” environment execution sets the parameter value to “Debug”
  • “PROD” environment execution sets the parameter value to “Error”
parameter-expressions.png
Note: The activation scripts are written in Groovy.

You can verify that the value is properly set by running a simple Echo on any of the environments. The following is an example execution screenshot of the environment: TEST.

parameter-expressions-execution-test.png

Use prioritized activation script

In addition, you can prioritize the evaluation of activation script through the “Priority” setting. In the following screenshot, we defined the “log” value to be Error for both environments with a higher expression priority than the one set for the “Test” environment only.

parameter-expressions-priority.png

The expected outcome is that on each environment, the log level will be set to Error.

Use other scopes

When creating or editing a parameter you may assign it to a given scope to specify its access.

The scope is only used to indicates the entity that has access to the parameter and it plays no role in the evaluation of its value. Therefore, if you use the same parameter key with different scopes without defining proper evaluation expressions and priorities, the result will be non-deterministic.

Application scope

To enable Application scope, you’ll have to add a new entry in the screen template definition for functionTable. You may refer to the customization section. The new entry must have the ID “attributes.application” as shown in the following screenshot.

parameters-scope.png

Note : The scope application is only available if applications were configured in the screen settings as illustrated in the following screenshot: admin-settings-screens-functionTable-application.png

Keyword scope

The following screenshot shows how to create a parameter accessible by a specific Keyword.

parameters-scope-keyword.png

Parameters table view

The parameters table view lets you manage existing parameters. It also lets you track activities like the last modification time and the user.

Protected parameters

You can select “Protect parameter value” when creating or editing a parameter to protect its value. This means that the value will get obfuscated in the UI and in the exported data. After protecting a parameter it is not possible to remove the protection imn order to maintain its security.

Note: If you name a parameter with a name containing either “pwd” or “password” the protection will be preselected but can be manually deselected before saving.

parameter-protected.png

Encryption manager

From release 3.16, Step Enterprise features an encryption manager which further secures parameters. When enabled, the values of the protected parameters get directly encrypted at creation and update times. The values are decrypted during Keyword call.

To activate the encryption manager, contact your Step administrator. You can also refer to the page dedicated to the encryption manager for details.

See Also

  • Controls
  • Java Plan API
  • Keywords calls
  • Plain text plans
  • Plan modularity
  • Home
  • Whats new?
  • Admin guide
  • SaaS guide
  • User guide
    • Keywords
    • Plans
    • Executions
    • Alerting rules
    • Incidents
    • Notifications
    • Parameters
    • Analytics
    • Analytics (beta)
    • Monitoring
    • Schedules
    • Event Broker Monitor
    • Import/Export entities
    • User account
    • Versioning
  • Developer guide
  • DevOps
  • Plugins
  • Libraries
Step Logo
    • Documentation
    • Tutorials
    • Case studies
    • Blogs
    • Product
    • Home
    • Whats new?
    • Admin guide
    • SaaS guide
    • User guide
      • Keywords
      • Plans
      • Executions
      • Alerting rules
      • Incidents
      • Notifications
      • Parameters
      • Analytics
      • Analytics (beta)
      • Monitoring
      • Schedules
      • Event Broker Monitor
      • Import/Export entities
      • User account
      • Versioning
    • Developer guide
    • DevOps
    • Plugins
    • Libraries