0

私は自分のプロジェクトでテスト機能をカップルしていますが、これまでスレッド数のランナークラスを使って並列実行していますが、テストシナリオを完了するのに時間がかかるため、実行時間が最適化されます。キュウリ試験シナリオが並行して実行されていますか?

テストシナリオを並列で実行する方法はありますか?

何か助けて頂ければ幸いです!

+0

の可能性のある重複(http://stackoverflow.com/questions/41034116/how-to-execute-cucumber-feature-file-parallel)[キュウリ機能ファイルを並列実行する方法] –

+0

[Courgette-JVM](https://stackoverflow.com/questions/42513907/how-to-run-cucumber-jvm-test-scenarios-in-parallel-using-gradle)は私にとってうまく機能しました –

答えて

0

それは、機能レベルやシナリオレベルで並列にキュウリのテストを実行する機能を追加しましたズッキーニ、JVM

を見てみましょう。

また、失敗したシナリオを自動的に再実行するオプションも用意されています。

使用

@RunWith(Courgette.class) 
@CourgetteOptions(
    threads = 10, 
    runLevel = CourgetteRunLevel.SCENARIO, 
    rerunFailedScenarios = true, 
    showTestOutput = true, 
    cucumberOptions = @CucumberOptions(
      features = "src/test/resources/features", 
      glue = "steps", 
      tags = {"@regression"}, 
      plugin = { 
        "pretty", 
        "json:target/courgette-report/courgette.json", 
        "html:target/courgette-report/courgette.html"} 
    )) 
    public class RegressionTestSuite { 
    } 
1

QAF gherkinを使用すると、機能ではなく並列でシナリオが実行されます。フレームワークが提供するファクトリクラスを使用し、testNG xmlを使用して実行をコンフィグレーションする必要があります。以下のサンプル設定ファイルです:

<test name="Gherkin-QAF-Test" parallel="methods"> 
    <parameter name="step.provider.pkg" value="com.qmetry.qaf.automation.impl.step.qaf" /> 
    <parameter name="scenario.file.loc" value="resources/features" /> 
    <classes> 
     <class name="com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory" /> 
    </classes> 
</test> 

設定上は並列にresources/featuresの下で機能ファイルで利用可能なシナリオを実行します。

関連する問題