c# - How to run Selenium tests with CI (Continuous Integration)? -


i'm using selenium automated testing websites. have around 100 test cases , want run them every day making test suite automatically. had written test cases in selenium 1 (selenium rc) , not easy migrate selenium 2 (webdriver). there way or application out there can load , execute selenium 1 scripts automatically?

thanks help.

you don't need convert tests selenium 2 able run them. selenium 2 contains code selenium 1 , selenium merged webdriver. existing scripts should run fine latest version of selenium.

from questions above assuming have recorded scripts in selenium ide , want run them using selenium server, if have @ following:

run selenese directly within server using -htmlsuite  can run selenese html files directly within selenium server passing html file server’s command line. instance:  java -jar selenium-server.jar -htmlsuite "*firefox" "http://www.google.com" "c:\absolute\path\to\my\htmlsuite.html" "c:\absolute\path\to\my\results.html"  automatically launch html suite, run tests , save nice html report results.  note  when using option, server start tests , wait specified number of seconds test complete; if test doesn’t complete within amount of time, command exit non-zero exit code , no results file generated.  command line long careful when type it. note requires pass in html selenese suite, not single test. aware -htmlsuite option incompatible -interactive cannot run both @ same time. 

the above taken http://seleniumhq.org/docs/05_selenium_rc.html

as others have said can set cron jobs or scheduled tasks automate running of scripts @ set times, although suggest investigating ci server jenkins ci (formally hudson) can either run tests @ set time or triggered run tests based on code commits.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -