Automatic interface testing method and device
The invention discloses an automatic interface testing method and device. The method comprises the steps: acquiring request data and expected data of an interface from a service process model used fordeveloping a to-be-tested service system; generating an automatic test script by utilizing the reque...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an automatic interface testing method and device. The method comprises the steps: acquiring request data and expected data of an interface from a service process model used fordeveloping a to-be-tested service system; generating an automatic test script by utilizing the request data and the expected data of the interface, and obtaining the request data of the interface from the automatic test script; generating a request packet from the request data of the interface, and sending the request packet to a test server; and receiving a test result fed back by the test server. The workload of manually maintaining the test script can be reduced, the test efficiency is improved, and the maintenance cost of a test case and the automatic test script is reduced.
本发明公开了一种接口自动化测试方法及装置,该方法包括:自用于开发待测试业务系统的业务流程模型中获取接口的请求数据和预期数据;利用接口的请求数据和预期数据生成自动化测试脚本,并自自动化测试脚本中获取接口的请求数据;将接口的请求数据生成请求包,并将请求包发送至测试服务器;接收测试服务器反馈的测试结果。本发明可以减少手工维护测试脚本的工作量,提高测试效率,降低测试用例和自动化测试脚本维护成本。 |
---|