首页> 外国专利> DATABASE COMPARISON-BASED INTERFACE TESTING METHOD AND SYSTEM, DEVICE AND STORAGE MEDIUM

DATABASE COMPARISON-BASED INTERFACE TESTING METHOD AND SYSTEM, DEVICE AND STORAGE MEDIUM

机译:基于数据库比较的接口测试方法及系统,装置和存储介质

摘要

A database comparison-based interface testing method and system, a computer device, and a storage medium. The method comprises: creating a test interface in a user interaction interface by means of a test tool, configuring the test interface with request parameters, the request parameters comprising a request method, a URL address, a port, a server IP, a protocol type, a request information header and a request information body (S101); the test tool parameterizing, in the user interaction interface, the content to be parameterized; designating the type of the parameterized object; determining, by means of the parameterized object, the type to which a parameter value belongs, facilitating parametric value construction during backend processing, thereby generating test cases in various situations (S102); the test tool invoking the test interface, adding an assertion for determining whether the test is successfully performed or not (S103); the test tool executing a test operation, and configuring a configuration file with a database statement and input parameters invoked for asserting a framework (S104); completing a precise assertion by comparing a returned message with a result queried by the database statement configured in the configuration file (S105); the server receiving test data transmitted from a test user terminal, automatically extending according to the parameterized content and the type, and generating, one by one, corresponding test cases by means of parameter value replacement (S106); the server automatically executing the test according to the extended test cases, obtaining results, performing assertion determination on the test results one by one, and storing the test data, the test results, and the determination results in a list (S107). Said method makes a precise assertion from service logic, and implements automatic determination of the service logic, reducing manpower investment in regression testing, and improving testing efficiency.
机译:一种基于数据库比较的接口测试方法和系统,计算机设备和存储介质。该方法包括:通过测试工具在用户交互界面中创建测试界面,为测试界面配置请求参数,请求参数包括请求方法,URL地址,端口,服务器IP,协议类型。 ,请求信息头和请求信息主体(S101);测试工具在用户交互界面中对要参数化的内容进行参数化;指定参数化对象的类型;通过参数化对象确定参数值所属的类型,便于后端处理过程中参数值的构造,从而生成各种情况下的测试用例(S102);测试工具调用测试接口,添加用于确定测试是否成功执行的断言(S103);测试工具执行测试操作,并配置配置文件,该配置文件具有数据库语句和为断言框架而调用的输入参数(S104);通过将返回的消息与配置文件中配置的数据库语句所查询的结果进行比较来完成精确的断言(S105);服务器接收从测试用户终端发送的测试数据,并根据参数化后的内容和类型自动扩展,并通过参数值替换一一生成对应的测试用例(S106);服务器根据扩展的测试用例自动执行测试,获得结果,对测试结果进行断言确定,并将测试数据,测试结果和确定结果存储在列表中(S107)。该方法根据服务逻辑进行精确的断言,并实现服务逻辑的自动确定,减少了回归测试的人力投入,提高了测试效率。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号