ole-qa-framework 3.1.1 → 3.2.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.
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,80 +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 OLEFS Purap Document page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @purap_document = OLE_QA::Framework::OLEFS::PURAP_Document.new(@ole, @ole.base_url)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @purap_document.class.should == OLE_QA::Framework::OLEFS::PURAP_Document
31
- @purap_document.class.superclass.should == OLE_QA::Framework::OLEFS::E_Doc
32
- end
33
-
34
- it 'should have PURAP document elements' do
35
- elements = @purap_document.elements
36
- elements.include?(:view_related_tab_toggle).should be_true
37
- elements.include?(:view_related_po_link).should be_true
38
- elements.include?(:view_related_requisition_link).should be_true
39
- elements.include?(:delivery_tab_toggle).should be_true
40
- elements.include?(:building_field).should be_true
41
- elements.include?(:campus_field).should be_true
42
- elements.include?(:closed_room_field).should be_true
43
- elements.include?(:closed_building_field).should be_true
44
- elements.include?(:closed_campus_field).should be_true
45
- elements.include?(:closed_address_1_field).should be_true
46
- elements.include?(:closed_address_2_field).should be_true
47
- elements.include?(:closed_city_field).should be_true
48
- elements.include?(:closed_state_field).should be_true
49
- elements.include?(:closed_postal_code_field).should be_true
50
- elements.include?(:closed_country_field).should be_true
51
- elements.include?(:closed_delivery_to_field).should be_true
52
- elements.include?(:closed_delivery_phone_number_field).should be_true
53
- elements.include?(:closed_email_field).should be_true
54
- elements.include?(:route_log_tab_toggle).should be_true
55
- elements.include?(:vendor_tab_toggle).should be_true
56
- elements.include?(:closed_vendor_name_field).should be_true
57
- end
58
-
59
- it 'should have new line item elements' do
60
- elements = @purap_document.elements
61
- elements.should include(:new_bib_option)
62
- elements.should include(:existing_bib_option)
63
- elements.should include(:new_bib_button)
64
- elements.should include(:existing_bib_button)
65
- elements.should include(:item_type_selector)
66
- elements.should include(:copies_field)
67
- elements.should include(:parts_field)
68
- elements.should include(:list_price_field)
69
- elements.should include(:public_view_checkbox)
70
- elements.should include(:item_price_source_selector)
71
- elements.should include(:request_source_selector)
72
- elements.should include(:format_selector)
73
- elements.should include(:category_selector)
74
- elements.should include(:route_to_requestor_checkbox)
75
- elements.should include(:discount_field)
76
- elements.should include(:discount_type_selector)
77
- elements.should include(:add_button)
78
- elements.should include(:location_selector)
79
- end
80
- end
@@ -1,63 +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 OLEFS Purchase Order' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @purchase_order = OLE_QA::Framework::OLEFS::Purchase_Order.new(@ole)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @purchase_order.class.should == OLE_QA::Framework::OLEFS::Purchase_Order
31
- @purchase_order.class.superclass.should == OLE_QA::Framework::OLEFS::PURAP_Document
32
- end
33
-
34
- it 'should have purchase order elements' do
35
- elements = @purchase_order.elements
36
- elements.include?(:additional_info_tab_toggle).should be_true
37
- elements.include?(:additional_info_phone_number_field).should be_true
38
- elements.include?(:delivery_tab_toggle).should be_true
39
- elements.include?(:building_field).should be_true
40
- elements.include?(:campus_field).should be_true
41
- elements.include?(:room_field).should be_true
42
- elements.include?(:building_search_icon).should be_true
43
- elements.include?(:campus_search_icon).should be_true
44
- elements.include?(:delivery_phone_number_field).should be_true
45
- elements.include?(:vendor_tab_toggle).should be_true
46
- elements.include?(:vendor_name_field).should be_true
47
- elements.include?(:closed_vendor_name_field).should be_true
48
- elements.include?(:vendor_search_icon).should be_true
49
- elements.include?(:grand_total_field).should be_true
50
- elements.include?(:sensitive_data_button).should be_true
51
- elements.include?(:payment_hold_button).should be_true
52
- elements.include?(:amend_button).should be_true
53
- elements.include?(:void_order_button).should be_true
54
- elements.include?(:receiving_button).should be_true
55
- elements.include?(:print_button).should be_true
56
- elements.include?(:send_ad_hoc_button).should be_true
57
- end
58
-
59
- it 'should have a line item' do
60
- @purchase_order.lines.include?(:line_item).should be_true
61
- @purchase_order.line_item.should be_an_instance_of(OLE_QA::Framework::OLEFS::Line_Item)
62
- end
63
- end
@@ -1,45 +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 OLEFS Receipt Notes Line object' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @browser = @ole.browser
23
- @rcv_line = OLE_QA::Framework::OLEFS::Receiving_Line.new(@ole)
24
- @receipt_notes_line = OLE_QA::Framework::OLEFS::Receipt_Notes_Line.new(@ole, @rcv_line, 1)
25
- end
26
-
27
- after :all do
28
- @ole.quit
29
- end
30
-
31
- it 'should create a new instance' do
32
- @receipt_notes_line.class.should == OLE_QA::Framework::OLEFS::Receipt_Notes_Line
33
- @receipt_notes_line.class.superclass.should == OLE_QA::Framework::Subline_Object
34
- end
35
-
36
- it 'should have a browser accessor' do
37
- @receipt_notes_line.browser.class.should == @ole.browser.class
38
- end
39
-
40
- it 'should have receipt notes elements' do
41
- elements = @receipt_notes_line.elements
42
- elements.include?(:note_type_selector).should be_true
43
- elements.include?(:note_field).should be_true
44
- end
45
- end
@@ -1,51 +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 OLEFS Receiving Document page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @rcv = OLE_QA::Framework::OLEFS::Receiving_Document.new(@ole)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @rcv.class.should == OLE_QA::Framework::OLEFS::Receiving_Document
31
- @rcv.class.superclass.should == OLE_QA::Framework::OLEFS::PURAP_Document
32
- end
33
-
34
- it 'should open a new receiving document via URL' do
35
- @rcv.open
36
- @rcv.title.text.strip.should == "Line Item Receiving"
37
- end
38
-
39
- it 'should have receiving document elements' do
40
- elements = @rcv.elements
41
- elements.include?(:date_received_field).should be_true
42
- elements.include?(:packing_slip_number_field).should be_true
43
- elements.include?(:bill_of_lading_number_field).should be_true
44
- elements.include?(:reference_number_field).should be_true
45
- elements.include?(:carrier_selector).should be_true
46
- end
47
-
48
- it 'should have a receiving line' do
49
- @rcv.lines.include?(:receiving_line).should be_true
50
- end
51
- end
@@ -1,87 +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 OLEFS Receiving Line object' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @browser = @ole.browser
23
- @rcv_line = OLE_QA::Framework::OLEFS::Receiving_Line.new(@ole, 1)
24
- end
25
-
26
- after :all do
27
- @ole.quit
28
- end
29
-
30
- it 'should create a new instance' do
31
- @rcv_line.class.should == OLE_QA::Framework::OLEFS::Receiving_Line
32
- @rcv_line.class.superclass.should == OLE_QA::Framework::Line_Object
33
- end
34
-
35
- it 'should have a browser accessor' do
36
- @rcv_line.browser.class.should == @ole.browser.class
37
- end
38
-
39
- it 'should have a line number' do
40
- @rcv_line.line_number.should == 1
41
- end
42
-
43
- it 'should have receiving line elements' do
44
- elements = @rcv_line.elements
45
- elements.include?(:receive_button).should be_true
46
- elements.include?(:description_field).should be_true
47
- elements.include?(:quantity_ordered_field).should be_true
48
- elements.include?(:parts_ordered_field).should be_true
49
- elements.include?(:prior_quantity_received_field).should be_true
50
- elements.include?(:prior_parts_received_field).should be_true
51
- elements.include?(:quantity_to_be_received_field).should be_true
52
- elements.include?(:parts_to_be_received_field).should be_true
53
- elements.include?(:item_received_quantity_field).should be_true
54
- elements.include?(:item_received_parts_field).should be_true
55
- elements.include?(:item_returned_quantity_field).should be_true
56
- elements.include?(:item_returned_parts_field).should be_true
57
- elements.include?(:item_damaged_quantity_field).should be_true
58
- elements.include?(:item_damaged_parts_field).should be_true
59
- elements.include?(:available_to_public_checkbox).should be_true
60
- elements.include?(:public_view_checkbox).should be_true
61
- elements.include?(:exception_notes_toggle).should be_true
62
- elements.include?(:receipt_notes_toggle).should be_true
63
- elements.include?(:special_processing_instructions_toggle).should be_true
64
- end
65
-
66
- it 'should have receipt notes elements' do
67
- elements = @rcv_line.elements
68
- elements.include?(:receipt_note_type_selector).should be_true
69
- elements.include?(:receipt_note_field).should be_true
70
- elements.include?(:add_receipt_note_button).should be_true
71
- end
72
-
73
- it 'should have exception notes elements' do
74
- elements = @rcv_line.elements
75
- elements.include?(:exception_note_type_selector)
76
- elements.include?(:exception_note_field)
77
- elements.include?(:add_exception_note_button)
78
- end
79
-
80
- it 'should have sublines' do
81
- sublines = @rcv_line.sublines
82
- sublines.include?(:exception_notes_line).should be_true
83
- sublines.include?(:receipt_notes_line).should be_true
84
- sublines.include?(:copies_line).should be_true
85
- sublines.include?(:processing_line).should be_true
86
- end
87
- end
@@ -1,71 +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
-
16
- require 'rspec'
17
- require 'spec_helper'
18
-
19
-
20
- describe 'A PURAP requisition document' do
21
-
22
- before :all do
23
- @ole = OLE_QA::Framework::Session.new
24
- @req = OLE_QA::Framework::OLEFS::Requisition.new(@ole)
25
- end
26
-
27
- after :all do
28
- @ole.quit
29
- end
30
-
31
- it 'should create a new instance' do
32
- @req.class.should == OLE_QA::Framework::OLEFS::Requisition
33
- end
34
-
35
- it 'should be a subclass of an OLEFS E-Document' do
36
- @req.class.superclass.should == OLE_QA::Framework::OLEFS::PURAP_Document
37
- end
38
-
39
- it 'should open a new purap_requisition via url' do
40
- @req.open
41
- @req.title.text.strip.should == "Requisition"
42
- end
43
-
44
- it 'should have requisition elements' do
45
- elements = @req.elements
46
- elements.include?(:license_request_checkbox).should be_true
47
- elements.include?(:receiving_required_checkbox).should be_true
48
- elements.include?(:payment_request_approval_required_checkbox).should be_true
49
- elements.include?(:additional_info_tab_toggle).should be_true
50
- elements.include?(:additional_info_phone_number_field).should be_true
51
- elements.include?(:delivery_tab_toggle).should be_true
52
- elements.include?(:building_field).should be_true
53
- elements.include?(:campus_field).should be_true
54
- elements.include?(:room_field).should be_true
55
- elements.include?(:building_search_icon).should be_true
56
- elements.include?(:campus_search_icon).should be_true
57
- elements.include?(:delivery_phone_number_field).should be_true
58
- elements.include?(:vendor_tab_toggle).should be_true
59
- elements.include?(:vendor_name_field).should be_true
60
- elements.should include(:vendor_alias_field)
61
- elements.should include(:select_vendor_button)
62
- elements.include?(:closed_vendor_name_field).should be_true
63
- elements.include?(:vendor_search_icon).should be_true
64
- elements.include?(:grand_total_field).should be_true
65
- end
66
-
67
- it 'should have a line item' do
68
- @req.lines.include?(:line_item).should be_true
69
- @req.line_item.should be_an_instance_of(OLE_QA::Framework::OLEFS::Line_Item)
70
- end
71
- end
@@ -1,49 +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 OLEFS Vendor Lookup page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @vendor_lookup = OLE_QA::Framework::OLEFS::Vendor_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
- @vendor_lookup.class.should == OLE_QA::Framework::OLEFS::Vendor_Lookup
31
- @vendor_lookup.class.superclass.should == OLE_QA::Framework::OLEFS::Lookup
32
- end
33
-
34
- it 'should open via URL' do
35
- @vendor_lookup.open
36
- @vendor_lookup.title.text.strip.should == "Vendor Lookup"
37
- end
38
-
39
- it 'should have vendor lookup elements' do
40
- methods = @vendor_lookup.methods
41
- methods.include?(:vendor_name_field).should be_true
42
- methods.include?(:tax_number_field).should be_true
43
- methods.include?(:vendor_number_field).should be_true
44
- methods.include?(:vendor_type_selector).should be_true
45
- methods.include?(:state_field).should be_true
46
- methods.include?(:commodity_code_field).should be_true
47
- methods.include?(:supplier_diversity_selector).should be_true
48
- end
49
- end