接口测试方法、设备、存储介质及程序产品

By automatically generating test cases and target strategies, and using interface response data templates or assertion models for automatic assertion verification, the problem of insufficient automated assertion capabilities in server-side interface testing is solved, achieving more efficient interface testing automation and more refined assertion verification.

CN116089251BActive Publication Date: 2026-07-17DOUYIN VISION CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
DOUYIN VISION CO LTD
Filing Date
2021-11-02
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In existing technologies, the automated assertion capabilities of server-side interface testing are insufficient, relying on manually written verification rules with complex configurations, making it difficult to achieve highly accurate automated verification.

Method used

By acquiring raw traffic data, test cases and target strategies are automatically generated. Automatic assertion verification is performed using interface response data templates or assertion models, reducing the reliance on manually written rules.

Benefits of technology

It improves the automation level of interface testing, enables more granular assertion verification, enhances the ability to discover problems, and reduces the complexity of manual configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116089251B_ABST
    Figure CN116089251B_ABST
Patent Text Reader

Abstract

本公开实施例提供一种接口测试方法、设备、存储介质及程序产品,该方法通过获取待测试接口的原始流量数据;根据原始流量数据中包括的原始请求和对应响应数据构建测试用例,测试用例中包括测试请求;根据原始流量数据中包括的原始请求和对应响应数据生成目标策略;采用测试用例触发通过待测试接口向服务端发出测试请求,并接收服务端反馈的目标响应数据;根据测试请求以及目标响应数据,采用目标策略对待测试接口进行断言验证,获取对待测试接口的断言验证结果。通过自动生成测试用例以及自动生成目标策略,基于目标策略进行断言验证,提高接口测试的自动化程度,降低对人工编写规则的依赖,提高发现问题的能力,实现接口更细化的断言验证。
Need to check novelty before this filing date? Find Prior Art