一种基于双层图网络的接口测试用例生成方法

By using an interface test case generation method based on a two-layer graph network, the problem of generating automated interface test data and code in rapid iterative software development using traditional testing methods is solved. This achieves accuracy and coverage of automated testing and improves the level of intelligence in software quality management.

CN120849285BActive Publication Date: 2026-07-17HARBIN AEROSPACE STAR DATA SYST TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HARBIN AEROSPACE STAR DATA SYST TECH CO LTD
Filing Date
2025-07-16
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Traditional manual testing struggles to meet the demands of rapid software development iterations, and the insufficient application of artificial intelligence technology in automated testing leads to difficulties in generating automated test data and code for interfaces.

Method used

An interface test case generation method based on a two-layer graph network is adopted. By connecting the agent with the system database and interface management tools, table-table association graphs and interface-table association graphs are constructed, and test cases are generated by combining importance evaluation indicators and traversal algorithms.

Benefits of technology

It enables automated test cases to be written without manual intervention, ensuring test accuracy and coverage, and improving test efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120849285B_ABST
    Figure CN120849285B_ABST
Patent Text Reader

Abstract

一种基于双层图网络的接口测试用例生成方法,属于软件测试技术领域。为解决实现接口自动化测试数据和代码的自动化生成的问题。本发明包括利用模型上下文协议MCP建立智能体与被测试系统数据库的连接,智能体获取数据库的库名、表名、字段信息和外键关系信息;构建表‑表关联图;智能体利用模型上下文协议与接口管理工具和接口调用日志工具建立连接,获取静态接口信息、动态的接口信息、接口组成信息和使用信息;构建接口‑表关联图;形成接口关联图;制定节点综合重要性评价指标和测试用例生成策略;识别接口关系图中重要节点,按照测试用例生成策略,根据图结构的遍历算法得到所有重要接口路径,智能体生成所有重要接口路径对应的测试用例。
Need to check novelty before this filing date? Find Prior Art