ole-qa-framework 3.5.0 → 3.6.0
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/CHANGELOG.md +6 -0
- data/data/patron.yml +105 -0
- data/lib/data_factory/patron_factory.rb +32 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/spec/data_factory/patron_factory_spec.rb +29 -0
- metadata +23 -5
- checksums.yaml +0 -15
data/CHANGELOG.md
CHANGED
data/data/patron.yml
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
#
|
2
|
+
# Patron sample data culled from the Kuali OLE Development Environment at:
|
3
|
+
# http://dev.ole.kuali.org/
|
4
|
+
#
|
5
|
+
---
|
6
|
+
- :id: 00100055U
|
7
|
+
:first: Stephanie
|
8
|
+
:last: Sample
|
9
|
+
:barcode: '6010570003043558'
|
10
|
+
- :id: 00100245N
|
11
|
+
:first: Mary
|
12
|
+
:last: Mample
|
13
|
+
:barcode: '6010570001520755'
|
14
|
+
- :id: 00155937C
|
15
|
+
:first: Madhur
|
16
|
+
:last: Tample
|
17
|
+
:barcode: '6010570002965975'
|
18
|
+
- :id: 00207422T
|
19
|
+
:first: Lee
|
20
|
+
:last: Mample
|
21
|
+
:barcode: '6010570001340972'
|
22
|
+
- :id: 00267058Y
|
23
|
+
:first: Yong
|
24
|
+
:last: Wample
|
25
|
+
:barcode: '6010570003168413'
|
26
|
+
- :id: 00285722W
|
27
|
+
:first: Phoebe
|
28
|
+
:last: Rample
|
29
|
+
:barcode: '6010570002205588'
|
30
|
+
- :id: 00377755J
|
31
|
+
:first: Michael
|
32
|
+
:last: Kample
|
33
|
+
:barcode: '6010570002978960'
|
34
|
+
- :id: 00389218X
|
35
|
+
:first: Kathryn
|
36
|
+
:last: Sample
|
37
|
+
:barcode: '6010570003113021'
|
38
|
+
- :id: 00399410S
|
39
|
+
:first: Joann
|
40
|
+
:last: Tample
|
41
|
+
:barcode: '6010570002465109'
|
42
|
+
- :id: 00439710L
|
43
|
+
:first: Peter
|
44
|
+
:last: Vample
|
45
|
+
:barcode: '6010570002971114'
|
46
|
+
- :id: 00497711Q
|
47
|
+
:first: Lorraine
|
48
|
+
:last: Lample
|
49
|
+
:barcode: '6010570002963814'
|
50
|
+
- :id: 00531853E
|
51
|
+
:first: Andrew
|
52
|
+
:last: Sample
|
53
|
+
:barcode: '6010570002473400'
|
54
|
+
- :id: 00101386C
|
55
|
+
:first: Luis
|
56
|
+
:last: Gample
|
57
|
+
:barcode: '6010570002812540'
|
58
|
+
- :id: 00550664T
|
59
|
+
:first: Atul
|
60
|
+
:last: Kample
|
61
|
+
:barcode: '6010570003192652'
|
62
|
+
- :id: 00555571M
|
63
|
+
:first: Charles
|
64
|
+
:last: Tample
|
65
|
+
:barcode: '6010570002996830'
|
66
|
+
- :id: 00562708W
|
67
|
+
:first: Cynthia-Clare
|
68
|
+
:last: Mample
|
69
|
+
:barcode: '6010570003071658'
|
70
|
+
- :id: 00613829R
|
71
|
+
:first: Rebecca
|
72
|
+
:last: Bample
|
73
|
+
:barcode: '6010570002327085'
|
74
|
+
- :id: 20033895P
|
75
|
+
:first: Jim
|
76
|
+
:last: Rample
|
77
|
+
:barcode: '6010570002605647'
|
78
|
+
- :id: 31286003Q
|
79
|
+
:first: Jim
|
80
|
+
:last: Cample
|
81
|
+
:barcode: '6010570002604954'
|
82
|
+
- :id: 51415157F
|
83
|
+
:first: Andrew
|
84
|
+
:last: Wample
|
85
|
+
:barcode: '6010570002790936'
|
86
|
+
- :id: 91858467H
|
87
|
+
:first: Brian
|
88
|
+
:last: Wample
|
89
|
+
:barcode: '6010570003027627'
|
90
|
+
- :id: 41752075D
|
91
|
+
:first: Todd
|
92
|
+
:last: Wample
|
93
|
+
:barcode: '1234567'
|
94
|
+
- :id: 01382801U
|
95
|
+
:first: Marta
|
96
|
+
:last: Rample
|
97
|
+
:barcode: '6010570003009864'
|
98
|
+
- :id: 00101906D
|
99
|
+
:first: Andrew
|
100
|
+
:last: Jample
|
101
|
+
:barcode: '6010570001702841'
|
102
|
+
- :id: 90110553B
|
103
|
+
:first: Michael
|
104
|
+
:last: Uample
|
105
|
+
:barcode: '6010570002635602'
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Copyright 2005-2013 The Kuali Foundation
|
2
|
+
#
|
3
|
+
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at:
|
6
|
+
#
|
7
|
+
# http://www.opensource.org/licenses/ecl2.php
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module OLE_QA::Framework
|
16
|
+
# Return usable patron records from source files in ole-qa-framework/data/patron.yml
|
17
|
+
class Patron_Factory
|
18
|
+
patron_file = File.open("#{OLE_QA::Framework.data_dir}/patron.yml",'r')
|
19
|
+
@patron_matrix = YAML.load(patron_file)
|
20
|
+
patron_file.close
|
21
|
+
|
22
|
+
class << self
|
23
|
+
# An array containing a collection of valid OLE patron records.
|
24
|
+
attr_reader :patron_matrix
|
25
|
+
|
26
|
+
# Return a random patron record.
|
27
|
+
def select_patron
|
28
|
+
@patron_matrix.sample
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright 2005-2013 The Kuali Foundation
|
2
|
+
#
|
3
|
+
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at:
|
6
|
+
#
|
7
|
+
# http://www.opensource.org/licenses/ecl2.php
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'rspec'
|
16
|
+
require 'spec_helper'
|
17
|
+
|
18
|
+
describe 'The Patron Factory' do
|
19
|
+
|
20
|
+
it 'should have a patron matrix' do
|
21
|
+
OLE_QA::Framework::Patron_Factory.patron_matrix.should be_an(Array)
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'should select a patron record' do
|
25
|
+
patron = OLE_QA::Framework::Patron_Factory.select_patron
|
26
|
+
patron.should be_a(Hash)
|
27
|
+
patron.should include(:id, :first, :last, :barcode)
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ole-qa-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Jain Waldrip
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: rake
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: yard
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: watir-webdriver
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :runtime
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,6 +78,7 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: headless
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
83
|
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
@@ -76,6 +86,7 @@ dependencies:
|
|
76
86
|
type: :runtime
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
91
|
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
@@ -83,6 +94,7 @@ dependencies:
|
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: rspec
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
99
|
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
@@ -90,6 +102,7 @@ dependencies:
|
|
90
102
|
type: :runtime
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
107
|
- - ! '>='
|
95
108
|
- !ruby/object:Gem::Version
|
@@ -110,6 +123,7 @@ files:
|
|
110
123
|
- Rakefile.rb
|
111
124
|
- data/accounts.yml
|
112
125
|
- data/objects.yml
|
126
|
+
- data/patron.yml
|
113
127
|
- lib/common/common_object.rb
|
114
128
|
- lib/common/data_object.rb
|
115
129
|
- lib/common/line_object.rb
|
@@ -120,6 +134,7 @@ files:
|
|
120
134
|
- lib/config/default_options.yml
|
121
135
|
- lib/data_factory/account_factory.rb
|
122
136
|
- lib/data_factory/bib_factory.rb
|
137
|
+
- lib/data_factory/patron_factory.rb
|
123
138
|
- lib/data_factory/string_factory.rb
|
124
139
|
- lib/docstore/common/results.rb
|
125
140
|
- lib/docstore/pages/marc_results.rb
|
@@ -201,6 +216,7 @@ files:
|
|
201
216
|
- spec/common/subline_object_spec.rb
|
202
217
|
- spec/data_factory/account_factory_spec.rb
|
203
218
|
- spec/data_factory/bib_factory_spec.rb
|
219
|
+
- spec/data_factory/patron_factory_spec.rb
|
204
220
|
- spec/data_factory/string_factory_spec.rb
|
205
221
|
- spec/modules/qa_helpers_spec.rb
|
206
222
|
- spec/modules/qa_page_helpers_spec.rb
|
@@ -208,26 +224,27 @@ files:
|
|
208
224
|
homepage: http://www.github.com/jkwaldrip/ole-qa-framework/
|
209
225
|
licenses:
|
210
226
|
- ECLv2
|
211
|
-
metadata: {}
|
212
227
|
post_install_message:
|
213
228
|
rdoc_options: []
|
214
229
|
require_paths:
|
215
230
|
- lib
|
216
231
|
required_ruby_version: !ruby/object:Gem::Requirement
|
232
|
+
none: false
|
217
233
|
requirements:
|
218
234
|
- - ~>
|
219
235
|
- !ruby/object:Gem::Version
|
220
236
|
version: 1.9.3
|
221
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
|
+
none: false
|
222
239
|
requirements:
|
223
240
|
- - ! '>='
|
224
241
|
- !ruby/object:Gem::Version
|
225
242
|
version: '0'
|
226
243
|
requirements: []
|
227
244
|
rubyforge_project:
|
228
|
-
rubygems_version:
|
245
|
+
rubygems_version: 1.8.23
|
229
246
|
signing_key:
|
230
|
-
specification_version:
|
247
|
+
specification_version: 3
|
231
248
|
summary: Kuali Open Library Environment
|
232
249
|
test_files:
|
233
250
|
- spec/common/browser_spec.rb
|
@@ -237,6 +254,7 @@ test_files:
|
|
237
254
|
- spec/common/subline_object_spec.rb
|
238
255
|
- spec/data_factory/account_factory_spec.rb
|
239
256
|
- spec/data_factory/bib_factory_spec.rb
|
257
|
+
- spec/data_factory/patron_factory_spec.rb
|
240
258
|
- spec/data_factory/string_factory_spec.rb
|
241
259
|
- spec/modules/qa_helpers_spec.rb
|
242
260
|
- spec/modules/qa_page_helpers_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
ODlmZmJiYmUwYjkzMzg1MzAyODk1MzA5OTMzYjYwYzhhODJiNTE5Yg==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MTBlNTAzMzI4NTIzMTQwNjAxY2FjODgyOTBjNjVhOGMzNTdmNjdlZA==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YWIwNGQ1NjFkYzQyNDE5OTM2MjU5OTZkYTk3ZmIxNjk2NDY0YTAyMmQwY2Qx
|
10
|
-
ZjE3NjZiNzAyZGUxNzFiMTAxZmI0ZjA1N2ZkMDljYTI4YjMyMmNlMGIwZDZh
|
11
|
-
NmIyZTRlNzYzOGQzOWI4MmQxZDc5NDQ1MjUwOWEzZjUzMDE3Nzc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzM2YTFkMDViYmU3OTQwMjg3N2M1NjhlY2E0MjcxM2VjZjU5YzNjMTVjNjUy
|
14
|
-
YjkzZmJhZWUwNjYwMzFlZDRhMDM3OTcxY2EwYmE3MGRhM2M1NGJmN2I1MjI5
|
15
|
-
MDI0YzVlOWUxN2NmMGJhM2ZkNTk3YWMzZGQ4OWM1MjY2YjMyNGY=
|