.net - Execute Selenium 2 Tests Against Remote Browser -
i'd have configuration build server runs nunit test opens , drives browser on remote machine. best way accomplish this?
it easy in selenium 1, because java proxy server sat between tests , browser. in selenium 2, tests communicate directly browser (at least in ie , firefox).
is there way this? possibly wcf service or something?
you need standalone selenium server (current selenium-server-standalone-2.0a6.jar) http://code.google.com/p/selenium/. start command line on remote machine (you need java installed there):
java -jar selenium-server-standalone-2.0a6.jar
also there's .net implementation of server, version behind java one
then should use remotewebdriver
:
iwebdriver driver = new remotewebdriver(new uri("http://127.0.0.1:4444/wd/hub"),desiredcapabilities.internetexplorer());
and use driver in "local" tests
more info:
http://code.google.com/p/selenium/wiki/remotewebdriver
http://code.google.com/p/selenium/wiki/remotewebdriverserver
Comments
Post a Comment