Skip to content

v1.2.0

Compare
Choose a tag to compare
@thiagodp thiagodp released this 12 Jul 02:53
· 71 commits to master since this release

New

  • Add support to UI Element Properties in Variant sentences, with the operator |. Example: {Age|value}. Currently it replaces only the property value. This is part of the Issue #35.
    For example, in a sentence like Then I see {Age|value}, whether 27 was generated as Age's value, then the sentence will be converted to a Test Case sentence as Then I see 27.
    The current version also supports values from other Features, which are involved in a Variant. For example, suppose that there is a feature called "Login" that contains a UI Element called "Username". If you are writing another Feature whose Variant executes "Login" before it (i.e. as its precondition), you can refer to the Username's value by writing {Login:Username|value}. Example:
import "login.feature"
Feature: ...
...
  Variant: ...
      Given that I have ~user logged in~
        and I see {Login:Username|value}
      ...

Whether the generated Username's value is bob, then the sentence will be converted to a Test Case sentence as and I see "bob".