Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In order to be more effective in communication and in scenario development
      As a scenario writer
      I want to compose steps using existing steps

      Example:

       
      Given <customer> has previously bought a <product>
      

      Could be a composition of

       
      Given <customer> is logged in
      When they put a <product> in their cart
      And go to checkout
      And pay using their registered card
      And go to the home page
      

      Need to think about what options are available for the "definition" of the composition.

      Options include: annotations, step concatenation, etc ...

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Summary Step composition steps Support composition of steps
        Fix Version/s 3.2 [ 16757 ]
        Description {noformat}
        1. @Given("$who has previously bought a $what")
        2. public String composedFullPurchase(String who, String what) {
        3. return "given $who is logged in" + NL +
        4. "when they put a" + what + " in their cart" NL +
        5. "and go to checkout " + to " NL +
        6. "and pay using their registered c-card" + NL +
        7. "and go to the home page";
        8. }

        [Note: Mauro prefers an annotation based design]
        {noformat}
        In order to be more effective in communication and in scenario development
        As a scenario writer
        I want to compose steps using existing steps

        Example:

        {noformat}
        Given <customer> has previously bought a <product>
        {noformat}

        Could be a composition of
        {noformat}
        Given <customer> is logged in
        When they put a <product> in their cart
        And go to checkout
        And pay using their registered card
        And go to the home page
        {noformat}

        Need to think about what options are available for the "definition" of the composition.

        Options include: annotations, step concatenation, etc ...
        Component/s Core [ 11086 ]
        Mauro Talevi made changes -
        Assignee Mauro Talevi [ maurotalevi ]
        Mauro Talevi made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Mauro Talevi added a comment -

        Behaviour verified in trader example step_composition.story.

        Documented in composite-steps.html

        Show
        Mauro Talevi added a comment - Behaviour verified in trader example step_composition.story. Documented in composite-steps.html
        Mauro Talevi made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Paul Hammant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: