用于服务输入报文的模板匹配方法及系统、电子设备

By querying the target database and generating executable method handles in the interface testing service, the problem of message templates being unable to adapt to complex logical operations in complex scenarios is solved. This achieves efficient and flexible template matching and custom mock logic, thereby improving the efficiency of interface testing.

CN117056737BActive Publication Date: 2026-07-17INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Filing Date
2023-07-10
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies, when used in complex mock scenarios for interface testing services, suffer from message templates that cannot adapt to complex logical operations, resulting in low matching efficiency, high configuration workload, and an inability to support highly flexible mock logic.

Method used

A template matching method is provided, which receives a service simulation request, queries the target database, parses the input message template and the actual input message, obtains the simulated output message, and supports two types of template matching: the first template type is parsed according to a specified format, and the second template type is based on custom code logic to generate an executable method handle.

Benefits of technology

It achieves flexible template matching, which is suitable for complex data logic processing scenarios, improves program matching efficiency, supports custom mock logic, and enhances the flexibility and efficiency of interface testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117056737B_ABST
    Figure CN117056737B_ABST
Patent Text Reader

Abstract

本发明公开了一种用于服务输入报文的模板匹配方法及系统、电子设备,涉及金融科技领域,方法包括:接收服务模拟请求的请求输入信息,基于服务标识以及方法标识查询数据库,得到模板列表,在模板列表中存在属于第一模板类型的输入报文模板时,解析输入报文模板以及实际输入报文,并在两个解析结果成功匹配的情况下,获取输入报文模板的模拟输出报文,和 / 或,在模板列表中存在属于第二模板类型的输入报文模板的情况下,基于加载指定类、模板标识以及匹配方法类型获取模板标识对应的可执行方法句柄,以执行外部终端预先定义的匹配逻辑,得到输入报文模板的模拟输出报文,在模板列表中不存在输入报文模板的情况下,输出无匹配报文模板信息。
Need to check novelty before this filing date? Find Prior Art