[jira] Commented: (JBEHAVE-247) jBehave should be more intelligent/flexible with regards to priortisation of steps
Stephen Cresswell (JIRA <
jira@...>
2010-03-18 09:37:23 GMT
[
http://jira.codehaus.org/browse/JBEHAVE-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214324#action_214324
]
Stephen Cresswell commented on JBEHAVE-247:
-------------------------------------------
Hi Paul,
Using Who and And interchangeably on a per step cases would work well. The Given steps I used as examples are
some of our more simplistic, there are lots more variations...
"a $gender, $speciality patient called $name, in "$location" who is $state
e.g. Given a male, cardiovascular patient called Bob Holness, in "Bed 05, Ward 1", who is not medically fit
Being able to split these up into smaller steps would make the scenarios more readable and reduce the number
of complex steps....
{quote}Given a male patient called Bob Holness // we should probably auto assign gender based on known names
{color:red}with{color} a cardiovascular speciality
{color:red}located{color} in Bed 05, Ward 1
{color:red}who{color} is not medically fit{quote}
"but" would be a useful synonym too
{quote}Then Bob's bed changes to Bed 6
{color:red}but{color} his* admission date stays as 15/07/74{quote}
\*our PatientParameterConverter is smart enough to recognise "his/her" and use the "current" patient
(Continue reading)