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.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)
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.local_browser.to_sym
18
+ $driver = Selenium::WebDriver.for $SeleniumConfig['local_browser'].to_sym
19
19
  end
20
- $base_url = $SeleniumConfig.base_url
21
- $adminbase_url = $SeleniumConfig.adminbase_url
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('from_email_id', 'to_email_id', 'cc_email_id', 'project_name', $report_file)
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
@@ -4,4 +4,8 @@ adminbase_url:
4
4
  application_name: <application name>
5
5
  local_browser: <firefox> OR <chrome> OR <safari> OR <ie>
6
6
  browsers: <firefox>, <chrome>, <safari>, <ie>
7
- host: <remote ip address>
7
+ host: <remote ip address>
8
+
9
+ mail_to:
10
+ mail_from:
11
+ mail_cc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: