ole-qa-framework 3.15.0 → 3.15.1
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 +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +10 -0
- data/lib/ole_qa_framework/COMPATIBILITY.rb +1 -1
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olels/pages/batch_file_list.rb +54 -0
- data/lib/olels/pages/batch_process.rb +30 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8d5a16a076a5e285b34851f5dd3fd4ab6e82ee3
|
4
|
+
data.tar.gz: d125eb84acd480971674a729ff56e18d7e6fa724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e11a1f5496eb38da8cd75963f20b9503902ba4fd970ff829c7afe0e78f306b857f7f31fb0626c352079223df67e55eccb51f1f5578a1a62a85752012dbd5a92
|
7
|
+
data.tar.gz: 53978ad9de799717cafb0559ed5533279eff0008f569e5dc6c3c0b96429c180da02fa5922b2a1110a845ecd159149fc378194081f7ef7343eb55c15ada893772
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### v3.15.1
|
2
|
+
|
3
|
+
* Update Batch Process Elements
|
4
|
+
* Add new scheduling elements
|
5
|
+
* Add new cron expression elements
|
6
|
+
* Add submit, close, clear, and cancel buttons
|
7
|
+
* Remove run and schedule buttons
|
8
|
+
* Reference run_now_option instead of run_button in wait_for_elements
|
9
|
+
* Create Batch File List page in OLELS
|
10
|
+
|
1
11
|
### v3.15.0 - 2014/06/18
|
2
12
|
|
3
13
|
* Update Framework module & Session class
|
@@ -0,0 +1,54 @@
|
|
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
|
+
# A File List screen for a Batch Export in the OLE Library System
|
17
|
+
class Batch_File_List < OLE_QA::Framework::Page
|
18
|
+
# Uses Batch Job Details page link.
|
19
|
+
def initialize(ole_session)
|
20
|
+
url = ole_session.url + 'portal.do?channelTitle=Batch Process Job Details&channelUrl='
|
21
|
+
url += ole_session.url + 'ole-kr-krad/oleBatchProcessJobController?viewId=OLEBatchProcessJobDetailsView&methodToCall=jobDocHandler&command=initiate&documentClass=org.kuali.ole.batch.bo.OLEBatchProcessJobDetailsBo'
|
22
|
+
super(ole_session, url)
|
23
|
+
end
|
24
|
+
|
25
|
+
def set_elements
|
26
|
+
super
|
27
|
+
element(:title) {b.span(:class => 'uif-headerText-span')}
|
28
|
+
element(:entries_selector) {b.label(:text => /^Show/,:text => /entries$/).select_list(:index => 0)}
|
29
|
+
element(:entries_text) {b.div(:class => 'dataTables_info',:text => /Showing \d+ to \d+ of \d+ entries/)}
|
30
|
+
element(:next_button) {b.a(:class => 'paginate_active',:class => 'next')}
|
31
|
+
element(:previous_button) {b.a(:class => 'paginate_active',:class => 'previous')}
|
32
|
+
element(:first_button) {b.a(:class => 'paginate_active',:class => 'first')}
|
33
|
+
element(:last_button) {b.a(:class => 'paginate_active',:class => 'last')}
|
34
|
+
end
|
35
|
+
|
36
|
+
def set_functions
|
37
|
+
super
|
38
|
+
# Return the link to a file by searching for the given string or regular expression in the filename.
|
39
|
+
function(:link_by_filename) {|which| b.div(:class => 'uif-linkField',:id => /fileList_line\d+/,:text => which)}
|
40
|
+
# Return whether the link to a file with the given text or regular expression is present.
|
41
|
+
function(:link_by_filename?) {|which| link_by_filename(which).present?}
|
42
|
+
# Return how many total entries exist for this staging area directory.
|
43
|
+
# e.g. Y in 'Showing 1 to X of Y entries'
|
44
|
+
function(:total_entries) { entries_text.present? ? entries_list.text.match(/\d+(?= entries)/)[0] : 0}
|
45
|
+
end
|
46
|
+
|
47
|
+
def wait_for_elements
|
48
|
+
super
|
49
|
+
@wait_on << :title
|
50
|
+
@wait_on << :entries_text
|
51
|
+
@wait_on << :next_button << :previous_button
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -33,18 +33,45 @@ module OLE_QA::Framework::OLELS
|
|
33
33
|
element(:output_format_selector) {b.select_list(:id => 'outputField_control')}
|
34
34
|
element(:output_file_field) {b.text_field(:id => 'outputFileField_control')}
|
35
35
|
element(:input_file_field) {b.input(:id => 'ingestInputFile_control').to_subtype}
|
36
|
-
element(:
|
37
|
-
element(:
|
36
|
+
element(:run_now_option) {b.radio(:id => 'RunNow_Schedule_control_0')}
|
37
|
+
element(:schedule_option) {b.radio(:id => 'RunNow_Schedule_control_1')}
|
38
38
|
element(:marc_file_field) {b.input(:id => 'marcFileField_control').to_subtype}
|
39
39
|
element(:edi_file_field) {b.input(:id => 'ediFileField_control').to_subtype}
|
40
40
|
element(:message) {b.li(:class => 'uif-infoMessageItem')}
|
41
|
+
# The cron_expression_option and scheduler_option appear after schedule_option is selected.
|
42
|
+
element(:cron_expression_option) {b.radio(:id => 'Schedule-provideCronExp_control_0')}
|
43
|
+
element(:scheduler_option) {b.radio(:id => 'Schedule-provideCronExp_control_1')}
|
44
|
+
element(:one_time_option) {b.radio(:id => 'Schedule-oneTimeOrRecurring_control_0')}
|
45
|
+
element(:recurring_option) {b.radio(:id => 'Schedule-oneTimeOrRecurring_control_1')}
|
46
|
+
element(:cron_expression_field) {b.text_field(:id => 'Schedule-cronExpField_control')}
|
47
|
+
element(:schedule_date_field) {b.text_field(:id => 'Schedule-DateField_control')}
|
48
|
+
element(:schedule_time_field) {b.text_field(:id => 'Schedule-timeField_control')}
|
49
|
+
element(:schedule_daily_option) {b.radio(:id => 'Schedule-RadioButtons_control_0')}
|
50
|
+
element(:schedule_weekly_option) {b.radio(:id => 'Schedule-RadioButtons_control_1')}
|
51
|
+
element(:schedule_monthly_option) {b.radio(:id => 'Schedule-RadioButtons_control_2')}
|
52
|
+
element(:schedule_start_time_field) {b.radio(:id => 'Schedule-startTimeField_control')}
|
53
|
+
element(:monday_checkbox) {b.checkbox(:id => 'weekDaysField_control_0')}
|
54
|
+
element(:tuesday_checkbox) {b.checkbox(:id => 'weekDaysField_control_1')}
|
55
|
+
element(:wednesday_checkbox) {b.checkbox(:id => 'weekDaysField_control_2')}
|
56
|
+
element(:thursday_checkbox) {b.checkbox(:id => 'weekDaysField_control_3')}
|
57
|
+
element(:friday_checkbox) {b.checkbox(:id => 'weekDaysField_control_4')}
|
58
|
+
element(:saturday_checkbox) {b.checkbox(:id => 'weekDaysField_control_5')}
|
59
|
+
element(:sunday_checkbox) {b.checkbox(:id => 'weekDaysField_control_6')}
|
60
|
+
element(:day_of_month_selector) {b.select(:id => 'weekNumberField_control')}
|
61
|
+
element(:month_number_field) {b.text_field(:id => 'monthNumberField_control')}
|
62
|
+
# Please note that these buttons will not show up unless a Batch Process Profile is selected.
|
63
|
+
# - JKW, 6/24/2014, 1.5-M2-r19440
|
64
|
+
element(:submit_button) {b.button(:id => 'BP-Uif-SubmitAction')}
|
65
|
+
element(:close_button) {b.button(:id => 'uclose')}
|
66
|
+
element(:clear_button) {b.button(:class => 'btn',:text => /[Cc]lear/)}
|
67
|
+
element(:cancel_button) {b.button(:id => 'ucancel')}
|
41
68
|
end
|
42
69
|
|
43
70
|
def wait_for_elements
|
44
71
|
super
|
45
72
|
@wait_on << :title
|
46
73
|
@wait_on << :name_field
|
47
|
-
@wait_on << :
|
74
|
+
@wait_on << :run_now_option
|
48
75
|
end
|
49
76
|
end
|
50
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ole-qa-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.15.
|
4
|
+
version: 3.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jain Waldrip
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- lib/olels/objects/patron_phone_line.rb
|
184
184
|
- lib/olels/objects/workbench_line.rb
|
185
185
|
- lib/olels/pages/batch_export_profile.rb
|
186
|
+
- lib/olels/pages/batch_file_list.rb
|
186
187
|
- lib/olels/pages/batch_import_profile.rb
|
187
188
|
- lib/olels/pages/batch_job_details.rb
|
188
189
|
- lib/olels/pages/batch_job_report.rb
|
@@ -242,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
243
|
version: '0'
|
243
244
|
requirements: []
|
244
245
|
rubyforge_project:
|
245
|
-
rubygems_version: 2.2.
|
246
|
+
rubygems_version: 2.2.2
|
246
247
|
signing_key:
|
247
248
|
specification_version: 4
|
248
249
|
summary: Kuali Open Library Environment
|