aspose_cells_cloud 26.8 → 26.9

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -39
  3. data/lib/aspose_cells_cloud/requests/smart_marker_template_request.rb +30 -0
  4. data/lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb +24 -0
  5. data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +24 -0
  6. data/lib/aspose_cells_cloud/version.rb +1 -1
  7. data/spec/client_spec.rb +114 -0
  8. data/spec/configuration_spec.rb +61 -0
  9. data/spec/form_file_spec.rb +47 -0
  10. data/spec/model_spec.rb +73 -0
  11. data/spec/request_spec.rb +87 -0
  12. data/spec/rich_response_spec.rb +46 -0
  13. data/spec/sdk_error_spec.rb +27 -0
  14. data/spec/spec_helper.rb +21 -134
  15. metadata +9 -78
  16. data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
  17. data/spec/TestData/Book1.xlsx +0 -0
  18. data/spec/TestData/BookCsvDuplicateData.csv +0 -21
  19. data/spec/TestData/BookDuplicateData.xlsx +0 -0
  20. data/spec/TestData/BookFormula.xlsx +0 -0
  21. data/spec/TestData/BookTableL2W.xlsx +0 -0
  22. data/spec/TestData/BookText.xlsx +0 -0
  23. data/spec/TestData/CompanySales.xlsx +0 -0
  24. data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
  25. data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
  26. data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
  27. data/spec/TestData/Formula tutorial.xlsx +0 -0
  28. data/spec/TestData/Group.xlsx +0 -0
  29. data/spec/TestData/Home inventory.xlsx +0 -0
  30. data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
  31. data/spec/TestData/OLEDoc.docx +0 -0
  32. data/spec/TestData/ReportData.xml +0 -1
  33. data/spec/TestData/Simple invoice.xlsx +0 -0
  34. data/spec/TestData/Template.xlsx +0 -0
  35. data/spec/TestData/TestCase.xlsx +0 -0
  36. data/spec/TestData/TestTables.xlsx +0 -0
  37. data/spec/TestData/WaterMark.png +0 -0
  38. data/spec/TestData/assemblytest.xlsx +0 -0
  39. data/spec/TestData/data.xml +0 -1
  40. data/spec/TestData/datasource.xlsx +0 -0
  41. data/spec/TestData/myDocument.xlsx +0 -0
  42. data/spec/TestData/needUnlock.xlsx +0 -0
  43. data/spec/TestData/needlock.xlsx +0 -0
  44. data/spec/TestData/roywang.pfx +0 -0
  45. data/spec/TestData/word.jpg +0 -0
  46. data/spec/calculate/calculate_spec.rb +0 -29
  47. data/spec/cells_cloud30/auto_filter_controller_spec.rb +0 -211
  48. data/spec/cells_cloud30/batch_controller_spec.rb +0 -113
  49. data/spec/cells_cloud30/cells_controller_spec.rb +0 -627
  50. data/spec/cells_cloud30/cells_status_controller_spec.rb +0 -43
  51. data/spec/cells_cloud30/chart_area_controller_spec.rb +0 -58
  52. data/spec/cells_cloud30/charts_controller_spec.rb +0 -227
  53. data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +0 -149
  54. data/spec/cells_cloud30/conversion30_spec.rb +0 -1112
  55. data/spec/cells_cloud30/data_processing_controller_spec.rb +0 -97
  56. data/spec/cells_cloud30/hypelinks_controller_spec.rb +0 -104
  57. data/spec/cells_cloud30/light_cells_spec.rb +0 -1059
  58. data/spec/cells_cloud30/list_objects_controller_spec.rb +0 -225
  59. data/spec/cells_cloud30/ole_objects_controller_spec.rb +0 -108
  60. data/spec/cells_cloud30/page_breaks_controller_spec.rb +0 -163
  61. data/spec/cells_cloud30/page_setup_controller_spec.rb +0 -149
  62. data/spec/cells_cloud30/pictures_controller_spec.rb +0 -106
  63. data/spec/cells_cloud30/pivot_tables_controller_spec.rb +0 -312
  64. data/spec/cells_cloud30/properties_controller_spec.rb +0 -89
  65. data/spec/cells_cloud30/ranges_controller_spec.rb +0 -227
  66. data/spec/cells_cloud30/shapes_controller_spec.rb +0 -139
  67. data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +0 -104
  68. data/spec/cells_cloud30/text_processing_controller_spec.rb +0 -67
  69. data/spec/cells_cloud30/workbook_controller_spec.rb +0 -519
  70. data/spec/cells_cloud30/worksheet_controller_spec.rb +0 -609
  71. data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +0 -104
  72. data/spec/cells_cloud30/xml_controller_spec.rb +0 -48
  73. data/spec/data_processing/conversion_spec.rb +0 -428
  74. data/spec/data_processing/import_data_spec.rb +0 -24
  75. data/spec/data_processing/merger_spec.rb +0 -28
  76. data/spec/data_processing/protection_spec.rb +0 -29
  77. data/spec/data_processing/splitter_spec.rb +0 -47
  78. data/spec/data_processing/transform_spec.rb +0 -43
  79. data/spec/dynabic/file_controller_spec.rb +0 -60
  80. data/spec/dynabic/folder_controller_spec.rb +0 -88
  81. data/spec/dynabic/storage_controller_spec.rb +0 -73
  82. data/spec/management/management_spec.rb +0 -111
  83. data/spec/search2_replace/replacer_spec.rb +0 -46
  84. data/spec/search2_replace/searcher_spec.rb +0 -131
  85. data/spec/text_processing/add_text_spec.rb +0 -45
  86. data/spec/text_processing/convert_text_spec.rb +0 -37
  87. data/spec/text_processing/extract_text_spec.rb +0 -37
  88. data/spec/text_processing/remove_characters_spec.rb +0 -53
  89. data/spec/text_processing/split_text_spec.rb +0 -21
  90. data/spec/text_processing/trim_spreadsheet_spec.rb +0 -29
  91. data/spec/text_processing/update_word_case_spec.rb +0 -37
@@ -1,609 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe 'CellsApi' do
5
- before do
6
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
7
- $VERBOSE = nil
8
- end
9
-
10
- after do
11
- # run after each test
12
- end
13
-
14
- describe 'get_worksheets test' do
15
- it "should work" do
16
- remote_folder = 'TestData/In'
17
-
18
- local_name = 'Book1.xlsx'
19
- remote_name = 'Book1.xlsx'
20
-
21
-
22
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
23
-
24
- request = AsposeCellsCloud::GetWorksheetsRequest.new(:name=>remote_name,:folder=>remote_folder,:storageName=>'');
25
- @instance.get_worksheets(request);
26
- end
27
- end
28
-
29
- describe 'get_worksheet_with_format test' do
30
- it "should work" do
31
- remote_folder = 'TestData/In'
32
-
33
- local_name = 'Book1.xlsx'
34
- remote_name = 'Book1.xlsx'
35
-
36
-
37
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
38
-
39
- request = AsposeCellsCloud::GetWorksheetWithFormatRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:format=>'png',:pageIndex=>0,:folder=>remote_folder,:storageName=>'');
40
- @instance.get_worksheet_with_format(request);
41
- end
42
- end
43
-
44
- describe 'put_change_visibility_worksheet test' do
45
- it "should work" do
46
- remote_folder = 'TestData/In'
47
-
48
- local_name = 'Book1.xlsx'
49
- remote_name = 'Book1.xlsx'
50
-
51
-
52
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
53
-
54
- request = AsposeCellsCloud::PutChangeVisibilityWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:isVisible=>true,:folder=>remote_folder,:storageName=>'');
55
- @instance.put_change_visibility_worksheet(request);
56
- end
57
- end
58
-
59
- describe 'put_active_worksheet test' do
60
- it "should work" do
61
- remote_folder = 'TestData/In'
62
-
63
- local_name = 'Book1.xlsx'
64
- remote_name = 'Book1.xlsx'
65
-
66
-
67
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
68
-
69
- request = AsposeCellsCloud::PutActiveWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
70
- @instance.put_active_worksheet(request);
71
- end
72
- end
73
-
74
- describe 'put_insert_new_worksheet test' do
75
- it "should work" do
76
- remote_folder = 'TestData/In'
77
-
78
- local_name = 'Book1.xlsx'
79
- remote_name = 'Book1.xlsx'
80
-
81
-
82
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
83
-
84
- request = AsposeCellsCloud::PutInsertNewWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:index=>1,:sheettype=>'VB',:newsheetname=>'VBASheet',:folder=>remote_folder,:storageName=>'');
85
- @instance.put_insert_new_worksheet(request);
86
- end
87
- end
88
-
89
- describe 'put_add_new_worksheet test' do
90
- it "should work" do
91
- remote_folder = 'TestData/In'
92
-
93
- local_name = 'Book1.xlsx'
94
- remote_name = 'Book1.xlsx'
95
-
96
-
97
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
98
-
99
- request = AsposeCellsCloud::PutAddNewWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:position=>0,:sheettype=>'VB',:folder=>remote_folder,:storageName=>'');
100
- @instance.put_add_new_worksheet(request);
101
- end
102
- end
103
-
104
- describe 'delete_worksheet test' do
105
- it "should work" do
106
- remote_folder = 'TestData/In'
107
-
108
- local_name = 'Book1.xlsx'
109
- remote_name = 'Book1.xlsx'
110
-
111
-
112
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
113
-
114
- request = AsposeCellsCloud::DeleteWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
115
- @instance.delete_worksheet(request);
116
- end
117
- end
118
-
119
- describe 'delete_worksheets test' do
120
- it "should work" do
121
- remote_folder = 'TestData/In'
122
-
123
- local_name = 'Book1.xlsx'
124
- remote_name = 'Book1.xlsx'
125
-
126
-
127
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
128
-
129
- matchCondition = AsposeCellsCloud::MatchConditionRequest.new(:RegexPattern=>'{*}' );
130
- request = AsposeCellsCloud::DeleteWorksheetsRequest.new(:name=>remote_name,:matchCondition=>matchCondition,:folder=>remote_folder,:storageName=>'');
131
- @instance.delete_worksheets(request);
132
- end
133
- end
134
-
135
- describe 'post_move_worksheet test' do
136
- it "should work" do
137
- remote_folder = 'TestData/In'
138
-
139
- local_name = 'Book1.xlsx'
140
- remote_name = 'Book1.xlsx'
141
-
142
-
143
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
144
-
145
- moving = AsposeCellsCloud::WorksheetMovingRequest.new(:DestinationWorksheet=>'Sheet4' ,:Position=>'After' );
146
- request = AsposeCellsCloud::PostMoveWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:moving=>moving,:folder=>remote_folder,:storageName=>'');
147
- @instance.post_move_worksheet(request);
148
- end
149
- end
150
-
151
- describe 'put_protect_worksheet test' do
152
- it "should work" do
153
- remote_folder = 'TestData/In'
154
-
155
- local_name = 'Book1.xlsx'
156
- remote_name = 'Book1.xlsx'
157
-
158
-
159
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
160
-
161
- protectParameter = AsposeCellsCloud::ProtectSheetParameter.new(:ProtectionType=>'ALL' ,:Password=>'123' );
162
- request = AsposeCellsCloud::PutProtectWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:protectParameter=>protectParameter,:folder=>remote_folder,:storageName=>'');
163
- @instance.put_protect_worksheet(request);
164
- end
165
- end
166
-
167
- describe 'delete_unprotect_worksheet test' do
168
- it "should work" do
169
- remote_folder = 'TestData/In'
170
-
171
- local_name = 'Book1.xlsx'
172
- remote_name = 'Book1.xlsx'
173
-
174
-
175
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
176
-
177
- protectParameter = AsposeCellsCloud::ProtectSheetParameter.new(:ProtectionType=>'ALL' ,:Password=>'123' );
178
- request = AsposeCellsCloud::DeleteUnprotectWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:protectParameter=>protectParameter,:folder=>remote_folder,:storageName=>'');
179
- @instance.delete_unprotect_worksheet(request);
180
- end
181
- end
182
-
183
- describe 'get_worksheet_text_items test' do
184
- it "should work" do
185
- remote_folder = 'TestData/In'
186
-
187
- local_name = 'Book1.xlsx'
188
- remote_name = 'Book1.xlsx'
189
-
190
-
191
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
192
-
193
- request = AsposeCellsCloud::GetWorksheetTextItemsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
194
- @instance.get_worksheet_text_items(request);
195
- end
196
- end
197
-
198
- describe 'get_worksheet_comments test' do
199
- it "should work" do
200
- remote_folder = 'TestData/In'
201
-
202
- local_name = 'Book1.xlsx'
203
- remote_name = 'Book1.xlsx'
204
-
205
-
206
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
207
-
208
- request = AsposeCellsCloud::GetWorksheetCommentsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
209
- @instance.get_worksheet_comments(request);
210
- end
211
- end
212
-
213
- describe 'get_worksheet_comment test' do
214
- it "should work" do
215
- remote_folder = 'TestData/In'
216
-
217
- local_name = 'Book1.xlsx'
218
- remote_name = 'Book1.xlsx'
219
-
220
-
221
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
222
-
223
- request = AsposeCellsCloud::GetWorksheetCommentRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:cellName=>'B3',:folder=>remote_folder,:storageName=>'');
224
- @instance.get_worksheet_comment(request);
225
- end
226
- end
227
-
228
- describe 'put_worksheet_comment test' do
229
- it "should work" do
230
- remote_folder = 'TestData/In'
231
-
232
- local_name = 'Book1.xlsx'
233
- remote_name = 'Book1.xlsx'
234
-
235
-
236
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
237
-
238
- comment = AsposeCellsCloud::Comment.new(:Author=>'aspose cells developer' ,:Note=>'aspose cells cloud api add comment.' );
239
- request = AsposeCellsCloud::PutWorksheetCommentRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:cellName=>'C1',:comment=>comment,:folder=>remote_folder,:storageName=>'');
240
- @instance.put_worksheet_comment(request);
241
- end
242
- end
243
-
244
- describe 'post_worksheet_comment test' do
245
- it "should work" do
246
- remote_folder = 'TestData/In'
247
-
248
- local_name = 'Book1.xlsx'
249
- remote_name = 'Book1.xlsx'
250
-
251
-
252
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
253
-
254
- comment = AsposeCellsCloud::Comment.new(:Author=>'aspose cells developer' ,:Note=>'aspose cells cloud api update comment.' );
255
- request = AsposeCellsCloud::PostWorksheetCommentRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:cellName=>'B3',:comment=>comment,:folder=>remote_folder,:storageName=>'');
256
- @instance.post_worksheet_comment(request);
257
- end
258
- end
259
-
260
- describe 'delete_worksheet_comment test' do
261
- it "should work" do
262
- remote_folder = 'TestData/In'
263
-
264
- local_name = 'Book1.xlsx'
265
- remote_name = 'Book1.xlsx'
266
-
267
-
268
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
269
-
270
- request = AsposeCellsCloud::DeleteWorksheetCommentRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:cellName=>'B3',:folder=>remote_folder,:storageName=>'');
271
- @instance.delete_worksheet_comment(request);
272
- end
273
- end
274
-
275
- describe 'delete_worksheet_comments test' do
276
- it "should work" do
277
- remote_folder = 'TestData/In'
278
-
279
- local_name = 'Book1.xlsx'
280
- remote_name = 'Book1.xlsx'
281
-
282
-
283
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
284
-
285
- request = AsposeCellsCloud::DeleteWorksheetCommentsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
286
- @instance.delete_worksheet_comments(request);
287
- end
288
- end
289
-
290
- describe 'get_worksheet_merged_cells test' do
291
- it "should work" do
292
- remote_folder = 'TestData/In'
293
-
294
- local_name = 'Book1.xlsx'
295
- remote_name = 'Book1.xlsx'
296
-
297
-
298
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
299
-
300
- request = AsposeCellsCloud::GetWorksheetMergedCellsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
301
- @instance.get_worksheet_merged_cells(request);
302
- end
303
- end
304
-
305
- describe 'get_worksheet_merged_cell test' do
306
- it "should work" do
307
- remote_folder = 'TestData/In'
308
-
309
- local_name = 'Book1.xlsx'
310
- remote_name = 'Book1.xlsx'
311
-
312
-
313
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
314
-
315
- request = AsposeCellsCloud::GetWorksheetMergedCellRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:mergedCellIndex=>0,:folder=>remote_folder,:storageName=>'');
316
- @instance.get_worksheet_merged_cell(request);
317
- end
318
- end
319
-
320
- describe 'get_worksheet_calculate_formula test' do
321
- it "should work" do
322
- remote_folder = 'TestData/In'
323
-
324
- local_name = 'Book1.xlsx'
325
- remote_name = 'Book1.xlsx'
326
-
327
-
328
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
329
-
330
- request = AsposeCellsCloud::GetWorksheetCalculateFormulaRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:formula=>'=NOW()',:folder=>remote_folder,:storageName=>'');
331
- @instance.get_worksheet_calculate_formula(request);
332
- end
333
- end
334
-
335
- describe 'post_worksheet_calculate_formula test' do
336
- it "should work" do
337
- remote_folder = 'TestData/In'
338
-
339
- local_name = 'Book1.xlsx'
340
- remote_name = 'Book1.xlsx'
341
-
342
-
343
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
344
-
345
- request = AsposeCellsCloud::PostWorksheetCalculateFormulaRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:formula=>'=NOW()',:folder=>remote_folder,:storageName=>'');
346
- @instance.post_worksheet_calculate_formula(request);
347
- end
348
- end
349
-
350
- describe 'post_worksheet_text_search test' do
351
- it "should work" do
352
- remote_folder = 'TestData/In'
353
-
354
- local_name = 'Book1.xlsx'
355
- remote_name = 'Book1.xlsx'
356
-
357
-
358
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
359
-
360
- request = AsposeCellsCloud::PostWorksheetTextSearchRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:text=>'123',:folder=>remote_folder,:storageName=>'');
361
- @instance.post_worksheet_text_search(request);
362
- end
363
- end
364
-
365
- describe 'post_worksheet_text_replace test' do
366
- it "should work" do
367
- remote_folder = 'TestData/In'
368
-
369
- local_name = 'Book1.xlsx'
370
- remote_name = 'Book1.xlsx'
371
-
372
-
373
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
374
-
375
- request = AsposeCellsCloud::PostWorksheetTextReplaceRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:oldValue=>'123',:newValue=>'456',:folder=>remote_folder,:storageName=>'');
376
- @instance.post_worksheet_text_replace(request);
377
- end
378
- end
379
-
380
- describe 'post_worksheet_range_sort test' do
381
- it "should work" do
382
- remote_folder = 'TestData/In'
383
-
384
- local_name = 'Book1.xlsx'
385
- remote_name = 'Book1.xlsx'
386
-
387
-
388
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
389
-
390
- dataSorter = AsposeCellsCloud::DataSorter.new(:CaseSensitive=>true );
391
- request = AsposeCellsCloud::PostWorksheetRangeSortRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:cellArea=>'A1:C10',:dataSorter=>dataSorter,:folder=>remote_folder,:storageName=>'');
392
- @instance.post_worksheet_range_sort(request);
393
- end
394
- end
395
-
396
- describe 'post_autofit_worksheet_row test' do
397
- it "should work" do
398
- remote_folder = 'TestData/In'
399
-
400
- local_name = 'Book1.xlsx'
401
- remote_name = 'Book1.xlsx'
402
-
403
-
404
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
405
-
406
- request = AsposeCellsCloud::PostAutofitWorksheetRowRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:rowIndex=>1,:firstColumn=>1,:lastColumn=>8,:folder=>remote_folder,:storageName=>'',:rowCount=>1);
407
- @instance.post_autofit_worksheet_row(request);
408
- end
409
- end
410
-
411
- describe 'post_autofit_worksheet_rows test' do
412
- it "should work" do
413
- remote_folder = 'TestData/In'
414
-
415
- local_name = 'Book1.xlsx'
416
- remote_name = 'Book1.xlsx'
417
-
418
-
419
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
420
-
421
- request = AsposeCellsCloud::PostAutofitWorksheetRowsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:startRow=>1,:endRow=>9,:onlyAuto=>true,:folder=>remote_folder,:storageName=>'');
422
- @instance.post_autofit_worksheet_rows(request);
423
- end
424
- end
425
-
426
- describe 'post_autofit_worksheet_columns test' do
427
- it "should work" do
428
- remote_folder = 'TestData/In'
429
-
430
- local_name = 'Book1.xlsx'
431
- remote_name = 'Book1.xlsx'
432
-
433
-
434
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
435
-
436
- request = AsposeCellsCloud::PostAutofitWorksheetColumnsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:startColumn=>1,:endColumn=>9,:onlyAuto=>true,:folder=>remote_folder,:storageName=>'');
437
- @instance.post_autofit_worksheet_columns(request);
438
- end
439
- end
440
-
441
- describe 'put_worksheet_background test' do
442
- it "should work" do
443
- remote_folder = 'TestData/In'
444
-
445
- local_name = 'Book1.xlsx'
446
- water_mark_png = 'WaterMark.png'
447
- remote_name = 'Book1.xlsx'
448
-
449
-
450
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
451
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+water_mark_png,:path=>remote_folder ))
452
-
453
- request = AsposeCellsCloud::PutWorksheetBackgroundRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:picPath=>remote_folder + '/WaterMark.png',:folder=>remote_folder,:storageName=>'');
454
- @instance.put_worksheet_background(request);
455
- end
456
- end
457
-
458
- describe 'delete_worksheet_background test' do
459
- it "should work" do
460
- remote_folder = 'TestData/In'
461
-
462
- local_name = 'Book1.xlsx'
463
- remote_name = 'Book1.xlsx'
464
-
465
-
466
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
467
-
468
- request = AsposeCellsCloud::DeleteWorksheetBackgroundRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
469
- @instance.delete_worksheet_background(request);
470
- end
471
- end
472
-
473
- describe 'put_worksheet_freeze_panes test' do
474
- it "should work" do
475
- remote_folder = 'TestData/In'
476
-
477
- local_name = 'Book1.xlsx'
478
- remote_name = 'Book1.xlsx'
479
-
480
-
481
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
482
-
483
- request = AsposeCellsCloud::PutWorksheetFreezePanesRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:row=>1,:column=>1,:freezedRows=>4,:freezedColumns=>5,:folder=>remote_folder,:storageName=>'');
484
- @instance.put_worksheet_freeze_panes(request);
485
- end
486
- end
487
-
488
- describe 'delete_worksheet_freeze_panes test' do
489
- it "should work" do
490
- remote_folder = 'TestData/In'
491
-
492
- local_name = 'Book1.xlsx'
493
- remote_name = 'Book1.xlsx'
494
-
495
-
496
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
497
-
498
- request = AsposeCellsCloud::DeleteWorksheetFreezePanesRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:row=>1,:column=>1,:freezedRows=>4,:freezedColumns=>5,:folder=>remote_folder,:storageName=>'');
499
- @instance.delete_worksheet_freeze_panes(request);
500
- end
501
- end
502
-
503
- describe 'post_copy_worksheet test' do
504
- it "should work" do
505
- remote_folder = 'TestData/In'
506
-
507
- local_name = 'Book1.xlsx'
508
- remote_name = 'Book1.xlsx'
509
-
510
-
511
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
512
-
513
- options = AsposeCellsCloud::CopyOptions.new(:ColumnCharacterWidth=>true );
514
- request = AsposeCellsCloud::PostCopyWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet15',:sourceSheet=>'Sheet6',:options=>options,:sourceWorkbook=>'',:sourceFolder=>'',:folder=>remote_folder,:storageName=>'');
515
- @instance.post_copy_worksheet(request);
516
- end
517
- end
518
-
519
- describe 'post_rename_worksheet test' do
520
- it "should work" do
521
- remote_folder = 'TestData/In'
522
-
523
- local_name = 'Book1.xlsx'
524
- remote_name = 'Book1.xlsx'
525
-
526
-
527
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
528
-
529
- request = AsposeCellsCloud::PostRenameWorksheetRequest.new(:name=>remote_name,:sheetName=>'Sheet5',:newname=>'Sheet55',:folder=>remote_folder,:storageName=>'');
530
- @instance.post_rename_worksheet(request);
531
- end
532
- end
533
-
534
- describe 'post_update_worksheet_property test' do
535
- it "should work" do
536
- remote_folder = 'TestData/In'
537
-
538
- local_name = 'Book1.xlsx'
539
- remote_name = 'Book1.xlsx'
540
-
541
-
542
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
543
-
544
- sheet = AsposeCellsCloud::Worksheet.new(:Name=>'sheet65' ,:IsGridlinesVisible=>true );
545
- request = AsposeCellsCloud::PostUpdateWorksheetPropertyRequest.new(:name=>remote_name,:sheetName=>'Sheet5',:sheet=>sheet,:folder=>remote_folder,:storageName=>'');
546
- @instance.post_update_worksheet_property(request);
547
- end
548
- end
549
-
550
- describe 'get_named_ranges test' do
551
- it "should work" do
552
- remote_folder = 'TestData/In'
553
-
554
- local_name = 'Book1.xlsx'
555
- remote_name = 'Book1.xlsx'
556
-
557
-
558
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
559
-
560
- request = AsposeCellsCloud::GetNamedRangesRequest.new(:name=>remote_name,:folder=>remote_folder,:storageName=>'');
561
- @instance.get_named_ranges(request);
562
- end
563
- end
564
-
565
- describe 'get_named_range_value test' do
566
- it "should work" do
567
- remote_folder = 'TestData/In'
568
-
569
- local_name = 'Book1.xlsx'
570
- remote_name = 'Book1.xlsx'
571
-
572
-
573
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
574
-
575
- request = AsposeCellsCloud::GetNamedRangeValueRequest.new(:name=>remote_name,:namerange=>'Name_2',:folder=>remote_folder,:storageName=>'');
576
- @instance.get_named_range_value(request);
577
- end
578
- end
579
-
580
- describe 'post_update_worksheet_zoom test' do
581
- it "should work" do
582
- remote_folder = 'TestData/In'
583
-
584
- local_name = 'Book1.xlsx'
585
- remote_name = 'Book1.xlsx'
586
-
587
-
588
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
589
-
590
- request = AsposeCellsCloud::PostUpdateWorksheetZoomRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:value=>90,:folder=>remote_folder,:storageName=>'');
591
- @instance.post_update_worksheet_zoom(request);
592
- end
593
- end
594
-
595
- describe 'get_worksheet_page_count test' do
596
- it "should work" do
597
- remote_folder = 'TestData/In'
598
-
599
- local_name = 'Book1.xlsx'
600
- remote_name = 'Book1.xlsx'
601
-
602
-
603
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
604
-
605
- request = AsposeCellsCloud::GetWorksheetPageCountRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
606
- @instance.get_worksheet_page_count(request);
607
- end
608
- end
609
- end