Have a look at the javadoc:
http://jbehave.org/reference/stable/javadoc/core/org/jbehave/core/model/ExamplesTable.html#withRowValues%28int,%20java.util.Map%29
On 26/10/2012 20:07, Gopu Shrestha wrote:
How can I insert Java Map in ExamplesTable? if not possible what are
other alternatives to add more data inside the table received from
*.story file?
--Story
Given a list of members:
|MemberID|FName|LName|CarrierID| GroupID| DOB| Address1| Address2|
City| State| ZipCode|
|100000000|PINKIE PIE|PONY|||||||||
|100000001|Rainbow|Dash|||||||||
--Adding from Java
private void fillMemberDetail(Map<String, String> member) {
// auditing fields
member.put("currentRecordFlag", "Y");
member.put("effectiveStartDate", DateUtils.addDays(new Date(), -5)
.toString());
member.put("effectiveEndDate", DateUtils.addDays(new Date(), -100)
.toString());
member.put("partyType", "MEMBER");
member.put("version", "1");