selenium-framework 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/copyfiles/project_file.rb +7 -7
- data/lib/userextension/utilities.rb +5 -4
- metadata +2 -2
@@ -6,19 +6,19 @@ class Project < Test::Unit::TestCase
|
|
6
6
|
$screenshot_directory_path = PreRequisite.create_screenshot_directory_path(Dir.pwd.to_s, build_path)
|
7
7
|
$report_file = PreRequisite.create_report_file(Dir.pwd.to_s, build_path)
|
8
8
|
$log_file = PreRequisite.create_log_file(Dir.pwd.to_s, build_path)
|
9
|
-
|
10
|
-
|
9
|
+
$SeleniumConfig = YAML.load_file(Dir.pwd.to_s + '/config/selenium-framework.yml')
|
10
|
+
$app_path = Dir.pwd
|
11
11
|
|
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
|
@@ -15,7 +15,7 @@ class Utility
|
|
15
15
|
FileUtils.rm_rf(dir) if remove_after
|
16
16
|
end
|
17
17
|
|
18
|
-
def self.email(
|
18
|
+
def self.email(from_email_id, to_email_id, cc_email_id, prj_name, build_zip)
|
19
19
|
Mail.defaults do
|
20
20
|
delivery_method :smtp, {:address => 'smtp.sendgrid.net',
|
21
21
|
:port => 587,
|
@@ -27,9 +27,10 @@ class Utility
|
|
27
27
|
end
|
28
28
|
|
29
29
|
mail = Mail.new do
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
from [from_email_id.to_s]
|
31
|
+
to [to_email_id.to_s]
|
32
|
+
cc [cc_email_id.to_s]
|
33
|
+
subject Time.now.to_s + prj_name +' Test - Automation Script Result'
|
33
34
|
|
34
35
|
html_part do
|
35
36
|
content_type 'text/html; charset=UTF-8'
|
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.
|
4
|
+
version: 1.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|