Skip to content

Commit adebb86

Browse files
authored
Merge pull request #3 from AmeyaJoshi1/master
Updating vulnerable packages
2 parents 28b01fc + bb67656 commit adebb86

File tree

4 files changed

+24
-28
lines changed

4 files changed

+24
-28
lines changed

Gemfile.lock

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
GEM
22
remote: https://www.rubygems.org/
33
specs:
4-
browserstack-local (0.1.1)
5-
childprocess (0.5.9)
6-
ffi (~> 1.0, >= 1.0.11)
7-
ffi (1.9.10)
8-
power_assert (0.3.0)
9-
rake (11.1.2)
10-
rubyzip (1.2.0)
11-
selenium-webdriver (2.53.0)
12-
childprocess (~> 0.5)
13-
rubyzip (~> 1.0)
14-
websocket (~> 1.0)
15-
test-unit (3.1.8)
4+
browserstack-local (1.3.0)
5+
childprocess (3.0.0)
6+
power_assert (1.1.6)
7+
rake (13.0.1)
8+
rubyzip (1.3.0)
9+
selenium-webdriver (3.142.7)
10+
childprocess (>= 0.5, < 4.0)
11+
rubyzip (>= 1.2.2)
12+
test-unit (3.3.5)
1613
power_assert
17-
websocket (1.2.3)
1814

1915
PLATFORMS
2016
ruby
@@ -26,4 +22,4 @@ DEPENDENCIES
2622
test-unit
2723

2824
BUNDLED WITH
29-
1.11.2
25+
1.17.3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ These can be found on the automate accounts page on [BrowserStack](https://www.b
2020

2121

2222
###Run tests
23-
* Single Test: `rake name_of_test ` Example: `rake windows_firefox_40`
23+
* Single Test: `rake name_of_test ` Example: `rake windows_firefox_70`
2424
You see the other tests in the rakefile.
2525
* Parallel Tests: `rake parallel_test`
2626
* Local test: To run local tests, just set the `browserstack.local` capability to true in the test.

Rakefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ def run_tests(platform, browser, version)
33
system("os=\"#{platform}\" browser=\"#{browser}\" browser_version=\"#{version}\" ruby test.rb")
44
end
55

6-
task :windows_chrome_43 do
7-
run_tests('Windows', 'chrome', '43')
6+
task :windows_chrome_80 do
7+
run_tests('Windows', 'chrome', '80')
88
end
99

10-
task :windows_firefox_40 do
10+
task :windows_firefox_73 do
1111
run_tests('Windows', 'firefox','40')
1212
end
1313

14-
task :windows_chrome_45 do
15-
run_tests('Windows', 'chrome','45')
14+
task :windows_chrome_75 do
15+
run_tests('Windows', 'chrome','75')
1616
end
1717

18-
task :windows_firefox_39 do
19-
run_tests('Windows', 'firefox','39')
18+
task :windows_firefox_70 do
19+
run_tests('Windows', 'firefox','70')
2020
end
2121

2222
multitask :parallel_test => [
23-
:windows_chrome_43,
24-
:windows_firefox_40,
25-
:windows_chrome_45,
26-
:windows_firefox_39
23+
:windows_chrome_80,
24+
:windows_firefox_73,
25+
:windows_chrome_75,
26+
:windows_firefox_70
2727
] do
2828
puts 'Running parallel Tests'
2929
end

test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ def setup
1212
caps["browserstack.local"] = "false"
1313
if caps['browserstack.local'] && caps['browserstack.local'] == 'true';
1414
@bs_local = BrowserStack::Local.new
15-
bs_local_args = { "key" => "#{BROWSERSTACK_ACCESS_KEY}", "forcelocal" => true }
15+
bs_local_args = { "key" => "#{ENV['BROWSERSTACK_ACCESS_KEY']}", "forcelocal" => true }
1616
@bs_local.start(bs_local_args)
1717
end
1818

19-
url = "http://#{BROWSERSTACK_USERNAME}:#{BROWSERSTACK_ACCESS_KEY}@hub.browserstack.com/wd/hub"
19+
url = "http://#{ENV['BROWSERSTACK_USERNAME']}:#{ENV['BROWSERSTACK_ACCESS_KEY']}@hub.browserstack.com/wd/hub"
2020
@driver = Selenium::WebDriver.for(:remote, :url => url, :desired_capabilities => caps)
2121
end
2222

0 commit comments

Comments
 (0)