Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize UI Element Properties in Variant sentences #35

Open
1 of 10 tasks
thiagodp opened this issue Apr 15, 2019 · 0 comments
Open
1 of 10 tasks

Recognize UI Element Properties in Variant sentences #35

thiagodp opened this issue Apr 15, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request language Related to the Concordia Language

Comments

@thiagodp
Copy link
Owner

thiagodp commented Apr 15, 2019

Example:

Then I see that {Age} is {Age|minvalue}

The | operator separates a UI Element from one of its properties.

Whether the property id is #age and the property minvalue is 21, the above sentence will be converted to:

Then I see that <#age> is 21

Language-independent property names

Allow the following properties:

  • id
  • type
  • datatype
  • value 🠖 Implemented in v1.2.0
  • minlength
  • maxlength
  • minvalue
  • maxvalue
  • format
  • required

Example:

Then I see {Age|value}

Language-specific property names

Allow properties to be written in the document's language. Examples:

Then I see {Age|minimum value} # english
Then I see {Age|valor mínimo} # portuguese

Support properties from other Features

Allow to reference UI Elements from other Features involved in a Variant. Example:

# login.feature
Feature: Login
  Scenario: Successful login
    Variant: Login by entering credentials
      Given that I am on the [Login Screen]
      When I type {Username}
         and I type {Password}
         and I click on {OK}
      Then I have ~user logged in~
...
# logout.feature
import "login.feature"
Feature: Logout
  Scenario: Successful logout
    Variant: Logout by selecting the menu bar option
      Given that I have ~user logged in~
        and I see {Login:Username|value}
      When I click on {Logout}
      Then I have ~user logged out~
...

When the sentence and I see {Login:Username|value} is converted to a Test Case sentence, it will receive the corresponding value of Login's Username.

Future plans

  • Recognize UI Element Properties in Otherwise sentences
@thiagodp thiagodp self-assigned this Apr 15, 2019
@thiagodp thiagodp added enhancement New feature or request language Related to the Concordia Language labels Apr 15, 2019
@thiagodp thiagodp added the assigned Somebody is working on this issue label Jul 12, 2019
@thiagodp thiagodp changed the title Recognize UI Element Properties in Variant steps Recognize UI Element Properties in Variant sentences Jul 12, 2019
@thiagodp thiagodp removed the assigned Somebody is working on this issue label Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language Related to the Concordia Language
Projects
None yet
Development

No branches or pull requests

1 participant