私はこの問題に不満を感じています。複数のブラウザで 3 つのノードを実行していて、グリッドがうまく起動します。次に、各テストに複数のテストを含む 3 つのテストを含むテスト スイートがあります。テストを実行すると、3 つのブラウザが占有されますが、しばらくすると、最初のノードの 1 つのブラウザだけが占有されたままになり、他の 2 つのノードはアイドル状態のままになります。これが私のセットアップコードです
public void setUpEagle() throws Exception {
DesiredCapabilities cap = DesiredCapabilities.firefox();
cap.setBrowserName("firefox");
cap.setPlatform(Platform.ANY);
ffdriver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), cap);
eagleLogin = new EagleLogin();
LaunchEagle launchEagle = new LaunchEagle();
driver = launchEagle.setUp(eagleLogin, LP1_GeneralManager, NonProductionPassword);
// Print the Class Name
System.out.println("Test Starting: " + this.getClass().getName());
menuItem = new MenuItems();
menu = new Menu();
verify = new Verify();
}
//testng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="MRS_TestNGSuites1" verbose="10" parallel="tests" thread-count="30">
<test name="mrs_testsuite1" junit="true">
<classes>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountAssignmentTestNI"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountCommentPODDataVerifyTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountDebtorPODAddressDataVerifyTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountDebtorPODEmailDataVerifyTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountDebtorPODPhoneDataVerifyTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountDebtorPODPInfoDataVerifyTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountDebtorTearOffTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountFinancialPODDataVerifyTest"/>
</classes>
</test>
<test name="mrs_testsuite2" junit="true">
<classes>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountHeaderViewTest"/>
<class name="com.squaretwo.eagle.test.accounts.AccountID_CTC_US5211Test"></class>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountNotelineDataVerifyTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountNotelineTearOffTest"/>
<class name="com.squaretwo.eagle.test.accounts.Account_ReOpen_And_CancelTimTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.PerformanceLegalAccountSearchTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AdvDebtorsLifecycleCancelledTest"/>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AdvSearchAcctNumberTest"/>
</classes>
</test>
<test name="mrs_testsuite3" junit="true">
<classes>
<class name="com.squaretwo.eagle.smoketests.noninvasive.AdvSearchLifecycleCancelledTest" />
<class name="com.squaretwo.eagle.smoketests.noninvasive.AdvSearchMultipleCriteriaTest" />
<class name="com.squaretwo.eagle.smoketests.noninvasive.AdvSearchSaveCriteriaTest" />
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountPODDataVerifyTest" />
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountPODMediDataVerifyTest" />
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountStatusPODDataVerifyTest" />
<class name="com.squaretwo.eagle.smoketests.noninvasive.AccountsTouchedReportTest" />
<class name="com.squaretwo.eagle.test.accounts.AddPaymentPlanArrangement" />
</classes>
</test>