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.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -8
- data/README.md +12 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +298 -6
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +281 -0
- 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/shape_base.rb +0 -5
- 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/table_row.rb +0 -10
- 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 +820 -50
- data/spec/api/slides_async_api_spec.rb +943 -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 +50 -5
- data/testRules.json +4 -0
- metadata +3 -2
data/spec/api/slides_api_spec.rb
CHANGED
@@ -34746,6 +34746,462 @@ describe 'SlidesApi' do
|
|
34746
34746
|
end
|
34747
34747
|
end
|
34748
34748
|
|
34749
|
+
# unit tests for highlight_presentation_regex
|
34750
|
+
# Highlight all matches of sample in text frame text using specified color.
|
34751
|
+
# @param name Document name.
|
34752
|
+
# @param regex Regular expression.
|
34753
|
+
# @param color Highlighting color.
|
34754
|
+
# @param [Hash] opts the optional parameters
|
34755
|
+
# @option opts [BOOLEAN] :ignore_case True to search ignoring char case.
|
34756
|
+
# @option opts [String] :password Document password.
|
34757
|
+
# @option opts [String] :folder Document folder.
|
34758
|
+
# @option opts [String] :storage Document storage.
|
34759
|
+
# @return [DocumentReplaceResult]
|
34760
|
+
describe 'highlight_presentation_regex test' do
|
34761
|
+
it 'should work' do
|
34762
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34763
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34764
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34765
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34766
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34767
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34768
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34769
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', nil, nil)
|
34770
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34771
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', nil, nil, nil)
|
34772
|
+
expect(c).to eq(code)
|
34773
|
+
expect(o).not_to be_nil
|
34774
|
+
end
|
34775
|
+
|
34776
|
+
it 'invalid name' do
|
34777
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34778
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34779
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34780
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34781
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34782
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34783
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34784
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'HighlightPresentationRegex', paramname, 'String')
|
34785
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'name', paramname)
|
34786
|
+
begin
|
34787
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34788
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'name')
|
34789
|
+
fail "An exception expected"
|
34790
|
+
end
|
34791
|
+
rescue AsposeSlidesCloud::ApiError => e
|
34792
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'name', paramname, 'String')
|
34793
|
+
expect(e.code).to eq(code)
|
34794
|
+
expect(e.response_body).to include(message)
|
34795
|
+
rescue ArgumentError => e
|
34796
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'name', paramname, 'String')
|
34797
|
+
expect(400).to eq(code)
|
34798
|
+
expect(e.message).to include(message)
|
34799
|
+
end
|
34800
|
+
end
|
34801
|
+
|
34802
|
+
it 'invalid regex' do
|
34803
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34804
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34805
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34806
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34807
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34808
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34809
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34810
|
+
paramregex = AsposeSlidesCloud::SpecUtils.invalidize_param_value('regex', 'HighlightPresentationRegex', paramregex, 'String')
|
34811
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'regex', paramregex)
|
34812
|
+
begin
|
34813
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34814
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'regex')
|
34815
|
+
fail "An exception expected"
|
34816
|
+
end
|
34817
|
+
rescue AsposeSlidesCloud::ApiError => e
|
34818
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'regex', paramregex, 'String')
|
34819
|
+
expect(e.code).to eq(code)
|
34820
|
+
expect(e.response_body).to include(message)
|
34821
|
+
rescue ArgumentError => e
|
34822
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'regex', paramregex, 'String')
|
34823
|
+
expect(400).to eq(code)
|
34824
|
+
expect(e.message).to include(message)
|
34825
|
+
end
|
34826
|
+
end
|
34827
|
+
|
34828
|
+
it 'invalid color' do
|
34829
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34830
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34831
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34832
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34833
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34834
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34835
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34836
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.invalidize_param_value('color', 'HighlightPresentationRegex', paramcolor, 'String')
|
34837
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'color', paramcolor)
|
34838
|
+
begin
|
34839
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34840
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'color')
|
34841
|
+
fail "An exception expected"
|
34842
|
+
end
|
34843
|
+
rescue AsposeSlidesCloud::ApiError => e
|
34844
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'color', paramcolor, 'String')
|
34845
|
+
expect(e.code).to eq(code)
|
34846
|
+
expect(e.response_body).to include(message)
|
34847
|
+
rescue ArgumentError => e
|
34848
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'color', paramcolor, 'String')
|
34849
|
+
expect(400).to eq(code)
|
34850
|
+
expect(e.message).to include(message)
|
34851
|
+
end
|
34852
|
+
end
|
34853
|
+
|
34854
|
+
it 'invalid ignore_case' do
|
34855
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34856
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34857
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34858
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34859
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34860
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34861
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34862
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'HighlightPresentationRegex', paramignore_case, 'BOOLEAN')
|
34863
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'ignoreCase', paramignore_case)
|
34864
|
+
begin
|
34865
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34866
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'ignoreCase')
|
34867
|
+
fail "An exception expected"
|
34868
|
+
end
|
34869
|
+
rescue AsposeSlidesCloud::ApiError => e
|
34870
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
34871
|
+
expect(e.code).to eq(code)
|
34872
|
+
expect(e.response_body).to include(message)
|
34873
|
+
rescue ArgumentError => e
|
34874
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
34875
|
+
expect(400).to eq(code)
|
34876
|
+
expect(e.message).to include(message)
|
34877
|
+
end
|
34878
|
+
end
|
34879
|
+
|
34880
|
+
it 'invalid password' do
|
34881
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34882
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34883
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34884
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34885
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34886
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34887
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34888
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'HighlightPresentationRegex', parampassword, 'String')
|
34889
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'password', parampassword)
|
34890
|
+
begin
|
34891
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34892
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'password')
|
34893
|
+
fail "An exception expected"
|
34894
|
+
end
|
34895
|
+
rescue AsposeSlidesCloud::ApiError => e
|
34896
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'password', parampassword, 'String')
|
34897
|
+
expect(e.code).to eq(code)
|
34898
|
+
expect(e.response_body).to include(message)
|
34899
|
+
rescue ArgumentError => e
|
34900
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'password', parampassword, 'String')
|
34901
|
+
expect(400).to eq(code)
|
34902
|
+
expect(e.message).to include(message)
|
34903
|
+
end
|
34904
|
+
end
|
34905
|
+
|
34906
|
+
it 'invalid folder' do
|
34907
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34908
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34909
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34910
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34911
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34912
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34913
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34914
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'HighlightPresentationRegex', paramfolder, 'String')
|
34915
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'folder', paramfolder)
|
34916
|
+
begin
|
34917
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34918
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'folder')
|
34919
|
+
fail "An exception expected"
|
34920
|
+
end
|
34921
|
+
rescue AsposeSlidesCloud::ApiError => e
|
34922
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'folder', paramfolder, 'String')
|
34923
|
+
expect(e.code).to eq(code)
|
34924
|
+
expect(e.response_body).to include(message)
|
34925
|
+
rescue ArgumentError => e
|
34926
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'folder', paramfolder, 'String')
|
34927
|
+
expect(400).to eq(code)
|
34928
|
+
expect(e.message).to include(message)
|
34929
|
+
end
|
34930
|
+
end
|
34931
|
+
|
34932
|
+
it 'invalid storage' do
|
34933
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
|
34934
|
+
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
|
34935
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
|
34936
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
|
34937
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
|
34938
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
|
34939
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
|
34940
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'HighlightPresentationRegex', paramstorage, 'String')
|
34941
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'storage', paramstorage)
|
34942
|
+
begin
|
34943
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34944
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'storage')
|
34945
|
+
fail "An exception expected"
|
34946
|
+
end
|
34947
|
+
rescue AsposeSlidesCloud::ApiError => e
|
34948
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'storage', paramstorage, 'String')
|
34949
|
+
expect(e.code).to eq(code)
|
34950
|
+
expect(e.response_body).to include(message)
|
34951
|
+
rescue ArgumentError => e
|
34952
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'storage', paramstorage, 'String')
|
34953
|
+
expect(400).to eq(code)
|
34954
|
+
expect(e.message).to include(message)
|
34955
|
+
end
|
34956
|
+
end
|
34957
|
+
end
|
34958
|
+
|
34959
|
+
# unit tests for highlight_presentation_text
|
34960
|
+
# Highlight all matches of sample using specified color.
|
34961
|
+
# @param name Document name.
|
34962
|
+
# @param text Text sample to highlight.
|
34963
|
+
# @param color Highlighting color.
|
34964
|
+
# @param [Hash] opts the optional parameters
|
34965
|
+
# @option opts [BOOLEAN] :whole_words_only Match only whole words.
|
34966
|
+
# @option opts [BOOLEAN] :ignore_case True to search ignoring char case.
|
34967
|
+
# @option opts [String] :password Document password.
|
34968
|
+
# @option opts [String] :folder Document folder.
|
34969
|
+
# @option opts [String] :storage Document storage.
|
34970
|
+
# @return [DocumentReplaceResult]
|
34971
|
+
describe 'highlight_presentation_text test' do
|
34972
|
+
it 'should work' do
|
34973
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
34974
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
34975
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
34976
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
34977
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
34978
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
34979
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
34980
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
34981
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', nil, nil)
|
34982
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
34983
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', nil, nil, nil)
|
34984
|
+
expect(c).to eq(code)
|
34985
|
+
expect(o).not_to be_nil
|
34986
|
+
end
|
34987
|
+
|
34988
|
+
it 'invalid name' do
|
34989
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
34990
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
34991
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
34992
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
34993
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
34994
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
34995
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
34996
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
34997
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'HighlightPresentationText', paramname, 'String')
|
34998
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'name', paramname)
|
34999
|
+
begin
|
35000
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35001
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'name')
|
35002
|
+
fail "An exception expected"
|
35003
|
+
end
|
35004
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35005
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'name', paramname, 'String')
|
35006
|
+
expect(e.code).to eq(code)
|
35007
|
+
expect(e.response_body).to include(message)
|
35008
|
+
rescue ArgumentError => e
|
35009
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'name', paramname, 'String')
|
35010
|
+
expect(400).to eq(code)
|
35011
|
+
expect(e.message).to include(message)
|
35012
|
+
end
|
35013
|
+
end
|
35014
|
+
|
35015
|
+
it 'invalid text' do
|
35016
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
35017
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
35018
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
35019
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
35020
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
35021
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
35022
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
35023
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
35024
|
+
paramtext = AsposeSlidesCloud::SpecUtils.invalidize_param_value('text', 'HighlightPresentationText', paramtext, 'String')
|
35025
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'text', paramtext)
|
35026
|
+
begin
|
35027
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35028
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'text')
|
35029
|
+
fail "An exception expected"
|
35030
|
+
end
|
35031
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35032
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'text', paramtext, 'String')
|
35033
|
+
expect(e.code).to eq(code)
|
35034
|
+
expect(e.response_body).to include(message)
|
35035
|
+
rescue ArgumentError => e
|
35036
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'text', paramtext, 'String')
|
35037
|
+
expect(400).to eq(code)
|
35038
|
+
expect(e.message).to include(message)
|
35039
|
+
end
|
35040
|
+
end
|
35041
|
+
|
35042
|
+
it 'invalid color' do
|
35043
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
35044
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
35045
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
35046
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
35047
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
35048
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
35049
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
35050
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
35051
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.invalidize_param_value('color', 'HighlightPresentationText', paramcolor, 'String')
|
35052
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'color', paramcolor)
|
35053
|
+
begin
|
35054
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35055
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'color')
|
35056
|
+
fail "An exception expected"
|
35057
|
+
end
|
35058
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35059
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'color', paramcolor, 'String')
|
35060
|
+
expect(e.code).to eq(code)
|
35061
|
+
expect(e.response_body).to include(message)
|
35062
|
+
rescue ArgumentError => e
|
35063
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'color', paramcolor, 'String')
|
35064
|
+
expect(400).to eq(code)
|
35065
|
+
expect(e.message).to include(message)
|
35066
|
+
end
|
35067
|
+
end
|
35068
|
+
|
35069
|
+
it 'invalid whole_words_only' do
|
35070
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
35071
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
35072
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
35073
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
35074
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
35075
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
35076
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
35077
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
35078
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'HighlightPresentationText', paramwhole_words_only, 'BOOLEAN')
|
35079
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'wholeWordsOnly', paramwhole_words_only)
|
35080
|
+
begin
|
35081
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35082
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'wholeWordsOnly')
|
35083
|
+
fail "An exception expected"
|
35084
|
+
end
|
35085
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35086
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
|
35087
|
+
expect(e.code).to eq(code)
|
35088
|
+
expect(e.response_body).to include(message)
|
35089
|
+
rescue ArgumentError => e
|
35090
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
|
35091
|
+
expect(400).to eq(code)
|
35092
|
+
expect(e.message).to include(message)
|
35093
|
+
end
|
35094
|
+
end
|
35095
|
+
|
35096
|
+
it 'invalid ignore_case' do
|
35097
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
35098
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
35099
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
35100
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
35101
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
35102
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
35103
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
35104
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
35105
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'HighlightPresentationText', paramignore_case, 'BOOLEAN')
|
35106
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'ignoreCase', paramignore_case)
|
35107
|
+
begin
|
35108
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35109
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'ignoreCase')
|
35110
|
+
fail "An exception expected"
|
35111
|
+
end
|
35112
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35113
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
35114
|
+
expect(e.code).to eq(code)
|
35115
|
+
expect(e.response_body).to include(message)
|
35116
|
+
rescue ArgumentError => e
|
35117
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
35118
|
+
expect(400).to eq(code)
|
35119
|
+
expect(e.message).to include(message)
|
35120
|
+
end
|
35121
|
+
end
|
35122
|
+
|
35123
|
+
it 'invalid password' do
|
35124
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
35125
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
35126
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
35127
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
35128
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
35129
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
35130
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
35131
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
35132
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'HighlightPresentationText', parampassword, 'String')
|
35133
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'password', parampassword)
|
35134
|
+
begin
|
35135
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35136
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'password')
|
35137
|
+
fail "An exception expected"
|
35138
|
+
end
|
35139
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35140
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'password', parampassword, 'String')
|
35141
|
+
expect(e.code).to eq(code)
|
35142
|
+
expect(e.response_body).to include(message)
|
35143
|
+
rescue ArgumentError => e
|
35144
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'password', parampassword, 'String')
|
35145
|
+
expect(400).to eq(code)
|
35146
|
+
expect(e.message).to include(message)
|
35147
|
+
end
|
35148
|
+
end
|
35149
|
+
|
35150
|
+
it 'invalid folder' do
|
35151
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
35152
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
35153
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
35154
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
35155
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
35156
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
35157
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
35158
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
35159
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'HighlightPresentationText', paramfolder, 'String')
|
35160
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'folder', paramfolder)
|
35161
|
+
begin
|
35162
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35163
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'folder')
|
35164
|
+
fail "An exception expected"
|
35165
|
+
end
|
35166
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35167
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'folder', paramfolder, 'String')
|
35168
|
+
expect(e.code).to eq(code)
|
35169
|
+
expect(e.response_body).to include(message)
|
35170
|
+
rescue ArgumentError => e
|
35171
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'folder', paramfolder, 'String')
|
35172
|
+
expect(400).to eq(code)
|
35173
|
+
expect(e.message).to include(message)
|
35174
|
+
end
|
35175
|
+
end
|
35176
|
+
|
35177
|
+
it 'invalid storage' do
|
35178
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
|
35179
|
+
paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
|
35180
|
+
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
|
35181
|
+
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
|
35182
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
|
35183
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
|
35184
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
|
35185
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
|
35186
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'HighlightPresentationText', paramstorage, 'String')
|
35187
|
+
AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'storage', paramstorage)
|
35188
|
+
begin
|
35189
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
35190
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'storage')
|
35191
|
+
fail "An exception expected"
|
35192
|
+
end
|
35193
|
+
rescue AsposeSlidesCloud::ApiError => e
|
35194
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'storage', paramstorage, 'String')
|
35195
|
+
expect(e.code).to eq(code)
|
35196
|
+
expect(e.response_body).to include(message)
|
35197
|
+
rescue ArgumentError => e
|
35198
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'storage', paramstorage, 'String')
|
35199
|
+
expect(400).to eq(code)
|
35200
|
+
expect(e.message).to include(message)
|
35201
|
+
end
|
35202
|
+
end
|
35203
|
+
end
|
35204
|
+
|
34749
35205
|
# unit tests for highlight_shape_regex
|
34750
35206
|
# Highlight all matches of sample in text frame text using specified color.
|
34751
35207
|
# @param name Document name.
|
@@ -34754,7 +35210,6 @@ describe 'SlidesApi' do
|
|
34754
35210
|
# @param regex Regular expression.
|
34755
35211
|
# @param color Highlighting color.
|
34756
35212
|
# @param [Hash] opts the optional parameters
|
34757
|
-
# @option opts [BOOLEAN] :whole_words_only Match only whole words.
|
34758
35213
|
# @option opts [BOOLEAN] :ignore_case True to search ignoring char case.
|
34759
35214
|
# @option opts [String] :password Document password.
|
34760
35215
|
# @option opts [String] :folder Document folder.
|
@@ -34767,13 +35222,12 @@ describe 'SlidesApi' do
|
|
34767
35222
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34768
35223
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34769
35224
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34770
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34771
35225
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34772
35226
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34773
35227
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
34774
35228
|
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
|
34775
35229
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', nil, nil)
|
34776
|
-
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35230
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34777
35231
|
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', nil, nil, nil)
|
34778
35232
|
expect(c).to eq(code)
|
34779
35233
|
expect(o).not_to be_nil
|
@@ -34785,7 +35239,6 @@ describe 'SlidesApi' do
|
|
34785
35239
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34786
35240
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34787
35241
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34788
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34789
35242
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34790
35243
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34791
35244
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -34793,7 +35246,7 @@ describe 'SlidesApi' do
|
|
34793
35246
|
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'HighlightShapeRegex', paramname, 'String')
|
34794
35247
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'name', paramname)
|
34795
35248
|
begin
|
34796
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35249
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34797
35250
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'name')
|
34798
35251
|
fail "An exception expected"
|
34799
35252
|
end
|
@@ -34814,7 +35267,6 @@ describe 'SlidesApi' do
|
|
34814
35267
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34815
35268
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34816
35269
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34817
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34818
35270
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34819
35271
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34820
35272
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -34822,7 +35274,7 @@ describe 'SlidesApi' do
|
|
34822
35274
|
paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'HighlightShapeRegex', paramslide_index, 'Integer')
|
34823
35275
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'slideIndex', paramslide_index)
|
34824
35276
|
begin
|
34825
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35277
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34826
35278
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'slideIndex')
|
34827
35279
|
fail "An exception expected"
|
34828
35280
|
end
|
@@ -34843,7 +35295,6 @@ describe 'SlidesApi' do
|
|
34843
35295
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34844
35296
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34845
35297
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34846
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34847
35298
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34848
35299
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34849
35300
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -34851,7 +35302,7 @@ describe 'SlidesApi' do
|
|
34851
35302
|
paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'HighlightShapeRegex', paramshape_index, 'Integer')
|
34852
35303
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'shapeIndex', paramshape_index)
|
34853
35304
|
begin
|
34854
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35305
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34855
35306
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'shapeIndex')
|
34856
35307
|
fail "An exception expected"
|
34857
35308
|
end
|
@@ -34872,7 +35323,6 @@ describe 'SlidesApi' do
|
|
34872
35323
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34873
35324
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34874
35325
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34875
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34876
35326
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34877
35327
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34878
35328
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -34880,7 +35330,7 @@ describe 'SlidesApi' do
|
|
34880
35330
|
paramregex = AsposeSlidesCloud::SpecUtils.invalidize_param_value('regex', 'HighlightShapeRegex', paramregex, 'String')
|
34881
35331
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'regex', paramregex)
|
34882
35332
|
begin
|
34883
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35333
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34884
35334
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'regex')
|
34885
35335
|
fail "An exception expected"
|
34886
35336
|
end
|
@@ -34901,7 +35351,6 @@ describe 'SlidesApi' do
|
|
34901
35351
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34902
35352
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34903
35353
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34904
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34905
35354
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34906
35355
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34907
35356
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -34909,7 +35358,7 @@ describe 'SlidesApi' do
|
|
34909
35358
|
paramcolor = AsposeSlidesCloud::SpecUtils.invalidize_param_value('color', 'HighlightShapeRegex', paramcolor, 'String')
|
34910
35359
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'color', paramcolor)
|
34911
35360
|
begin
|
34912
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35361
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34913
35362
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'color')
|
34914
35363
|
fail "An exception expected"
|
34915
35364
|
end
|
@@ -34924,42 +35373,12 @@ describe 'SlidesApi' do
|
|
34924
35373
|
end
|
34925
35374
|
end
|
34926
35375
|
|
34927
|
-
it 'invalid whole_words_only' do
|
34928
|
-
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
|
34929
|
-
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
|
34930
|
-
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34931
|
-
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34932
|
-
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34933
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34934
|
-
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34935
|
-
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34936
|
-
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
34937
|
-
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
|
34938
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'HighlightShapeRegex', paramwhole_words_only, 'BOOLEAN')
|
34939
|
-
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'wholeWordsOnly', paramwhole_words_only)
|
34940
|
-
begin
|
34941
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
|
34942
|
-
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'wholeWordsOnly')
|
34943
|
-
fail "An exception expected"
|
34944
|
-
end
|
34945
|
-
rescue AsposeSlidesCloud::ApiError => e
|
34946
|
-
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
|
34947
|
-
expect(e.code).to eq(code)
|
34948
|
-
expect(e.response_body).to include(message)
|
34949
|
-
rescue ArgumentError => e
|
34950
|
-
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
|
34951
|
-
expect(400).to eq(code)
|
34952
|
-
expect(e.message).to include(message)
|
34953
|
-
end
|
34954
|
-
end
|
34955
|
-
|
34956
35376
|
it 'invalid ignore_case' do
|
34957
35377
|
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
|
34958
35378
|
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
|
34959
35379
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34960
35380
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34961
35381
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34962
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34963
35382
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34964
35383
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34965
35384
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -34967,7 +35386,7 @@ describe 'SlidesApi' do
|
|
34967
35386
|
paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'HighlightShapeRegex', paramignore_case, 'BOOLEAN')
|
34968
35387
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'ignoreCase', paramignore_case)
|
34969
35388
|
begin
|
34970
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35389
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
34971
35390
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'ignoreCase')
|
34972
35391
|
fail "An exception expected"
|
34973
35392
|
end
|
@@ -34988,7 +35407,6 @@ describe 'SlidesApi' do
|
|
34988
35407
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
34989
35408
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
34990
35409
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
34991
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
34992
35410
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
34993
35411
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
34994
35412
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -34996,7 +35414,7 @@ describe 'SlidesApi' do
|
|
34996
35414
|
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'HighlightShapeRegex', parampassword, 'String')
|
34997
35415
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'password', parampassword)
|
34998
35416
|
begin
|
34999
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35417
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
35000
35418
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'password')
|
35001
35419
|
fail "An exception expected"
|
35002
35420
|
end
|
@@ -35017,7 +35435,6 @@ describe 'SlidesApi' do
|
|
35017
35435
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
35018
35436
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
35019
35437
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
35020
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
35021
35438
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
35022
35439
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
35023
35440
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -35025,7 +35442,7 @@ describe 'SlidesApi' do
|
|
35025
35442
|
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'HighlightShapeRegex', paramfolder, 'String')
|
35026
35443
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'folder', paramfolder)
|
35027
35444
|
begin
|
35028
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35445
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
35029
35446
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'folder')
|
35030
35447
|
fail "An exception expected"
|
35031
35448
|
end
|
@@ -35046,7 +35463,6 @@ describe 'SlidesApi' do
|
|
35046
35463
|
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
|
35047
35464
|
paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
|
35048
35465
|
paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
|
35049
|
-
paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
|
35050
35466
|
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
|
35051
35467
|
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
|
35052
35468
|
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
|
@@ -35054,7 +35470,7 @@ describe 'SlidesApi' do
|
|
35054
35470
|
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'HighlightShapeRegex', paramstorage, 'String')
|
35055
35471
|
AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'storage', paramstorage)
|
35056
35472
|
begin
|
35057
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor,
|
35473
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
|
35058
35474
|
unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'storage')
|
35059
35475
|
fail "An exception expected"
|
35060
35476
|
end
|
@@ -38689,6 +39105,360 @@ describe 'SlidesApi' do
|
|
38689
39105
|
end
|
38690
39106
|
end
|
38691
39107
|
|
39108
|
+
# unit tests for replace_presentation_regex
|
39109
|
+
# Replace text with a new value using a regex.
|
39110
|
+
# @param name Document name.
|
39111
|
+
# @param pattern Text value pattern to be replaced.
|
39112
|
+
# @param new_value Text value to replace with.
|
39113
|
+
# @param [Hash] opts the optional parameters
|
39114
|
+
# @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
|
39115
|
+
# @option opts [String] :password Document password.
|
39116
|
+
# @option opts [String] :folder Document folder.
|
39117
|
+
# @option opts [String] :storage Document storage.
|
39118
|
+
# @return [DocumentReplaceResult]
|
39119
|
+
describe 'replace_presentation_regex test' do
|
39120
|
+
it 'should work' do
|
39121
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39122
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39123
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39124
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39125
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39126
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39127
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39128
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', nil, nil)
|
39129
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39130
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', nil, nil, nil)
|
39131
|
+
expect(c).to eq(code)
|
39132
|
+
expect(o).not_to be_nil
|
39133
|
+
end
|
39134
|
+
|
39135
|
+
it 'invalid name' do
|
39136
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39137
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39138
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39139
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39140
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39141
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39142
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39143
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'ReplacePresentationRegex', paramname, 'String')
|
39144
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'name', paramname)
|
39145
|
+
begin
|
39146
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39147
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'name')
|
39148
|
+
fail "An exception expected"
|
39149
|
+
end
|
39150
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39151
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'name', paramname, 'String')
|
39152
|
+
expect(e.code).to eq(code)
|
39153
|
+
expect(e.response_body).to include(message)
|
39154
|
+
rescue ArgumentError => e
|
39155
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'name', paramname, 'String')
|
39156
|
+
expect(400).to eq(code)
|
39157
|
+
expect(e.message).to include(message)
|
39158
|
+
end
|
39159
|
+
end
|
39160
|
+
|
39161
|
+
it 'invalid pattern' do
|
39162
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39163
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39164
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39165
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39166
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39167
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39168
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39169
|
+
parampattern = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pattern', 'ReplacePresentationRegex', parampattern, 'String')
|
39170
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'pattern', parampattern)
|
39171
|
+
begin
|
39172
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39173
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'pattern')
|
39174
|
+
fail "An exception expected"
|
39175
|
+
end
|
39176
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39177
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'pattern', parampattern, 'String')
|
39178
|
+
expect(e.code).to eq(code)
|
39179
|
+
expect(e.response_body).to include(message)
|
39180
|
+
rescue ArgumentError => e
|
39181
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'pattern', parampattern, 'String')
|
39182
|
+
expect(400).to eq(code)
|
39183
|
+
expect(e.message).to include(message)
|
39184
|
+
end
|
39185
|
+
end
|
39186
|
+
|
39187
|
+
it 'invalid new_value' do
|
39188
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39189
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39190
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39191
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39192
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39193
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39194
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39195
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationRegex', paramnew_value, 'String')
|
39196
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'newValue', paramnew_value)
|
39197
|
+
begin
|
39198
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39199
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'newValue')
|
39200
|
+
fail "An exception expected"
|
39201
|
+
end
|
39202
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39203
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'newValue', paramnew_value, 'String')
|
39204
|
+
expect(e.code).to eq(code)
|
39205
|
+
expect(e.response_body).to include(message)
|
39206
|
+
rescue ArgumentError => e
|
39207
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'newValue', paramnew_value, 'String')
|
39208
|
+
expect(400).to eq(code)
|
39209
|
+
expect(e.message).to include(message)
|
39210
|
+
end
|
39211
|
+
end
|
39212
|
+
|
39213
|
+
it 'invalid ignore_case' do
|
39214
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39215
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39216
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39217
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39218
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39219
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39220
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39221
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationRegex', paramignore_case, 'BOOLEAN')
|
39222
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'ignoreCase', paramignore_case)
|
39223
|
+
begin
|
39224
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39225
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'ignoreCase')
|
39226
|
+
fail "An exception expected"
|
39227
|
+
end
|
39228
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39229
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
39230
|
+
expect(e.code).to eq(code)
|
39231
|
+
expect(e.response_body).to include(message)
|
39232
|
+
rescue ArgumentError => e
|
39233
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
39234
|
+
expect(400).to eq(code)
|
39235
|
+
expect(e.message).to include(message)
|
39236
|
+
end
|
39237
|
+
end
|
39238
|
+
|
39239
|
+
it 'invalid password' do
|
39240
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39241
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39242
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39243
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39244
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39245
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39246
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39247
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationRegex', parampassword, 'String')
|
39248
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'password', parampassword)
|
39249
|
+
begin
|
39250
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39251
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'password')
|
39252
|
+
fail "An exception expected"
|
39253
|
+
end
|
39254
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39255
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'password', parampassword, 'String')
|
39256
|
+
expect(e.code).to eq(code)
|
39257
|
+
expect(e.response_body).to include(message)
|
39258
|
+
rescue ArgumentError => e
|
39259
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'password', parampassword, 'String')
|
39260
|
+
expect(400).to eq(code)
|
39261
|
+
expect(e.message).to include(message)
|
39262
|
+
end
|
39263
|
+
end
|
39264
|
+
|
39265
|
+
it 'invalid folder' do
|
39266
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39267
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39268
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39269
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39270
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39271
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39272
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39273
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'ReplacePresentationRegex', paramfolder, 'String')
|
39274
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'folder', paramfolder)
|
39275
|
+
begin
|
39276
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39277
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'folder')
|
39278
|
+
fail "An exception expected"
|
39279
|
+
end
|
39280
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39281
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'folder', paramfolder, 'String')
|
39282
|
+
expect(e.code).to eq(code)
|
39283
|
+
expect(e.response_body).to include(message)
|
39284
|
+
rescue ArgumentError => e
|
39285
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'folder', paramfolder, 'String')
|
39286
|
+
expect(400).to eq(code)
|
39287
|
+
expect(e.message).to include(message)
|
39288
|
+
end
|
39289
|
+
end
|
39290
|
+
|
39291
|
+
it 'invalid storage' do
|
39292
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
|
39293
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
|
39294
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
|
39295
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
|
39296
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
|
39297
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
|
39298
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
|
39299
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ReplacePresentationRegex', paramstorage, 'String')
|
39300
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'storage', paramstorage)
|
39301
|
+
begin
|
39302
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
|
39303
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'storage')
|
39304
|
+
fail "An exception expected"
|
39305
|
+
end
|
39306
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39307
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'storage', paramstorage, 'String')
|
39308
|
+
expect(e.code).to eq(code)
|
39309
|
+
expect(e.response_body).to include(message)
|
39310
|
+
rescue ArgumentError => e
|
39311
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'storage', paramstorage, 'String')
|
39312
|
+
expect(400).to eq(code)
|
39313
|
+
expect(e.message).to include(message)
|
39314
|
+
end
|
39315
|
+
end
|
39316
|
+
end
|
39317
|
+
|
39318
|
+
# unit tests for replace_presentation_regex_online
|
39319
|
+
# Replace text with a new value using a regex.
|
39320
|
+
# @param document Document data.
|
39321
|
+
# @param pattern Text regex pattern to be replaced.
|
39322
|
+
# @param new_value Text value to replace with.
|
39323
|
+
# @param [Hash] opts the optional parameters
|
39324
|
+
# @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
|
39325
|
+
# @option opts [String] :password Document password.
|
39326
|
+
# @return [File]
|
39327
|
+
describe 'replace_presentation_regex_online test' do
|
39328
|
+
it 'should work' do
|
39329
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
|
39330
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
|
39331
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
|
39332
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
|
39333
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
|
39334
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', nil, nil)
|
39335
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
|
39336
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', nil, nil, nil)
|
39337
|
+
expect(c).to eq(code)
|
39338
|
+
expect(o).not_to be_nil
|
39339
|
+
end
|
39340
|
+
|
39341
|
+
it 'invalid document' do
|
39342
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
|
39343
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
|
39344
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
|
39345
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
|
39346
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
|
39347
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'ReplacePresentationRegexOnline', paramdocument, 'File')
|
39348
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'document', paramdocument)
|
39349
|
+
begin
|
39350
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
|
39351
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'document')
|
39352
|
+
fail "An exception expected"
|
39353
|
+
end
|
39354
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39355
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'document', paramdocument, 'File')
|
39356
|
+
expect(e.code).to eq(code)
|
39357
|
+
expect(e.response_body).to include(message)
|
39358
|
+
rescue ArgumentError => e
|
39359
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'document', paramdocument, 'File')
|
39360
|
+
expect(400).to eq(code)
|
39361
|
+
expect(e.message).to include(message)
|
39362
|
+
end
|
39363
|
+
end
|
39364
|
+
|
39365
|
+
it 'invalid pattern' do
|
39366
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
|
39367
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
|
39368
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
|
39369
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
|
39370
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
|
39371
|
+
parampattern = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pattern', 'ReplacePresentationRegexOnline', parampattern, 'String')
|
39372
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'pattern', parampattern)
|
39373
|
+
begin
|
39374
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
|
39375
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'pattern')
|
39376
|
+
fail "An exception expected"
|
39377
|
+
end
|
39378
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39379
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'pattern', parampattern, 'String')
|
39380
|
+
expect(e.code).to eq(code)
|
39381
|
+
expect(e.response_body).to include(message)
|
39382
|
+
rescue ArgumentError => e
|
39383
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'pattern', parampattern, 'String')
|
39384
|
+
expect(400).to eq(code)
|
39385
|
+
expect(e.message).to include(message)
|
39386
|
+
end
|
39387
|
+
end
|
39388
|
+
|
39389
|
+
it 'invalid new_value' do
|
39390
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
|
39391
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
|
39392
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
|
39393
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
|
39394
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
|
39395
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationRegexOnline', paramnew_value, 'String')
|
39396
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'newValue', paramnew_value)
|
39397
|
+
begin
|
39398
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
|
39399
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'newValue')
|
39400
|
+
fail "An exception expected"
|
39401
|
+
end
|
39402
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39403
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'newValue', paramnew_value, 'String')
|
39404
|
+
expect(e.code).to eq(code)
|
39405
|
+
expect(e.response_body).to include(message)
|
39406
|
+
rescue ArgumentError => e
|
39407
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'newValue', paramnew_value, 'String')
|
39408
|
+
expect(400).to eq(code)
|
39409
|
+
expect(e.message).to include(message)
|
39410
|
+
end
|
39411
|
+
end
|
39412
|
+
|
39413
|
+
it 'invalid ignore_case' do
|
39414
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
|
39415
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
|
39416
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
|
39417
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
|
39418
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
|
39419
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationRegexOnline', paramignore_case, 'BOOLEAN')
|
39420
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'ignoreCase', paramignore_case)
|
39421
|
+
begin
|
39422
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
|
39423
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'ignoreCase')
|
39424
|
+
fail "An exception expected"
|
39425
|
+
end
|
39426
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39427
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
39428
|
+
expect(e.code).to eq(code)
|
39429
|
+
expect(e.response_body).to include(message)
|
39430
|
+
rescue ArgumentError => e
|
39431
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'ignoreCase', paramignore_case, 'BOOLEAN')
|
39432
|
+
expect(400).to eq(code)
|
39433
|
+
expect(e.message).to include(message)
|
39434
|
+
end
|
39435
|
+
end
|
39436
|
+
|
39437
|
+
it 'invalid password' do
|
39438
|
+
paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
|
39439
|
+
parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
|
39440
|
+
paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
|
39441
|
+
paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
|
39442
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
|
39443
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationRegexOnline', parampassword, 'String')
|
39444
|
+
AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'password', parampassword)
|
39445
|
+
begin
|
39446
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
|
39447
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'password')
|
39448
|
+
fail "An exception expected"
|
39449
|
+
end
|
39450
|
+
rescue AsposeSlidesCloud::ApiError => e
|
39451
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'password', parampassword, 'String')
|
39452
|
+
expect(e.code).to eq(code)
|
39453
|
+
expect(e.response_body).to include(message)
|
39454
|
+
rescue ArgumentError => e
|
39455
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'password', parampassword, 'String')
|
39456
|
+
expect(400).to eq(code)
|
39457
|
+
expect(e.message).to include(message)
|
39458
|
+
end
|
39459
|
+
end
|
39460
|
+
end
|
39461
|
+
|
38692
39462
|
# unit tests for replace_presentation_text
|
38693
39463
|
# Replace text with a new value.
|
38694
39464
|
# @param name Document name.
|