JBehave
  1. JBehave
  2. JBEHAVE-128

Candidate step should support generic parameter conversion

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It is quite common to have step parameters which are CSV of strings or numbers.
      The candidate step should support them as it does with strings and numbers.

      More in general, it should generic and injectable parameter converters that allow users to convert objects from a string representations that make sense in the scenario domain.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Description It is quite common to have scenario arguments which are CSV of strings or numbers.
        The parser should support them as it does with strings and numbers.
        It is quite common to have step arguments which are CSV of strings or numbers.
        The candidate step should support them as it does with strings and numbers.

        More in general, it should generic and injectable argument converters that allow users to convert objects from a string representations that make sense in the scenario domain.
        Summary Scenario parser should support list arguments Candidate step should support generic arguments
        Mauro Talevi made changes -
        Summary Candidate step should support generic arguments Candidate step should support generic argument conversion
        Hide
        Mauro Talevi added a comment - - edited

        Created ParameterConverters facade that is responsible for all parameter conversion. This supports out-of-the-box numbers, lists of numbers and lists of strings. User can also provide custom converters for specific user domain objects.

        Show
        Mauro Talevi added a comment - - edited Created ParameterConverters facade that is responsible for all parameter conversion. This supports out-of-the-box numbers, lists of numbers and lists of strings. User can also provide custom converters for specific user domain objects.
        Mauro Talevi made changes -
        Summary Candidate step should support generic argument conversion Candidate step should support generic parameter conversion
        Description It is quite common to have step arguments which are CSV of strings or numbers.
        The candidate step should support them as it does with strings and numbers.

        More in general, it should generic and injectable argument converters that allow users to convert objects from a string representations that make sense in the scenario domain.
        It is quite common to have step parameters which are CSV of strings or numbers.
        The candidate step should support them as it does with strings and numbers.

        More in general, it should generic and injectable parameter converters that allow users to convert objects from a string representations that make sense in the scenario domain.
        Hide
        Elizabeth Keogh added a comment -

        Works for me

        Show
        Elizabeth Keogh added a comment - Works for me
        Elizabeth Keogh made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: