Creating a New Context Parameter

To set up a new Context Parameter for the script:

  1. Once the script is recorded, in the Script Code area, click the method which parameters you need to convert (TextField, TypeText, GoTo, KeywordAsserts, etc.).
    In the case of logging in monitoring, we need to select the username and password input TypeText method to convert a username/password to context parameters in the script. 
  2. On the properties panel on the right, point to the input field header, click the action button  appeared in the header line, and then click Convert to Context Parameter.
  3. In the Convert to Context Parameter dialog provide a unique Name for the context parameter or leave the default name.
  4. If necessary, change the parameter value in the corresponding field. If you want to mask/unmask the value, point to the end of the Value field and click the appeared button. Hiding a value is useful to mask a password or other sensitive information in monitoring results. Click Done.
  5. Click Save Changes. Your changes will be added to the script code.

Editing Context Parameters

You can view and edit Context Parameter values on the corresponding tab of the script editing pan at any time.

To edit the Context Parameter name and value at once, convert it back to String and make necessary changes (the action menu Convert to String).