selenium-framework 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,13 +12,13 @@ class Project < Test::Unit::TestCase
|
|
12
12
|
def setup
|
13
13
|
client = Selenium::WebDriver::Remote::Http::Default.new
|
14
14
|
client.timeout = 120 # seconds
|
15
|
-
if $SeleniumConfig
|
16
|
-
$driver = Selenium::WebDriver.for(:remote, :http_client => client, :url => 'http://'+ $SeleniumConfig
|
15
|
+
if $SeleniumConfig['mode'] == 'remote'
|
16
|
+
$driver = Selenium::WebDriver.for(:remote, :http_client => client, :url => 'http://'+ $SeleniumConfig['host']+':4444/wd/hub', :desired_capabilities => $SeleniumConfig['local_browser'].to_sym)
|
17
17
|
else
|
18
|
-
$driver = Selenium::WebDriver.for $SeleniumConfig
|
18
|
+
$driver = Selenium::WebDriver.for $SeleniumConfig['local_browser'].to_sym
|
19
19
|
end
|
20
|
-
$base_url = $SeleniumConfig
|
21
|
-
$adminbase_url = $SeleniumConfig
|
20
|
+
$base_url = $SeleniumConfig['base_url']
|
21
|
+
$adminbase_url = $SeleniumConfig['adminbase_url']
|
22
22
|
$driver.manage.timeouts.implicit_wait = 180
|
23
23
|
@verification_errors = []
|
24
24
|
end
|
@@ -26,7 +26,7 @@ class Project < Test::Unit::TestCase
|
|
26
26
|
# Write the testcases here:
|
27
27
|
|
28
28
|
def test_zipandmail
|
29
|
-
Utility.email('
|
29
|
+
Utility.email($SeleniumConfig['mail_from'], $SeleniumConfig['mail_to'], $SeleniumConfig['mail_cc'], $SeleniumConfig['application_name'], $report_file)
|
30
30
|
end
|
31
31
|
|
32
32
|
def teardown
|