v1.2.0
New
- Add support to UI Element Properties in Variant sentences, with the operator
|
. Example:{Age|value}
. Currently it replaces only the propertyvalue
. This is part of the Issue #35.
For example, in a sentence likeThen I see {Age|value}
, whether27
was generated as Age's value, then the sentence will be converted to a Test Case sentence asThen 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"
.