用于测试 API 的工具 [英] Tools for testing API

查看:28
本文介绍了用于测试 API 的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的桌面上开发一个 PHP 网络应用程序,目前正在开发它的 API.通过浏览器或 cURL 测试 API 功能非常困难且耗时.是否有任何适用于 Windows (7) 的工具可以帮助将 POST/GET 请求发送到给定的 URL 并显示响应?

I am developing a PHP web application on my desktop and currently working on its API. Its really hard and time consuming to test API functionality through browser or cURL. Is there any tool for Windows (7) that can help in sending POST/GET requests to a given URL and shows response?

如果允许发送自定义的 post/get 参数(包括 multipart),那么它也可能是一个 Firefox 插件.

May be a firefox plugin can work too if it allows to send custom post/get parameters (including multipart).

有人可以帮忙吗?

推荐答案

对于 PHP 单元测试,您可以查看 Pear 站点上的 PHPUnit 教程SimpleTest.

For PHP Unit testing you could check out the PHPUnit tutorial on the Pear site or SimpleTest.

我找到了这个链接供您使用 Flash 生成器.

I have found this link for you to test PHP Web Application Using Flash Builder.

关于发送 POST/GET 请求,POSTMAN 在 Chrome 浏览器上运行良好,或者您可以使用 IDE SOAPUI.

In Specific to Sending POST/GET Request, POSTMAN Would work great on Chrome Browser Or You can go for IDE SOAPUI.

我正在为不同浏览器的 GET/POST 客户端添加更多内容:

I am adding few more for GET/POST Clients for different browsers:

谷歌浏览器

HTTP/REST 客户端

Mozilla 火狐

REST 客户端

Apple Safari

Cocoa REST 客户端

歌剧

简单的 REST 客户端

Apigee 控制台支持许多预定义的 API 和适用于任何 API 的通用模式.它有一个不错的快照功能,您可以在其中提出请求,然后将链接发送给任何人,他们可以查看您所做的请求/响应.

The Apigee Console supports a number of predefined APIs and a generic mode for any API. It has a nice snapshot feature where you can make a request and then send a link to anyone and they can view the request/response you made.

我们确实有Hurl,但我还没有测试它是否有效.

We do have Hurl but I haven't tested it working.

您可以根据需要尝试其中任何一个.

You can give anyone of them a try as per your need.

谢谢!

这篇关于用于测试 API 的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆