JBehave

Make column separator configurable in ExamplesTable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.0
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    0

Description

When trying to read from external sources, like a wiki, some characters like "|" may be reserved and we need to allow for use of others.

The parser should allow configuration of other column separators when parsing tables.

Activity

Hide
Mauro Talevi added a comment -

Made table column separator configurable. Parser retrieves configuration via keywords, like any other configurable element used in parsing.

Updated i18n trader example to show it in action.

Show
Mauro Talevi added a comment - Made table column separator configurable. Parser retrieves configuration via keywords, like any other configurable element used in parsing. Updated i18n trader example to show it in action.
Hide
Cristiano Gavião added a comment -

Mauro, you have missed a little detail....:
Confluence(wiki) and Jira use both characters: "||" and "|" to build tables. The first one is used for render header cell and the second one for normal cell, look at a table in jira:

field a field b
value a value b

regards

Show
Cristiano Gavião added a comment - Mauro, you have missed a little detail....: Confluence(wiki) and Jira use both characters: "||" and "|" to build tables. The first one is used for render header cell and the second one for normal cell, look at a table in jira:
field a field b
value a value b
regards
Hide
Mauro Talevi added a comment - - edited

Need to distinguish between header and value separators.

Show
Mauro Talevi added a comment - - edited Need to distinguish between header and value separators.
Hide
Mauro Talevi added a comment -

ExamplesTable now accepts as distinct parameters the header and value separators, which both default to "|".

The separators are also configurable via keywords.

Show
Mauro Talevi added a comment - ExamplesTable now accepts as distinct parameters the header and value separators, which both default to "|". The separators are also configurable via keywords.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: