0

JUnit4でバックアップされたSeleniumRCテストケースを複数のブラウザーで実行したいと思います。どのように実行する必要がありますか?どのような構成を行う必要がありますか:

**

public void setUp()は例外をスローします{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(); }

Seleniumのカスタム ブラウザについてはhttp://seleniumhq.org/docs/05_selenium_rc.htmlを確認してください

于 2012-02-29T09:38:18.290 に答える