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"

即使相应的步骤应解释为第 2 步定义,它也会错误地将第 1 步解释为,

When sign out as 'userA" and sign in as "userB'

我正在使用 JBehave 4.0.5。这是一个公认的问题吗?或者更新的版本对此有修复?

4

1 回答 1

1

必须优先考虑具有相似语法的步骤:

@When(value="sign out as \"$signOutUser\"")
@When(value="sign out as \"$signOutUser\" and sign in as \"$signInUser\"", priority=1)
于 2020-09-09T07:59:15.793 回答