0

我想在多个浏览器上运行由 JUnit4 支持的 selenium RC 测试用例。我应该如何运行它?应该在哪些配置中进行:

**

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

**

4

1 回答 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以获取 selenium 中的自定义浏览器

于 2012-02-29T09:38:18.290 回答