From: Chris Nehren Date: Thu, 7 Apr 2011 23:53:01 +0000 (-0400) Subject: simple but hopefully not too simple list of methods/params X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FTest-Harness-Selenium.git;a=commitdiff_plain;h=757f2207590c690c95b43fd974a083c7cc57424a simple but hopefully not too simple list of methods/params --- diff --git a/apiv2 b/apiv2 new file mode 100644 index 0000000..151dab9 --- /dev/null +++ b/apiv2 @@ -0,0 +1,21 @@ +sub new(%hash) + browser => which browser to test + browser_url => base of app + $ENV{SELENIUM_HOST/_PORT} || host/port => selenium server + env vars mean to take existing server, host/port args mean to start with xvnc + +method start_server + starts the selenium server if local, otherwise tries to connect to it + +method stop_server + derp + +method test_directory($dir) + finds HTML files in $dir, calls run_tests_for on them + +method run_tests_for($html_file) + uses Socialtext::WikiFixture::Selenese to run $html_file against selenium + server + +method _get_rows_for($html_file) + reads $html_file and returns data that S::WF::S understands