我刚开始API测试,从哪里开始学习API?在API测试中了解特性有什么好处?任何关于API测试的文档链接或建议。
发布于 2017-07-11 09:29:55
API测试是一种软件测试,它直接测试应用程序编程接口(API),作为集成测试的一部分,以确定它们是否满足功能、可靠性、性能和安全性的期望。由于API缺少GUI,所以在消息layer.API上执行API测试是应用程序编程接口的缩写。
它允许两个独立的软件系统之间的通信和数据交换。实现API的软件系统包含可由另一个软件系统执行的函数/子例程。API测试与GUI测试完全不同,主要集中在软件体系结构的业务逻辑层。这个测试不会集中在应用程序的外观和感觉上。
在API测试中,您不用使用标准用户输入(键盘)和输出,而是使用软件发送对API的调用,获取输出,并记录系统的响应。
API测试需要应用程序与API交互。为了测试API,您需要
Use Testing Tool to drive the API
Write your own code to test the API
API测试环境的建立
API testing is different than other testing types as GUI is not available, and yet you are required to setup initial environment that invokes API with required set of parameters and then finally examines the test result.
Hence, Setting up a testing environment for API testing seems a little complex.
Database and server should be configured as per the application requirements.
Once the installation is done, API Function should be called to check whether that API is working.
API测试在许多方面类似于在用户界面级别测试软件,而不是通过标准用户输入和输出进行测试,而是使用软件向API发送调用、获取输出和记录系统的响应。根据测试环境的不同,您可以使用一组准备好的测试应用程序,但通常情况下,您将编写代码专门用于测试API。不管实际测试条件如何,重要的是要知道API测试代码应该做什么。
发布于 2017-07-11 08:48:02
为了开始API测试,我建议使用Postman应用程序&它的(很好的)文档:
https://sqa.stackexchange.com/questions/28458
复制相似问题