用于在selenium RC中使用java进行单个测试的多个浏览器

时间:2012-02-29 08:32:13

标签: java selenium selenium-rc multiple-browsers

我想在多个浏览器上运行我的selenium RC测试用例,该测试用JUnit4支持。 我该怎么办呢? 应该在哪些配置中完成:

**

  

public void setUp()抛出异常{selenium = new   DefaultSelenium(“localhost”,4444,“* firefox”,“http://(某些URL)”);         selenium.start(); }

**

1 个答案:

答案 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自定义浏览器