質問

I have a RESTful web API application that consists of several URL calls that return XML content. These tests would consist of (my) declared query string parameters and methods, such as POST, GET, HEAD...

I would like to fully automate the testing of these services in the most simple way possible. It would also be a great benefit if this wouldn't cause any additional costs.

The possibility of saving these tests with my given parameters for later use (to test further API upgrades or changes) would be perfect.

役に立ちましたか?

解決

You could try HttpMaster.

It allows you to define dynamic parameters and use them for URL paths or request body. You can then run multiple customized requests in a batch and review responses (with http return codes, of course).
It's quite intuitive with nice GUI and, the most important, it's free. It is also capable to save created tests to a project file.

But it's a standalone tool (not running in a browser), you did not state what type of tool would you prefer (browser or stand-alone).

他のヒント

The way I'm handling it is by HTTP status codes. I map whatever HTTP status codes available to my API to make more sense out of it. In addition I return a JSON payload which carries more verbose message regarding the error and a helpful link to my docs for the developer.

You can do one off testing with Postman: https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en

You can also do one off testing with curl: Run cURL commands from Windows console

Postman sounds exactly like what you're looking for.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top