ceci est à partir de la grille de sélénium. Comment écrire du code java/C# pour faire une exécution parallèle.grille de sélénium exécution parallèle
Est-ce suffisant?
ISelenium selenium1 = new DefaultSelenium("localhost", 5555, "*iehta", "http://localhost/");
ISelenium selenium2 = new DefaultSelenium("localhost", 5556, "*iehta", "http://localhost/");
ISelenium selenium4 = new DefaultSelenium("localhost", 5557, "*iehta", "http://localhost/");
selenium1.Start();
selenium2.Start();
selenium3.Start();
Parce que quand je lance http://localhost:4444/console il y a 3 Commandes à distance disponibles mais 0 Télécommandes actifs même si j'exécuter du code de haut.
Code de fourmi que je ne comprends pas 100%. Pourquoi y a-t-il le paramètre
<arg value="-parallel"/>
?
<target name="run-demo-in-parallel" description="Run Selenium tests in parallel">
<java classpathref="demo.classpath"
classname="org.testng.TestNG"
failonerror="true"
>
<sysproperty key="java.security.policy" file="${basedir}/lib/testng.policy"/>
<sysproperty key="webSite" value="${webSite}" />
<sysproperty key="seleniumHost" value="${seleniumHost}" />
<sysproperty key="seleniumPort" value="${seleniumPort}" />
<sysproperty key="browser" value="${browser}" />
<arg value="-d" />
<arg value="${basedir}/target/reports" />
<arg value="-suitename" />
<arg value="Selenium Grid Demo In Parallel" />
<arg value="-parallel"/>
<arg value="methods"/>
<arg value="-threadcount"/>
<arg value="10"/>
<arg value="-testclass"/>
<arg value="com.thoughtworks.selenium.grid.demo.WebTestForASingleBrowser"/>
</java>
</target>
thx pour la réponse. Tout cela est vrai mais sous "Active Remote Control" il n'y a pas de RC. Est-ce correct? – senzacionale
Vous devriez voir RCs sous "Active Remote Control" une fois que vous commencez votre test. Votre code a eu un problème. J'ai mis à jour ma réponse. –