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,129 +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
-
19
- describe 'An OLEFS line item' do
20
-
21
- before :all do
22
- @ole = OLE_QA::Framework::Session.new
23
- @line_number = 1
24
- @line_item = OLE_QA::Framework::OLEFS::Line_Item.new(@ole, @line_number)
25
- end
26
-
27
- after :all do
28
- @ole.quit
29
- end
30
-
31
- it 'should should create a new instance' do
32
- @line_item.class.should == OLE_QA::Framework::OLEFS::Line_Item
33
- end
34
-
35
- it 'should be a subclass of Line Object' do
36
- @line_item.class.superclass.should == OLE_QA::Framework::Line_Object
37
- end
38
-
39
- it 'should have a browser accessor' do
40
- @line_item.browser.class.should == @ole.browser.class
41
- end
42
-
43
- it 'should have line number attributes' do
44
- @line_item.line_number.should == 1
45
- end
46
-
47
- it 'should have line item elements' do
48
- elements = @line_item.elements
49
- elements.should include(:copies_field)
50
- elements.should include(:parts_field)
51
- elements.should include(:list_price_field)
52
- elements.should include(:discount_field)
53
- elements.should include(:item_price_source_selector)
54
- elements.should include(:request_source_selector)
55
- elements.should include(:item_type_selector)
56
- elements.should include(:format_selector)
57
- elements.should include(:category_selector)
58
- elements.should include(:discount_type_selector)
59
- elements.should include(:delete_button)
60
- elements.should include(:route_to_requestor_checkbox)
61
- elements.should include(:public_view_checkbox)
62
- elements.should include(:accounting_lines_toggle)
63
- elements.should include(:description_field)
64
- elements.should include(:item_type_field)
65
- elements.should include(:extended_cost_field)
66
- elements.should include(:receipt_status_field)
67
- elements.should include(:closed_description_field)
68
- elements.should include(:closed_item_type_field)
69
- elements.should include(:closed_extended_cost_field)
70
- elements.should include(:closed_list_price_field)
71
- elements.should include(:closed_copies_field)
72
- elements.should include(:closed_parts_field)
73
- elements.should include(:closed_receipt_status_field)
74
- elements.should include(:closed_copies_received_field)
75
- elements.should include(:closed_parts_received_field)
76
- elements.should include(:closed_item_price_source_field)
77
- elements.should include(:closed_request_source_field)
78
- elements.should include(:closed_format_field)
79
- elements.should include(:closed_category_field)
80
- elements.should include(:closed_vendor_item_id_field)
81
- elements.should include(:closed_requestor_field)
82
- elements.should include(:closed_route_to_requestor_field)
83
- elements.should include(:closed_unit_cost_field)
84
- elements.should include(:closed_discount_field)
85
- elements.should include(:closed_discount_type_field)
86
- elements.should include(:location_selector)
87
- #TODO add the methods below when OLE-4329 is fixed.
88
- # elements.should include(:notes_toggle)
89
- # methods_array.include(:copies_toggle)
90
- # TODO add new_accounting_line, new_notes_line, new_copies_line definitions.
91
- end
92
-
93
- it 'should have new accounting line elements' do
94
- elements = @line_item.elements
95
- elements.include?(:chart_selector).should be_true
96
- elements.include?(:account_number_field).should be_true
97
- elements.include?(:sub_account_number_field).should be_true
98
- elements.include?(:object_field).should be_true
99
- elements.include?(:sub_object_field).should be_true
100
- elements.include?(:project_field).should be_true
101
- elements.include?(:org_ref_id_field).should be_true
102
- elements.include?(:dollar_field).should be_true
103
- elements.include?(:percent_field).should be_true
104
- elements.include?(:add_account_button).should be_true
105
- end
106
-
107
- it 'should have new notes line elements' do
108
- elements = @line_item.elements
109
- elements.include?(:note_type_selector).should be_true
110
- elements.include?(:note_field).should be_true
111
- elements.include?(:add_note_button).should be_true
112
- end
113
-
114
- it 'should have new copies line elements' do
115
- elements = @line_item.elements
116
- elements.include?(:copies_line_copies_field).should be_true
117
- elements.include?(:parts_field).should be_true
118
- elements.include?(:location_copies_selector).should be_true
119
- elements.include?(:starting_copy_field).should be_true
120
- elements.include?(:add_copy_button).should be_true
121
- end
122
-
123
- it 'should have subline objects' do
124
- sublines = @line_item.sublines
125
- sublines.include?(:accounting_line).should be_true
126
- sublines.include?(:notes_line).should be_true
127
- sublines.include?(:copies_line).should be_true
128
- end
129
- end
@@ -1,56 +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 'My behaviour' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @page = OLE_QA::Framework::OLEFS::Load_Report.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::OLEFS::Load_Report)
31
- @page.class.superclass.should == OLE_QA::Framework::OLEFS::E_Doc
32
- end
33
-
34
- it 'should have load report elements' do
35
- elements = @page.elements
36
- elements.should include(:profile_name)
37
- elements.should include(:user_id)
38
- elements.should include(:counts)
39
- elements.should include(:file_name)
40
- elements.should include(:number_of_pos)
41
- elements.should include(:number_of_bibs)
42
- elements.should include(:po_link)
43
- elements.should include(:bib_link)
44
- elements.should include(:upload_description)
45
- elements.should include(:upload_date)
46
- end
47
-
48
- it 'should have load report functions' do
49
- functions = @page.functions
50
- functions.should include(:total_count)
51
- functions.should include(:success_count)
52
- functions.should include(:failure_count)
53
- functions.should include(:upload_date_ymd)
54
- functions.should include(:upload_date_tod)
55
- end
56
- end
@@ -1,53 +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 Load Summary Lookup page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @page = OLE_QA::Framework::OLEFS::Load_Summary_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
- @page.should be_an_instance_of(OLE_QA::Framework::OLEFS::Load_Summary_Lookup)
31
- @page.class.superclass.should == OLE_QA::Framework::OLEFS::Lookup
32
- end
33
-
34
- it 'should have load summary lookup elements' do
35
- elements = @page.elements
36
- elements.should include(:description_field)
37
- elements.should include(:filename_field)
38
- elements.should include(:user_id_field)
39
- elements.should include(:load_profile_selector)
40
- elements.should include(:date_from_field)
41
- elements.should include(:date_to_field)
42
- end
43
-
44
- it 'should have load summary functions' do
45
- functions = @page.functions
46
- functions.should include(:doc_link_by_text)
47
- end
48
-
49
- it 'should open the load summary lookup screen via URL' do
50
- @page.open
51
- @page.title.text.strip.should == 'Load Summary Lookup'
52
- end
53
- end
@@ -1,50 +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 Lookup page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @lookup = OLE_QA::Framework::OLEFS::Lookup.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
- @lookup.class.should == OLE_QA::Framework::OLEFS::Lookup
31
- @lookup.class.superclass.should == OLE_QA::Framework::Page
32
- end
33
-
34
- it 'should have lookup page screen elements' do
35
- methods = @lookup.methods
36
- methods.include?(:title).should be_true
37
- methods.include?(:active_indicator_yes).should be_true
38
- methods.include?(:active_indicator_no).should be_true
39
- methods.include?(:active_indicator_both).should be_true
40
- methods.include?(:search_button).should be_true
41
- methods.include?(:clear_button).should be_true
42
- methods.include?(:cancel_button).should be_true
43
- end
44
-
45
- it 'should have lookup page functions' do
46
- functions = @lookup.functions
47
- functions.should include(:row_by_td_text)
48
- functions.should include(:row_by_text)
49
- end
50
- end
@@ -1,34 +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
-
19
- describe "The OLEFS Main Menu" do
20
-
21
- before :all do
22
- @ole = OLE_QA::Framework::Session.new
23
- @main_menu = OLE_QA::Framework::OLEFS::Main_Menu.new(@ole)
24
- end
25
-
26
- after :all do
27
- @ole.quit
28
- end
29
-
30
- it "should open via url" do
31
- @main_menu.open
32
- @ole.browser.title.strip.should == "Kuali Portal Index"
33
- end
34
- end
@@ -1,53 +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 notes line' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @notes_line = OLE_QA::Framework::OLEFS::Notes_Line.new(@ole, 1)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @notes_line.class.should == OLE_QA::Framework::OLEFS::Notes_Line
31
- end
32
-
33
- it 'should be a subclass of subline object' do
34
- @notes_line.class.superclass.should == OLE_QA::Framework::Subline_Object
35
- end
36
-
37
- it 'should have a browser accessor' do
38
- @notes_line.browser.class.should == @ole.browser.class
39
- end
40
-
41
- it 'should have line number attributes' do
42
- @notes_line.line_number.should == 1
43
- end
44
-
45
- it 'should have notes line elements' do
46
- elements = @notes_line.elements
47
- elements.include?(:note_type_selector).should be_true
48
- elements.include?(:note_field).should be_true
49
- elements.include?(:delete_button).should be_true
50
- elements.include?(:closed_note_type_field).should be_true
51
- elements.include?(:closed_note_field).should be_true
52
- end
53
- end
@@ -1,43 +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 Payment Request page' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @browser = @ole.browser
23
- @preq = OLE_QA::Framework::OLEFS::Payment_Request.new(@ole)
24
- end
25
-
26
- after :all do
27
- @ole.quit
28
- end
29
-
30
- it 'should create a new instance' do
31
- @preq.class.should == OLE_QA::Framework::OLEFS::Payment_Request
32
- @preq.class.superclass.should == OLE_QA::Framework::OLEFS::PURAP_Document
33
- end
34
-
35
- it 'should open a new PREQ document via URL' do
36
- @preq.open
37
- @preq.title.text.strip.should == "Payment Request"
38
- end
39
-
40
- it 'should have payment request elements' do
41
- elements = @preq.elements
42
- end
43
- 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 Processing 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
- @processing_line = OLE_QA::Framework::OLEFS::Processing_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
- @processing_line.class.should == OLE_QA::Framework::OLEFS::Processing_Line
33
- @processing_line.class.superclass.should == OLE_QA::Framework::Subline_Object
34
- end
35
-
36
- it 'should have a browser accessor' do
37
- @processing_line.browser.class.should == @ole.browser.class
38
- end
39
-
40
- it 'should have processing line elements' do
41
- elements = @processing_line.elements
42
- elements.include?(:note_field).should be_true
43
- elements.include?(:acknowledge_checkbox).should be_true
44
- end
45
- end