When step have 2 parameters and one of them is in tabular form then it isn't
presented as table in story's HTML report
----------------------------------------------------------------------------------------------------------------------
Key: JBEHAVE-608
URL: https://jira.codehaus.org/browse/JBEHAVE-608
Project: JBehave
Issue Type: Bug
Components: Core
Affects Versions: 3.5.1
Reporter: Oleksandr Telegin
For example we have an following Given:
Given the cat with following parameters in tabular form
|Color|Height|Weight|
|Brown|20cm |7Kg |
where cat is parameter and table is parameter, as a result table data will not
being converted to table in HTML report.
My research shows that issue related to \n replacement in StepCreator.java
method:
{code}
private String replaceParameterValue(String stepText, int position, Type[]
types, String[] parameters) {
Type type = types[position];
String value = parameters[position];
if (value != null) {
if ( isTable(type)){
stepText = stepText.replace(value, PARAMETER_TABLE_START +
value + PARAMETER_TABLE_END);
} else {
stepText = stepText.replace(value, PARAMETER_VALUE_START +
value + PARAMETER_VALUE_END)
.replace("\n", PARAMETER_VALUE_NEWLINE);
}
}
return stepText;
}
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email