Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.24 KB

plugin-yaml.adoc

File metadata and controls

37 lines (26 loc) · 1.24 KB

YAML Plugin

The plugin provides a set of actions for validation of YAML data.

Steps

The steps syntax uses internal (VIVIDUS-only) term:

  • "YAML element value" or "value of YAML element" - scalar values like string, integer, float, boolean (true or false) and null.

Save YAML element value from input

Saves a value of YAML element found in the given YAML into the variable with the specified name and scope.

When I save YAML element value from `$yaml` by YAML path `$yamlPath` to $scopes variable `$variableName`
  • $yaml - The YAML used to find YAML element value.

  • $yamlPath - The YAML Path used to find YAML element value.

  • $scopes - The comma-separated set of the variables scopes.

  • $variableName - The name of the variable to save the found YAML element value.

Validate the title of the second book
When I save YAML element value from `${response}` by YAML path `store.book[1].title` to scenario variable `title-of-second-book`
Then `${title-of-second-book}` is equal to `Sword of Honour`