Skip to content

0.7.0 : More blocks & less bugs

Compare
Choose a tag to compare
@agourlay agourlay released this 04 Apr 16:29
· 3031 commits to master since this release

New features

  • new DSL blocks
    • Within(maxDuration) - execute a series of steps and fails if the execution does not complete within 'maxDuration'.
    • RepeatDuring(maxDuration) - repeating a series of steps during the period 'maxDuration'.
    • RetryMax(limit) - retry a series of steps until it succeeds or reaches the limit of retries.
    • Attach - can be used to reuse DSL blocks.
    • WithBasicAuth - simplify basic auth configuration.
  • add support for HEAD, PATCH and OPTIONS.
  • two new JSON Path assertions - "isPresent" and "isAbsent".
  • possibility to ignore a feature completely.

Bugs killed

  • cryptic error thrown if 2 scenarios have the same name.
  • cryptic error if JSON Path parsing fails.
  • better error reporting if a problem happens during the feature initialization.
  • placeholders within the "array.contains" assertion were not resolved.
  • URL query param can now be placed within the URL without using the "withParams" DSL helper.

Breaking changes

  • typed JSON Path using a dynamic trait are gone and only the String version can be used now.
    • root.a.b(2).c should be replaced by "a.b[2].c"
  • save_body_key replaced by save_body_path (a key was just a JSON Path with one key)