Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.3
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Is it possible to support a With tag in scenarios.

      e.g. instead of using the following

      Given a new trade
      and trade price of $15

      the following would read better

      Given a new trade
      With trade price of $15

        Activity

        Hide
        Mauro Talevi added a comment -

        There is no such @With or @And annotation.

        And keyword is supported (it replicates the meaning of the previous step type) and you can change the word 'And' to 'With' via the localised keywords:

        http://jbehave.org/reference/stable/stories-in-your-language.html

        Show
        Mauro Talevi added a comment - There is no such @With or @And annotation. And keyword is supported (it replicates the meaning of the previous step type) and you can change the word 'And' to 'With' via the localised keywords: http://jbehave.org/reference/stable/stories-in-your-language.html
        Hide
        Simon Wiehe added a comment -

        Forgive me as I may have misunderstood the use of the @And annotation I saw in the Java Doc.

        What I am looking for is the ability to interchange And & With in the story file so the story reads better. I have looked at the localised keywords and whilst it looks possible to use With instead of And, it does not seem possible to have both. My initial attempts to get this working, just allowing me to use With "instead of" And rather than "as well as", have not proved very successful.

        Show
        Simon Wiehe added a comment - Forgive me as I may have misunderstood the use of the @And annotation I saw in the Java Doc. What I am looking for is the ability to interchange And & With in the story file so the story reads better. I have looked at the localised keywords and whilst it looks possible to use With instead of And, it does not seem possible to have both. My initial attempts to get this working, just allowing me to use With "instead of" And rather than "as well as", have not proved very successful.
        Hide
        Mauro Talevi added a comment -

        Maybe you're getting confused with some other @And annotation - it's never been part of JBehave

        As for the keyword interchange, that is not possible. You can define only one And-type keyword, which you can decide to rename to "With".

        The keywords you can use at the beginning of steps are: Given, When, Then, And (and !-- to comment)

        It's then up to you to structure your language within this rather lightweight constraint.

        Show
        Mauro Talevi added a comment - Maybe you're getting confused with some other @And annotation - it's never been part of JBehave As for the keyword interchange, that is not possible. You can define only one And-type keyword, which you can decide to rename to "With". The keywords you can use at the beginning of steps are: Given, When, Then, And (and !-- to comment) It's then up to you to structure your language within this rather lightweight constraint.

          People

          • Assignee:
            Unassigned
            Reporter:
            Simon Wiehe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: