aa_selenium_init (private)
aa_selenium_init
Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl
Setup a global Selenium RC server connection
- Returns:
- true is everything is ok, false if there was any error
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # check if the global selenium connection already exists global _acs_automated_testing_selenium_init if {[info exists _acs_automated_testing_selenium_init]} { # if we already initialized Selenium RC this will be true if # we already failed to initialize Selenium RC this will be # false. We don't want to try to initialize Selenium RC more # than once per request thread in any case so just return the # previous status. This is a global and is reset on every # request. return $_acs_automated_testing_selenium_init } set server_url [parameter::get_from_package_key -package_key acs-automated-testing -parameter "SeleniumRcServer" -default ""] if {$server_url eq ""} { # no server configured so don't try to initialize return 0 } set server_port [parameter::get_from_package_key -package_key acs-automated-testing -parameter "SeleniumRcPort" -default "4444"] set browsers [parameter::get_from_package_key -package_key acs-automated-testing -parameter "SeleniumRcBrowsers" -default "*firefox"] set success_p [expr {![catch {::acs::test::selenium::Se init $server_url $server_port ${browsers} [ad_url]} errmsg]}] if {!$success_p} { ns_log error [ad_log_stack_trace] } set _acs_automated_testing_selenium_init $success_p return $success_pXQL Not present: Generic, PostgreSQL, Oracle