0
所有场景做什么,他们都应该,但是,到现在为止后绕过随后的场景,我只用了现在,我有第二个方案1.Specflow失败
,会出现以下问题。
如果场景1发生断言失败,则会跳过后续场景。
查看下面跳过的方案。
Setup: ConfigFileTransformation (thread #0)
Scenario: Shows telephone numbers on the header in ShowContactInformation
(target: BrowserBrowserStack_Win8_Chrome_52) -> Succeeded on thread #0
Scenario: Shows telephone numbers on the contact sidebar box in
ShowContactInformation (target: BrowserBrowserStack_Win8_Chrome_52)
-> Failed on thread #0
[ERROR] 2 assertions failed.
Restore: ConfigFileTransformation (thread #0)
Scenario: Shows telephone numbers on the header in ShowContactInformation
(target: BrowserBrowserStack_Win8_Firefox_42)
-> Skipped on thread #-1
Scenario: Shows telephone numbers on the contact sidebar box in
ShowContactInformation
(target: BrowserBrowserStack_Win8_Firefox_42)
-> Skipped on thread #-1
Result: 1 failed
Total: 4
Succeeded: 1
Ignored: 0
Pending: 0
Skipped: 2 <--- **** Other scenarios must be executed regardless of anything else.
Failed: 1
如何避免specflow跳过后续情况?
您使用哪个测试跑步者? Specrun? –
我曾尝试NUnit和SpecRun分开。现在没有区别,但现在的答案解释了我的问题。谢谢@SamHolder! –