ole-qa-framework 3.14.1 → 3.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/LICENSE.md +1 -1
  4. data/README.md +93 -1
  5. data/Rakefile.rb +38 -12
  6. data/config/options.yml +11 -0
  7. data/data/circulation.yml +10 -0
  8. data/data/country.yml +3 -0
  9. data/lib/common/common_object.rb +1 -1
  10. data/lib/common/data_object.rb +1 -2
  11. data/lib/common/line_object.rb +1 -1
  12. data/lib/common/page.rb +27 -3
  13. data/lib/common/subline_object.rb +1 -1
  14. data/lib/data_factory/account_factory.rb +3 -3
  15. data/lib/data_factory/bib_factory.rb +14 -4
  16. data/lib/data_factory/metadata_factory.rb +4 -3
  17. data/lib/data_factory/patron_factory.rb +10 -5
  18. data/lib/data_factory/string_factory.rb +2 -2
  19. data/lib/docstore/common/results.rb +1 -1
  20. data/lib/docstore/pages/marc_results.rb +1 -1
  21. data/lib/docstore/pages/search.rb +1 -1
  22. data/lib/module/factory_helpers.rb +1 -1
  23. data/lib/module/qa_helpers.rb +1 -1
  24. data/lib/ole-qa-framework.rb +17 -16
  25. data/lib/ole_qa_framework/COMPATIBILITY.rb +1 -1
  26. data/lib/ole_qa_framework/VERSION.rb +2 -2
  27. data/lib/olefs/common/e_doc.rb +1 -1
  28. data/lib/olefs/common/lookup.rb +1 -1
  29. data/lib/olefs/common/purap_document.rb +1 -1
  30. data/lib/olefs/objects/invoice_current_item.rb +1 -1
  31. data/lib/olefs/objects/invoice_line.rb +1 -1
  32. data/lib/olefs/objects/line_item.rb +1 -1
  33. data/lib/olefs/objects/receiving_line.rb +1 -1
  34. data/lib/olefs/pages/building_lookup.rb +1 -1
  35. data/lib/olefs/pages/invoice.rb +1 -1
  36. data/lib/olefs/pages/load_report.rb +1 -1
  37. data/lib/olefs/pages/load_summary_lookup.rb +1 -1
  38. data/lib/olefs/pages/main_menu.rb +1 -1
  39. data/lib/olefs/pages/payment_request.rb +1 -1
  40. data/lib/olefs/pages/purchase_order.rb +1 -1
  41. data/lib/olefs/pages/receiving_document.rb +1 -1
  42. data/lib/olefs/pages/requisition.rb +1 -1
  43. data/lib/olefs/pages/vendor_lookup.rb +1 -1
  44. data/lib/olefs/subobjects/accounting_line.rb +1 -1
  45. data/lib/olefs/subobjects/copies_line.rb +1 -1
  46. data/lib/olefs/subobjects/exception_notes_line.rb +1 -1
  47. data/lib/olefs/subobjects/invoice_line_item.rb +1 -1
  48. data/lib/olefs/subobjects/notes_line.rb +1 -1
  49. data/lib/olefs/subobjects/processing_line.rb +1 -1
  50. data/lib/olefs/subobjects/receipt_notes_line.rb +1 -1
  51. data/lib/olels/common/batch_profile.rb +1 -1
  52. data/lib/olels/common/e_doc.rb +1 -1
  53. data/lib/olels/common/editor.rb +1 -1
  54. data/lib/olels/common/lookup.rb +1 -1
  55. data/lib/olels/objects/access_info_line.rb +1 -1
  56. data/lib/olels/objects/batch_data_mapping_line.rb +1 -1
  57. data/lib/olels/objects/batch_delete_field_line.rb +1 -1
  58. data/lib/olels/objects/batch_rename_field_line.rb +1 -1
  59. data/lib/olels/objects/control_006_line.rb +1 -1
  60. data/lib/olels/objects/control_007_line.rb +1 -1
  61. data/lib/olels/objects/data_line.rb +1 -1
  62. data/lib/olels/objects/editor_note.rb +1 -1
  63. data/lib/olels/objects/export_filter_line.rb +1 -1
  64. data/lib/olels/objects/holdings_note.rb +1 -1
  65. data/lib/olels/objects/import_defaults_line.rb +1 -1
  66. data/lib/olels/objects/import_match_line.rb +1 -1
  67. data/lib/olels/objects/import_pf_line.rb +1 -1
  68. data/lib/olels/objects/item_note.rb +1 -1
  69. data/lib/olels/objects/ownership_extent_line.rb +1 -1
  70. data/lib/olels/objects/patron_address_line.rb +1 -1
  71. data/lib/olels/objects/patron_email_line.rb +1 -1
  72. data/lib/olels/objects/patron_phone_line.rb +1 -1
  73. data/lib/olels/objects/workbench_line.rb +1 -1
  74. data/lib/olels/pages/batch_export_profile.rb +1 -1
  75. data/lib/olels/pages/batch_import_profile.rb +1 -1
  76. data/lib/olels/pages/batch_job_details.rb +1 -1
  77. data/lib/olels/pages/batch_job_report.rb +1 -1
  78. data/lib/olels/pages/batch_process.rb +1 -1
  79. data/lib/olels/pages/batch_profile_lookup.rb +1 -1
  80. data/lib/olels/pages/batch_type_lookup.rb +1 -1
  81. data/lib/olels/pages/bib_editor.rb +1 -1
  82. data/lib/olels/pages/describe_workbench.rb +1 -1
  83. data/lib/olels/pages/instance_editor.rb +1 -1
  84. data/lib/olels/pages/item_editor.rb +1 -1
  85. data/lib/olels/pages/item_lookup.rb +1 -1
  86. data/lib/olels/pages/loan.rb +1 -1
  87. data/lib/olels/pages/location.rb +1 -1
  88. data/lib/olels/pages/location_level_lookup.rb +1 -1
  89. data/lib/olels/pages/location_lookup.rb +1 -1
  90. data/lib/olels/pages/main_menu.rb +1 -1
  91. data/lib/olels/pages/old_describe_workbench.rb +1 -1
  92. data/lib/olels/pages/patron.rb +1 -1
  93. data/lib/olels/pages/patron_lookup.rb +1 -1
  94. data/lib/olels/pages/renewal.rb +1 -1
  95. data/lib/olels/pages/request.rb +1 -1
  96. data/lib/olels/pages/request_lookup.rb +1 -1
  97. data/lib/olels/pages/return.rb +1 -1
  98. data/lib/olels/pages/staff_upload.rb +1 -1
  99. data/lib/olels/subobjects/ownership_note.rb +1 -1
  100. data/spec/common/browser_spec.rb +2 -2
  101. data/spec/common/data_object_spec.rb +2 -2
  102. data/spec/common/line_object_spec.rb +2 -2
  103. data/spec/common/page_spec.rb +2 -2
  104. data/spec/common/session_spec.rb +62 -0
  105. data/spec/common/subline_object_spec.rb +2 -2
  106. data/spec/data_factory/account_factory_spec.rb +1 -1
  107. data/spec/data_factory/bib_factory_spec.rb +17 -1
  108. data/spec/data_factory/patron_factory_spec.rb +6 -1
  109. data/spec/data_factory/string_factory_spec.rb +1 -1
  110. data/spec/modules/qa_helpers_spec.rb +2 -2
  111. data/spec/spec_helper.rb +1 -1
  112. metadata +7 -9
  113. data/lib/config/alt/dev_env.yml +0 -8
  114. data/lib/config/alt/test_env.yml +0 -8
  115. data/lib/config/default_options.yml +0 -8
  116. data/lib/module/qa_data_helpers.rb +0 -17
  117. data/lib/module/qa_page_helpers.rb +0 -41
  118. data/spec/modules/qa_page_helpers_spec.rb +0 -54
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2005-2013 The Kuali Foundation
1
+ # Copyright 2005-2014 The Kuali Foundation
2
2
  #
3
3
  # Licensed under the Educational Community License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
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.14.1
4
+ version: 3.15.0
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-05-19 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,8 +109,11 @@ files:
109
109
  - LICENSE.md
110
110
  - README.md
111
111
  - Rakefile.rb
112
+ - config/options.yml
112
113
  - data/accounts.yml
113
114
  - data/borrower_types.yml
115
+ - data/circulation.yml
116
+ - data/country.yml
114
117
  - data/objects.yml
115
118
  - data/patron.yml
116
119
  - data/states.yml
@@ -119,9 +122,6 @@ files:
119
122
  - lib/common/line_object.rb
120
123
  - lib/common/page.rb
121
124
  - lib/common/subline_object.rb
122
- - lib/config/alt/dev_env.yml
123
- - lib/config/alt/test_env.yml
124
- - lib/config/default_options.yml
125
125
  - lib/data_factory/account_factory.rb
126
126
  - lib/data_factory/bib_factory.rb
127
127
  - lib/data_factory/metadata_factory.rb
@@ -131,9 +131,7 @@ files:
131
131
  - lib/docstore/pages/marc_results.rb
132
132
  - lib/docstore/pages/search.rb
133
133
  - lib/module/factory_helpers.rb
134
- - lib/module/qa_data_helpers.rb
135
134
  - lib/module/qa_helpers.rb
136
- - lib/module/qa_page_helpers.rb
137
135
  - lib/ole-qa-framework.rb
138
136
  - lib/ole_qa_framework/COMPATIBILITY.rb
139
137
  - lib/ole_qa_framework/VERSION.rb
@@ -215,6 +213,7 @@ files:
215
213
  - spec/common/data_object_spec.rb
216
214
  - spec/common/line_object_spec.rb
217
215
  - spec/common/page_spec.rb
216
+ - spec/common/session_spec.rb
218
217
  - spec/common/subline_object_spec.rb
219
218
  - spec/data_factory/account_factory_spec.rb
220
219
  - spec/data_factory/bib_factory_spec.rb
@@ -222,7 +221,6 @@ files:
222
221
  - spec/data_factory/patron_factory_spec.rb
223
222
  - spec/data_factory/string_factory_spec.rb
224
223
  - spec/modules/qa_helpers_spec.rb
225
- - spec/modules/qa_page_helpers_spec.rb
226
224
  - spec/spec_helper.rb
227
225
  homepage: http://www.github.com/jkwaldrip/ole-qa-framework/
228
226
  licenses:
@@ -253,6 +251,7 @@ test_files:
253
251
  - spec/common/data_object_spec.rb
254
252
  - spec/common/line_object_spec.rb
255
253
  - spec/common/page_spec.rb
254
+ - spec/common/session_spec.rb
256
255
  - spec/common/subline_object_spec.rb
257
256
  - spec/data_factory/account_factory_spec.rb
258
257
  - spec/data_factory/bib_factory_spec.rb
@@ -260,6 +259,5 @@ test_files:
260
259
  - spec/data_factory/patron_factory_spec.rb
261
260
  - spec/data_factory/string_factory_spec.rb
262
261
  - spec/modules/qa_helpers_spec.rb
263
- - spec/modules/qa_page_helpers_spec.rb
264
262
  - spec/spec_helper.rb
265
263
  has_rdoc:
@@ -1,8 +0,0 @@
1
- # Default options for using development environment.
2
- ---
3
- :url: http://dev.ole.kuali.org/
4
- :docstore_url: http://dev.docstore.ole.kuali.org/
5
- :headless?: true
6
- :implicit_wait: 0
7
- :explicit_wait: 15
8
- :doc_wait: 60
@@ -1,8 +0,0 @@
1
- # Default options for non-development use.
2
- ---
3
- :url: http://tst.ole.kuali.org/
4
- :docstore_url: http://tst.docstore.ole.kuali.org/
5
- :headless?: true
6
- :implicit_wait: 0
7
- :explicit_wait: 15
8
- :doc_wait: 45
@@ -1,8 +0,0 @@
1
- # Default options for non-development use.
2
- ---
3
- :url: http://tst.ole.kuali.org/
4
- :docstore_url: http://tst.docstore.ole.kuali.org/
5
- :headless?: true
6
- :implicit_wait: 0
7
- :explicit_wait: 15
8
- :doc_wait: 45
@@ -1,17 +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
- module OLE_QA::Framework::Data_Helpers
16
-
17
- end
@@ -1,41 +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
- module OLE_QA::Framework::Page_Helpers
16
-
17
- # Set a line object definition on a page object.
18
- # - A line object created with this method becomes an accessor attribute
19
- # associated with an instance variable on the page or data object on
20
- # which it is created.
21
- #
22
- # @param name [Symbol] The name the new line object will have on the object.
23
- # (This will be an instance variable, so it cannot contain spaces.)
24
- # @param klas [Class] The class to instantiate for the new line object.
25
- # (An error will be returned if the class given is not defined.)
26
- # @param force [Boolean] If set to true, this method can be used to override an existing line object definition.
27
- #
28
- # @raise StandardError if a parameter is of an incorrect type.
29
- # @raise StandardError if an instance method already exists for a line object with the same name.
30
- # (Suppress with force = true.)
31
- #
32
- def set_line(name, klas, force = false)
33
- raise StandardError, "Name must be a symbol. Given: #{name} (#{name.class})" unless name.instance_of?(Symbol)
34
- raise StandardError, "Klas must be a class. Given: #{klas} (#{klas.class})" unless klas.instance_of?(Class)
35
- raise StandardError, "Line object is already defined. (Use the 'force = true' option to suppress this error.)" if @lines.include?(name) && ! force
36
- instance_variable_set("@#{name}", klas.new(@ole, 1))
37
- make_reader(name) unless force
38
- @lines << name unless force
39
- end
40
- alias_method(:line, :set_line)
41
- 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 'The Page Helpers module' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
-
23
- class TestPage < OLE_QA::Framework::Page
24
- def set_lines
25
- set_line(:line_object, OLE_QA::Framework::Line_Object)
26
- end
27
- end
28
-
29
- @test_page = TestPage.new(@ole)
30
- end
31
-
32
- after :all do
33
- @ole.quit
34
- end
35
-
36
- it 'should create a page instance with a line object already declared' do
37
- @test_page.methods.include?(:line_object).should be_true
38
- @test_page.line_object.class.should == OLE_QA::Framework::Line_Object
39
- end
40
-
41
- it 'should have the line object listed in the lines accessor' do
42
- @test_page.lines.include?(:line_object).should be_true
43
- end
44
-
45
- it 'should define a line object dynamically' do
46
- @test_page.set_line(:addl_line_object, OLE_QA::Framework::Line_Object)
47
- @test_page.lines.include?(:addl_line_object).should be_true
48
- @test_page.addl_line_object.should be_an_instance_of(OLE_QA::Framework::Line_Object)
49
- end
50
-
51
- it 'should not set a line object which has already been defined' do
52
- lambda {@test_page.set_line(:addl_line_object)}.should raise_error
53
- end
54
- end