test-factory 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/chromedriver.log +65 -0
- data/lib/test-factory/gem_ext.rb +28 -0
- data/test-factory.gemspec +1 -1
- metadata +3 -2
data/Gemfile.lock
CHANGED
data/chromedriver.log
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
[0.007][INFO]: ChromeDriver 21.0.1180.4 /Users/abrahamheward/.rvm/bin/chromedriver
|
2
|
+
[0.222][FINE]: Initializing session with capabilities {
|
3
|
+
"browserName": "chrome",
|
4
|
+
"chrome.detach": true,
|
5
|
+
"chromeOptions": {
|
6
|
+
"detach": true
|
7
|
+
},
|
8
|
+
"cssSelectorsEnabled": true,
|
9
|
+
"javascriptEnabled": true,
|
10
|
+
"nativeEvents": false,
|
11
|
+
"platform": "ANY",
|
12
|
+
"rotatable": false,
|
13
|
+
"takesScreenshot": false,
|
14
|
+
"version": ""
|
15
|
+
}
|
16
|
+
|
17
|
+
[0.223][INFO]: Using named testing interface
|
18
|
+
[1.613][INFO]: Connected to Chrome successfully. Version: 24.0.1312.56
|
19
|
+
[1.660][FINE]: Command received (/session/0191148c7a15996e2a76f1f21531a758)
|
20
|
+
[1.660][FINE]: Command finished (/session/0191148c7a15996e2a76f1f21531a758) with response {
|
21
|
+
"sessionId": "0191148c7a15996e2a76f1f21531a758",
|
22
|
+
"status": 0,
|
23
|
+
"value": {
|
24
|
+
"acceptSslCerts": false,
|
25
|
+
"applicationCacheEnabled": false,
|
26
|
+
"browserConnectionEnabled": false,
|
27
|
+
"browserName": "chrome",
|
28
|
+
"chrome.chromedriverVersion": "21.0.1180.4",
|
29
|
+
"chrome.nativeEvents": false,
|
30
|
+
"cssSelectorsEnabled": true,
|
31
|
+
"databaseEnabled": false,
|
32
|
+
"handlesAlerts": true,
|
33
|
+
"javascriptEnabled": true,
|
34
|
+
"locationContextEnabled": false,
|
35
|
+
"nativeEvents": true,
|
36
|
+
"platform": "mac",
|
37
|
+
"rotatable": false,
|
38
|
+
"takesScreenshot": true,
|
39
|
+
"version": "24.0.1312.56",
|
40
|
+
"webStorageEnabled": true
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
[1.661][FINE]: Command received (/session/0191148c7a15996e2a76f1f21531a758/url)
|
45
|
+
[1.661][FINER]: Waiting for all views to stop loading...
|
46
|
+
[1.661][FINER]: Done waiting for all views to stop loading
|
47
|
+
[1.664][FINER]: Waiting for all views to stop loading...
|
48
|
+
[1.665][FINER]: Done waiting for all views to stop loading
|
49
|
+
[1.665][FINE]: Command finished (/session/0191148c7a15996e2a76f1f21531a758/url) with response {
|
50
|
+
"sessionId": "0191148c7a15996e2a76f1f21531a758",
|
51
|
+
"status": 0,
|
52
|
+
"value": "chrome://newtab/"
|
53
|
+
}
|
54
|
+
|
55
|
+
[1.665][FINE]: Command received (/session/0191148c7a15996e2a76f1f21531a758/title)
|
56
|
+
[1.665][FINER]: Waiting for all views to stop loading...
|
57
|
+
[1.665][FINER]: Done waiting for all views to stop loading
|
58
|
+
[1.668][FINER]: Waiting for all views to stop loading...
|
59
|
+
[1.668][FINER]: Done waiting for all views to stop loading
|
60
|
+
[1.669][FINE]: Command finished (/session/0191148c7a15996e2a76f1f21531a758/title) with response {
|
61
|
+
"sessionId": "0191148c7a15996e2a76f1f21531a758",
|
62
|
+
"status": 0,
|
63
|
+
"value": "New Tab"
|
64
|
+
}
|
65
|
+
|
data/lib/test-factory/gem_ext.rb
CHANGED
@@ -1,3 +1,31 @@
|
|
1
|
+
# We are extending Watir's element methods here with the #fit method,
|
2
|
+
# which can be used with text fields, select lists, radio buttons,
|
3
|
+
# and checkboxes.
|
4
|
+
#
|
5
|
+
# The purpose of #fit is to allow the creation, in your Data Object classes,
|
6
|
+
# of a minimal number of #edit methods (ideally only one) written as
|
7
|
+
# concisely as possible.
|
8
|
+
#
|
9
|
+
# Without the #fit method, you would either have to write separate edit
|
10
|
+
# methods for every possible field you want to edit, or else your
|
11
|
+
# edit method would have to contain lots of repetitive conditional code
|
12
|
+
# to prevent making edits to those fields that don't need it.
|
13
|
+
#
|
14
|
+
# Proper use of the #fit method requires following a particular coding
|
15
|
+
# pattern, however:
|
16
|
+
#
|
17
|
+
# 1) In your Page Classes, define your radio buttons and checkboxes
|
18
|
+
# directly. Do not define #set and/or #clear actions there.
|
19
|
+
# 2) Your data object's instance variables for radio buttons and
|
20
|
+
# checkboxes should have the values of :set or :clear. If they NEED to be
|
21
|
+
# something else, then define a Hash transform method to easily
|
22
|
+
# convert the custom values back to :set or :clear, then pass that
|
23
|
+
# transform to the #fit method.
|
24
|
+
# 3) Always remember to end your #edit methods with the #set_options()
|
25
|
+
# method, from the DataFactory module. It automatically takes care
|
26
|
+
# of updating your data object's instance variables with any
|
27
|
+
# new values.
|
28
|
+
#
|
1
29
|
module Watir
|
2
30
|
module UserEditable
|
3
31
|
|
data/test-factory.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'test-factory'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.5'
|
4
4
|
s.summary = %q{rSmart's framework for creating automated testing scripts}
|
5
5
|
s.description = %q{This gem provides a set of modules and methods to help quickly and DRYly create a test automation framework using Ruby and Watir (or watir-webdriver).}
|
6
6
|
s.files = Dir.glob("**/**/**")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
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-01-
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: watir-webdriver
|
@@ -35,6 +35,7 @@ executables: []
|
|
35
35
|
extensions: []
|
36
36
|
extra_rdoc_files: []
|
37
37
|
files:
|
38
|
+
- chromedriver.log
|
38
39
|
- Gemfile
|
39
40
|
- Gemfile.lock
|
40
41
|
- lib/test-factory/core_ext.rb
|