aspose_slides_cloud 24.6.0 → 24.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -7
- data/README.md +20 -0
- data/TestData/pictureFrame.html +39 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +373 -210
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +179 -8
- data/lib/aspose_slides_cloud/api_client.rb +3 -0
- data/lib/aspose_slides_cloud/models/document_property.rb +0 -5
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -25
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +0 -5
- data/lib/aspose_slides_cloud/models/operation.rb +3 -3
- data/lib/aspose_slides_cloud/models/operation_error.rb +121 -0
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
- data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide.rb +0 -5
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +0 -5
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +0 -5
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +12 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
- data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +1 -0
- data/spec/api/slides_api_spec.rb +1080 -757
- data/spec/api/slides_async_api_spec.rb +773 -0
- data/spec/use_cases/async_api_spec.rb +42 -0
- data/spec/use_cases/font_spec.rb +4 -4
- data/spec/use_cases/text_spec.rb +57 -9
- data/testRules.json +3 -0
- metadata +24 -2
@@ -1274,4 +1274,777 @@ describe 'SlidesAsyncApi' do
|
|
1274
1274
|
end
|
1275
1275
|
end
|
1276
1276
|
|
1277
|
+
# unit tests for start_split
|
1278
|
+
# @param name
|
1279
|
+
# @param format
|
1280
|
+
# @param [Hash] opts the optional parameters
|
1281
|
+
# @option opts [ExportOptions] :options
|
1282
|
+
# @option opts [Integer] :width
|
1283
|
+
# @option opts [Integer] :height
|
1284
|
+
# @option opts [Integer] :from
|
1285
|
+
# @option opts [Integer] :to
|
1286
|
+
# @option opts [String] :dest_folder
|
1287
|
+
# @option opts [String] :password
|
1288
|
+
# @option opts [String] :folder
|
1289
|
+
# @option opts [String] :storage
|
1290
|
+
# @option opts [String] :fonts_folder
|
1291
|
+
# @return [String]
|
1292
|
+
describe 'start_split test' do
|
1293
|
+
it 'should work' do
|
1294
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1295
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1296
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1297
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1298
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1299
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1300
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1301
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1302
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1303
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1304
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1305
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1306
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', nil, nil)
|
1307
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1308
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', nil, nil, nil)
|
1309
|
+
expect(c).to eq(code)
|
1310
|
+
expect(o).not_to be_nil
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
it 'invalid name' do
|
1314
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1315
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1316
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1317
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1318
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1319
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1320
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1321
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1322
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1323
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1324
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1325
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1326
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'StartSplit', paramname, 'String')
|
1327
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'name', paramname)
|
1328
|
+
begin
|
1329
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1330
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'name')
|
1331
|
+
fail "An exception expected"
|
1332
|
+
end
|
1333
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1334
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'name', paramname, 'String')
|
1335
|
+
expect(e.code).to eq(code)
|
1336
|
+
expect(e.response_body).to include(message)
|
1337
|
+
rescue ArgumentError => e
|
1338
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'name', paramname, 'String')
|
1339
|
+
expect(400).to eq(code)
|
1340
|
+
expect(e.message).to include(message)
|
1341
|
+
end
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
it 'invalid format' do
|
1345
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1346
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1347
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1348
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1349
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1350
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1351
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1352
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1353
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1354
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1355
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1356
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1357
|
+
paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'StartSplit', paramformat, 'String')
|
1358
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'format', paramformat)
|
1359
|
+
begin
|
1360
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1361
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'format')
|
1362
|
+
fail "An exception expected"
|
1363
|
+
end
|
1364
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1365
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'format', paramformat, 'String')
|
1366
|
+
expect(e.code).to eq(code)
|
1367
|
+
expect(e.response_body).to include(message)
|
1368
|
+
rescue ArgumentError => e
|
1369
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'format', paramformat, 'String')
|
1370
|
+
expect(400).to eq(code)
|
1371
|
+
expect(e.message).to include(message)
|
1372
|
+
end
|
1373
|
+
end
|
1374
|
+
|
1375
|
+
it 'invalid options' do
|
1376
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1377
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1378
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1379
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1380
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1381
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1382
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1383
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1384
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1385
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1386
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1387
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1388
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'StartSplit', paramoptions, 'ExportOptions')
|
1389
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'options', paramoptions)
|
1390
|
+
begin
|
1391
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1392
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'options')
|
1393
|
+
fail "An exception expected"
|
1394
|
+
end
|
1395
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1396
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'options', paramoptions, 'ExportOptions')
|
1397
|
+
expect(e.code).to eq(code)
|
1398
|
+
expect(e.response_body).to include(message)
|
1399
|
+
rescue ArgumentError => e
|
1400
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'options', paramoptions, 'ExportOptions')
|
1401
|
+
expect(400).to eq(code)
|
1402
|
+
expect(e.message).to include(message)
|
1403
|
+
end
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
it 'invalid width' do
|
1407
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1408
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1409
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1410
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1411
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1412
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1413
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1414
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1415
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1416
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1417
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1418
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1419
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.invalidize_param_value('width', 'StartSplit', paramwidth, 'Integer')
|
1420
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'width', paramwidth)
|
1421
|
+
begin
|
1422
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1423
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'width')
|
1424
|
+
fail "An exception expected"
|
1425
|
+
end
|
1426
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1427
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'width', paramwidth, 'Integer')
|
1428
|
+
expect(e.code).to eq(code)
|
1429
|
+
expect(e.response_body).to include(message)
|
1430
|
+
rescue ArgumentError => e
|
1431
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'width', paramwidth, 'Integer')
|
1432
|
+
expect(400).to eq(code)
|
1433
|
+
expect(e.message).to include(message)
|
1434
|
+
end
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
it 'invalid height' do
|
1438
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1439
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1440
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1441
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1442
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1443
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1444
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1445
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1446
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1447
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1448
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1449
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1450
|
+
paramheight = AsposeSlidesCloud::SpecUtils.invalidize_param_value('height', 'StartSplit', paramheight, 'Integer')
|
1451
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'height', paramheight)
|
1452
|
+
begin
|
1453
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1454
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'height')
|
1455
|
+
fail "An exception expected"
|
1456
|
+
end
|
1457
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1458
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'height', paramheight, 'Integer')
|
1459
|
+
expect(e.code).to eq(code)
|
1460
|
+
expect(e.response_body).to include(message)
|
1461
|
+
rescue ArgumentError => e
|
1462
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'height', paramheight, 'Integer')
|
1463
|
+
expect(400).to eq(code)
|
1464
|
+
expect(e.message).to include(message)
|
1465
|
+
end
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
it 'invalid from' do
|
1469
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1470
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1471
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1472
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1473
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1474
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1475
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1476
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1477
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1478
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1479
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1480
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1481
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.invalidize_param_value('from', 'StartSplit', paramfrom, 'Integer')
|
1482
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'from', paramfrom)
|
1483
|
+
begin
|
1484
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1485
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'from')
|
1486
|
+
fail "An exception expected"
|
1487
|
+
end
|
1488
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1489
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'from', paramfrom, 'Integer')
|
1490
|
+
expect(e.code).to eq(code)
|
1491
|
+
expect(e.response_body).to include(message)
|
1492
|
+
rescue ArgumentError => e
|
1493
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'from', paramfrom, 'Integer')
|
1494
|
+
expect(400).to eq(code)
|
1495
|
+
expect(e.message).to include(message)
|
1496
|
+
end
|
1497
|
+
end
|
1498
|
+
|
1499
|
+
it 'invalid to' do
|
1500
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1501
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1502
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1503
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1504
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1505
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1506
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1507
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1508
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1509
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1510
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1511
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1512
|
+
paramto = AsposeSlidesCloud::SpecUtils.invalidize_param_value('to', 'StartSplit', paramto, 'Integer')
|
1513
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'to', paramto)
|
1514
|
+
begin
|
1515
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1516
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'to')
|
1517
|
+
fail "An exception expected"
|
1518
|
+
end
|
1519
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1520
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'to', paramto, 'Integer')
|
1521
|
+
expect(e.code).to eq(code)
|
1522
|
+
expect(e.response_body).to include(message)
|
1523
|
+
rescue ArgumentError => e
|
1524
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'to', paramto, 'Integer')
|
1525
|
+
expect(400).to eq(code)
|
1526
|
+
expect(e.message).to include(message)
|
1527
|
+
end
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
it 'invalid dest_folder' do
|
1531
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1532
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1533
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1534
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1535
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1536
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1537
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1538
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1539
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1540
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1541
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1542
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1543
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('destFolder', 'StartSplit', paramdest_folder, 'String')
|
1544
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'destFolder', paramdest_folder)
|
1545
|
+
begin
|
1546
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1547
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'destFolder')
|
1548
|
+
fail "An exception expected"
|
1549
|
+
end
|
1550
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1551
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'destFolder', paramdest_folder, 'String')
|
1552
|
+
expect(e.code).to eq(code)
|
1553
|
+
expect(e.response_body).to include(message)
|
1554
|
+
rescue ArgumentError => e
|
1555
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'destFolder', paramdest_folder, 'String')
|
1556
|
+
expect(400).to eq(code)
|
1557
|
+
expect(e.message).to include(message)
|
1558
|
+
end
|
1559
|
+
end
|
1560
|
+
|
1561
|
+
it 'invalid password' do
|
1562
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1563
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1564
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1565
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1566
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1567
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1568
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1569
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1570
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1571
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1572
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1573
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1574
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'StartSplit', parampassword, 'String')
|
1575
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'password', parampassword)
|
1576
|
+
begin
|
1577
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1578
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'password')
|
1579
|
+
fail "An exception expected"
|
1580
|
+
end
|
1581
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1582
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'password', parampassword, 'String')
|
1583
|
+
expect(e.code).to eq(code)
|
1584
|
+
expect(e.response_body).to include(message)
|
1585
|
+
rescue ArgumentError => e
|
1586
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'password', parampassword, 'String')
|
1587
|
+
expect(400).to eq(code)
|
1588
|
+
expect(e.message).to include(message)
|
1589
|
+
end
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
it 'invalid folder' do
|
1593
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1594
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1595
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1596
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1597
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1598
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1599
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1600
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1601
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1602
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1603
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1604
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1605
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'StartSplit', paramfolder, 'String')
|
1606
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'folder', paramfolder)
|
1607
|
+
begin
|
1608
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1609
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'folder')
|
1610
|
+
fail "An exception expected"
|
1611
|
+
end
|
1612
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1613
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'folder', paramfolder, 'String')
|
1614
|
+
expect(e.code).to eq(code)
|
1615
|
+
expect(e.response_body).to include(message)
|
1616
|
+
rescue ArgumentError => e
|
1617
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'folder', paramfolder, 'String')
|
1618
|
+
expect(400).to eq(code)
|
1619
|
+
expect(e.message).to include(message)
|
1620
|
+
end
|
1621
|
+
end
|
1622
|
+
|
1623
|
+
it 'invalid storage' do
|
1624
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1625
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1626
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1627
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1628
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1629
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1630
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1631
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1632
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1633
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1634
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1635
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1636
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartSplit', paramstorage, 'String')
|
1637
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'storage', paramstorage)
|
1638
|
+
begin
|
1639
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1640
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'storage')
|
1641
|
+
fail "An exception expected"
|
1642
|
+
end
|
1643
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1644
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'storage', paramstorage, 'String')
|
1645
|
+
expect(e.code).to eq(code)
|
1646
|
+
expect(e.response_body).to include(message)
|
1647
|
+
rescue ArgumentError => e
|
1648
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'storage', paramstorage, 'String')
|
1649
|
+
expect(400).to eq(code)
|
1650
|
+
expect(e.message).to include(message)
|
1651
|
+
end
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
it 'invalid fonts_folder' do
|
1655
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
|
1656
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
|
1657
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
|
1658
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
|
1659
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
|
1660
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
|
1661
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
|
1662
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
|
1663
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
|
1664
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
|
1665
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
|
1666
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
|
1667
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('fontsFolder', 'StartSplit', paramfonts_folder, 'String')
|
1668
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'fontsFolder', paramfonts_folder)
|
1669
|
+
begin
|
1670
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
|
1671
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'fontsFolder')
|
1672
|
+
fail "An exception expected"
|
1673
|
+
end
|
1674
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1675
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'fontsFolder', paramfonts_folder, 'String')
|
1676
|
+
expect(e.code).to eq(code)
|
1677
|
+
expect(e.response_body).to include(message)
|
1678
|
+
rescue ArgumentError => e
|
1679
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'fontsFolder', paramfonts_folder, 'String')
|
1680
|
+
expect(400).to eq(code)
|
1681
|
+
expect(e.message).to include(message)
|
1682
|
+
end
|
1683
|
+
end
|
1684
|
+
end
|
1685
|
+
|
1686
|
+
# unit tests for start_upload_and_split
|
1687
|
+
# @param document Document data.
|
1688
|
+
# @param format
|
1689
|
+
# @param [Hash] opts the optional parameters
|
1690
|
+
# @option opts [String] :dest_folder
|
1691
|
+
# @option opts [Integer] :width
|
1692
|
+
# @option opts [Integer] :height
|
1693
|
+
# @option opts [Integer] :from
|
1694
|
+
# @option opts [Integer] :to
|
1695
|
+
# @option opts [String] :password
|
1696
|
+
# @option opts [String] :storage
|
1697
|
+
# @option opts [String] :fonts_folder
|
1698
|
+
# @option opts [ExportOptions] :options
|
1699
|
+
# @return [String]
|
1700
|
+
describe 'start_upload_and_split test' do
|
1701
|
+
it 'should work' do
|
1702
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1703
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1704
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1705
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1706
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1707
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1708
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1709
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1710
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1711
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1712
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1713
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', nil, nil)
|
1714
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1715
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', nil, nil, nil)
|
1716
|
+
expect(c).to eq(code)
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
it 'invalid document' do
|
1720
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1721
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1722
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1723
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1724
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1725
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1726
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1727
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1728
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1729
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1730
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1731
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'StartUploadAndSplit', paramdocument, 'File')
|
1732
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'document', paramdocument)
|
1733
|
+
begin
|
1734
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1735
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'document')
|
1736
|
+
fail "An exception expected"
|
1737
|
+
end
|
1738
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1739
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'document', paramdocument, 'File')
|
1740
|
+
expect(e.code).to eq(code)
|
1741
|
+
expect(e.response_body).to include(message)
|
1742
|
+
rescue ArgumentError => e
|
1743
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'document', paramdocument, 'File')
|
1744
|
+
expect(400).to eq(code)
|
1745
|
+
expect(e.message).to include(message)
|
1746
|
+
end
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
it 'invalid format' do
|
1750
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1751
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1752
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1753
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1754
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1755
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1756
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1757
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1758
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1759
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1760
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1761
|
+
paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'StartUploadAndSplit', paramformat, 'String')
|
1762
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'format', paramformat)
|
1763
|
+
begin
|
1764
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1765
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'format')
|
1766
|
+
fail "An exception expected"
|
1767
|
+
end
|
1768
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1769
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'format', paramformat, 'String')
|
1770
|
+
expect(e.code).to eq(code)
|
1771
|
+
expect(e.response_body).to include(message)
|
1772
|
+
rescue ArgumentError => e
|
1773
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'format', paramformat, 'String')
|
1774
|
+
expect(400).to eq(code)
|
1775
|
+
expect(e.message).to include(message)
|
1776
|
+
end
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
it 'invalid dest_folder' do
|
1780
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1781
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1782
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1783
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1784
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1785
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1786
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1787
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1788
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1789
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1790
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1791
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('destFolder', 'StartUploadAndSplit', paramdest_folder, 'String')
|
1792
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'destFolder', paramdest_folder)
|
1793
|
+
begin
|
1794
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1795
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'destFolder')
|
1796
|
+
fail "An exception expected"
|
1797
|
+
end
|
1798
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1799
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'destFolder', paramdest_folder, 'String')
|
1800
|
+
expect(e.code).to eq(code)
|
1801
|
+
expect(e.response_body).to include(message)
|
1802
|
+
rescue ArgumentError => e
|
1803
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'destFolder', paramdest_folder, 'String')
|
1804
|
+
expect(400).to eq(code)
|
1805
|
+
expect(e.message).to include(message)
|
1806
|
+
end
|
1807
|
+
end
|
1808
|
+
|
1809
|
+
it 'invalid width' do
|
1810
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1811
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1812
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1813
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1814
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1815
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1816
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1817
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1818
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1819
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1820
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1821
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.invalidize_param_value('width', 'StartUploadAndSplit', paramwidth, 'Integer')
|
1822
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'width', paramwidth)
|
1823
|
+
begin
|
1824
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1825
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'width')
|
1826
|
+
fail "An exception expected"
|
1827
|
+
end
|
1828
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1829
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'width', paramwidth, 'Integer')
|
1830
|
+
expect(e.code).to eq(code)
|
1831
|
+
expect(e.response_body).to include(message)
|
1832
|
+
rescue ArgumentError => e
|
1833
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'width', paramwidth, 'Integer')
|
1834
|
+
expect(400).to eq(code)
|
1835
|
+
expect(e.message).to include(message)
|
1836
|
+
end
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
it 'invalid height' do
|
1840
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1841
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1842
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1843
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1844
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1845
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1846
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1847
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1848
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1849
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1850
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1851
|
+
paramheight = AsposeSlidesCloud::SpecUtils.invalidize_param_value('height', 'StartUploadAndSplit', paramheight, 'Integer')
|
1852
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'height', paramheight)
|
1853
|
+
begin
|
1854
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1855
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'height')
|
1856
|
+
fail "An exception expected"
|
1857
|
+
end
|
1858
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1859
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'height', paramheight, 'Integer')
|
1860
|
+
expect(e.code).to eq(code)
|
1861
|
+
expect(e.response_body).to include(message)
|
1862
|
+
rescue ArgumentError => e
|
1863
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'height', paramheight, 'Integer')
|
1864
|
+
expect(400).to eq(code)
|
1865
|
+
expect(e.message).to include(message)
|
1866
|
+
end
|
1867
|
+
end
|
1868
|
+
|
1869
|
+
it 'invalid from' do
|
1870
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1871
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1872
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1873
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1874
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1875
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1876
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1877
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1878
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1879
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1880
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1881
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.invalidize_param_value('from', 'StartUploadAndSplit', paramfrom, 'Integer')
|
1882
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'from', paramfrom)
|
1883
|
+
begin
|
1884
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1885
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'from')
|
1886
|
+
fail "An exception expected"
|
1887
|
+
end
|
1888
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1889
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'from', paramfrom, 'Integer')
|
1890
|
+
expect(e.code).to eq(code)
|
1891
|
+
expect(e.response_body).to include(message)
|
1892
|
+
rescue ArgumentError => e
|
1893
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'from', paramfrom, 'Integer')
|
1894
|
+
expect(400).to eq(code)
|
1895
|
+
expect(e.message).to include(message)
|
1896
|
+
end
|
1897
|
+
end
|
1898
|
+
|
1899
|
+
it 'invalid to' do
|
1900
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1901
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1902
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1903
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1904
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1905
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1906
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1907
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1908
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1909
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1910
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1911
|
+
paramto = AsposeSlidesCloud::SpecUtils.invalidize_param_value('to', 'StartUploadAndSplit', paramto, 'Integer')
|
1912
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'to', paramto)
|
1913
|
+
begin
|
1914
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1915
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'to')
|
1916
|
+
fail "An exception expected"
|
1917
|
+
end
|
1918
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1919
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'to', paramto, 'Integer')
|
1920
|
+
expect(e.code).to eq(code)
|
1921
|
+
expect(e.response_body).to include(message)
|
1922
|
+
rescue ArgumentError => e
|
1923
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'to', paramto, 'Integer')
|
1924
|
+
expect(400).to eq(code)
|
1925
|
+
expect(e.message).to include(message)
|
1926
|
+
end
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
it 'invalid password' do
|
1930
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1931
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1932
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1933
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1934
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1935
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1936
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1937
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1938
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1939
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1940
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1941
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'StartUploadAndSplit', parampassword, 'String')
|
1942
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'password', parampassword)
|
1943
|
+
begin
|
1944
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1945
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'password')
|
1946
|
+
fail "An exception expected"
|
1947
|
+
end
|
1948
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1949
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'password', parampassword, 'String')
|
1950
|
+
expect(e.code).to eq(code)
|
1951
|
+
expect(e.response_body).to include(message)
|
1952
|
+
rescue ArgumentError => e
|
1953
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'password', parampassword, 'String')
|
1954
|
+
expect(400).to eq(code)
|
1955
|
+
expect(e.message).to include(message)
|
1956
|
+
end
|
1957
|
+
end
|
1958
|
+
|
1959
|
+
it 'invalid storage' do
|
1960
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1961
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1962
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1963
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1964
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1965
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1966
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1967
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1968
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1969
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
1970
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
1971
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartUploadAndSplit', paramstorage, 'String')
|
1972
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'storage', paramstorage)
|
1973
|
+
begin
|
1974
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
1975
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'storage')
|
1976
|
+
fail "An exception expected"
|
1977
|
+
end
|
1978
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1979
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'storage', paramstorage, 'String')
|
1980
|
+
expect(e.code).to eq(code)
|
1981
|
+
expect(e.response_body).to include(message)
|
1982
|
+
rescue ArgumentError => e
|
1983
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'storage', paramstorage, 'String')
|
1984
|
+
expect(400).to eq(code)
|
1985
|
+
expect(e.message).to include(message)
|
1986
|
+
end
|
1987
|
+
end
|
1988
|
+
|
1989
|
+
it 'invalid fonts_folder' do
|
1990
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
1991
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
1992
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
1993
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
1994
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
1995
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
1996
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
1997
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
1998
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
1999
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
2000
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
2001
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('fontsFolder', 'StartUploadAndSplit', paramfonts_folder, 'String')
|
2002
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'fontsFolder', paramfonts_folder)
|
2003
|
+
begin
|
2004
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
2005
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'fontsFolder')
|
2006
|
+
fail "An exception expected"
|
2007
|
+
end
|
2008
|
+
rescue AsposeSlidesCloud::ApiError => e
|
2009
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'fontsFolder', paramfonts_folder, 'String')
|
2010
|
+
expect(e.code).to eq(code)
|
2011
|
+
expect(e.response_body).to include(message)
|
2012
|
+
rescue ArgumentError => e
|
2013
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'fontsFolder', paramfonts_folder, 'String')
|
2014
|
+
expect(400).to eq(code)
|
2015
|
+
expect(e.message).to include(message)
|
2016
|
+
end
|
2017
|
+
end
|
2018
|
+
|
2019
|
+
it 'invalid options' do
|
2020
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
|
2021
|
+
paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
|
2022
|
+
paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
|
2023
|
+
paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
|
2024
|
+
paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
|
2025
|
+
paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
|
2026
|
+
paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
|
2027
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
|
2028
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
|
2029
|
+
paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
|
2030
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
|
2031
|
+
paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'StartUploadAndSplit', paramoptions, 'ExportOptions')
|
2032
|
+
AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'options', paramoptions)
|
2033
|
+
begin
|
2034
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
|
2035
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'options')
|
2036
|
+
fail "An exception expected"
|
2037
|
+
end
|
2038
|
+
rescue AsposeSlidesCloud::ApiError => e
|
2039
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'options', paramoptions, 'ExportOptions')
|
2040
|
+
expect(e.code).to eq(code)
|
2041
|
+
expect(e.response_body).to include(message)
|
2042
|
+
rescue ArgumentError => e
|
2043
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'options', paramoptions, 'ExportOptions')
|
2044
|
+
expect(400).to eq(code)
|
2045
|
+
expect(e.message).to include(message)
|
2046
|
+
end
|
2047
|
+
end
|
2048
|
+
end
|
2049
|
+
|
1277
2050
|
end
|