aspose_cells_cloud 20.11 → 20.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +116 -0
- data/lib/aspose_cells_cloud.rb +296 -0
- data/lib/aspose_cells_cloud/api/cells_api.rb +19867 -0
- data/lib/aspose_cells_cloud/api_client.rb +493 -0
- data/lib/aspose_cells_cloud/api_error.rb +48 -0
- data/lib/aspose_cells_cloud/configuration.rb +178 -0
- data/lib/aspose_cells_cloud/models/above_average.rb +234 -0
- data/lib/aspose_cells_cloud/models/access_token_response.rb +261 -0
- data/lib/aspose_cells_cloud/models/area.rb +243 -0
- data/lib/aspose_cells_cloud/models/auto_filter.rb +227 -0
- data/lib/aspose_cells_cloud/models/auto_filter_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +231 -0
- data/lib/aspose_cells_cloud/models/auto_shape.rb +504 -0
- data/lib/aspose_cells_cloud/models/auto_shape_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/auto_shapes.rb +209 -0
- data/lib/aspose_cells_cloud/models/auto_shapes_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/border.rb +216 -0
- data/lib/aspose_cells_cloud/models/calculation_options.rb +225 -0
- data/lib/aspose_cells_cloud/models/cell.rb +401 -0
- data/lib/aspose_cells_cloud/models/cell_area.rb +245 -0
- data/lib/aspose_cells_cloud/models/cell_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/cell_value.rb +234 -0
- data/lib/aspose_cells_cloud/models/cells.rb +270 -0
- data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
- data/lib/aspose_cells_cloud/models/cells_cloud_response.rb +212 -0
- data/lib/aspose_cells_cloud/models/cells_color.rb +234 -0
- data/lib/aspose_cells_cloud/models/cells_document_properties.rb +209 -0
- data/lib/aspose_cells_cloud/models/cells_document_properties_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/cells_document_property.rb +225 -0
- data/lib/aspose_cells_cloud/models/cells_document_property_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/cells_error.rb +229 -0
- data/lib/aspose_cells_cloud/models/cells_object_operate_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/cells_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/chart.rb +626 -0
- data/lib/aspose_cells_cloud/models/chart_area.rb +317 -0
- data/lib/aspose_cells_cloud/models/chart_area_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/chart_frame.rb +317 -0
- data/lib/aspose_cells_cloud/models/chart_operate_parameter.rb +279 -0
- data/lib/aspose_cells_cloud/models/charts.rb +209 -0
- data/lib/aspose_cells_cloud/models/charts_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/color.rb +245 -0
- data/lib/aspose_cells_cloud/models/color_filter.rb +234 -0
- data/lib/aspose_cells_cloud/models/color_filter_request.rb +216 -0
- data/lib/aspose_cells_cloud/models/color_scale.rb +249 -0
- data/lib/aspose_cells_cloud/models/column.rb +243 -0
- data/lib/aspose_cells_cloud/models/column_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/columns.rb +237 -0
- data/lib/aspose_cells_cloud/models/columns_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/comment.rb +297 -0
- data/lib/aspose_cells_cloud/models/comment_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/comments.rb +209 -0
- data/lib/aspose_cells_cloud/models/comments_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting.rb +218 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting_icon.rb +235 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting_value.rb +219 -0
- data/lib/aspose_cells_cloud/models/conditional_formattings.rb +223 -0
- data/lib/aspose_cells_cloud/models/conditional_formattings_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/copy_options.rb +248 -0
- data/lib/aspose_cells_cloud/models/create_pivot_table_request.rb +263 -0
- data/lib/aspose_cells_cloud/models/custom_filter.rb +207 -0
- data/lib/aspose_cells_cloud/models/custom_parser_config.rb +216 -0
- data/lib/aspose_cells_cloud/models/data_bar.rb +309 -0
- data/lib/aspose_cells_cloud/models/data_bar_border.rb +209 -0
- data/lib/aspose_cells_cloud/models/data_sorter.rb +227 -0
- data/lib/aspose_cells_cloud/models/dif_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/disc_usage.rb +219 -0
- data/lib/aspose_cells_cloud/models/dynamic_filter.rb +216 -0
- data/lib/aspose_cells_cloud/models/error_details.rb +214 -0
- data/lib/aspose_cells_cloud/models/file_source.rb +207 -0
- data/lib/aspose_cells_cloud/models/file_version.rb +274 -0
- data/lib/aspose_cells_cloud/models/file_versions.rb +201 -0
- data/lib/aspose_cells_cloud/models/files_list.rb +201 -0
- data/lib/aspose_cells_cloud/models/files_upload_result.rb +213 -0
- data/lib/aspose_cells_cloud/models/fill_format.rb +259 -0
- data/lib/aspose_cells_cloud/models/fill_format_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/filter_column.rb +277 -0
- data/lib/aspose_cells_cloud/models/font.rb +279 -0
- data/lib/aspose_cells_cloud/models/font_setting.rb +244 -0
- data/lib/aspose_cells_cloud/models/format_condition.rb +327 -0
- data/lib/aspose_cells_cloud/models/gradient_fill.rb +227 -0
- data/lib/aspose_cells_cloud/models/gradient_fill_stop.rb +226 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_break.rb +231 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_break_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_breaks.rb +209 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_breaks_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/html_save_options.rb +373 -0
- data/lib/aspose_cells_cloud/models/hyperlink.rb +234 -0
- data/lib/aspose_cells_cloud/models/hyperlink_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/hyperlinks.rb +223 -0
- data/lib/aspose_cells_cloud/models/hyperlinks_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/icon_filter.rb +212 -0
- data/lib/aspose_cells_cloud/models/icon_set.rb +253 -0
- data/lib/aspose_cells_cloud/models/image_save_options.rb +373 -0
- data/lib/aspose_cells_cloud/models/import_batch_data_option.rb +236 -0
- data/lib/aspose_cells_cloud/models/import_csv_data_option.rb +281 -0
- data/lib/aspose_cells_cloud/models/import_data_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/import_double_array_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/import_int_array_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/import_option.rb +225 -0
- data/lib/aspose_cells_cloud/models/import_string_array_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/legend.rb +335 -0
- data/lib/aspose_cells_cloud/models/legend_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/line.rb +360 -0
- data/lib/aspose_cells_cloud/models/line_format.rb +358 -0
- data/lib/aspose_cells_cloud/models/line_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/link.rb +225 -0
- data/lib/aspose_cells_cloud/models/link_element.rb +198 -0
- data/lib/aspose_cells_cloud/models/list_column.rb +209 -0
- data/lib/aspose_cells_cloud/models/list_object.rb +350 -0
- data/lib/aspose_cells_cloud/models/list_object_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/list_object_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/list_objects.rb +209 -0
- data/lib/aspose_cells_cloud/models/list_objects_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/m_html_save_options.rb +373 -0
- data/lib/aspose_cells_cloud/models/markdown_save_options.rb +292 -0
- data/lib/aspose_cells_cloud/models/merged_cell.rb +254 -0
- data/lib/aspose_cells_cloud/models/merged_cell_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/merged_cells.rb +223 -0
- data/lib/aspose_cells_cloud/models/merged_cells_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/multiple_filter.rb +189 -0
- data/lib/aspose_cells_cloud/models/multiple_filters.rb +209 -0
- data/lib/aspose_cells_cloud/models/name.rb +276 -0
- data/lib/aspose_cells_cloud/models/name_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/names.rb +223 -0
- data/lib/aspose_cells_cloud/models/names_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/negative_bar_format.rb +229 -0
- data/lib/aspose_cells_cloud/models/object_exist.rb +219 -0
- data/lib/aspose_cells_cloud/models/ods_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/ole_object.rb +567 -0
- data/lib/aspose_cells_cloud/models/ole_object_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/ole_objects.rb +209 -0
- data/lib/aspose_cells_cloud/models/ole_objects_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +274 -0
- data/lib/aspose_cells_cloud/models/operate_object.rb +207 -0
- data/lib/aspose_cells_cloud/models/operate_object_position.rb +243 -0
- data/lib/aspose_cells_cloud/models/operate_parameter.rb +198 -0
- data/lib/aspose_cells_cloud/models/page_break_operate_parameter.rb +252 -0
- data/lib/aspose_cells_cloud/models/page_section.rb +259 -0
- data/lib/aspose_cells_cloud/models/page_sections_response.rb +223 -0
- data/lib/aspose_cells_cloud/models/page_setup.rb +542 -0
- data/lib/aspose_cells_cloud/models/page_setup_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/page_setup_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/password_request.rb +198 -0
- data/lib/aspose_cells_cloud/models/paste_options.rb +225 -0
- data/lib/aspose_cells_cloud/models/pattern_fill.rb +252 -0
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +355 -0
- data/lib/aspose_cells_cloud/models/pdf_security_options.rb +283 -0
- data/lib/aspose_cells_cloud/models/pic_format_option.rb +243 -0
- data/lib/aspose_cells_cloud/models/picture.rb +558 -0
- data/lib/aspose_cells_cloud/models/picture_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pictures.rb +209 -0
- data/lib/aspose_cells_cloud/models/pictures_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_field.rb +546 -0
- data/lib/aspose_cells_cloud/models/pivot_field_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_filter.rb +279 -0
- data/lib/aspose_cells_cloud/models/pivot_filter_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_filters_response.rb +223 -0
- data/lib/aspose_cells_cloud/models/pivot_item.rb +228 -0
- data/lib/aspose_cells_cloud/models/pivot_table.rb +824 -0
- data/lib/aspose_cells_cloud/models/pivot_table_field_request.rb +200 -0
- data/lib/aspose_cells_cloud/models/pivot_table_operate_parameter.rb +276 -0
- data/lib/aspose_cells_cloud/models/pivot_table_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_tables.rb +209 -0
- data/lib/aspose_cells_cloud/models/pivot_tables_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/protect_sheet_parameter.rb +335 -0
- data/lib/aspose_cells_cloud/models/range.rb +309 -0
- data/lib/aspose_cells_cloud/models/range_copy_request.rb +225 -0
- data/lib/aspose_cells_cloud/models/range_set_outline_border_request.rb +225 -0
- data/lib/aspose_cells_cloud/models/range_set_style_request.rb +207 -0
- data/lib/aspose_cells_cloud/models/range_value_response.rb +223 -0
- data/lib/aspose_cells_cloud/models/ranges.rb +200 -0
- data/lib/aspose_cells_cloud/models/ranges_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/result_destination.rb +216 -0
- data/lib/aspose_cells_cloud/models/row.rb +261 -0
- data/lib/aspose_cells_cloud/models/row_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/rows.rb +237 -0
- data/lib/aspose_cells_cloud/models/rows_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/save_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/save_result.rb +200 -0
- data/lib/aspose_cells_cloud/models/save_result_task_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/shadow_effect.rb +252 -0
- data/lib/aspose_cells_cloud/models/shape.rb +504 -0
- data/lib/aspose_cells_cloud/models/shape_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/shape_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/shapes.rb +209 -0
- data/lib/aspose_cells_cloud/models/shapes_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/single_value.rb +207 -0
- data/lib/aspose_cells_cloud/models/single_value_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/smart_marker_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/solid_fill.rb +216 -0
- data/lib/aspose_cells_cloud/models/sort_key.rb +221 -0
- data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
- data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
- data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
- data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/split_result.rb +200 -0
- data/lib/aspose_cells_cloud/models/split_result_document.rb +212 -0
- data/lib/aspose_cells_cloud/models/split_result_response.rb +222 -0
- data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +243 -0
- data/lib/aspose_cells_cloud/models/spreadsheet_ml2003_save_options.rb +292 -0
- data/lib/aspose_cells_cloud/models/storage_exist.rb +204 -0
- data/lib/aspose_cells_cloud/models/storage_file.rb +249 -0
- data/lib/aspose_cells_cloud/models/style.rb +407 -0
- data/lib/aspose_cells_cloud/models/style_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/svg_save_options.rb +274 -0
- data/lib/aspose_cells_cloud/models/task_data.rb +200 -0
- data/lib/aspose_cells_cloud/models/task_description.rb +207 -0
- data/lib/aspose_cells_cloud/models/task_parameter.rb +189 -0
- data/lib/aspose_cells_cloud/models/text_item.rb +207 -0
- data/lib/aspose_cells_cloud/models/text_items.rb +209 -0
- data/lib/aspose_cells_cloud/models/text_items_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/text_options.rb +333 -0
- data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -0
- data/lib/aspose_cells_cloud/models/texture_fill.rb +243 -0
- data/lib/aspose_cells_cloud/models/theme_color.rb +207 -0
- data/lib/aspose_cells_cloud/models/tile_pic_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/title.rb +380 -0
- data/lib/aspose_cells_cloud/models/title_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/top10.rb +219 -0
- data/lib/aspose_cells_cloud/models/top10_filter.rb +240 -0
- data/lib/aspose_cells_cloud/models/txt_save_options.rb +301 -0
- data/lib/aspose_cells_cloud/models/validation.rb +360 -0
- data/lib/aspose_cells_cloud/models/validation_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/validations.rb +223 -0
- data/lib/aspose_cells_cloud/models/validations_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/value_type.rb +189 -0
- data/lib/aspose_cells_cloud/models/vertical_page_break.rb +231 -0
- data/lib/aspose_cells_cloud/models/vertical_page_break_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/vertical_page_breaks.rb +209 -0
- data/lib/aspose_cells_cloud/models/vertical_page_breaks_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/workbook.rb +290 -0
- data/lib/aspose_cells_cloud/models/workbook_encryption_request.rb +224 -0
- data/lib/aspose_cells_cloud/models/workbook_operate_parameter.rb +198 -0
- data/lib/aspose_cells_cloud/models/workbook_protection_request.rb +209 -0
- data/lib/aspose_cells_cloud/models/workbook_replace_response.rb +235 -0
- data/lib/aspose_cells_cloud/models/workbook_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +626 -0
- data/lib/aspose_cells_cloud/models/workbook_settings_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/workbook_settings_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/worksheet.rb +510 -0
- data/lib/aspose_cells_cloud/models/worksheet_moving_request.rb +209 -0
- data/lib/aspose_cells_cloud/models/worksheet_replace_response.rb +235 -0
- data/lib/aspose_cells_cloud/models/worksheet_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/worksheets.rb +209 -0
- data/lib/aspose_cells_cloud/models/worksheets_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/xls_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/xps_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/version.rb +25 -0
- data/spec/api/cells_api_spec.rb +1145 -0
- data/spec/api/cells_auto_filter_api_spec.rb +430 -0
- data/spec/api/cells_chart_area_api_spec.rb +92 -0
- data/spec/api/cells_charts_api_spec.rb +390 -0
- data/spec/api/cells_conditional_formattings_api_spec.rb +259 -0
- data/spec/api/cells_hypelinks_api_spec.rb +170 -0
- data/spec/api/cells_list_objects_api_spec.rb +245 -0
- data/spec/api/cells_ole_objects_api_spec.rb +177 -0
- data/spec/api/cells_page_breaks_api_spec.rb +269 -0
- data/spec/api/cells_page_setup_api_spec.rb +198 -0
- data/spec/api/cells_pictures_api_spec.rb +174 -0
- data/spec/api/cells_pivot_tables_api_spec.rb +525 -0
- data/spec/api/cells_properties_api_spec.rb +129 -0
- data/spec/api/cells_ranges_api_spec.rb +284 -0
- data/spec/api/cells_save_as_api_spec.rb +74 -0
- data/spec/api/cells_shapes_api_spec.rb +174 -0
- data/spec/api/cells_simple_spec.rb +44 -0
- data/spec/api/cells_sparkline_group_spec.rb +43 -0
- data/spec/api/cells_storage_api_spec.rb +69 -0
- data/spec/api/cells_storage_spec.rb +45 -0
- data/spec/api/cells_task_api_spec.rb +61 -0
- data/spec/api/cells_workbook_api_spec.rb +641 -0
- data/spec/api/cells_worksheet_validations_api_spec.rb +139 -0
- data/spec/api/cells_worksheets_api_spec.rb +843 -0
- data/spec/spec_helper.rb +132 -0
- metadata +282 -3
@@ -0,0 +1,430 @@
|
|
1
|
+
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
# Unit tests for AsposeCellsCloud::CellsAutoFilterApi
|
6
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'CellsAutoFilterApi' do
|
9
|
+
before do
|
10
|
+
@instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
11
|
+
$VERBOSE = nil
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
# unit tests for cells_auto_filter_get_worksheet_auto_filter
|
19
|
+
# Get Auto filter Description
|
20
|
+
#
|
21
|
+
# @param name
|
22
|
+
# @param sheet_name
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :folder
|
25
|
+
# @option opts [String] :storage storage name.
|
26
|
+
# @return [AutoFilterResponse]
|
27
|
+
describe 'cells_auto_filter_get_worksheet_auto_filter test' do
|
28
|
+
it "should work" do
|
29
|
+
name = $BOOK1
|
30
|
+
sheet_name = $SHEET1
|
31
|
+
folder = $TEMPFOLDER
|
32
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
33
|
+
expect(result.uploaded.size).to be > 0
|
34
|
+
result = @instance.cells_auto_filter_get_worksheet_auto_filter(name, sheet_name, { :folder=>folder})
|
35
|
+
expect(result.code).to eql(200)
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# unit tests for cells_auto_filter_post_worksheet_auto_filter_refresh
|
41
|
+
#
|
42
|
+
#
|
43
|
+
# @param name
|
44
|
+
# @param sheet_name
|
45
|
+
# @param [Hash] opts the optional parameters
|
46
|
+
# @option opts [String] :folder
|
47
|
+
# @option opts [String] :storage storage name.
|
48
|
+
# @return [CellsCloudResponse]
|
49
|
+
describe 'cells_auto_filter_post_worksheet_auto_filter_refresh test' do
|
50
|
+
it "should work" do
|
51
|
+
name = $BOOK1
|
52
|
+
sheet_name = $SHEET1
|
53
|
+
folder = $TEMPFOLDER
|
54
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
55
|
+
expect(result.uploaded.size).to be > 0
|
56
|
+
result = @instance.cells_auto_filter_post_worksheet_auto_filter_refresh(name, sheet_name, { :folder=>folder})
|
57
|
+
expect(result.code).to eql(200)
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for cells_auto_filter_post_worksheet_match_blanks
|
63
|
+
# Match all blank cell in the list.
|
64
|
+
#
|
65
|
+
# @param name
|
66
|
+
# @param sheet_name
|
67
|
+
# @param field_index
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @option opts [String] :folder
|
70
|
+
# @option opts [String] :storage storage name.
|
71
|
+
# @return [CellsCloudResponse]
|
72
|
+
describe 'cells_auto_filter_post_worksheet_match_blanks test' do
|
73
|
+
it "should work" do
|
74
|
+
name = $BOOK1
|
75
|
+
sheet_name = $SHEET1
|
76
|
+
field_index = 0
|
77
|
+
folder = $TEMPFOLDER
|
78
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
79
|
+
expect(result.uploaded.size).to be > 0
|
80
|
+
result = @instance.cells_auto_filter_post_worksheet_match_blanks(name, sheet_name, field_index, { :folder=>folder})
|
81
|
+
expect(result.code).to eql(200)
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# unit tests for cells_auto_filter_post_worksheet_match_non_blanks
|
87
|
+
# Match all not blank cell in the list.
|
88
|
+
#
|
89
|
+
# @param name
|
90
|
+
# @param sheet_name
|
91
|
+
# @param field_index
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @option opts [String] :folder
|
94
|
+
# @option opts [String] :storage storage name.
|
95
|
+
# @return [CellsCloudResponse]
|
96
|
+
describe 'cells_auto_filter_post_worksheet_match_non_blanks test' do
|
97
|
+
it "should work" do
|
98
|
+
name = $BOOK1
|
99
|
+
sheet_name = $SHEET1
|
100
|
+
field_index = 0
|
101
|
+
folder = $TEMPFOLDER
|
102
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
103
|
+
expect(result.uploaded.size).to be > 0
|
104
|
+
result = @instance.cells_auto_filter_post_worksheet_match_non_blanks(name, sheet_name, field_index, { :folder=>folder})
|
105
|
+
expect(result.code).to eql(200)
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# unit tests for cells_auto_filter_put_worksheet_color_filter
|
111
|
+
#
|
112
|
+
#
|
113
|
+
# @param name
|
114
|
+
# @param sheet_name
|
115
|
+
# @param range
|
116
|
+
# @param field_index
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @option opts [ColorFilterRequest] :color_filter
|
119
|
+
# @option opts [BOOLEAN] :match_blanks
|
120
|
+
# @option opts [BOOLEAN] :refresh
|
121
|
+
# @option opts [String] :folder
|
122
|
+
# @option opts [String] :storage storage name.
|
123
|
+
# @return [CellsCloudResponse]
|
124
|
+
describe 'cells_auto_filter_put_worksheet_color_filter test' do
|
125
|
+
it "should work" do
|
126
|
+
name = $BOOK1
|
127
|
+
sheet_name = $SHEET1
|
128
|
+
range = $RANGE
|
129
|
+
field_index = 0
|
130
|
+
color = AsposeCellsCloud::Color.new({:A=>255,:B=>255,:R=>0,:G=>255})
|
131
|
+
themeColor = AsposeCellsCloud::ThemeColor.new({:Tint=>'1.0',:ColorType=>'Text2'})
|
132
|
+
foregroundcolor = AsposeCellsCloud::CellsColor.new({:Color=>color,:Type=>'Automatic',:ThemeColor=>themeColor})
|
133
|
+
|
134
|
+
color1 = AsposeCellsCloud::Color.new({:A=>0,:B=>0,:R=>255,:G=>255})
|
135
|
+
themeColor1 = AsposeCellsCloud::ThemeColor.new({:Tint=>'1.0',:ColorType=>'Text2'})
|
136
|
+
backgroundcolor = AsposeCellsCloud::CellsColor.new({:Color=>color1,:Type=>'Automatic',:ThemeColor=>themeColor1})
|
137
|
+
|
138
|
+
color_filter = AsposeCellsCloud::ColorFilterRequest.new({:ForegroundColor=>foregroundcolor,:Pattern=>'Solid',:BackgroundColor=>backgroundcolor})
|
139
|
+
match_blanks = true
|
140
|
+
refresh = true
|
141
|
+
folder = $TEMPFOLDER
|
142
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
143
|
+
expect(result.uploaded.size).to be > 0
|
144
|
+
result = @instance.cells_auto_filter_put_worksheet_color_filter(name, sheet_name, range, field_index, { :color_filter=>color_filter, :match_blanks=>match_blanks, :refresh=>refresh,:folder=>folder})
|
145
|
+
expect(result.code).to eql(200)
|
146
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# unit tests for cells_auto_filter_put_worksheet_custom_filter
|
151
|
+
# Filters a list with a custom criteria.
|
152
|
+
#
|
153
|
+
# @param name
|
154
|
+
# @param sheet_name
|
155
|
+
# @param range
|
156
|
+
# @param field_index
|
157
|
+
# @param operator_type1
|
158
|
+
# @param criteria1
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @option opts [BOOLEAN] :is_and
|
161
|
+
# @option opts [String] :operator_type2
|
162
|
+
# @option opts [String] :criteria2
|
163
|
+
# @option opts [BOOLEAN] :match_blanks
|
164
|
+
# @option opts [BOOLEAN] :refresh
|
165
|
+
# @option opts [String] :folder
|
166
|
+
# @option opts [String] :storage storage name.
|
167
|
+
# @return [CellsCloudResponse]
|
168
|
+
describe 'cells_auto_filter_put_worksheet_custom_filter test' do
|
169
|
+
it "should work" do
|
170
|
+
name = $BOOK1
|
171
|
+
sheet_name = $SHEET1
|
172
|
+
range = $RANGE
|
173
|
+
field_index = 0
|
174
|
+
operator_type1 = 'LessOrEqual'
|
175
|
+
criteria1 = 'test'
|
176
|
+
is_and = false
|
177
|
+
operator_type2 = 'LessOrEqual'
|
178
|
+
criteria2 = 'test'
|
179
|
+
match_blanks = true
|
180
|
+
refresh = true
|
181
|
+
folder = $TEMPFOLDER
|
182
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
183
|
+
expect(result.uploaded.size).to be > 0
|
184
|
+
result = @instance.cells_auto_filter_put_worksheet_custom_filter(name, sheet_name, range, field_index, operator_type1, criteria1, {:is_and=>is_and, :operator_type2=>operator_type2, :criteria2=>criteria2, :match_blanks=>match_blanks, :refresh=>refresh, :folder=>folder})
|
185
|
+
expect(result.code).to eql(200)
|
186
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# unit tests for cells_auto_filter_put_worksheet_date_filter
|
191
|
+
# add date filter in worksheet
|
192
|
+
#
|
193
|
+
# @param name
|
194
|
+
# @param sheet_name
|
195
|
+
# @param range
|
196
|
+
# @param field_index
|
197
|
+
# @param date_time_grouping_type
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @option opts [Integer] :year
|
200
|
+
# @option opts [Integer] :month
|
201
|
+
# @option opts [Integer] :day
|
202
|
+
# @option opts [Integer] :hour
|
203
|
+
# @option opts [Integer] :minute
|
204
|
+
# @option opts [Integer] :second
|
205
|
+
# @option opts [BOOLEAN] :match_blanks
|
206
|
+
# @option opts [BOOLEAN] :refresh
|
207
|
+
# @option opts [String] :folder
|
208
|
+
# @option opts [String] :storage storage name.
|
209
|
+
# @return [CellsCloudResponse]
|
210
|
+
describe 'cells_auto_filter_put_worksheet_date_filter test' do
|
211
|
+
it "should work" do
|
212
|
+
name = $BOOK1
|
213
|
+
sheet_name = $SHEET1
|
214
|
+
range = $RANGE
|
215
|
+
field_index = 0
|
216
|
+
date_time_grouping_type = 'Day'
|
217
|
+
year = 2019
|
218
|
+
month = 1
|
219
|
+
day = 1
|
220
|
+
hour = 1
|
221
|
+
minute = 1
|
222
|
+
second = 1
|
223
|
+
match_blanks = true
|
224
|
+
refresh = true
|
225
|
+
folder = $TEMPFOLDER
|
226
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
227
|
+
expect(result.uploaded.size).to be > 0
|
228
|
+
result = @instance.cells_auto_filter_put_worksheet_date_filter(name, sheet_name, range, field_index, date_time_grouping_type, {:year=>year, :month=>month, :day=>day, :hour=>hour, :minute=>minute, :second=>second, :match_blanks=>match_blanks, :refresh=>refresh, :folder=>folder})
|
229
|
+
expect(result.code).to eql(200)
|
230
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# unit tests for cells_auto_filter_put_worksheet_dynamic_filter
|
235
|
+
#
|
236
|
+
#
|
237
|
+
# @param name
|
238
|
+
# @param sheet_name
|
239
|
+
# @param range
|
240
|
+
# @param field_index
|
241
|
+
# @param dynamic_filter_type
|
242
|
+
# @param [Hash] opts the optional parameters
|
243
|
+
# @option opts [BOOLEAN] :match_blanks
|
244
|
+
# @option opts [BOOLEAN] :refresh
|
245
|
+
# @option opts [String] :folder
|
246
|
+
# @option opts [String] :storage storage name.
|
247
|
+
# @return [CellsCloudResponse]
|
248
|
+
describe 'cells_auto_filter_put_worksheet_dynamic_filter test' do
|
249
|
+
it "should work" do
|
250
|
+
name = $BOOK1
|
251
|
+
sheet_name = $SHEET1
|
252
|
+
range = $RANGE
|
253
|
+
field_index = 0
|
254
|
+
dynamic_filter_type = 'May'
|
255
|
+
match_blanks = true
|
256
|
+
refresh = true
|
257
|
+
folder = $TEMPFOLDER
|
258
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
259
|
+
expect(result.uploaded.size).to be > 0
|
260
|
+
result = @instance.cells_auto_filter_put_worksheet_dynamic_filter(name, sheet_name, range, field_index, dynamic_filter_type, {:match_blanks=>match_blanks, :refresh=>refresh, :folder=>folder})
|
261
|
+
expect(result.code).to eql(200)# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# unit tests for cells_auto_filter_put_worksheet_filter
|
266
|
+
# Adds a filter for a filter column.
|
267
|
+
#
|
268
|
+
# @param name
|
269
|
+
# @param sheet_name
|
270
|
+
# @param range
|
271
|
+
# @param field_index
|
272
|
+
# @param criteria
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @option opts [BOOLEAN] :match_blanks
|
275
|
+
# @option opts [BOOLEAN] :refresh
|
276
|
+
# @option opts [String] :folder
|
277
|
+
# @option opts [String] :storage storage name.
|
278
|
+
# @return [CellsCloudResponse]
|
279
|
+
describe 'cells_auto_filter_put_worksheet_filter test' do
|
280
|
+
it "should work" do
|
281
|
+
name = $BOOK1
|
282
|
+
sheet_name = $SHEET1
|
283
|
+
range = $RANGE
|
284
|
+
field_index = 0
|
285
|
+
criteria = 'test'
|
286
|
+
match_blanks = true
|
287
|
+
refresh = true
|
288
|
+
folder = $TEMPFOLDER
|
289
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
290
|
+
expect(result.uploaded.size).to be > 0
|
291
|
+
result = @instance.cells_auto_filter_put_worksheet_filter(name, sheet_name, range, field_index, criteria, {:match_blanks=>match_blanks, :refresh=>refresh, :folder=>folder})
|
292
|
+
expect(result.code).to eql(200)
|
293
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
# unit tests for cells_auto_filter_put_worksheet_filter_top10
|
298
|
+
# Filter the top 10 item in the list
|
299
|
+
#
|
300
|
+
# @param name
|
301
|
+
# @param sheet_name
|
302
|
+
# @param range
|
303
|
+
# @param field_index
|
304
|
+
# @param is_top
|
305
|
+
# @param is_percent
|
306
|
+
# @param item_count
|
307
|
+
# @param [Hash] opts the optional parameters
|
308
|
+
# @option opts [BOOLEAN] :match_blanks
|
309
|
+
# @option opts [BOOLEAN] :refresh
|
310
|
+
# @option opts [String] :folder
|
311
|
+
# @option opts [String] :storage storage name.
|
312
|
+
# @return [CellsCloudResponse]
|
313
|
+
describe 'cells_auto_filter_put_worksheet_filter_top10 test' do
|
314
|
+
it "should work" do
|
315
|
+
name = $BOOK1
|
316
|
+
sheet_name = $SHEET1
|
317
|
+
range = $RANGE
|
318
|
+
field_index = 0
|
319
|
+
is_top = true
|
320
|
+
is_percent = true
|
321
|
+
item_count = 1
|
322
|
+
match_blanks = true
|
323
|
+
refresh = true
|
324
|
+
folder = $TEMPFOLDER
|
325
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
326
|
+
expect(result.uploaded.size).to be > 0
|
327
|
+
result = @instance.cells_auto_filter_put_worksheet_filter_top10(name, sheet_name, range, field_index, is_top, is_percent, item_count, {:match_blanks=>match_blanks, :refresh=>refresh, :folder=>folder})
|
328
|
+
expect(result.code).to eql(200)
|
329
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
# unit tests for cells_auto_filter_put_worksheet_icon_filter
|
334
|
+
# Adds an icon filter.
|
335
|
+
#
|
336
|
+
# @param name
|
337
|
+
# @param sheet_name
|
338
|
+
# @param range
|
339
|
+
# @param field_index
|
340
|
+
# @param icon_set_type
|
341
|
+
# @param icon_id
|
342
|
+
# @param [Hash] opts the optional parameters
|
343
|
+
# @option opts [BOOLEAN] :match_blanks
|
344
|
+
# @option opts [BOOLEAN] :refresh
|
345
|
+
# @option opts [String] :folder
|
346
|
+
# @option opts [String] :storage storage name.
|
347
|
+
# @return [CellsCloudResponse]
|
348
|
+
describe 'cells_auto_filter_put_worksheet_icon_filter test' do
|
349
|
+
it "should work" do
|
350
|
+
name = $BOOK1
|
351
|
+
sheet_name = $SHEET1
|
352
|
+
range = $RANGE
|
353
|
+
field_index = 0
|
354
|
+
icon_set_type = 'None'
|
355
|
+
icon_id = 0
|
356
|
+
match_blanks = true
|
357
|
+
refresh = true
|
358
|
+
folder = $TEMPFOLDER
|
359
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
360
|
+
expect(result.uploaded.size).to be > 0
|
361
|
+
result = @instance.cells_auto_filter_put_worksheet_icon_filter(name, sheet_name, range, field_index, icon_set_type, icon_id, {:match_blanks=>match_blanks, :refresh=>refresh, :folder=>folder})
|
362
|
+
expect(result.code).to eql(200)
|
363
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
364
|
+
end
|
365
|
+
end
|
366
|
+
# unit tests for cells_auto_filter_delete_worksheet_date_filter
|
367
|
+
# Removes a date filter.
|
368
|
+
#
|
369
|
+
# @param name
|
370
|
+
# @param sheet_name
|
371
|
+
# @param field_index
|
372
|
+
# @param date_time_grouping_type
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @option opts [Integer] :year
|
375
|
+
# @option opts [Integer] :month
|
376
|
+
# @option opts [Integer] :day
|
377
|
+
# @option opts [Integer] :hour
|
378
|
+
# @option opts [Integer] :minute
|
379
|
+
# @option opts [Integer] :second
|
380
|
+
# @option opts [String] :folder
|
381
|
+
# @option opts [String] :storage storage name.
|
382
|
+
# @return [CellsCloudResponse]
|
383
|
+
describe 'cells_auto_filter_delete_worksheet_date_filter test' do
|
384
|
+
it "should work" do
|
385
|
+
name = $BOOK1
|
386
|
+
sheet_name = $SHEET1
|
387
|
+
field_index = 1
|
388
|
+
date_time_grouping_type = 'Day'
|
389
|
+
year = 2018
|
390
|
+
month = 12
|
391
|
+
day = 1
|
392
|
+
hour = 1
|
393
|
+
minute = 1
|
394
|
+
second = 1
|
395
|
+
folder = $TEMPFOLDER
|
396
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
397
|
+
expect(result.uploaded.size).to be > 0
|
398
|
+
result = @instance.cells_auto_filter_delete_worksheet_date_filter(name, sheet_name, field_index, date_time_grouping_type, {:year=>year, :month=>month, :day=>day, :hour=>hour, :minute=>minute, :second=>second, :folder=>folder})
|
399
|
+
expect(result.code).to eql(200)
|
400
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
404
|
+
# unit tests for cells_auto_filter_delete_worksheet_filter
|
405
|
+
# Delete a filter for a filter column.
|
406
|
+
#
|
407
|
+
# @param name
|
408
|
+
# @param sheet_name
|
409
|
+
# @param field_index
|
410
|
+
# @param [Hash] opts the optional parameters
|
411
|
+
# @option opts [String] :criteria
|
412
|
+
# @option opts [String] :folder
|
413
|
+
# @option opts [String] :storage storage name.
|
414
|
+
# @return [CellsCloudResponse]
|
415
|
+
describe 'cells_auto_filter_delete_worksheet_filter test' do
|
416
|
+
it "should work" do
|
417
|
+
name = $BOOK1
|
418
|
+
sheet_name = $SHEET1
|
419
|
+
field_index = 1
|
420
|
+
criteria = 'test'
|
421
|
+
folder = $TEMPFOLDER
|
422
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
423
|
+
expect(result.uploaded.size).to be > 0
|
424
|
+
result = @instance.cells_auto_filter_delete_worksheet_filter(name, sheet_name, field_index, {:criteria=>criteria, :folder=>folder})
|
425
|
+
expect(result.code).to eql(200)
|
426
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
# Unit tests for AsposeCellsCloud::CellsChartAreaApi
|
7
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
8
|
+
# Please update as you see appropriate
|
9
|
+
describe 'CellsChartAreaApi' do
|
10
|
+
before do
|
11
|
+
@instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
12
|
+
$VERBOSE = nil
|
13
|
+
end
|
14
|
+
|
15
|
+
after do
|
16
|
+
# run after each test
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
# unit tests for cells_chart_area_get_chart_area
|
22
|
+
# Get chart area info.
|
23
|
+
#
|
24
|
+
# @param name Workbook name.
|
25
|
+
# @param sheet_name Worksheet name.
|
26
|
+
# @param chart_index The chart index.
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :folder Workbook folder.
|
29
|
+
# @option opts [String] :storage storage name.
|
30
|
+
# @return [ChartAreaResponse]
|
31
|
+
describe 'cells_chart_area_get_chart_area test' do
|
32
|
+
it "should work" do
|
33
|
+
name = $MYDOC
|
34
|
+
sheet_name = $SHEET3
|
35
|
+
chart_index = 0
|
36
|
+
folder = $TEMPFOLDER
|
37
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
38
|
+
expect(result.uploaded.size).to be > 0
|
39
|
+
result = @instance.cells_chart_area_get_chart_area(name, sheet_name, chart_index, { :folder=>folder})
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# unit tests for cells_chart_area_get_chart_area_border
|
45
|
+
# Get chart area border info.
|
46
|
+
#
|
47
|
+
# @param name Workbook name.
|
48
|
+
# @param sheet_name Worksheet name.
|
49
|
+
# @param chart_index The chart index.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [String] :folder Workbook folder.
|
52
|
+
# @option opts [String] :storage storage name.
|
53
|
+
# @return [LineResponse]
|
54
|
+
describe 'cells_chart_area_get_chart_area_border test' do
|
55
|
+
it "should work" do
|
56
|
+
name = $MYDOC
|
57
|
+
sheet_name = $SHEET3
|
58
|
+
chart_index = 0
|
59
|
+
folder = $TEMPFOLDER
|
60
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
61
|
+
expect(result.uploaded.size).to be > 0
|
62
|
+
result = @instance.cells_chart_area_get_chart_area_border(name, sheet_name, chart_index, { :folder=>folder})
|
63
|
+
expect(result.code).to eql(200)
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for cells_chart_area_get_chart_area_fill_format
|
69
|
+
# Get chart area fill format info.
|
70
|
+
#
|
71
|
+
# @param name Workbook name.
|
72
|
+
# @param sheet_name Worksheet name.
|
73
|
+
# @param chart_index The chart index.
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [String] :folder Workbook folder.
|
76
|
+
# @option opts [String] :storage storage name.
|
77
|
+
# @return [FillFormatResponse]
|
78
|
+
describe 'cells_chart_area_get_chart_area_fill_format test' do
|
79
|
+
it "should work" do
|
80
|
+
name = $MYDOC
|
81
|
+
sheet_name = $SHEET3
|
82
|
+
chart_index = 0
|
83
|
+
folder = $TEMPFOLDER
|
84
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
85
|
+
expect(result.uploaded.size).to be > 0
|
86
|
+
result = @instance.cells_chart_area_get_chart_area_fill_format(name, sheet_name, chart_index, { :folder=>folder})
|
87
|
+
expect(result.code).to eql(200)
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|