grid 0.3.3 → 0.3.4
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/VERSION +1 -1
- data/examples/cucumber/step_definitions/example_steps.rb +18 -14
- data/grid.gemspec +1 -1
- data/lib/grid.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
@@ -3,23 +3,27 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib'))
|
|
3
3
|
require 'grid'
|
4
4
|
require 'rspec/expectations';
|
5
5
|
|
6
|
-
|
7
|
-
pending # express the regexp above with the code you wish you had
|
8
|
-
end
|
6
|
+
Grid.control(:controller_uri=>"druby://ec2-50-16-63-81.compute-1.amazonaws.com:11235", :browser=>"chrome") do |browser, id|
|
9
7
|
|
10
|
-
Given /^
|
11
|
-
|
12
|
-
end
|
8
|
+
Given /^(\d+) users open "([^"]*)"$/ do |arg1, arg2|
|
9
|
+
pending # express the regexp above with the code you wish you had
|
10
|
+
end
|
13
11
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
12
|
+
Given /^navigate to the portal$/ do
|
13
|
+
pending # express the regexp above with the code you wish you had
|
14
|
+
end
|
17
15
|
|
18
|
-
|
19
|
-
|
20
|
-
end
|
16
|
+
When /^they enter their credentials$/ do
|
17
|
+
pending # express the regexp above with the code you wish you had
|
18
|
+
end
|
19
|
+
|
20
|
+
Then /^they should see their account settings$/ do
|
21
|
+
pending # express the regexp above with the code you wish you had
|
22
|
+
end
|
23
|
+
|
24
|
+
Then /^the response time should be less than (\d+) seconds$/ do |arg1|
|
25
|
+
pending # express the regexp above with the code you wish you had
|
26
|
+
end
|
21
27
|
|
22
|
-
Then /^the response time should be less than (\d+) seconds$/ do |arg1|
|
23
|
-
pending # express the regexp above with the code you wish you had
|
24
28
|
end
|
25
29
|
|
data/grid.gemspec
CHANGED
data/lib/grid.rb
CHANGED
@@ -20,7 +20,7 @@ class Grid
|
|
20
20
|
log.level = params[:loglevel] || Logger::DEBUG
|
21
21
|
grid = Watir::Grid.new(params)
|
22
22
|
grid.start(:take_all => true)
|
23
|
-
if grid.first[:browser_type] =~ /webdriver/
|
23
|
+
if grid.browsers.first[:browser_type] =~ /webdriver/
|
24
24
|
webdriver_browser_type = ask('What browser type?') { |q| q.default = "firefox" } unless params[:browser]
|
25
25
|
end
|
26
26
|
log.debug("Grid size : #{grid.size}")
|
metadata
CHANGED