Passing Data Between Keywords

You can pass parameters between keywords and you can pass back values from a keyword, which is implemented as a visual test or a .NET script. You cannot pass back the value of visual test global variables to a keyword, as these variables are managed by the visual test execution engine and are not visible to .NET scripts and keywords.

  1. If you want to pass data from one keyword to another keyword:
    1. Add an output parameter to the keyword from which you want to pass data.
    2. Add the same parameter as an input parameter to the keyword to which you want to pass data.
  2. If you want to pass back data from a keyword, which is implemented as a visual test or a .NET script:
    1. Add an output parameter to the keyword from which you want to pass back data.
    2. In the visual test or the .NET script, to which you want to pass back the data, create a local variable to store the data that is passed in.
    3. Use the local variable within the visual test or .NET script.