aspose_slides_cloud 24.7.0 → 24.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,91 @@ require 'spec_helper'
28
28
  # Please update as you see appropriate
29
29
  describe 'SlidesAsyncApi' do
30
30
 
31
+ # unit tests for download
32
+ # @param path
33
+ # @param [Hash] opts the optional parameters
34
+ # @option opts [String] :storage_name
35
+ # @option opts [String] :version_id
36
+ # @return [File]
37
+ describe 'download test' do
38
+ it 'should work' do
39
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
40
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
41
+ paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
42
+ AsposeSlidesCloud::SpecUtils.initialize('Download', nil, nil)
43
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
44
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', nil, nil, nil)
45
+ expect(c).to eq(code)
46
+ expect(o).not_to be_nil
47
+ end
48
+
49
+ it 'invalid path' do
50
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
51
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
52
+ paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
53
+ parampath = AsposeSlidesCloud::SpecUtils.invalidize_param_value('path', 'Download', parampath, 'String')
54
+ AsposeSlidesCloud::SpecUtils.initialize('Download', 'path', parampath)
55
+ begin
56
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
57
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('Download', 'path')
58
+ fail "An exception expected"
59
+ end
60
+ rescue AsposeSlidesCloud::ApiError => e
61
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'path', parampath, 'String')
62
+ expect(e.code).to eq(code)
63
+ expect(e.response_body).to include(message)
64
+ rescue ArgumentError => e
65
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'path', parampath, 'String')
66
+ expect(400).to eq(code)
67
+ expect(e.message).to include(message)
68
+ end
69
+ end
70
+
71
+ it 'invalid storage_name' do
72
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
73
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
74
+ paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
75
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storageName', 'Download', paramstorage_name, 'String')
76
+ AsposeSlidesCloud::SpecUtils.initialize('Download', 'storageName', paramstorage_name)
77
+ begin
78
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
79
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('Download', 'storageName')
80
+ fail "An exception expected"
81
+ end
82
+ rescue AsposeSlidesCloud::ApiError => e
83
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'storageName', paramstorage_name, 'String')
84
+ expect(e.code).to eq(code)
85
+ expect(e.response_body).to include(message)
86
+ rescue ArgumentError => e
87
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'storageName', paramstorage_name, 'String')
88
+ expect(400).to eq(code)
89
+ expect(e.message).to include(message)
90
+ end
91
+ end
92
+
93
+ it 'invalid version_id' do
94
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
95
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
96
+ paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
97
+ paramversion_id = AsposeSlidesCloud::SpecUtils.invalidize_param_value('versionId', 'Download', paramversion_id, 'String')
98
+ AsposeSlidesCloud::SpecUtils.initialize('Download', 'versionId', paramversion_id)
99
+ begin
100
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
101
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('Download', 'versionId')
102
+ fail "An exception expected"
103
+ end
104
+ rescue AsposeSlidesCloud::ApiError => e
105
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'versionId', paramversion_id, 'String')
106
+ expect(e.code).to eq(code)
107
+ expect(e.response_body).to include(message)
108
+ rescue ArgumentError => e
109
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'versionId', paramversion_id, 'String')
110
+ expect(400).to eq(code)
111
+ expect(e.message).to include(message)
112
+ end
113
+ end
114
+ end
115
+
31
116
  # unit tests for get_operation_result
32
117
  # @param id
33
118
  # @param [Hash] opts the optional parameters
@@ -1274,4 +1359,862 @@ describe 'SlidesAsyncApi' do
1274
1359
  end
1275
1360
  end
1276
1361
 
1362
+ # unit tests for start_split
1363
+ # @param name
1364
+ # @param format
1365
+ # @param [Hash] opts the optional parameters
1366
+ # @option opts [ExportOptions] :options
1367
+ # @option opts [Integer] :width
1368
+ # @option opts [Integer] :height
1369
+ # @option opts [Integer] :from
1370
+ # @option opts [Integer] :to
1371
+ # @option opts [String] :dest_folder
1372
+ # @option opts [String] :password
1373
+ # @option opts [String] :folder
1374
+ # @option opts [String] :storage
1375
+ # @option opts [String] :fonts_folder
1376
+ # @return [String]
1377
+ describe 'start_split test' do
1378
+ it 'should work' do
1379
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1380
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1381
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1382
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1383
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1384
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1385
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1386
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1387
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1388
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1389
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1390
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1391
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', nil, nil)
1392
+ 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)
1393
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', nil, nil, nil)
1394
+ expect(c).to eq(code)
1395
+ expect(o).not_to be_nil
1396
+ end
1397
+
1398
+ it 'invalid name' do
1399
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1400
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1401
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1402
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1403
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1404
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1405
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1406
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1407
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1408
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1409
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1410
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1411
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'StartSplit', paramname, 'String')
1412
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'name', paramname)
1413
+ begin
1414
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1415
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'name')
1416
+ fail "An exception expected"
1417
+ end
1418
+ rescue AsposeSlidesCloud::ApiError => e
1419
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'name', paramname, 'String')
1420
+ expect(e.code).to eq(code)
1421
+ expect(e.response_body).to include(message)
1422
+ rescue ArgumentError => e
1423
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'name', paramname, 'String')
1424
+ expect(400).to eq(code)
1425
+ expect(e.message).to include(message)
1426
+ end
1427
+ end
1428
+
1429
+ it 'invalid format' do
1430
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1431
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1432
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1433
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1434
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1435
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1436
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1437
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1438
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1439
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1440
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1441
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1442
+ paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'StartSplit', paramformat, 'String')
1443
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'format', paramformat)
1444
+ begin
1445
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1446
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'format')
1447
+ fail "An exception expected"
1448
+ end
1449
+ rescue AsposeSlidesCloud::ApiError => e
1450
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'format', paramformat, 'String')
1451
+ expect(e.code).to eq(code)
1452
+ expect(e.response_body).to include(message)
1453
+ rescue ArgumentError => e
1454
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'format', paramformat, 'String')
1455
+ expect(400).to eq(code)
1456
+ expect(e.message).to include(message)
1457
+ end
1458
+ end
1459
+
1460
+ it 'invalid options' do
1461
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1462
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1463
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1464
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1465
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1466
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1467
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1468
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1469
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1470
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1471
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1472
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1473
+ paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'StartSplit', paramoptions, 'ExportOptions')
1474
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'options', paramoptions)
1475
+ begin
1476
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1477
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'options')
1478
+ fail "An exception expected"
1479
+ end
1480
+ rescue AsposeSlidesCloud::ApiError => e
1481
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'options', paramoptions, 'ExportOptions')
1482
+ expect(e.code).to eq(code)
1483
+ expect(e.response_body).to include(message)
1484
+ rescue ArgumentError => e
1485
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'options', paramoptions, 'ExportOptions')
1486
+ expect(400).to eq(code)
1487
+ expect(e.message).to include(message)
1488
+ end
1489
+ end
1490
+
1491
+ it 'invalid width' do
1492
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1493
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1494
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1495
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1496
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1497
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1498
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1499
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1500
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1501
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1502
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1503
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1504
+ paramwidth = AsposeSlidesCloud::SpecUtils.invalidize_param_value('width', 'StartSplit', paramwidth, 'Integer')
1505
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'width', paramwidth)
1506
+ begin
1507
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1508
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'width')
1509
+ fail "An exception expected"
1510
+ end
1511
+ rescue AsposeSlidesCloud::ApiError => e
1512
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'width', paramwidth, 'Integer')
1513
+ expect(e.code).to eq(code)
1514
+ expect(e.response_body).to include(message)
1515
+ rescue ArgumentError => e
1516
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'width', paramwidth, 'Integer')
1517
+ expect(400).to eq(code)
1518
+ expect(e.message).to include(message)
1519
+ end
1520
+ end
1521
+
1522
+ it 'invalid height' do
1523
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1524
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1525
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1526
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1527
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1528
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1529
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1530
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1531
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1532
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1533
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1534
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1535
+ paramheight = AsposeSlidesCloud::SpecUtils.invalidize_param_value('height', 'StartSplit', paramheight, 'Integer')
1536
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'height', paramheight)
1537
+ begin
1538
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1539
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'height')
1540
+ fail "An exception expected"
1541
+ end
1542
+ rescue AsposeSlidesCloud::ApiError => e
1543
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'height', paramheight, 'Integer')
1544
+ expect(e.code).to eq(code)
1545
+ expect(e.response_body).to include(message)
1546
+ rescue ArgumentError => e
1547
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'height', paramheight, 'Integer')
1548
+ expect(400).to eq(code)
1549
+ expect(e.message).to include(message)
1550
+ end
1551
+ end
1552
+
1553
+ it 'invalid from' do
1554
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1555
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1556
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1557
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1558
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1559
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1560
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1561
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1562
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1563
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1564
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1565
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1566
+ paramfrom = AsposeSlidesCloud::SpecUtils.invalidize_param_value('from', 'StartSplit', paramfrom, 'Integer')
1567
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'from', paramfrom)
1568
+ begin
1569
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1570
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'from')
1571
+ fail "An exception expected"
1572
+ end
1573
+ rescue AsposeSlidesCloud::ApiError => e
1574
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'from', paramfrom, 'Integer')
1575
+ expect(e.code).to eq(code)
1576
+ expect(e.response_body).to include(message)
1577
+ rescue ArgumentError => e
1578
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'from', paramfrom, 'Integer')
1579
+ expect(400).to eq(code)
1580
+ expect(e.message).to include(message)
1581
+ end
1582
+ end
1583
+
1584
+ it 'invalid to' do
1585
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1586
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1587
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1588
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1589
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1590
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1591
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1592
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1593
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1594
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1595
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1596
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1597
+ paramto = AsposeSlidesCloud::SpecUtils.invalidize_param_value('to', 'StartSplit', paramto, 'Integer')
1598
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'to', paramto)
1599
+ begin
1600
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1601
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'to')
1602
+ fail "An exception expected"
1603
+ end
1604
+ rescue AsposeSlidesCloud::ApiError => e
1605
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'to', paramto, 'Integer')
1606
+ expect(e.code).to eq(code)
1607
+ expect(e.response_body).to include(message)
1608
+ rescue ArgumentError => e
1609
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'to', paramto, 'Integer')
1610
+ expect(400).to eq(code)
1611
+ expect(e.message).to include(message)
1612
+ end
1613
+ end
1614
+
1615
+ it 'invalid dest_folder' do
1616
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1617
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1618
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1619
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1620
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1621
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1622
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1623
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1624
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1625
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1626
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1627
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1628
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('destFolder', 'StartSplit', paramdest_folder, 'String')
1629
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'destFolder', paramdest_folder)
1630
+ begin
1631
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1632
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'destFolder')
1633
+ fail "An exception expected"
1634
+ end
1635
+ rescue AsposeSlidesCloud::ApiError => e
1636
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'destFolder', paramdest_folder, 'String')
1637
+ expect(e.code).to eq(code)
1638
+ expect(e.response_body).to include(message)
1639
+ rescue ArgumentError => e
1640
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'destFolder', paramdest_folder, 'String')
1641
+ expect(400).to eq(code)
1642
+ expect(e.message).to include(message)
1643
+ end
1644
+ end
1645
+
1646
+ it 'invalid password' do
1647
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1648
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1649
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1650
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1651
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1652
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1653
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1654
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1655
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1656
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1657
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1658
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1659
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'StartSplit', parampassword, 'String')
1660
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'password', parampassword)
1661
+ begin
1662
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1663
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'password')
1664
+ fail "An exception expected"
1665
+ end
1666
+ rescue AsposeSlidesCloud::ApiError => e
1667
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'password', parampassword, 'String')
1668
+ expect(e.code).to eq(code)
1669
+ expect(e.response_body).to include(message)
1670
+ rescue ArgumentError => e
1671
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'password', parampassword, 'String')
1672
+ expect(400).to eq(code)
1673
+ expect(e.message).to include(message)
1674
+ end
1675
+ end
1676
+
1677
+ it 'invalid folder' do
1678
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1679
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1680
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1681
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1682
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1683
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1684
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1685
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1686
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1687
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1688
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1689
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1690
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'StartSplit', paramfolder, 'String')
1691
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'folder', paramfolder)
1692
+ begin
1693
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1694
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'folder')
1695
+ fail "An exception expected"
1696
+ end
1697
+ rescue AsposeSlidesCloud::ApiError => e
1698
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'folder', paramfolder, 'String')
1699
+ expect(e.code).to eq(code)
1700
+ expect(e.response_body).to include(message)
1701
+ rescue ArgumentError => e
1702
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'folder', paramfolder, 'String')
1703
+ expect(400).to eq(code)
1704
+ expect(e.message).to include(message)
1705
+ end
1706
+ end
1707
+
1708
+ it 'invalid storage' do
1709
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1710
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1711
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1712
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1713
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1714
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1715
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1716
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1717
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1718
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1719
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1720
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1721
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartSplit', paramstorage, 'String')
1722
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'storage', paramstorage)
1723
+ begin
1724
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1725
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'storage')
1726
+ fail "An exception expected"
1727
+ end
1728
+ rescue AsposeSlidesCloud::ApiError => e
1729
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'storage', paramstorage, 'String')
1730
+ expect(e.code).to eq(code)
1731
+ expect(e.response_body).to include(message)
1732
+ rescue ArgumentError => e
1733
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'storage', paramstorage, 'String')
1734
+ expect(400).to eq(code)
1735
+ expect(e.message).to include(message)
1736
+ end
1737
+ end
1738
+
1739
+ it 'invalid fonts_folder' do
1740
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'StartSplit', 'String')
1741
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartSplit', 'String')
1742
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartSplit', 'ExportOptions')
1743
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartSplit', 'Integer')
1744
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartSplit', 'Integer')
1745
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartSplit', 'Integer')
1746
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartSplit', 'Integer')
1747
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartSplit', 'String')
1748
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartSplit', 'String')
1749
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'StartSplit', 'String')
1750
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartSplit', 'String')
1751
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartSplit', 'String')
1752
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('fontsFolder', 'StartSplit', paramfonts_folder, 'String')
1753
+ AsposeSlidesCloud::SpecUtils.initialize('StartSplit', 'fontsFolder', paramfonts_folder)
1754
+ begin
1755
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_split_with_http_info(paramname, paramformat, paramoptions, paramwidth, paramheight, paramfrom, paramto, paramdest_folder, parampassword, paramfolder, paramstorage, paramfonts_folder)
1756
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartSplit', 'fontsFolder')
1757
+ fail "An exception expected"
1758
+ end
1759
+ rescue AsposeSlidesCloud::ApiError => e
1760
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'fontsFolder', paramfonts_folder, 'String')
1761
+ expect(e.code).to eq(code)
1762
+ expect(e.response_body).to include(message)
1763
+ rescue ArgumentError => e
1764
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartSplit', 'fontsFolder', paramfonts_folder, 'String')
1765
+ expect(400).to eq(code)
1766
+ expect(e.message).to include(message)
1767
+ end
1768
+ end
1769
+ end
1770
+
1771
+ # unit tests for start_upload_and_split
1772
+ # @param document Document data.
1773
+ # @param format
1774
+ # @param [Hash] opts the optional parameters
1775
+ # @option opts [String] :dest_folder
1776
+ # @option opts [Integer] :width
1777
+ # @option opts [Integer] :height
1778
+ # @option opts [Integer] :from
1779
+ # @option opts [Integer] :to
1780
+ # @option opts [String] :password
1781
+ # @option opts [String] :storage
1782
+ # @option opts [String] :fonts_folder
1783
+ # @option opts [ExportOptions] :options
1784
+ # @return [String]
1785
+ describe 'start_upload_and_split test' do
1786
+ it 'should work' do
1787
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1788
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1789
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1790
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1791
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1792
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1793
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1794
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1795
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1796
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1797
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1798
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', nil, nil)
1799
+ 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)
1800
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', nil, nil, nil)
1801
+ expect(c).to eq(code)
1802
+ end
1803
+
1804
+ it 'invalid document' do
1805
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1806
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1807
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1808
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1809
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1810
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1811
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1812
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1813
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1814
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1815
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1816
+ paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'StartUploadAndSplit', paramdocument, 'File')
1817
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'document', paramdocument)
1818
+ begin
1819
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
1820
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'document')
1821
+ fail "An exception expected"
1822
+ end
1823
+ rescue AsposeSlidesCloud::ApiError => e
1824
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'document', paramdocument, 'File')
1825
+ expect(e.code).to eq(code)
1826
+ expect(e.response_body).to include(message)
1827
+ rescue ArgumentError => e
1828
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'document', paramdocument, 'File')
1829
+ expect(400).to eq(code)
1830
+ expect(e.message).to include(message)
1831
+ end
1832
+ end
1833
+
1834
+ it 'invalid format' do
1835
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1836
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1837
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1838
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1839
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1840
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1841
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1842
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1843
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1844
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1845
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1846
+ paramformat = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'StartUploadAndSplit', paramformat, 'String')
1847
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'format', paramformat)
1848
+ begin
1849
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
1850
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'format')
1851
+ fail "An exception expected"
1852
+ end
1853
+ rescue AsposeSlidesCloud::ApiError => e
1854
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'format', paramformat, 'String')
1855
+ expect(e.code).to eq(code)
1856
+ expect(e.response_body).to include(message)
1857
+ rescue ArgumentError => e
1858
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'format', paramformat, 'String')
1859
+ expect(400).to eq(code)
1860
+ expect(e.message).to include(message)
1861
+ end
1862
+ end
1863
+
1864
+ it 'invalid dest_folder' do
1865
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1866
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1867
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1868
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1869
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1870
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1871
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1872
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1873
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1874
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1875
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1876
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('destFolder', 'StartUploadAndSplit', paramdest_folder, 'String')
1877
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'destFolder', paramdest_folder)
1878
+ begin
1879
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
1880
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'destFolder')
1881
+ fail "An exception expected"
1882
+ end
1883
+ rescue AsposeSlidesCloud::ApiError => e
1884
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'destFolder', paramdest_folder, 'String')
1885
+ expect(e.code).to eq(code)
1886
+ expect(e.response_body).to include(message)
1887
+ rescue ArgumentError => e
1888
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'destFolder', paramdest_folder, 'String')
1889
+ expect(400).to eq(code)
1890
+ expect(e.message).to include(message)
1891
+ end
1892
+ end
1893
+
1894
+ it 'invalid width' do
1895
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1896
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1897
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1898
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1899
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1900
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1901
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1902
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1903
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1904
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1905
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1906
+ paramwidth = AsposeSlidesCloud::SpecUtils.invalidize_param_value('width', 'StartUploadAndSplit', paramwidth, 'Integer')
1907
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'width', paramwidth)
1908
+ begin
1909
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
1910
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'width')
1911
+ fail "An exception expected"
1912
+ end
1913
+ rescue AsposeSlidesCloud::ApiError => e
1914
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'width', paramwidth, 'Integer')
1915
+ expect(e.code).to eq(code)
1916
+ expect(e.response_body).to include(message)
1917
+ rescue ArgumentError => e
1918
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'width', paramwidth, 'Integer')
1919
+ expect(400).to eq(code)
1920
+ expect(e.message).to include(message)
1921
+ end
1922
+ end
1923
+
1924
+ it 'invalid height' do
1925
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1926
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1927
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1928
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1929
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1930
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1931
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1932
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1933
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1934
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1935
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1936
+ paramheight = AsposeSlidesCloud::SpecUtils.invalidize_param_value('height', 'StartUploadAndSplit', paramheight, 'Integer')
1937
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'height', paramheight)
1938
+ begin
1939
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
1940
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'height')
1941
+ fail "An exception expected"
1942
+ end
1943
+ rescue AsposeSlidesCloud::ApiError => e
1944
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'height', paramheight, 'Integer')
1945
+ expect(e.code).to eq(code)
1946
+ expect(e.response_body).to include(message)
1947
+ rescue ArgumentError => e
1948
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'height', paramheight, 'Integer')
1949
+ expect(400).to eq(code)
1950
+ expect(e.message).to include(message)
1951
+ end
1952
+ end
1953
+
1954
+ it 'invalid from' do
1955
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1956
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1957
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1958
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1959
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1960
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1961
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1962
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1963
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1964
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1965
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1966
+ paramfrom = AsposeSlidesCloud::SpecUtils.invalidize_param_value('from', 'StartUploadAndSplit', paramfrom, 'Integer')
1967
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'from', paramfrom)
1968
+ begin
1969
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
1970
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'from')
1971
+ fail "An exception expected"
1972
+ end
1973
+ rescue AsposeSlidesCloud::ApiError => e
1974
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'from', paramfrom, 'Integer')
1975
+ expect(e.code).to eq(code)
1976
+ expect(e.response_body).to include(message)
1977
+ rescue ArgumentError => e
1978
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'from', paramfrom, 'Integer')
1979
+ expect(400).to eq(code)
1980
+ expect(e.message).to include(message)
1981
+ end
1982
+ end
1983
+
1984
+ it 'invalid to' do
1985
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
1986
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
1987
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
1988
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
1989
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
1990
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
1991
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
1992
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
1993
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
1994
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
1995
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
1996
+ paramto = AsposeSlidesCloud::SpecUtils.invalidize_param_value('to', 'StartUploadAndSplit', paramto, 'Integer')
1997
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'to', paramto)
1998
+ begin
1999
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
2000
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'to')
2001
+ fail "An exception expected"
2002
+ end
2003
+ rescue AsposeSlidesCloud::ApiError => e
2004
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'to', paramto, 'Integer')
2005
+ expect(e.code).to eq(code)
2006
+ expect(e.response_body).to include(message)
2007
+ rescue ArgumentError => e
2008
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'to', paramto, 'Integer')
2009
+ expect(400).to eq(code)
2010
+ expect(e.message).to include(message)
2011
+ end
2012
+ end
2013
+
2014
+ it 'invalid password' do
2015
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
2016
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
2017
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
2018
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
2019
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
2020
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
2021
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
2022
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
2023
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
2024
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
2025
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
2026
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'StartUploadAndSplit', parampassword, 'String')
2027
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'password', parampassword)
2028
+ begin
2029
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
2030
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'password')
2031
+ fail "An exception expected"
2032
+ end
2033
+ rescue AsposeSlidesCloud::ApiError => e
2034
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'password', parampassword, 'String')
2035
+ expect(e.code).to eq(code)
2036
+ expect(e.response_body).to include(message)
2037
+ rescue ArgumentError => e
2038
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'password', parampassword, 'String')
2039
+ expect(400).to eq(code)
2040
+ expect(e.message).to include(message)
2041
+ end
2042
+ end
2043
+
2044
+ it 'invalid storage' do
2045
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
2046
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
2047
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
2048
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
2049
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
2050
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
2051
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
2052
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
2053
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
2054
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
2055
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
2056
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'StartUploadAndSplit', paramstorage, 'String')
2057
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'storage', paramstorage)
2058
+ begin
2059
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
2060
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'storage')
2061
+ fail "An exception expected"
2062
+ end
2063
+ rescue AsposeSlidesCloud::ApiError => e
2064
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'storage', paramstorage, 'String')
2065
+ expect(e.code).to eq(code)
2066
+ expect(e.response_body).to include(message)
2067
+ rescue ArgumentError => e
2068
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'storage', paramstorage, 'String')
2069
+ expect(400).to eq(code)
2070
+ expect(e.message).to include(message)
2071
+ end
2072
+ end
2073
+
2074
+ it 'invalid fonts_folder' do
2075
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
2076
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
2077
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
2078
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
2079
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
2080
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
2081
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
2082
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
2083
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
2084
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
2085
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
2086
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('fontsFolder', 'StartUploadAndSplit', paramfonts_folder, 'String')
2087
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'fontsFolder', paramfonts_folder)
2088
+ begin
2089
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
2090
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'fontsFolder')
2091
+ fail "An exception expected"
2092
+ end
2093
+ rescue AsposeSlidesCloud::ApiError => e
2094
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'fontsFolder', paramfonts_folder, 'String')
2095
+ expect(e.code).to eq(code)
2096
+ expect(e.response_body).to include(message)
2097
+ rescue ArgumentError => e
2098
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'fontsFolder', paramfonts_folder, 'String')
2099
+ expect(400).to eq(code)
2100
+ expect(e.message).to include(message)
2101
+ end
2102
+ end
2103
+
2104
+ it 'invalid options' do
2105
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'StartUploadAndSplit', 'File')
2106
+ paramformat = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'StartUploadAndSplit', 'String')
2107
+ paramdest_folder = AsposeSlidesCloud::SpecUtils.get_param_value('destFolder', 'StartUploadAndSplit', 'String')
2108
+ paramwidth = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'StartUploadAndSplit', 'Integer')
2109
+ paramheight = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'StartUploadAndSplit', 'Integer')
2110
+ paramfrom = AsposeSlidesCloud::SpecUtils.get_param_value('from', 'StartUploadAndSplit', 'Integer')
2111
+ paramto = AsposeSlidesCloud::SpecUtils.get_param_value('to', 'StartUploadAndSplit', 'Integer')
2112
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'StartUploadAndSplit', 'String')
2113
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'StartUploadAndSplit', 'String')
2114
+ paramfonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'StartUploadAndSplit', 'String')
2115
+ paramoptions = AsposeSlidesCloud::SpecUtils.get_param_value('options', 'StartUploadAndSplit', 'ExportOptions')
2116
+ paramoptions = AsposeSlidesCloud::SpecUtils.invalidize_param_value('options', 'StartUploadAndSplit', paramoptions, 'ExportOptions')
2117
+ AsposeSlidesCloud::SpecUtils.initialize('StartUploadAndSplit', 'options', paramoptions)
2118
+ begin
2119
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.start_upload_and_split_with_http_info(paramdocument, paramformat, paramdest_folder, paramwidth, paramheight, paramfrom, paramto, parampassword, paramstorage, paramfonts_folder, paramoptions)
2120
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('StartUploadAndSplit', 'options')
2121
+ fail "An exception expected"
2122
+ end
2123
+ rescue AsposeSlidesCloud::ApiError => e
2124
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'options', paramoptions, 'ExportOptions')
2125
+ expect(e.code).to eq(code)
2126
+ expect(e.response_body).to include(message)
2127
+ rescue ArgumentError => e
2128
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('StartUploadAndSplit', 'options', paramoptions, 'ExportOptions')
2129
+ expect(400).to eq(code)
2130
+ expect(e.message).to include(message)
2131
+ end
2132
+ end
2133
+ end
2134
+
2135
+ # unit tests for upload
2136
+ # @param path
2137
+ # @param file File to upload
2138
+ # @param [Hash] opts the optional parameters
2139
+ # @option opts [String] :storage_name
2140
+ # @return [FilesUploadResult]
2141
+ describe 'upload test' do
2142
+ it 'should work' do
2143
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
2144
+ paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
2145
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
2146
+ AsposeSlidesCloud::SpecUtils.initialize('Upload', nil, nil)
2147
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
2148
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', nil, nil, nil)
2149
+ expect(c).to eq(code)
2150
+ expect(o).not_to be_nil
2151
+ end
2152
+
2153
+ it 'invalid path' do
2154
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
2155
+ paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
2156
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
2157
+ parampath = AsposeSlidesCloud::SpecUtils.invalidize_param_value('path', 'Upload', parampath, 'String')
2158
+ AsposeSlidesCloud::SpecUtils.initialize('Upload', 'path', parampath)
2159
+ begin
2160
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
2161
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('Upload', 'path')
2162
+ fail "An exception expected"
2163
+ end
2164
+ rescue AsposeSlidesCloud::ApiError => e
2165
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'path', parampath, 'String')
2166
+ expect(e.code).to eq(code)
2167
+ expect(e.response_body).to include(message)
2168
+ rescue ArgumentError => e
2169
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'path', parampath, 'String')
2170
+ expect(400).to eq(code)
2171
+ expect(e.message).to include(message)
2172
+ end
2173
+ end
2174
+
2175
+ it 'invalid file' do
2176
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
2177
+ paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
2178
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
2179
+ paramfile = AsposeSlidesCloud::SpecUtils.invalidize_param_value('file', 'Upload', paramfile, 'File')
2180
+ AsposeSlidesCloud::SpecUtils.initialize('Upload', 'file', paramfile)
2181
+ begin
2182
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
2183
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('Upload', 'file')
2184
+ fail "An exception expected"
2185
+ end
2186
+ rescue AsposeSlidesCloud::ApiError => e
2187
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'file', paramfile, 'File')
2188
+ expect(e.code).to eq(code)
2189
+ expect(e.response_body).to include(message)
2190
+ rescue ArgumentError => e
2191
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'file', paramfile, 'File')
2192
+ expect(400).to eq(code)
2193
+ expect(e.message).to include(message)
2194
+ end
2195
+ end
2196
+
2197
+ it 'invalid storage_name' do
2198
+ parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
2199
+ paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
2200
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
2201
+ paramstorage_name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storageName', 'Upload', paramstorage_name, 'String')
2202
+ AsposeSlidesCloud::SpecUtils.initialize('Upload', 'storageName', paramstorage_name)
2203
+ begin
2204
+ AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
2205
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('Upload', 'storageName')
2206
+ fail "An exception expected"
2207
+ end
2208
+ rescue AsposeSlidesCloud::ApiError => e
2209
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'storageName', paramstorage_name, 'String')
2210
+ expect(e.code).to eq(code)
2211
+ expect(e.response_body).to include(message)
2212
+ rescue ArgumentError => e
2213
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'storageName', paramstorage_name, 'String')
2214
+ expect(400).to eq(code)
2215
+ expect(e.message).to include(message)
2216
+ end
2217
+ end
2218
+ end
2219
+
1277
2220
  end