首页 文章

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

提问于
浏览
0

我想在多个浏览器上运行我的selenium RC测试用例,该测试用JUnit4支持 . 我该怎么办呢?应该在以下方面进行哪些配置:

**

public void setUp()throws Exception {selenium = new DefaultSelenium(“localhost”,4444,“* firefox”,“http://(某个URL)”); selenium.start(); }

**

1 回答

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

    检查http://seleniumhq.org/docs/05_selenium_rc.html for selenium中的自定义浏览器

相关问题