ole-qa-framework 3.11.2 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +4 -4
- data/data/accounts.yml +4 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olels/pages/item_lookup.rb +56 -0
- data/lib/olels/pages/request.rb +2 -0
- metadata +21 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bd3103f8a7da3c456a189fb5bcc440af38e408aa
|
4
|
+
data.tar.gz: 69ac17b371a494dc4896784406e7d225314798f8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b7524746462b5ff29c1402d929b789b4efef0dcb6ccdf2d31a550da54f465660ba3e0e8d82dd80afdc2353952feb366a81f3e4499f225288a64564788ba5ee2f
|
7
|
+
data.tar.gz: d8a52b38974e72faaddbdcdc23941a0e2ced9381c33cfab9b816adf20a290c7bc8a3614d097cee8d63ba51fd4bfb5219a7aa456b0996802f1d2874962dbc83ab
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
### v3.
|
1
|
+
### v3.12.0 - 2014/03/05
|
2
2
|
|
3
|
-
*
|
4
|
-
*
|
5
|
-
*
|
3
|
+
* Request Features
|
4
|
+
* Added .item_search_icon & .item_barcode_icon (same element) to Request page
|
5
|
+
* Added Item Lookup page (only accessible from Request page)
|
6
6
|
|
7
7
|
### v3.11.1 - 2014/02/19
|
8
8
|
|
data/data/accounts.yml
CHANGED
@@ -0,0 +1,56 @@
|
|
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::OLELS
|
16
|
+
# The Item Lookup page in the OLE Library System.
|
17
|
+
class Item_Lookup < OLE_QA::Framework::Page
|
18
|
+
def initialize(ole_session)
|
19
|
+
# Direct linking for a new request is not possible, so the URL is for Request_Lookup.
|
20
|
+
url = ole_session.url + 'portal.do?channelTitle=Request&channelUrl='
|
21
|
+
url += ole_session.url + 'ole-kr-krad/lookup?methodToCall=start&dataObjectClassName=org.kuali.ole.deliver.bo.OleDeliverRequestBo&returnLocation='
|
22
|
+
url += ole_session.url + 'portal.do&hideReturnLink=true&showMaintenanceLinks=true'
|
23
|
+
super(ole_session,url)
|
24
|
+
end
|
25
|
+
|
26
|
+
def set_elements
|
27
|
+
super
|
28
|
+
element(:title) {b.span(:class => 'uif-headerText-span')}
|
29
|
+
element(:title_field) {b.text_field(:name => 'lookupCriteria[title]')}
|
30
|
+
element(:author_field) {b.text_field(:name => 'lookupCriteria[author]')}
|
31
|
+
element(:publisher_field) {b.text_field(:name => 'lookupCriteria[publisher]')}
|
32
|
+
element(:barcode_field) {b.text_field(:name => 'lookupCriteria[itemBarCode]')}
|
33
|
+
element(:call_number_field) {b.text_field(:name => 'lookupCriteria[callNumber]')}
|
34
|
+
element(:item_type_selector) {b.select_list(:name => 'lookupCriteria[itemType]')}
|
35
|
+
element(:search_button) {b.button(:text => /[Ss]earch/)}
|
36
|
+
element(:clear_button) {b.button(:text => /[Cc]lear [Vv]alues/)}
|
37
|
+
element(:close_button) {b.button(:text => /[Cc]lose/)}
|
38
|
+
element(:error_message) {b.li(:class => 'uif-errorMessageItem')}
|
39
|
+
end
|
40
|
+
|
41
|
+
def set_functions
|
42
|
+
super
|
43
|
+
# Determine if the given text exists in the search results.
|
44
|
+
function(:text_in_results) {|which| b.span(:class => 'uif-readOnlyContent',:text => /#{which}/)}
|
45
|
+
function(:text_in_results?) {|which| text_in_results(which).present?}
|
46
|
+
# Find the 'return value' link for a row containing the given text.
|
47
|
+
function(:return_by_text) {|which| text_in_results(which).parent.parent.parent.td(:index => 0).div(:index => 0).fieldset(:index => 0).div(:index => 0).div(:index => 1).a(:text => /return value/)}
|
48
|
+
end
|
49
|
+
|
50
|
+
def wait_for_elements
|
51
|
+
super
|
52
|
+
@wait_on << :title_field << :barcode_field
|
53
|
+
@wait_on << :search_button
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
data/lib/olels/pages/request.rb
CHANGED
@@ -45,6 +45,8 @@ module OLE_QA::Framework::OLELS
|
|
45
45
|
# The following fields only appear after a request type is selected.
|
46
46
|
# (Except request types 'Recall/Delivery Request 1' and 'Recall/Delivery Request 2')
|
47
47
|
element(:item_barcode_field) {b.text_field(:id => /itemId_control/)}
|
48
|
+
element(:item_search_icon) {b.fieldset(:id => 'OnholdRequest-itemId_fieldset').input(:class => 'uif-actionImage',:title => 'Search Field')}
|
49
|
+
element(:item_barcode_icon) {b.fieldset(:id => 'OnholdRequest-itemId_fieldset').input(:class => 'uif-actionImage',:title => 'Search Field')}
|
48
50
|
element(:item_title_field) {b.text_field(:id => /itemTitle_control/)}
|
49
51
|
element(:item_author_field) {b.text_field(:id => /author_control/)}
|
50
52
|
element(:item_location_field) {b.text_field(:id => /shelvingLocation_control/)}
|
metadata
CHANGED
@@ -1,110 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ole-qa-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
5
|
-
prerelease:
|
4
|
+
version: 3.12.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jain Waldrip
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: yard
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: watir-webdriver
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: 0.6.5
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: 0.6.5
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: headless
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rspec
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
description: Watir-Webdriver Based Page-Object Framework for Kuali Open Library Environment
|
@@ -115,7 +102,7 @@ executables: []
|
|
115
102
|
extensions: []
|
116
103
|
extra_rdoc_files: []
|
117
104
|
files:
|
118
|
-
- .gitignore
|
105
|
+
- ".gitignore"
|
119
106
|
- CHANGELOG.md
|
120
107
|
- Gemfile
|
121
108
|
- LICENSE.md
|
@@ -206,6 +193,7 @@ files:
|
|
206
193
|
- lib/olels/pages/describe_workbench.rb
|
207
194
|
- lib/olels/pages/instance_editor.rb
|
208
195
|
- lib/olels/pages/item_editor.rb
|
196
|
+
- lib/olels/pages/item_lookup.rb
|
209
197
|
- lib/olels/pages/loan.rb
|
210
198
|
- lib/olels/pages/location.rb
|
211
199
|
- lib/olels/pages/location_level_lookup.rb
|
@@ -235,27 +223,26 @@ files:
|
|
235
223
|
homepage: http://www.github.com/jkwaldrip/ole-qa-framework/
|
236
224
|
licenses:
|
237
225
|
- ECLv2
|
226
|
+
metadata: {}
|
238
227
|
post_install_message:
|
239
228
|
rdoc_options: []
|
240
229
|
require_paths:
|
241
230
|
- lib
|
242
231
|
required_ruby_version: !ruby/object:Gem::Requirement
|
243
|
-
none: false
|
244
232
|
requirements:
|
245
|
-
- -
|
233
|
+
- - ">="
|
246
234
|
- !ruby/object:Gem::Version
|
247
235
|
version: 1.9.3
|
248
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
|
-
none: false
|
250
237
|
requirements:
|
251
|
-
- -
|
238
|
+
- - ">="
|
252
239
|
- !ruby/object:Gem::Version
|
253
240
|
version: '0'
|
254
241
|
requirements: []
|
255
242
|
rubyforge_project:
|
256
|
-
rubygems_version:
|
243
|
+
rubygems_version: 2.2.0
|
257
244
|
signing_key:
|
258
|
-
specification_version:
|
245
|
+
specification_version: 4
|
259
246
|
summary: Kuali Open Library Environment
|
260
247
|
test_files:
|
261
248
|
- spec/common/browser_spec.rb
|