Sample for selenium settings -
down selenium RC channel from the selenium.org. Place it in same PHP folder for better faster/access. Run the command
CMD> java -jar YOUR SELENIUM JAR FILE PATH
now you are done server is running. Change the WebTestCase.php or your php file for proper linking. Run the command
cmd> phpunit functional/yourtest.php
if you find some issues with browser linking do the following in the phpunit.xml or your config file
<selenium>
<browser name="Internet Explorer" browser="*iexplore" ></browser>
<browser name="Firefox" browser="*firefox C:\Program Files\Mozilla Firefox 4.0 Beta 10\firefox.exe" />
<browser name="Google Chrome" browser="*googlechrome C:\Program Files\Google\Chrome\Application\chrome.exe" />
</selenium>
by above way you can add any browser using * (Asterisk) in the front and then full path.
;) enjoy
down selenium RC channel from the selenium.org. Place it in same PHP folder for better faster/access. Run the command
CMD> java -jar YOUR SELENIUM JAR FILE PATH
now you are done server is running. Change the WebTestCase.php or your php file for proper linking. Run the command
cmd> phpunit functional/yourtest.php
if you find some issues with browser linking do the following in the phpunit.xml or your config file
<selenium>
<browser name="Internet Explorer" browser="*iexplore" ></browser>
<browser name="Firefox" browser="*firefox C:\Program Files\Mozilla Firefox 4.0 Beta 10\firefox.exe" />
<browser name="Google Chrome" browser="*googlechrome C:\Program Files\Google\Chrome\Application\chrome.exe" />
</selenium>
by above way you can add any browser using * (Asterisk) in the front and then full path.
;) enjoy
No comments:
Post a Comment