ole-qa-framework 3.1.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/CHANGELOG.md +14 -1
  2. data/lib/common/page.rb +3 -0
  3. data/lib/ole_qa_framework/VERSION.rb +1 -1
  4. data/lib/olels/common/batch_profile.rb +53 -0
  5. data/lib/olels/objects/batch_data_mapping_line.rb +41 -0
  6. data/lib/olels/objects/batch_delete_field_line.rb +26 -0
  7. data/lib/olels/objects/batch_rename_field_line.rb +32 -0
  8. data/lib/olels/objects/export_filter_line.rb +28 -0
  9. data/lib/olels/objects/import_defaults_line.rb +27 -0
  10. data/{spec/olels/main_menu_spec.rb → lib/olels/objects/import_match_line.rb} +7 -19
  11. data/lib/olels/objects/import_pf_line.rb +27 -0
  12. data/lib/olels/pages/batch_export_profile.rb +82 -0
  13. data/lib/olels/pages/batch_import_profile.rb +136 -0
  14. data/lib/olels/pages/batch_job_details.rb +48 -0
  15. data/lib/olels/pages/batch_process.rb +47 -0
  16. data/lib/olels/pages/batch_profile_lookup.rb +56 -0
  17. data/lib/olels/pages/batch_type_lookup.rb +52 -0
  18. data/spec/common/page_spec.rb +30 -1
  19. data/spec/modules/qa_page_helpers_spec.rb +1 -1
  20. metadata +16 -98
  21. data/spec/olefs/accounting_line_spec.rb +0 -64
  22. data/spec/olefs/building_lookup_spec.rb +0 -45
  23. data/spec/olefs/copies_line_spec.rb +0 -56
  24. data/spec/olefs/edocs_spec.rb +0 -75
  25. data/spec/olefs/exception_notes_line_spec.rb +0 -46
  26. data/spec/olefs/invoice_current_item_spec.rb +0 -48
  27. data/spec/olefs/invoice_line_item_spec.rb +0 -80
  28. data/spec/olefs/invoice_line_spec.rb +0 -64
  29. data/spec/olefs/invoice_spec.rb +0 -91
  30. data/spec/olefs/line_item_spec.rb +0 -129
  31. data/spec/olefs/load_report_spec.rb +0 -56
  32. data/spec/olefs/load_summary_lookup_spec.rb +0 -53
  33. data/spec/olefs/lookup_spec.rb +0 -50
  34. data/spec/olefs/main_menu_spec.rb +0 -34
  35. data/spec/olefs/notes_line_spec.rb +0 -53
  36. data/spec/olefs/payment_request_spec.rb +0 -43
  37. data/spec/olefs/processing_line_spec.rb +0 -45
  38. data/spec/olefs/purap_document_spec.rb +0 -80
  39. data/spec/olefs/purchase_order_spec.rb +0 -63
  40. data/spec/olefs/receipt_notes_line_spec.rb +0 -45
  41. data/spec/olefs/receive_spec.rb +0 -51
  42. data/spec/olefs/receiving_line_spec.rb +0 -87
  43. data/spec/olefs/requisition_spec.rb +0 -71
  44. data/spec/olefs/vendor_lookup_spec.rb +0 -49
  45. data/spec/olels/access_info_line_spec.rb +0 -40
  46. data/spec/olels/bib_editor_spec.rb +0 -87
  47. data/spec/olels/control_006_line_spec.rb +0 -41
  48. data/spec/olels/control_007_line_spec.rb +0 -41
  49. data/spec/olels/data_line_spec.rb +0 -44
  50. data/spec/olels/describe_workbench_spec.rb +0 -75
  51. data/spec/olels/editor_spec.rb +0 -68
  52. data/spec/olels/edocs_spec.rb +0 -50
  53. data/spec/olels/holdings_note_spec.rb +0 -41
  54. data/spec/olels/instance_editor_spec.rb +0 -73
  55. data/spec/olels/item_editor_spec.rb +0 -96
  56. data/spec/olels/item_note_spec.rb +0 -41
  57. data/spec/olels/loan_spec.rb +0 -104
  58. data/spec/olels/lookup_spec.rb +0 -38
  59. data/spec/olels/ownership_extent_line_spec.rb +0 -48
  60. data/spec/olels/ownership_note_spec.rb +0 -42
  61. data/spec/olels/patron_address_line_spec.rb +0 -55
  62. data/spec/olels/patron_email_line_spec.rb +0 -44
  63. data/spec/olels/patron_lookup_spec.rb +0 -54
  64. data/spec/olels/patron_phone_line_spec.rb +0 -47
  65. data/spec/olels/patron_spec.rb +0 -93
  66. data/spec/olels/return_spec.rb +0 -72
  67. data/spec/olels/staff_upload_spec.rb +0 -55
@@ -1,42 +0,0 @@
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 'An OLELS Ownership Note object' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @line = OLE_QA::Framework::OLELS::Ownership_Extent_Line.new(@ole)
23
- @ownership_note = OLE_QA::Framework::OLELS::Ownership_Note.new(@ole, @line, 1)
24
- end
25
-
26
- after :all do
27
- @ole.quit
28
- end
29
-
30
- it 'should create a new instance' do
31
- @ownership_note.class.should == OLE_QA::Framework::OLELS::Ownership_Note
32
- @ownership_note.class.superclass.should == OLE_QA::Framework::Subline_Object
33
- end
34
-
35
- it 'should have ownership note elements' do
36
- elements = @ownership_note.methods
37
- elements.include?(:note_type_selector).should be_true
38
- elements.include?(:note_field).should be_true
39
- elements.include?(:add_button).should be_true
40
- elements.include?(:remove_button).should be_true
41
- end
42
- end
@@ -1,55 +0,0 @@
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 'A patron address line' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @line_1 = OLE_QA::Framework::OLELS::Patron_Address_Line.new(@ole, 1)
23
- @line_2 = OLE_QA::Framework::OLELS::Patron_Address_Line.new(@ole, 2)
24
- end
25
-
26
- after :all do
27
- @ole.quit
28
- end
29
-
30
- it 'should create a new instance' do
31
- @line_1.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Address_Line)
32
- @line_1.class.superclass.should == OLE_QA::Framework::Line_Object
33
- end
34
-
35
- it 'should have address line elements' do
36
- elements = @line_1.elements
37
- elements.should include(:details_link)
38
- elements.should include(:address_type_selector)
39
- elements.should include(:address_source_selector)
40
- elements.should include(:valid_from_date_field)
41
- elements.should include(:valid_to_date_field)
42
- elements.should include(:verified_checkbox)
43
- elements.should include(:preferred_checkbox)
44
- elements.should include(:active_checkbox)
45
- elements.should include(:line_1_field)
46
- elements.should include(:line_2_field)
47
- elements.should include(:line_3_field)
48
- elements.should include(:city_field)
49
- elements.should include(:state_selector)
50
- elements.should include(:postal_code_field)
51
- elements.should include(:country_selector)
52
- elements.should include(:add_button)
53
- elements.should include(:delete_button)
54
- end
55
- end
@@ -1,44 +0,0 @@
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 'A patron email line' do
19
- before :all do
20
- @ole = OLE_QA::Framework::Session.new
21
- @line_1 = OLE_QA::Framework::OLELS::Patron_Email_Line.new(@ole,1)
22
- @line_2 = OLE_QA::Framework::OLELS::Patron_Email_Line.new(@ole,2)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @line_1.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Email_Line)
31
- @line_2.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Email_Line)
32
- @line_1.class.superclass.should == OLE_QA::Framework::Line_Object
33
- end
34
-
35
- it 'should have email line elements' do
36
- elements = @line_1.elements
37
- elements.should include(:email_type_selector)
38
- elements.should include(:email_address_field)
39
- elements.should include(:preferred_checkbox)
40
- elements.should include(:active_checkbox)
41
- elements.should include(:add_button)
42
- elements.should include(:delete_button)
43
- end
44
- end
@@ -1,54 +0,0 @@
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 'A Patron Lookup page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @patron_lookup = OLE_QA::Framework::OLELS::Patron_Lookup.new(@ole)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @patron_lookup.class.should == OLE_QA::Framework::OLELS::Patron_Lookup
31
- @patron_lookup.class.superclass.should == OLE_QA::Framework::OLELS::Lookup
32
- end
33
-
34
- it 'should open the Patron Lookup screen via URL' do
35
- @patron_lookup.open
36
- @patron_lookup.title.text.should == "Patron"
37
- end
38
-
39
- it 'should have patron lookup elements' do
40
- elements = @patron_lookup.elements
41
- elements.include?(:patron_id_field).should be_true
42
- elements.include?(:barcode_field).should be_true
43
- elements.include?(:first_name_field).should be_true
44
- elements.include?(:last_name_field).should be_true
45
- elements.include?(:borrower_type_selector).should be_true
46
- elements.include?(:email_address_field).should be_true
47
- elements.include?(:search_button).should be_true
48
- elements.include?(:clear_button).should be_true
49
- elements.include?(:cancel_button).should be_true
50
- elements.include?(:active_yes_button).should be_true
51
- elements.include?(:active_no_button).should be_true
52
- elements.include?(:active_both_button).should be_true
53
- end
54
- end
@@ -1,47 +0,0 @@
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 'An OLELS Patron Phone line object' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @line_1 = OLE_QA::Framework::OLELS::Patron_Phone_Line.new(@ole,1)
23
- @line_2 = OLE_QA::Framework::OLELS::Patron_Phone_Line.new(@ole,2)
24
- end
25
-
26
- after :all do
27
- @ole.quit
28
- end
29
-
30
- it 'should create a new instance' do
31
- @line_1.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Phone_Line)
32
- @line_2.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Phone_Line)
33
- @line_1.class.superclass.should == OLE_QA::Framework::Line_Object
34
- end
35
-
36
- it 'should have patron phone line elements' do
37
- elements = @line_1.elements
38
- elements.should include(:phone_type_selector)
39
- elements.should include(:phone_number_field)
40
- elements.should include(:extension_field)
41
- elements.should include(:country_selector)
42
- elements.should include(:preferred_checkbox)
43
- elements.should include(:active_checkbox)
44
- elements.should include(:add_button)
45
- elements.should include(:delete_button)
46
- end
47
- end
@@ -1,93 +0,0 @@
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 'A patron record page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @page = OLE_QA::Framework::OLELS::Patron.new(@ole)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @page.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron)
31
- @page.class.superclass.should == OLE_QA::Framework::OLELS::E_Doc
32
- end
33
-
34
- it 'should have patron elements' do
35
- elements = @page.elements
36
- elements.should include(:patron_id)
37
- elements.should include(:barcode_field)
38
- elements.should include(:borrower_type_selector)
39
- elements.should include(:source_selector)
40
- elements.should include(:patron_image_field)
41
- elements.should include(:upload_image_button)
42
- elements.should include(:statistical_category_selector)
43
- elements.should include(:activation_date_field)
44
- elements.should include(:expiration_date_field)
45
- elements.should include(:active_checkbox)
46
- elements.should include(:name_type)
47
- elements.should include(:title_selector)
48
- elements.should include(:first_name_field)
49
- elements.should include(:last_name_field)
50
- elements.should include(:middle_name_field)
51
- elements.should include(:suffix_selector)
52
- elements.should include(:affiliation_toggle)
53
- elements.should include(:library_policies_toggle)
54
- elements.should include(:loaned_records_toggle)
55
- elements.should include(:requested_records_toggle)
56
- elements.should include(:temp_circ_history_toggle)
57
- elements.should include(:note_toggle)
58
- elements.should include(:proxy_patron_toggle)
59
- elements.should include(:proxy_for_toggle)
60
- elements.should include(:local_id_toggle)
61
- elements.should include(:lost_barcode_toggle)
62
- elements.should include(:ad_hoc_toggle)
63
- elements.should include(:route_log_toggle)
64
- elements.should include(:contacts_toggle)
65
- elements.should include(:overview_toggle)
66
- elements.should include(:name_toggle)
67
- elements.should include(:address_toggle)
68
- elements.should include(:phone_toggle)
69
- elements.should include(:email_toggle)
70
- end
71
-
72
- it 'should have patron functions' do
73
- functions = @page.functions
74
- functions.should include(:redefine_patron_image_elements)
75
- end
76
-
77
- it 'should have patron contact info lines' do
78
- lines = @page.lines
79
- lines.include?(:address_line).should be_true
80
- lines.include?(:phone_line).should be_true
81
- lines.include?(:email_line).should be_true
82
- @page.address_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Address_Line)
83
- @page.phone_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Phone_Line)
84
- @page.email_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Email_Line)
85
- end
86
-
87
- it 'should open the page via URL' do
88
- @ole.open
89
- @page.login('admin').should be_true
90
- @page.open
91
- @page.title.when_present.text.strip.should == 'Patron'
92
- end
93
- end
@@ -1,72 +0,0 @@
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 'An OLELS Return Screen' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @return_screen = OLE_QA::Framework::OLELS::Return.new(@ole)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @return_screen.should be_an_instance_of(OLE_QA::Framework::OLELS::Return)
31
- @return_screen.class.superclass.should == OLE_QA::Framework::Page
32
- end
33
-
34
- it 'should have return screen elements' do
35
- elements = @return_screen.elements
36
- elements.include?(:loan_button).should be_true
37
- elements.include?(:end_session_button).should be_true
38
- elements.include?(:damaged_checkin_checkbox).should be_true
39
- elements.include?(:checkin_date_field).should be_true
40
- elements.include?(:checkin_time_field).should be_true
41
- elements.include?(:item_field).should be_true
42
- elements.include?(:item_search_button).should be_true
43
- elements.include?(:items_returned_toggle).should be_true
44
- elements.include?(:checkin_message_box).should be_true
45
- elements.include?(:return_button).should be_true
46
- elements.include?(:do_not_return_button).should be_true
47
- elements.include?(:circulation_desk_selector).should be_true
48
- elements.include?(:circulation_desk_yes).should be_true
49
- elements.include?(:circulation_desk_no).should be_true
50
- end
51
-
52
- it 'should have return screen functions' do
53
- functions = @return_screen.functions
54
- functions.include?(:item_barcode_link).should be_true
55
- functions.include?(:item_title).should be_true
56
- functions.include?(:item_author).should be_true
57
- functions.include?(:item_location).should be_true
58
- functions.include?(:item_call_number).should be_true
59
- functions.include?(:item_checkin_date).should be_true
60
- functions.include?(:item_status).should be_true
61
- functions.include?(:item_bill_link).should be_true
62
- end
63
-
64
- it 'should open the return screen via URL' do
65
- main_menu = OLE_QA::Framework::OLELS::Main_Menu.new(@ole)
66
- main_menu.open
67
- main_menu.login('dev2')
68
- @return_screen.open
69
- @return_screen.loan_button.present?.should be_true
70
- @return_screen.item_field.present?.should be_true
71
- end
72
- end
@@ -1,55 +0,0 @@
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 'An OLELS Staff Upload page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @page = OLE_QA::Framework::OLELS::Staff_Upload.new(@ole)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @page.should be_an_instance_of(OLE_QA::Framework::OLELS::Staff_Upload)
31
- @page.class.superclass.should == OLE_QA::Framework::Page
32
- end
33
-
34
- it 'should have staff upload elements' do
35
- elements = @page.elements
36
- elements.should include(:title)
37
- elements.should include(:marc_field)
38
- elements.should include(:edi_field)
39
- elements.should include(:profile_selector)
40
- elements.should include(:description_field)
41
- elements.should include(:upload_button)
42
- elements.should include(:cancel_button)
43
- elements.should include(:load_reports_button)
44
- end
45
-
46
- it 'should have staff upload functions' do
47
- functions = @page.functions
48
- functions.should include(:upload)
49
- end
50
-
51
- it 'should open the staff upload screen via URL' do
52
- @page.open
53
- @page.title.text.strip.should == 'Staff Upload'
54
- end
55
- end