哪些工具将允许 JSON 请求编写脚本和自动化(如 SOAP UI)?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7399092/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 17:59:46  来源:igfitidea点击:

What tools will allow JSON requests to be scripted and automated (like SOAP UI)?

json

提问by Sripaul

Can someone suggest me a JSON client tool to test my system just like how we use SOAP UI to test web services?

有人可以向我推荐一个 JSON 客户端工具来测试我的系统,就像我们如何使用 SOAP UI 来测试 Web 服务一样吗?

采纳答案by ArjunShankar

If you're looking for a convenient way to make HTTP calls and then view their responses:

如果您正在寻找一种便捷的方式来进行 HTTP 调用,然后查看它们的响应:

http://code.google.com/p/rest-client/

http://code.google.com/p/rest-client/

No, it cannot be used for performance testing or automated testing of any sort as such. I used to use it as a quick way to visually inspect if my service (which happened to talk JSON but could actually have been anything else) is talking correctly.

不,它不能用于任何类型的性能测试或自动化测试。我曾经使用它作为一种快速的方式来直观地检查我的服务(它碰巧使用 JSON,但实际上可能是其他任何东西)是否正确地说话。

Here is an example of how one uses it (It's linked to from the previous page): http://www.flickr.com/photos/subwiz/2865055073/

这是一个如何使用它的示例(它链接到上一页):http: //www.flickr.com/photos/subwiz/2865055073/

回答by Chandima Janakantha

Firefox RestClientaddon will do this.

Firefox RestClient插件可以做到这一点。

回答by M0-3E

did you consider/try fiddler ? it's not open source, but it's free. It also comes bundled with a Firefox extension that lets you monitor all http calls in realtime.

你考虑过/尝试过提琴手吗?它不是开源的,但它是免费的。它还捆绑了一个 Firefox 扩展,可以让您实时监控所有 http 调用。

url : http://www.fiddler2.com/fiddler2/

网址:http: //www.fiddler2.com/fiddler2/

回答by Andrey Chausenko

Check out Resttyan Open Source tool under Apache 2.0 license. It's a template-based command line tool for accessing RESTful JSON-based Web Services. It can be used for automated testing too.

查看Apache 2.0 许可下的开源工具Restty。它是一个基于模板的命令行工具,用于访问基于 RESTful JSON 的 Web 服务。它也可以用于自动化测试。