セレングリッドとtestngを使用した並列テストの実行には、次の設定があります。Selenium GridとTestNGを使用した並列テストの実行
セレンハブ:ハブを実行しています。 リモートコントロール:* firefoxを環境として実行する3つのリモートコントロール。
テストスイートで100個のテストをすべて実行するための<suite name="Parallel Test Suite" parallel="tests" thread-count="34">
があります。各リモコンは同時に34個のテストを実行し、同時に3個のリモートコントロールが同時に100個実行されることを期待しています。
しかし、各リモコンは一度に1つのテストを同時に実行しているわけではありません。
ハブまたはrcを開始するために使用する必要がある他のパラメータがあります。
ヘルプありがとうございます。
テストスイートを並列に実行するようそれは次のようになります
<!-- 1 -->
<test name="concurrentJobs100queue01WithFirefoxOnWindows" preserve-order="true">
<classes>
<class name="testscripts.concurrentJobs100queue01"/>
</classes>
</test>
<!-- 2 -->
<test name="concurrentJobs100queue02WithFirefoxOnWindows" preserve-order="true">
<classes>
<class name="testscripts.concurrentJobs100queue02"/>
</classes>
</test>
<!-- 3 -->
<test name="concurrentJobs100queue03WithFirefoxOnWindows" preserve-order="true">
<classes>
<class name="testscripts.concurrentJobs100queue03"/>
</classes>
</test>
<!-- 4 -->
<test name="concurrentJobs100queue04WithFirefoxOnWindows" preserve-order="true">
<classes>
<class name="testscripts.concurrentJobs100queue04"/>
</classes>
</test>
<!-- 5 -->
この作業は行われませんでした。それは一度に1つのテストクラスを実行します。私たちは、3つのリモートコントロールの中で100のテストクラスを分割して実行しようとしており、同時に実行しています。 – Kathir
それは私のために働く、クラスタグ名はクラス名ですか? のようにSeltoはJavaクラス名、つまりSelto.javaクラス名のみがここに提供されます。 –