2016-11-10 9 views
0

すべてのシナリオは、彼らがになってますが、今までは、私が唯一の1Specflowが

を持っている何を失敗した後、後続のシナリオを迂回今、私は2番目のシナリオを持っていることを、次のような問題があります。

シナリオ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 

後続のシナリオをスキップしないようにするにはどうすればよいですか?

+0

あなたはどのテストランナーを使用していますか?スペルラン? –

+0

私はNUnitとSpecRunを別々に試しました。違いはありませんが、答えは今私の問題が何だったのかを説明します。ありがとう@SamHolder! –

答えて

1

がにテストプロファイルの実行要素を更新:

<Execution retryFor="None" stopAfterFailures="0" testThreadCount="1" testSchedulingMode="Sequential" /> 

重要なことは、stopAfterFailures="0"のようです。