我想在多个浏览器上运行我的selenium RC测试用例,该测试用JUnit4支持。 我该怎么办呢? 应该在哪些配置中完成:
**
public void setUp()抛出异常{selenium = new DefaultSelenium(“localhost”,4444,“* firefox”,“http://(某些URL)”); selenium.start(); }
**
答案 0 :(得分:0)
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(); }
在selenium中查看http://seleniumhq.org/docs/05_selenium_rc.html自定义浏览器