Commit | Line | Data |
6133f012 |
1 | * stuff users call |
2 | |
757f2207 |
3 | sub new(%hash) |
4 | browser => which browser to test |
6133f012 |
5 | app_base => base of app |
6 | $ENV{SELENIUM_RC_HOST/_PORT_START} || $selenium_rc{qw/host port start} |
7 | these are used for finding where to run the selenium RC server |
8 | default of selenium_rc => { host => 'localhost', port => 6900+$UID, start => 1 } |
9 | |
10 | method test_directory($dir) |
11 | finds HTML files in $dir, calls run_tests_for on them |
12 | starts necessary servers as appropriate |
13 | |
1161bd73 |
14 | method start_app_server |
15 | starts the associated Cat server |
16 | |
17 | method stop_app_server |
18 | derp |
19 | |
6133f012 |
20 | * stuff THS calls, users might call |
757f2207 |
21 | |
6133f012 |
22 | method start_selenium_server |
757f2207 |
23 | starts the selenium server if local, otherwise tries to connect to it |
24 | |
6133f012 |
25 | method stop_selenium_server |
757f2207 |
26 | derp |
27 | |
757f2207 |
28 | method run_tests_for($html_file) |
29 | uses Socialtext::WikiFixture::Selenese to run $html_file against selenium |
30 | server |
31 | |
6133f012 |
32 | * private stuff |
33 | |
757f2207 |
34 | method _get_rows_for($html_file) |
35 | reads $html_file and returns data that S::WF::S understands |
6133f012 |
36 | |
37 | method DESTROY |
38 | shuts down servers as appropriate |