Sha256: 4407e35f9c83fd4e9be88ee2142ff41a3f7aadb09d75ae2b1e39196847cec5a6
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
require 'test/unit' require_relative '../lib/asposecloud' class TasksTests < Test::Unit::TestCase def test_convert_storage_file Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4' Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513' Aspose::Cloud::Common::AsposeApp.output_location = './Output/' Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1') # Create Object of folder class folder = Aspose::Cloud::AsposeStorage::Folder.new response = folder.upload_file './Data/test_tasks.mpp' assert_equal true, response # Create object of pdf converter class converter = Aspose::Cloud::Tasks::Converter.new('test_tasks.mpp') assert_nothing_thrown 'Error' do converter.convert('pdf') end assert_equal true, File.exist?('./Output/test_tasks.pdf') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposecloud-1.0.0 | Tests/tasks_tests.rb |