cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete Service REST API - Prepare your project suite step

SOLVED
mannu_77
Occasional Contributor

TestComplete Service REST API - Prepare your project suite step

Hi,

 

I am trying to use REST API to trigger tests on Remote PC using TC service REST API feature.  Enabled it executing the batch file.

 

Getting "The specified data is not a valid ZIP file" message when I try to generate ID using POST/Suites through swagger in the 1st step of Prepare your project suite.

 

Zip file structure image is attached.

swagger image is also attached.

Let me know where am I going wrong or am I missing any step.

 

Even tried changing the folder structure mentioned in below link still the respone is failure.

 

Following the below url

https://support.smartbear.com/testcomplete/docs/reference/tc-service/api.html#project-requirements

 

Thanks,

Manu G

 

1 ACCEPTED SOLUTION

Accepted Solutions
Bobik
Frequent Contributor

Re: TestComplete Service REST API - Prepare your project suite step

You send a path to a zip file. But the body parameter is "a sequence of bytes". I think there is no way to send such request from the current swagger page. 

Try to use some other tool for this. For example 'curl.exe' console tool. Read curl documentation and find how to send a file.

View solution in original post

2 REPLIES 2
Bobik
Frequent Contributor

Re: TestComplete Service REST API - Prepare your project suite step

You send a path to a zip file. But the body parameter is "a sequence of bytes". I think there is no way to send such request from the current swagger page. 

Try to use some other tool for this. For example 'curl.exe' console tool. Read curl documentation and find how to send a file.

View solution in original post

mannu_77
Occasional Contributor

Re: TestComplete Service REST API - Prepare your project suite step

Thanks for the post. Looking into Curl as well as Postman to solve my problem

New Here?
Join us and watch the welcome video:
Announcements