我已经使用了一段时间的SpecFlow,但是没有使用过“但是”逻辑。
考虑以下场景:
Scenario: Kiran logs into the system but doesn't click remember me
Given I have a username of 'Kiran'
And a password of 'password'
When I chose login
But I don't chose remember me
Then I should be logged in
And Taken to the home screen
But My username should not be remembered
"but"步骤不能和"and"互换吗?
使用"but"有什么好处吗?
"but"仅仅是为了易读性而存在的,我理解得对吗?
期待你对此的看法。
谢谢, Kiran