subtest 'testPostField' => sub { my $name = 'SampleWordDocument.docx'; my $sectionIndex = 0; my $paragraphIndex = 0; my $fieldIndex = 0;

	my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
	is($response->{'Status'}, "OK");
	
	my $fieldDto = AsposeWordsCloud::Object::FieldDto->new('Result' => 'John Doe');
	
	$response = $wordsApi->PostField(name=> $name, sectionIndex=>$sectionIndex, paragraphIndex=>$paragraphIndex, fieldIndex=>$fieldIndex, body =>$fieldDto);
 	isa_ok($response, 'AsposeWordsCloud::Object::SearchResponse'); 	
 	is($response->{'Status'}, "OK"); 
};

subtest 'testPutField' => sub { my $name = 'SampleWordDocument.docx'; my $sectionIndex = 0; my $paragraphIndex = 0;

	my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
	is($response->{'Status'}, "OK");
	
	my $fieldDto = AsposeWordsCloud::Object::FieldDto->new('Result' => 'John Doe', 'FieldCode' => '{FORMTEXT }','NodeId' => '0.1');
	
	$response = $wordsApi->PutField(name=> $name, sectionIndex=>$sectionIndex, paragraphIndex=>$paragraphIndex, body =>$fieldDto);
 	isa_ok($response, 'AsposeWordsCloud::Object::SearchResponse'); 	
 	is($response->{'Status'}, "OK"); 
};

subtest 'testPostRunTask' => sub { my $name = 'SampleWordDocument.docx';

	my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
	is($response->{'Status'}, "OK");
	
	$response = $wordsApi->PostRunTask(name=> $name);
 	isa_ok($response, 'AsposeWordsCloud::Object::SearchResponse'); 	
 	is($response->{'Status'}, "OK"); 
};