Navigateurs multiples pour un test unique en sélénium RC avec Java
-
14-11-2019 - |
Question
Je veux exécuter mon étui de test Selenium RC qui est soutenu avec Junit4 sur plusieurs navigateurs. Comment suis-je censé l'exécuter? Quelles configurations doivent être faites dans:
**
Configuration du vide public () jette une exception {selenium= nouveau FaultSelenium ("localhost", 4444, "* firefox", "http:// (une URL)"); selenium.start ();}
**
La solution
public void setUp() throws Exception { selenium = new DefaultSelenium("localhost", 4444, "*iexplore", "http://(some URL)"); selenium.start(); }
public void setUp() throws Exception { selenium = new DefaultSelenium("localhost", 4444, "*opera", "http://(some URL)"); selenium.start(); }
public void setUp() throws Exception { selenium = new DefaultSelenium("localhost", 4444, "*custom", "http://(some URL)"); selenium.start(); }
vérifier http://seleniumhq.org/docs/05_selenium_rc.html pour navigateur personnalisé danssélénium
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow