simple but hopefully not too simple list of methods/params
Chris Nehren [Thu, 7 Apr 2011 23:53:01 +0000 (19:53 -0400)]
apiv2 [new file with mode: 0644]

diff --git a/apiv2 b/apiv2
new file mode 100644 (file)
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