What are the best tools for testing web services w

2020-05-26 11:20发布

I am new to testing of REST web services with JSON data format.

I tried SOUPUI, but unfortunately doesn't support JSON request.

I am now using the Chrome plugin for my tests, but I think it's not appropriate for test automation of these type of applications.

Does anybody know which tools are OK for this purpose?

4条回答
何必那么认真
2楼-- · 2020-05-26 11:41

There are few plugins which can be added for SOAP UI so that Json files can be accessed.

查看更多
Melony?
3楼-- · 2020-05-26 11:42

We're using RestClient for testing our Rest/JSON WebServices. It's very handy and easy to use

查看更多
Melony?
4楼-- · 2020-05-26 11:53

One such tool is HttpMaster.

It's quite flexible regarding REST API testing and has good JSON/XML support. For advanced test scenarios, you can define response data validations and establish chains of multiple requests. The only possible drawback is that it runs on Windows only.

查看更多
够拽才男人
5楼-- · 2020-05-26 11:54

A nifty framework/library for testing REST with json is "rest-assured"
http://code.google.com/p/rest-assured/

Inspired by BDD and Groovy ( but it's Java ) it makes it easy to test REST resources

given().
        param("key1", "value1").
        param("key2", "value2").
expect().
        body(containsString("OK")).
when().
        post("/somewhere");


And it's easy to work with JSON path

// Example with JsonPath
String json = get("/lotto").asString()
List<String> winnderIds = from(json).get("lotto.winners.winnerId");


Getting started is easy.
http://code.google.com/p/rest-assured/wiki/GettingStarted

Disclaimer
rest-assured is founded and managed by the Company I work for.

查看更多
登录 后发表回答