JBehave 错误地识别了具有相似步骤文本部分的两个步骤
JBehave incorrectly identifying two steps that have a similar step text part
sign out as \"$signOutUser\"
sign out as \"$signOutUser\" and sign in as \"$signInUser\"
以上是导致此问题的两个步骤定义。 JBehave 误读了下面的步骤。
When sign out as "userA" and sign in as "userB"
即使相应的步骤应该解释为第二步定义,它也错误地解释为第一步,
When sign out as 'userA" and sign in as "userB'
我正在使用 JBehave 4.0.5。这是公认的问题吗?或者较新的版本对此有修复?
语法相似的步骤必须是prioritized:
@When(value="sign out as \"$signOutUser\"")
@When(value="sign out as \"$signOutUser\" and sign in as \"$signInUser\"", priority=1)
sign out as \"$signOutUser\"
sign out as \"$signOutUser\" and sign in as \"$signInUser\"
以上是导致此问题的两个步骤定义。 JBehave 误读了下面的步骤。
When sign out as "userA" and sign in as "userB"
即使相应的步骤应该解释为第二步定义,它也错误地解释为第一步,
When sign out as 'userA" and sign in as "userB'
我正在使用 JBehave 4.0.5。这是公认的问题吗?或者较新的版本对此有修复?
语法相似的步骤必须是prioritized:
@When(value="sign out as \"$signOutUser\"")
@When(value="sign out as \"$signOutUser\" and sign in as \"$signInUser\"", priority=1)