SeUniVr / RestTestGen

A framework for automated black-box testing of RESTful APIs.
Apache License 2.0
36 stars 9 forks source link

Request execution failed: connectivity problem or timeout #5

Closed mo718 closed 1 year ago

mo718 commented 1 year ago

Hello,when I run RestTestGen in IDEA, I can build odg.dot, but can not generate valid http requests. Why? image My REST API does not require permission authentication.This is file rtg_config.json and swagger.json image image

davidecorradini commented 1 year ago

Hello, the "Request execution failed" message is typically triggered when the REST API under test is not reachable, or it responds by closing the HTTP connection. Are you able to reach the API at the same URL from Postman? Also, are you sure your local API is using HTTPS and not HTTP? I can see HTTPS in the server URL of the specification, but, typically, locally deployed REST APIs do not require SSL/TLS.

mo718 commented 1 year ago

Thank you

davidecorradini commented 1 year ago

It is working? What was the problem? Can I close the issue? Thanks Davide

mo718 commented 1 year ago

My local API is using HTTP and not HTTPs. I modified the file swagger.json and it can work. Thanks for your help, you can close this issue.

davidecorradini commented 1 year ago

Thank you for your feedback