java - Nested Tables in JBehave -
hi have scenario need test whether search service bringing correct results. story looks this:
narrative: in order discover if player registered in loyalty program customer service representative want able search registered players player first , last name scenario: retrieve player information first , last name given players registered in data warehouse , combination of loyalty1 and/or loyalty2 programs: |first name|last name|city |province|loyalty1 |loyalty2| |pete |walter |winnipeg |<null> |false |true | |jon |dewit |winnipeg |mb |true |true | |john |dewit |<null> |<null> |true |true | |peter |dewalt |<null> |<null> |true |false | when <firstnamecriteria> , <lastnamecriteria> criteria specified system displays correct results, using case-insensitive "begins with" search follows: |firstnamecriteria|lastnamecriteria|results | |jo | ||first name|last name|| | | ||jon |dewit || | | ||john |dewit || examples: |firstnamecriteria|lastnamecriteria| |jo | | | |dew | |j |d |
the table under "then" section go on while, using different permutations of firstname/lastname criteria followed nested tables of expected results in results column. examples section contain list of possible search criteria passed "when" section
is possible have nested tables this? if not, there perhaps method use accomplish same thing?
there isn't support directly understand - though getting exampletable values parameters kick in parameterconverters - of exampletable parameterconverter setup default. i'm sure there parsing bug in there.
that said, "then" needs work rows of examples: section. i'm sure that why thinking of putting of them in - can pluck out right one.
could following:
given players registered in data warehouse , combination of loyalty1 and/or loyalty2 programs: |id|first name|last name|city |province|loyalty1 |loyalty2| |1 |pete |walter |winnipeg |<null> |false |true | |2 |jon |dewit |winnipeg |mb |true |true | |3 |john |dewit |<null> |<null> |true |true | |4 |peter |dewalt |<null> |<null> |true |false | when <firstnamecriteria> , <lastnamecriteria> criteria specified system displays correct results, using case-insensitive "begins with" search users <userlist> examples: |firstnamecriteria|lastnamecriteria|userlist| |jo | |2,3 | | |dew |2,3,4 | |j |d |2,3 |
Comments
Post a Comment