testcentricity_web 2.1.2 → 2.1.3
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbdb475e58d310a720cabb873258900160ec7519
|
4
|
+
data.tar.gz: 8e3648793ab41e75a5e0506cc0a0ec7cab682f5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e2477c0ac49d7bad4394501c165dc6f2d4d0bdae6063ee945bc439f6effc56c0fadcc4bc13a0410528ae8b43c38664de22c50bf20a08f73a5b6eba124ebabc6
|
7
|
+
data.tar.gz: db1dedaf53dbb28e74a546350c3e1eab0496b22dea147f51773a1ccb86e1126403468098b00bd452937c23792208a2ee8b86b4be8eedc7bac2ea6538530478d4
|
data/README.md
CHANGED
@@ -23,6 +23,12 @@ feature incomplete and potentially unstable. More information can be found [here
|
|
23
23
|
|
24
24
|
|
25
25
|
## What's New
|
26
|
+
###Version 2.1.3
|
27
|
+
|
28
|
+
* Added support for "tiling" or cascading multiple browser windows when the `BROWSER_TILE` and `PARALLEL` Environment Variables are set to true. For each
|
29
|
+
concurrent parallel thread being executed, the position of each browser will be offset by 100 pixels right and 100 pixels down. For parallel test execution,
|
30
|
+
use the [parallel_tests gem](https://github.com/grosser/parallel_tests) to decrease overall test execution time.
|
31
|
+
|
26
32
|
###Version 2.1.2
|
27
33
|
|
28
34
|
* Added device profiles for Microsoft Lumia 950, Blackberry Leap, Blackberry Passport, and Kindle Fire HD 10
|
@@ -27,6 +27,17 @@ module TestCentricity
|
|
27
27
|
window = Capybara.current_session.driver.browser.manage.window
|
28
28
|
window.maximize
|
29
29
|
end
|
30
|
+
# Sets the position of the browser window.
|
31
|
+
#
|
32
|
+
# @param x [Integer] the desired x coordinate
|
33
|
+
# @param y [Integer] the desired y coordinate
|
34
|
+
# @example
|
35
|
+
# Browsers.set_browser_window_position([100, 300])
|
36
|
+
#
|
37
|
+
def self.set_browser_window_position(x, y)
|
38
|
+
window = Capybara.current_session.driver.browser.manage.window
|
39
|
+
window.move_to(x, y)
|
40
|
+
end
|
30
41
|
|
31
42
|
# Refreshes the selenium browser.
|
32
43
|
#
|
@@ -42,6 +42,11 @@ module TestCentricity
|
|
42
42
|
assert_equal(expected, actual, "Expected list #{object_ref_message} to be #{expected} but found #{actual}")
|
43
43
|
end
|
44
44
|
|
45
|
+
def click_item(row)
|
46
|
+
list_item = get_list_row_locator(row)
|
47
|
+
list_item.click
|
48
|
+
end
|
49
|
+
|
45
50
|
def get_list_row_locator(row)
|
46
51
|
"#{@locator}/#{@list_item}[#{row}]"
|
47
52
|
end
|
@@ -420,6 +420,13 @@ module TestCentricity
|
|
420
420
|
elsif Environ.is_mobile? && !Environ.is_device?
|
421
421
|
Browsers.set_browser_window_size(Browsers.browser_size(browser, ENV['ORIENTATION']))
|
422
422
|
end
|
423
|
+
# tile browser windows if running in multiple parallel threads and BROWSER_TILE environment variable is true
|
424
|
+
if ENV['PARALLEL'] && ENV['BROWSER_TILE']
|
425
|
+
thread = ENV['TEST_ENV_NUMBER'].to_i
|
426
|
+
if thread > 1
|
427
|
+
Browsers.set_browser_window_position(100 * thread - 1, 100 * thread - 1)
|
428
|
+
end
|
429
|
+
end
|
423
430
|
end
|
424
431
|
end
|
425
432
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testcentricity_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Mrozinski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|