+
Skip to content

Accessing Concordion Table data in a Map #313

Closed
@DragosCotoc

Description

@DragosCotoc

Hi Concordion Team,

This might be related with the already raised issue Concordion Table Support. Apologies in advanced if it's the case.

Currently working on a way to access the table data in a map like format, map key being the column value and the value associated to the key being the column value.

Found two approaches so far, one using an ONGL map and the other using the #TEXT variable.

  • the approach with the OGNL map has it's disadvantage that it requires to create the OGNL map - example 1 and 2 from SpecificationWithOGNLMap.md
  • the approach with the #TEXT variable has it's disadvantage that if we change the order of the columns in the input table the method to generate the input message will not work as expected since we are using a string array - example 2 from SpecificationWithTEXTVariable.html

Can you please help with your input if there is a way in Concordion to access the table data in a map like form?
If not, is this something that you consider in the future to have and implementation that will expose a variable like #TABLEDATA to store the table data in the map like format?

Created a small project to highlight the above: https://github.com/DragosCotoc/FunctionalSpecifications/tree/main

Markdown files SpecificationWithOGNLMap.md and SpecificationWithTEXTVariable.md:
https://github.com/DragosCotoc/FunctionalSpecifications/tree/main/src/test/resources/fixtures

HTML reports SpecificationWithOGNLMap.html and SpecificationWithTEXTVariable.html:
https://github.com/DragosCotoc/FunctionalSpecifications/tree/main/src/test/resources/results

Thank you and regards,
Dragos

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载