testcentricity_web 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 599df69ebfa01cb46d71d9210068a0b12dfa1d19
|
4
|
+
data.tar.gz: d9e31fdd630c11f83d3ff750020c9b34d70ec2a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c79cbfc62ecd10274cb233cfa76e3e239ce604f440d5b0ea2e3706cd068df9ea3a27c55f6c78ea8f012b5bae40b69f9d25404ec6a6376337e9cfc4fe19fda146
|
7
|
+
data.tar.gz: 7ca95d921771456b3b16fc7b6d20033274188bdfcde23101f1b01b7be92536460f2bf9cbe4d7879463f6163f72b230053a9d845505329af10bc35c457b4cfc8e
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ use with Cucumber, Capybara, and Selenium-Webdriver.
|
|
9
9
|
The TestCentricity™ Web gem supports running automated tests against the following web test targets:
|
10
10
|
|
11
11
|
* locally hosted desktop browsers (Firefox*, Chrome, Safari, or IE)
|
12
|
-
* locally hosted emulated iOS Mobile Safari, Android, Windows Phone, or Blackberry mobile browsers (
|
12
|
+
* locally hosted emulated iOS Mobile Safari, Android, Windows Phone, or Blackberry mobile browsers (running within Firefox or Chrome)
|
13
13
|
* a "headless" browser (using Poltergeist and PhantomJS)
|
14
14
|
* mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X)
|
15
15
|
* cloud hosted desktop (Firefox, Chrome, Safari, IE, or Edge) or mobile (iOS Mobile Safari or Android) web browsers using the [Browserstack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate),
|
@@ -11,6 +11,11 @@ module TestCentricity
|
|
11
11
|
Capybara.ignore_hidden_elements = true
|
12
12
|
end
|
13
13
|
|
14
|
+
def file_upload(file_path)
|
15
|
+
obj, = find_element(false)
|
16
|
+
obj.send_keys(file_path)
|
17
|
+
end
|
18
|
+
|
14
19
|
def drop_files(files)
|
15
20
|
js_script = 'fileList = Array();'
|
16
21
|
files.count.times do |i|
|
@@ -223,8 +223,6 @@ module TestCentricity
|
|
223
223
|
test_value = value.split('!', 2)
|
224
224
|
parameter = test_value[1].split('.', 2)
|
225
225
|
case parameter[0]
|
226
|
-
when 'Address', 'Bitcoin', 'Business', 'Code', 'Color', 'Commerce', 'Company', 'Crypto', 'File', 'Hacker', 'Hipster', 'Internet', 'Lorem', 'Name', 'Number', 'PhoneNumber'
|
227
|
-
result = eval("Faker::#{parameter[0]}.#{parameter[1]}")
|
228
226
|
when 'Date'
|
229
227
|
result = eval("Chronic.parse('#{parameter[1]}')")
|
230
228
|
when 'FormattedDate', 'FormatDate'
|
@@ -232,7 +230,11 @@ module TestCentricity
|
|
232
230
|
date_time = eval("Chronic.parse('#{date_time_params[0].strip}')")
|
233
231
|
result = date_time.to_s.format_date_time("#{date_time_params[1].strip}")
|
234
232
|
else
|
235
|
-
|
233
|
+
if Faker.constants.include?(parameter[0].to_sym)
|
234
|
+
result = eval("Faker::#{parameter[0]}.#{parameter[1]}")
|
235
|
+
else
|
236
|
+
result = eval(test_value[1])
|
237
|
+
end
|
236
238
|
end
|
237
239
|
result.to_s
|
238
240
|
end
|
data/testcentricity_web.gemspec
CHANGED
@@ -12,10 +12,10 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.email = ['testcentricity@gmail.com']
|
13
13
|
spec.summary = %q{A Page Object and Data Object Model Framework for desktop and mobile web testing}
|
14
14
|
spec.description = %q{
|
15
|
-
TestCentricity™ Web core generic framework for desktop and mobile web site testing implements a Page Object Model DSL
|
15
|
+
The TestCentricity™ Web core generic framework for desktop and mobile web site testing implements a Page Object Model DSL
|
16
16
|
for use with Cucumber, Capybara, and Selenium-Webdriver. The TestCentricity™ Web gem supports running automated tests
|
17
|
-
against locally hosted desktop browsers (Firefox, Chrome, Safari, or IE), locally hosted emulated mobile (iOS,
|
18
|
-
Windows Phone, Blackberry)
|
17
|
+
against locally hosted desktop browsers (Firefox, Chrome, Safari, or IE), locally hosted emulated mobile browsers (iOS,
|
18
|
+
Android, Windows Phone, Blackberry) running within Firefox or Chrome, a "headless" browser (using Poltergeist and PhantomJS),
|
19
19
|
mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X), or cloud hosted desktop or mobile
|
20
20
|
web browsers (using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services).}
|
21
21
|
spec.homepage = ''
|
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.0.
|
4
|
+
version: 2.0.10
|
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-
|
11
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -178,10 +178,10 @@ dependencies:
|
|
178
178
|
version: '0'
|
179
179
|
description: |2-
|
180
180
|
|
181
|
-
TestCentricity™ Web core generic framework for desktop and mobile web site testing implements a Page Object Model DSL
|
181
|
+
The TestCentricity™ Web core generic framework for desktop and mobile web site testing implements a Page Object Model DSL
|
182
182
|
for use with Cucumber, Capybara, and Selenium-Webdriver. The TestCentricity™ Web gem supports running automated tests
|
183
|
-
against locally hosted desktop browsers (Firefox, Chrome, Safari, or IE), locally hosted emulated mobile (iOS,
|
184
|
-
Windows Phone, Blackberry)
|
183
|
+
against locally hosted desktop browsers (Firefox, Chrome, Safari, or IE), locally hosted emulated mobile browsers (iOS,
|
184
|
+
Android, Windows Phone, Blackberry) running within Firefox or Chrome, a "headless" browser (using Poltergeist and PhantomJS),
|
185
185
|
mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X), or cloud hosted desktop or mobile
|
186
186
|
web browsers (using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services).
|
187
187
|
email:
|