特定条件后跳过步骤
Skip the steps after certain condition
有什么方法可以跳过特定条件后的步骤并通过场景结果。
我的场景是这样的:如果某个产品不可见,则检查该产品跳过剩余步骤,结果应该通过
请检查此 answer. The answer is in Ruby and not in Java, but the condition is the same. You can also use this example if this 是您的用例。
谢谢罗伊格,
但找到了答案 - 我们可以使用 Assume.True(condition) - 停止执行,其余步骤将被跳过,场景状态已通过
但是在黄瓜报告中,这个场景不会显示为JSON was not created yet
有什么方法可以跳过特定条件后的步骤并通过场景结果。
我的场景是这样的:如果某个产品不可见,则检查该产品跳过剩余步骤,结果应该通过
请检查此 answer. The answer is in Ruby and not in Java, but the condition is the same. You can also use this example if this 是您的用例。
谢谢罗伊格,
但找到了答案 - 我们可以使用 Assume.True(condition) - 停止执行,其余步骤将被跳过,场景状态已通过 但是在黄瓜报告中,这个场景不会显示为JSON was not created yet