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 ();}

**

Était-ce utile?

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
scroll top