CN114385483B - Database interface testing method, device, equipment and storage medium - Google Patents
Database interface testing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114385483B CN114385483B CN202111480491.0A CN202111480491A CN114385483B CN 114385483 B CN114385483 B CN 114385483B CN 202111480491 A CN202111480491 A CN 202111480491A CN 114385483 B CN114385483 B CN 114385483B
- Authority
- CN
- China
- Prior art keywords
- interface
- database
- general
- operation type
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 232
- 238000000034 method Methods 0.000 claims abstract description 38
- 238000012986 modification Methods 0.000 claims description 19
- 230000004048 modification Effects 0.000 claims description 19
- 238000012812 general test Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 8
- 238000012217 deletion Methods 0.000 claims description 4
- 230000037430 deletion Effects 0.000 claims description 4
- 238000012545 processing Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 19
- 238000010586 diagram Methods 0.000 description 6
- 238000005538 encapsulation Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- XSQUKJJJFZCRTK-NJFSPNSNSA-N UREA C 14 Chemical compound N[14C](N)=O XSQUKJJJFZCRTK-NJFSPNSNSA-N 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请涉及一种数据库接口测试方法、装置、设备及存储介质,涉及数据库测试领域。该数据库接口测试方法包括:运行待测试数据库的测试用例实例;在运行的过程中,采用目标参数调用待测试数据库的通用接口;通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回;通过测试用例实例对测试数据进行测试。本申请用以解决对不同数据库进行测试时,需要重新编写测试用例的问题。
The present application relates to a database interface testing method, device, equipment and storage medium, and relates to the field of database testing. The database interface testing method comprises: running a test case instance of a database to be tested; during the running process, using target parameters to call the general interface of the database to be tested; identifying the operation type interface corresponding to the target parameter through the general interface, and calling the operation type interface to obtain test data and return it; testing the test data through the test case instance. The present application is used to solve the problem of needing to rewrite test cases when testing different databases.
Description
技术领域Technical Field
本申请涉及数据库测试领域,尤其涉及一种数据库接口测试方法、装置、设备及存储介质。The present application relates to the field of database testing, and in particular to a database interface testing method, device, equipment and storage medium.
背景技术Background Art
为了满足客户日益增长的性能需求,区块链平台不断地突破性能瓶颈,其中对存储模块进行了不断地优化和改造,设计了多种底层存储依赖的KV(Key-Value,键值对存储数据)数据库。每一种KV数据库都提供一组完整的数据库接口可供外部服务调用,数据库可单独测试,进行性能优化效果的对比,这就带来了大量的重复的测试工作。In order to meet the growing performance needs of customers, the blockchain platform continues to break through performance bottlenecks, including continuous optimization and transformation of storage modules, and design of a variety of KV (Key-Value, key-value pair storage data) databases that rely on underlying storage. Each KV database provides a complete set of database interfaces for external service calls, and the database can be tested separately to compare performance optimization effects, which brings a lot of repeated testing work.
一般提到数据库测试工作,业界有许多开源的性能基准测试工具如sysbench,单元测试工具如DBUnit等,但对于数据库的集成测试或接口测试,还没有现成的开源测试工具。Generally speaking, when it comes to database testing, there are many open source performance benchmarking tools such as sysbench and unit testing tools such as DBUnit in the industry. However, there are no ready-made open source testing tools for database integration testing or interface testing.
对数据库功能的完备性测试,一般通过覆盖数据库提供的接口,设计对应接口参数的取值范围和拼接多个接口进行接口场景化测试。如果测试对象换了一种新的数据库,这部分数据库的测试脚本无法复用,一般会采用重新设计一遍测试场景,去进行另一种数据库的功能完备性验证。这部分工作就带来了大量的重复的测试工作。The completeness test of database functions is generally conducted by covering the interfaces provided by the database, designing the value range of the corresponding interface parameters, and splicing multiple interfaces for interface scenario testing. If the test object changes to a new database, the test scripts of this part of the database cannot be reused. Generally, the test scenario will be redesigned to verify the functional completeness of another database. This part of the work brings a lot of repeated testing work.
发明内容Summary of the invention
本申请提供了一种数据库接口测试方法、装置、设备及存储介质,用以解决对不同数据库进行测试时,需要重新编写测试用例的问题。The present application provides a database interface testing method, apparatus, device and storage medium to solve the problem of needing to rewrite test cases when testing different databases.
第一方面,本申请实施例提供了一种数据库接口测试方法,包括:In a first aspect, an embodiment of the present application provides a database interface testing method, comprising:
运行待测试数据库的测试用例实例;Run the test case instance of the database to be tested;
在运行的过程中,采用目标参数调用所述待测试数据库的通用接口;During the operation, the universal interface of the database to be tested is called using target parameters;
通过所述通用接口,识别所述目标参数对应的操作类型接口,以及调用所述操作类型接口获取测试数据并返回;Identify the operation type interface corresponding to the target parameter through the general interface, and call the operation type interface to obtain test data and return it;
通过所述测试用例实例对所述测试数据进行测试。The test data is tested through the test case instance.
可选地,所述通过所述通用接口,识别所述目标参数对应的操作类型接口之前,所述方法还包括:Optionally, before identifying the operation type interface corresponding to the target parameter through the universal interface, the method further includes:
按照所述通用接口的格式,封装所述操作类型接口。The operation type interface is encapsulated according to the format of the general interface.
可选地,所述通过所述测试用例实例对所述测试数据进行测试之后,所述方法还包括:Optionally, after testing the test data through the test case instance, the method further includes:
获取测试结果;Get test results;
根据所述测试结果,生成测试报告。A test report is generated according to the test results.
可选地,所述操作类型接口包括查询并修改类型接口;Optionally, the operation type interface includes a query and modify type interface;
所述在运行的过程中,采用目标参数调用所述待测试数据库的通用接口,包括:During the operation, the universal interface of the database to be tested is called using target parameters, including:
在运行的过程中,采用目标参数调用所述待测试数据库的查询接口和修改接口;During the operation, the query interface and the modification interface of the database to be tested are called using the target parameters;
所述通过所述通用接口,识别所述目标参数对应的操作类型接口,包括:The step of identifying the operation type interface corresponding to the target parameter through the general interface includes:
通过所述查询接口和所述修改接口,识别所述目标参数对应的所述查询并修改类型接口。The query and modification type interface corresponding to the target parameter is identified through the query interface and the modification interface.
可选地,所述操作类型接口包括查询并删除类型接口;Optionally, the operation type interface includes a query and delete type interface;
所述在运行的过程中,采用目标参数调用所述待测试数据库的通用接口,包括:During the operation, the universal interface of the database to be tested is called using target parameters, including:
在运行的过程中,采用目标参数调用所述待测试数据库的查询接口和删除接口;During the operation, the query interface and the deletion interface of the database to be tested are called using the target parameters;
所述通过所述通用接口,识别所述目标参数对应的操作类型接口,包括:The step of identifying the operation type interface corresponding to the target parameter through the general interface includes:
通过所述查询接口和所述删除接口,识别所述目标参数对应的所述查询并删除类型接口。The query and delete type interface corresponding to the target parameter is identified through the query interface and the delete interface.
可选地,所述在运行的过程中,采用目标参数调用所述待测试数据库的通用接口之前,所述方法还包括:Optionally, during the running process, before calling the universal interface of the database to be tested with the target parameter, the method further includes:
配置所述通用接口,其中,所述通用接口包括增加接口、删除接口、修改接口和查询接口中的至少一个。The general interface is configured, wherein the general interface includes at least one of adding an interface, deleting an interface, modifying an interface, and querying an interface.
可选地,所述运行待测试数据库的测试用例实例之前,所述方法还包括:Optionally, before running the test case instance of the database to be tested, the method further includes:
从通用测试用例集中,获取所述测试用例实例,其中,所述通用测试用例集包括数据库通用操作的测试用例、数据库场景化操作的测试用例和指定数据库的测试用例中的至少一个。The test case instance is obtained from a general test case set, wherein the general test case set includes at least one of a test case for general database operations, a test case for scenario-based database operations, and a test case for a specified database.
第二方面,本申请实施例提供了一种数据库接口测试装置,包括:In a second aspect, an embodiment of the present application provides a database interface testing device, including:
运行模块,用于运行待测试数据库的测试用例实例;The running module is used to run the test case instance of the database to be tested;
调用模块,用于在运行的过程中,采用目标参数调用所述待测试数据库的通用接口;A calling module, used to call the general interface of the database to be tested using target parameters during operation;
识别模块,用于通过所述通用接口,识别所述目标参数对应的操作类型接口,以及调用所述操作类型接口获取测试数据并返回;An identification module, used to identify the operation type interface corresponding to the target parameter through the general interface, and call the operation type interface to obtain test data and return it;
处理模块,用于通过所述测试用例实例对所述测试数据进行测试。A processing module is used to test the test data through the test case instance.
可选地,所述数据库接口测试装置还包括封装模块;Optionally, the database interface testing device further includes a packaging module;
所述封装模块,用于按照所述通用接口的格式,封装所述操作类型接口。The encapsulation module is used to encapsulate the operation type interface according to the format of the general interface.
可选地,所述数据库接口测试装置还包括第一获取模块和生成模块;Optionally, the database interface testing device further includes a first acquisition module and a generation module;
所述第一获取模块,用于获取测试结果;The first acquisition module is used to obtain the test result;
所述生成模块,用于根据所述测试结果,生成测试报告。The generating module is used to generate a test report according to the test result.
可选地,所述操作类型接口包括查询并修改类型接口;Optionally, the operation type interface includes a query and modify type interface;
所述调用模块,具体用于在运行的过程中,采用目标参数调用所述待测试数据库的查询接口和修改接口;The calling module is specifically used to call the query interface and modification interface of the database to be tested using target parameters during the running process;
所述识别模块,具体用于通过所述查询接口和所述修改接口,识别所述目标参数对应的所述查询并修改类型接口,以及调用所述查询并修改类型接口获取测试数据并返回。The identification module is specifically used to identify the query and modification type interface corresponding to the target parameter through the query interface and the modification interface, and call the query and modification type interface to obtain test data and return it.
可选地,所述操作类型接口包括查询并删除类型接口;Optionally, the operation type interface includes a query and delete type interface;
所述调用模块,具体用于在运行的过程中,采用目标参数调用所述待测试数据库的查询接口和删除接口;The calling module is specifically used to call the query interface and the deletion interface of the database to be tested using the target parameters during the running process;
所述识别模块,具体用于通过所述查询接口和所述删除接口,识别所述目标参数对应的所述查询并删除类型接口,以及调用所述查询并删除类型接口获取测试数据并返回。The identification module is specifically used to identify the query and delete type interface corresponding to the target parameter through the query interface and the delete interface, and call the query and delete type interface to obtain test data and return it.
可选地,所述数据库接口测试装置还包括配置模块;Optionally, the database interface testing device further includes a configuration module;
所述配置模块,用于配置所述通用接口,其中,所述通用接口包括增加接口、删除接口、修改接口和查询接口中的至少一个。The configuration module is used to configure the general interface, wherein the general interface includes at least one of adding an interface, deleting an interface, modifying an interface, and querying an interface.
可选地,所述数据库接口测试装置还包括第二获取模块;Optionally, the database interface testing device further includes a second acquisition module;
所述第二获取模块,用于从通用测试用例集中,获取所述测试用例实例,其中,所述通用测试用例集包括数据库通用操作的测试用例、数据库场景化操作的测试用例和指定数据库的测试用例中的至少一个。The second acquisition module is used to acquire the test case instance from a general test case set, wherein the general test case set includes at least one of a test case for general database operations, a test case for scenario-based database operations, and a test case for a specified database.
第三方面,本申请实施例提供了一种电子设备,包括:处理器、存储器和通信总线,其中,处理器和存储器通过通信总线完成相互间的通信;In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;
所述存储器,用于存储计算机程序;The memory is used to store computer programs;
所述处理器,用于执行所述存储器中所存储的程序,实现第一方面所述的数据库接口测试方法。The processor is used to execute the program stored in the memory to implement the database interface testing method described in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的数据库接口测试方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the database interface testing method described in the first aspect.
本申请实施例提供的上述技术方案与现有技术相比具有如下优点:本申请实施例提供的该方法,运行待测试数据库的测试用例实例,在运行的过程中,采用目标参数调用待测试数据库的通用接口,通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回,通过测试用例实例对测试数据进行测试。The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application runs a test case instance of the database to be tested, and during the running process, uses target parameters to call the general interface of the database to be tested, identifies the operation type interface corresponding to the target parameter through the general interface, and calls the operation type interface to obtain test data and return it, and tests the test data through the test case instance.
相对于现有技术中,对不同数据库进行测试时,需要重新编写测试用例的情况,本申请中不需要重新编写测试用例,通过在运行待测试数据库的测试用例实例的过程中,调用待测试数据库的通用接口,通过通用接口执行后续操作,测试用例实例只需要根据通用接口进行编写,适用于不同数据库,能够实现同一个测试用例实例对不同数据库进行测试。不同数据库的通用接口是相同的,不同数据库的操作类型接口是不同的。不同数据库的具体操作,是通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回,实现通过通用接口调用操作类型接口,进而实现测试用例实例对具体的待测试数据库进行测试。实现了同一个测试用例实例对不同数据库进行测试,验证数据库的功能完备性,不需要编写大量的测试用例,极大地提高了测试效率,缩短数据库对象功能验证周期。Compared with the prior art, when testing different databases, it is necessary to rewrite the test cases. In this application, it is not necessary to rewrite the test cases. By calling the general interface of the database to be tested during the process of running the test case instance of the database to be tested, and performing subsequent operations through the general interface, the test case instance only needs to be written according to the general interface, which is applicable to different databases, and can implement the same test case instance to test different databases. The general interfaces of different databases are the same, and the operation type interfaces of different databases are different. The specific operations of different databases are to identify the operation type interface corresponding to the target parameter through the general interface, and to call the operation type interface to obtain test data and return it, so as to call the operation type interface through the general interface, and then implement the test case instance to test the specific database to be tested. It is realized that the same test case instance tests different databases to verify the functional completeness of the database, without the need to write a large number of test cases, which greatly improves the test efficiency and shortens the database object function verification cycle.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本申请实施例中数据库接口测试系统的架构示意图;FIG1 is a schematic diagram of the architecture of a database interface testing system in an embodiment of the present application;
图2为本申请实施例中数据库接口测试的方法流程示意图;FIG2 is a schematic diagram of a method flow chart of a database interface test in an embodiment of the present application;
图3为本申请一个具体实施例中数据库接口测试的方法流程示意图;FIG3 is a schematic diagram of a method flow chart of a database interface test in a specific embodiment of the present application;
图4为本申请一个具体实施例中数据库接口测试的方法流程示意图;FIG4 is a schematic diagram of a method flow chart of a database interface test in a specific embodiment of the present application;
图5为本申请实施例中数据库接口测试装置的结构示意图;FIG5 is a schematic diagram of the structure of a database interface testing device in an embodiment of the present application;
图6为本申请实施例中电子设备的结构示意图。FIG. 6 is a schematic diagram of the structure of an electronic device in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
本申请实施例中,提供了一种数据库接口测试方法,该方法应用于数据库接口测试系统。In an embodiment of the present application, a database interface testing method is provided, which is applied to a database interface testing system.
本申请实施例中,如图1所示,数据库接口测试系统包括用例集、执行层和适配层。In an embodiment of the present application, as shown in FIG1 , the database interface testing system includes a use case set, an execution layer, and an adaptation layer.
用例集:主要由测试用例构成,每个测试用例由参数配置和测试脚本组成。参数配置,可以直接指定该测试用例的线程并发数和线程循环次数。参数配置可以根据需要设置。Test case set: mainly composed of test cases, each test case consists of parameter configuration and test script. Parameter configuration can directly specify the number of concurrent threads and thread loops for the test case. Parameter configuration can be set as needed.
执行层:主要进行测试用例的执行,执行层可以设置测试用例随机并发执行模式来模拟对测试场景下数据库的随机读写操作,测试报告解读模块负责收集测试结果,并交由可视化工具进行测试结果汇报。测试用例执行模块,将执行事先定义好的测试用例,接口实现部分将通用操作的数据库操作转换为某一具体数据库的操作,最终将测试结果反馈到测试报告收集模块,报告最终以可视化的方式进行测试结果展示。Execution layer: mainly performs test case execution. The execution layer can set the random concurrent execution mode of test cases to simulate random read and write operations on the database in the test scenario. The test report interpretation module is responsible for collecting test results and submitting them to the visualization tool for test result reporting. The test case execution module will execute pre-defined test cases. The interface implementation part will convert the database operations of general operations into operations of a specific database, and finally feed back the test results to the test report collection module. The report will finally display the test results in a visual way.
适配层:包括common、utils和dbs。common提供了一些基础公共操作,一些小工具操作的封装,utils中封装了对通用数据库的一些公共操作,dbs下接入了待测试的数据库对象和这些数据库接口的封装。Adaptation layer: includes common, utils and dbs. common provides some basic common operations and encapsulation of some small tool operations. utils encapsulates some common operations on common databases. dbs connects to the database objects to be tested and encapsulation of these database interfaces.
本申请实施例中,如图2所示,数据库接口测试的方法流程主要包括:In the embodiment of the present application, as shown in FIG2 , the method flow of the database interface test mainly includes:
步骤201,运行待测试数据库的测试用例实例。Step 201: Run the test case instance of the database to be tested.
一个具体实施例中,运行待测试数据库的测试用例实例之前,数据库接口测试方法还包括:从通用测试用例集中,获取测试用例实例,其中,通用测试用例集包括数据库通用操作的测试用例、数据库场景化操作的测试用例和指定数据库的测试用例中的至少一个。In a specific embodiment, before running the test case instance of the database to be tested, the database interface testing method also includes: obtaining a test case instance from a general test case set, wherein the general test case set includes at least one of test cases for general database operations, test cases for scenario-based database operations, and test cases for specified databases.
数据库通用操作的测试用例,是指数据库通用的增加、删除、修改、查询等操作的测试用例。数据库场景化操作的测试用例,是指随机并发执行模式等数据库场景化操作的测试用例。指定数据库的测试用例,是指对指定数据库才起作用的测试用例,需要用到装饰器如pytest.mark.skip或者其他方式来过滤掉不匹配的数据库。通用测试用例集是提前定义的。Test cases for common database operations refer to test cases for common database operations such as adding, deleting, modifying, and querying. Test cases for scenario-based database operations refer to test cases for scenario-based database operations such as random concurrent execution mode. Test cases for specified databases refer to test cases that only work for specified databases, and decorators such as pytest.mark.skip or other methods are required to filter out unmatched databases. The set of common test cases is defined in advance.
不需要在测试不同的数据库时,每次重新编写测试用例实例,只需要在提前定义的通用测试用例集中,获取适合待测试数据库的测试用例实例即可。There is no need to rewrite the test case instance each time when testing different databases. You only need to obtain the test case instance suitable for the database to be tested from the pre-defined general test case set.
步骤202,在运行的过程中,采用目标参数调用待测试数据库的通用接口。Step 202: During the running process, the general interface of the database to be tested is called using target parameters.
目标参数可以是需要调用的通用接口的类型,例如,目标参数为查询接口和修改接口,目标参数也可以是待测试数据库的操作类型接口对应的操作类型,例如,目标参数为查询并修改类型,目标参数还可以是操作类型接口按照通用接口的格式描述出来的表达式,例如,目标参数为操作类型接口A=k1*通用接口a+k2*通用接口b,将操作类型接口A按照通用接口a和通用接口b的格式描述出来的表达式,k1、k2为常数。The target parameter can be the type of the general interface that needs to be called, for example, the target parameter is the query interface and the modification interface. The target parameter can also be the operation type corresponding to the operation type interface of the database to be tested, for example, the target parameter is the query and modification type. The target parameter can also be an expression described by the operation type interface according to the format of the general interface. For example, the target parameter is operation type interface A = k1*general interface a+k2*general interface b, which is an expression describing the operation type interface A according to the format of general interface a and general interface b, and k1 and k2 are constants.
根据目标参数能够确定需要调用的通用接口的类型。根据需要,目标参数也可以是其他参数,本申请并不对目标参数的具体内容作出限制。The type of the general interface to be called can be determined according to the target parameter. The target parameter can also be other parameters as needed, and the present application does not limit the specific content of the target parameter.
一个具体实施例中,在运行的过程中,采用目标参数调用待测试数据库的通用接口之前,数据库接口测试方法还包括:配置通用接口,其中,通用接口包括增加接口、删除接口、修改接口和查询接口中的至少一个。In a specific embodiment, during the running process, before calling the universal interface of the database to be tested with target parameters, the database interface testing method also includes: configuring the universal interface, wherein the universal interface includes at least one of adding interface, deleting interface, modifying interface and querying interface.
增加接口、删除接口、修改接口和查询接口是使用频次较高的数据库通用操作。Adding an interface, deleting an interface, modifying an interface, and querying an interface are common database operations that are used frequently.
通用接口可以包括数据库通用操作,例如,Insert增加接口,Delete删除接口,Update修改接口,Select查询接口,Write写入接口,Read读取接口,Reset重置接口,Roolback回滚接口,Close关闭接口,New新建接口等。通用接口还可以包括数据库提供的迭代器Iterator的通用操作,例如,NewIterator新建迭代器接口,Seek迭代器查找接口,First取得第一个元素接口,Last取得最后一个元素接口,Next返回迭代的下一个元素接口,Prev返回迭代的上一个元素接口,Key键值获取接口,Value存储数据获取接口,Release释放接口等。The general interface may include general database operations, such as Insert, Delete, Update, Select, Write, Read, Reset, Roolback, Close, New, etc. The general interface may also include general operations of the iterators provided by the database, such as NewIterator, Seek, First, Last, Next, Prev, Key, Value, Release, etc.
通用接口适用于不同的数据库。Common interface is applicable to different databases.
步骤203,通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回。Step 203: Identify the operation type interface corresponding to the target parameter through the general interface, and call the operation type interface to obtain test data and return it.
目标参数可以是需要调用的通用接口的类型,例如,目标参数为查询接口和修改接口,目标参数也可以是待测试数据库的操作类型接口对应的操作类型,例如,目标参数为查询并修改类型,目标参数还可以是操作类型接口按照通用接口的格式描述出来的表达式,例如,目标参数为操作类型接口A=k1*通用接口a+k2*通用接口b,将操作类型接口A按照通用接口a和通用接口b的格式描述出来的表达式,k1、k2为常数。The target parameter can be the type of the general interface that needs to be called, for example, the target parameter is the query interface and the modification interface. The target parameter can also be the operation type corresponding to the operation type interface of the database to be tested, for example, the target parameter is the query and modification type. The target parameter can also be an expression described by the operation type interface according to the format of the general interface. For example, the target parameter is operation type interface A = k1*general interface a+k2*general interface b, which is an expression describing the operation type interface A according to the format of general interface a and general interface b, and k1 and k2 are constants.
根据目标参数能够确定需要调用的操作类型接口的类型。根据需要,目标参数也可以是其他参数,本申请并不对目标参数的具体内容作出限制。The type of operation type interface to be called can be determined according to the target parameter. The target parameter can also be other parameters as needed, and the present application does not limit the specific content of the target parameter.
通过通用接口调用操作类型接口获取测试数据,可以是通过通用接口调用操作类型接口,从待测试数据库中获取测试数据。The test data may be acquired by calling the operation type interface through the general interface, and the test data may be acquired from the database to be tested by calling the operation type interface through the general interface.
一个具体实施例中,通过通用接口,识别目标参数对应的操作类型接口之前,数据库接口测试方法还包括:按照通用接口的格式,封装操作类型接口。In a specific embodiment, before identifying the operation type interface corresponding to the target parameter through the general interface, the database interface testing method further includes: encapsulating the operation type interface according to the format of the general interface.
按照通用接口的格式,封装操作类型接口,例如,操作类型接口A=k1*通用接口a+k2*通用接口b,将操作类型接口A按照通用接口a和通用接口b的格式封装,k1、k2为常数。数据库属性将直接写入创建数据库的接口中。According to the format of the general interface, the operation type interface is encapsulated. For example, operation type interface A = k1*general interface a + k2*general interface b. Operation type interface A is encapsulated according to the format of general interface a and general interface b. k1 and k2 are constants. Database attributes will be directly written into the interface for creating the database.
一个具体实施例中,操作类型接口包括查询并修改类型接口。在运行的过程中,采用目标参数调用待测试数据库的通用接口,包括:在运行的过程中,采用目标参数调用待测试数据库的查询接口和修改接口。通过通用接口,识别目标参数对应的操作类型接口,包括:通过查询接口和修改接口,识别目标参数对应的查询并修改类型接口。In a specific embodiment, the operation type interface includes a query and modify type interface. During the operation, the general interface of the database to be tested is called using the target parameter, including: during the operation, the query interface and the modify interface of the database to be tested are called using the target parameter. Through the general interface, the operation type interface corresponding to the target parameter is identified, including: through the query interface and the modify interface, the query and modify type interface corresponding to the target parameter is identified.
操作类型接口包括查询并修改类型接口时,需要调用的通用接口为查询接口和修改接口,通过查询接口和修改接口,识别目标参数对应的查询并修改类型接口,以及调用查询并修改类型接口获取测试数据并返回。When the operation type interface includes a query and modify type interface, the common interfaces that need to be called are the query interface and the modify interface. Through the query interface and the modify interface, the query and modify type interface corresponding to the target parameter is identified, and the query and modify type interface is called to obtain test data and return it.
一个具体实施例中,操作类型接口包括查询并删除类型接口。在运行的过程中,采用目标参数调用待测试数据库的通用接口,包括:在运行的过程中,采用目标参数调用待测试数据库的查询接口和删除接口。通过通用接口,识别目标参数对应的操作类型接口,包括:通过查询接口和删除接口,识别目标参数对应的查询并删除类型接口。In a specific embodiment, the operation type interface includes a query and delete type interface. During the operation, the general interface of the database to be tested is called using the target parameter, including: during the operation, the query interface and the delete interface of the database to be tested are called using the target parameter. Through the general interface, the operation type interface corresponding to the target parameter is identified, including: through the query interface and the delete interface, the query and delete type interface corresponding to the target parameter is identified.
操作类型接口包括查询并删除类型接口时,需要调用的通用接口为查询接口和删除接口,通过查询接口和删除接口,识别目标参数对应的查询并删除类型接口,以及调用查询并删除类型接口获取测试数据并返回。When the operation type interface includes the query and delete type interface, the common interfaces that need to be called are the query interface and the delete interface. Through the query interface and the delete interface, the query and delete type interface corresponding to the target parameter is identified, and the query and delete type interface is called to obtain the test data and return it.
根据需要,操作类型接口还可以包括其他接口,能够实现调用操作类型接口对应的通用接口,以及通过通用接口,调用操作类型接口获取测试数据并返回即可。As required, the operation type interface may further include other interfaces, which can be used to call the general interface corresponding to the operation type interface, and to call the operation type interface through the general interface to obtain test data and return it.
步骤204,通过测试用例实例对测试数据进行测试。Step 204: Test the test data through the test case instance.
一个具体实施例中,通过测试用例实例对测试数据进行测试之后,数据库接口测试方法还包括:获取测试结果;根据测试结果,生成测试报告。In a specific embodiment, after testing the test data through the test case instance, the database interface testing method further includes: obtaining the test result; and generating a test report according to the test result.
将测试报告通过可视化工具进行展示。The test report is displayed through a visualization tool.
一个具体实施例中,如图3所示,数据库接口测试的方法流程主要包括:In a specific embodiment, as shown in FIG3 , the method flow of database interface testing mainly includes:
步骤301,从通用测试用例集中,获取测试用例实例。Step 301, obtaining a test case instance from a general test case set.
步骤302,运行待测试数据库的测试用例实例。Step 302: Run the test case instance of the database to be tested.
步骤303,在运行的过程中,采用目标参数调用待测试数据库的通用接口。Step 303: During the running process, the general interface of the database to be tested is called using the target parameters.
步骤304,通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回。Step 304: Identify the operation type interface corresponding to the target parameter through the general interface, and call the operation type interface to obtain test data and return it.
步骤305,通过测试用例实例对测试数据进行测试。Step 305: Test the test data through the test case instance.
步骤306,获取测试结果。Step 306, obtaining test results.
步骤307,根据测试结果,生成测试报告。Step 307: Generate a test report based on the test results.
一个具体实施例中,如图4所示,数据库接口测试的方法流程主要包括:In a specific embodiment, as shown in FIG4 , the method flow of database interface testing mainly includes:
步骤401,按照测试框架通用接口的格式封装待测试数据库db1的接口,并将db1的数据库属性定义在db1的配置文件中,启动db1的时候提前定义的属性生效。Step 401 , encapsulate the interface of the database db1 to be tested according to the format of the general interface of the test framework, and define the database properties of db1 in the configuration file of db1 , so that the properties defined in advance take effect when starting db1 .
步骤402,测试框架中根据定义的通用的测试用例模版,生成db1的测试用例实例。Step 402: Generate a test case instance of db1 in the test framework according to the defined general test case template.
步骤403,执行测试用例实例,获取测试报告。Step 403: execute the test case instance and obtain a test report.
综上,本申请实施例提供的该方法,运行待测试数据库的测试用例实例,在运行的过程中,采用目标参数调用待测试数据库的通用接口,通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回,通过测试用例实例对测试数据进行测试。In summary, the method provided in the embodiment of the present application runs a test case instance of the database to be tested. During the running process, the general interface of the database to be tested is called using the target parameters. Through the general interface, the operation type interface corresponding to the target parameters is identified, and the operation type interface is called to obtain test data and return it, and the test data is tested through the test case instance.
相对于现有技术中,对不同数据库进行测试时,需要重新编写测试用例的情况,本申请中不需要重新编写测试用例,通过在运行待测试数据库的测试用例实例的过程中,调用待测试数据库的通用接口,通过通用接口执行后续操作,测试用例实例只需要根据通用接口进行编写,适用于不同数据库,能够实现同一个测试用例实例对不同数据库进行测试。不同数据库的通用接口是相同的,不同数据库的操作类型接口是不同的。不同数据库的具体操作,是通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回,实现通过通用接口调用操作类型接口,进而实现测试用例实例对具体的待测试数据库进行测试。实现了同一个测试用例实例对不同数据库进行测试,验证数据库的功能完备性,不需要编写大量的测试用例,极大地提高了测试效率,缩短数据库对象功能验证周期。Compared with the prior art, when testing different databases, it is necessary to rewrite the test cases. In this application, it is not necessary to rewrite the test cases. By calling the general interface of the database to be tested during the process of running the test case instance of the database to be tested, and performing subsequent operations through the general interface, the test case instance only needs to be written according to the general interface, which is applicable to different databases, and can implement the same test case instance to test different databases. The general interfaces of different databases are the same, and the operation type interfaces of different databases are different. The specific operations of different databases are to identify the operation type interface corresponding to the target parameter through the general interface, and to call the operation type interface to obtain test data and return it, so as to call the operation type interface through the general interface, and then implement the test case instance to test the specific database to be tested. It is realized that the same test case instance tests different databases to verify the functional completeness of the database, without the need to write a large number of test cases, which greatly improves the test efficiency and shortens the database object function verification cycle.
基于同一构思,本申请实施例中提供了一种数据库接口测试装置,该装置的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如图5所示,该装置主要包括:Based on the same concept, a database interface testing device is provided in the embodiment of the present application. The specific implementation of the device can refer to the description of the method embodiment part, and the repeated parts will not be repeated. As shown in FIG5, the device mainly includes:
运行模块501,用于运行待测试数据库的测试用例实例;Running module 501, used to run the test case instance of the database to be tested;
调用模块502,用于在运行的过程中,采用目标参数调用所述待测试数据库的通用接口;A calling module 502 is used to call the general interface of the database to be tested using target parameters during the running process;
识别模块503,用于通过所述通用接口,识别所述目标参数对应的操作类型接口,以及调用所述操作类型接口获取测试数据并返回;An identification module 503 is used to identify the operation type interface corresponding to the target parameter through the general interface, and call the operation type interface to obtain test data and return it;
处理模块504,用于通过所述测试用例实例对所述测试数据进行测试。The processing module 504 is used to test the test data through the test case instance.
可选地,所述数据库接口测试装置还包括封装模块;Optionally, the database interface testing device further includes a packaging module;
所述封装模块,用于按照所述通用接口的格式,封装所述操作类型接口。The encapsulation module is used to encapsulate the operation type interface according to the format of the general interface.
可选地,所述数据库接口测试装置还包括第一获取模块和生成模块;Optionally, the database interface testing device further includes a first acquisition module and a generation module;
所述第一获取模块,用于获取测试结果;The first acquisition module is used to obtain the test result;
所述生成模块,用于根据所述测试结果,生成测试报告。The generating module is used to generate a test report according to the test result.
可选地,所述操作类型接口包括查询并修改类型接口;Optionally, the operation type interface includes a query and modify type interface;
所述调用模块,具体用于在运行的过程中,采用目标参数调用所述待测试数据库的查询接口和修改接口;The calling module is specifically used to call the query interface and modification interface of the database to be tested using target parameters during the running process;
所述识别模块,具体用于通过所述查询接口和所述修改接口,识别所述目标参数对应的所述查询并修改类型接口,以及调用所述查询并修改类型接口获取测试数据并返回。The identification module is specifically used to identify the query and modification type interface corresponding to the target parameter through the query interface and the modification interface, and call the query and modification type interface to obtain test data and return it.
可选地,所述操作类型接口包括查询并删除类型接口;Optionally, the operation type interface includes a query and delete type interface;
所述调用模块,具体用于在运行的过程中,采用目标参数调用所述待测试数据库的查询接口和删除接口;The calling module is specifically used to call the query interface and the deletion interface of the database to be tested using the target parameters during the running process;
所述识别模块,具体用于通过所述查询接口和所述删除接口,识别所述目标参数对应的所述查询并删除类型接口,以及调用所述查询并删除类型接口获取测试数据并返回。The identification module is specifically used to identify the query and delete type interface corresponding to the target parameter through the query interface and the delete interface, and call the query and delete type interface to obtain test data and return it.
可选地,所述数据库接口测试装置还包括配置模块;Optionally, the database interface testing device further includes a configuration module;
所述配置模块,用于配置所述通用接口,其中,所述通用接口包括增加接口、删除接口、修改接口和查询接口中的至少一个。The configuration module is used to configure the general interface, wherein the general interface includes at least one of adding an interface, deleting an interface, modifying an interface, and querying an interface.
可选地,所述数据库接口测试装置还包括第二获取模块;Optionally, the database interface testing device further includes a second acquisition module;
所述第二获取模块,用于从通用测试用例集中,获取所述测试用例实例,其中,所述通用测试用例集包括数据库通用操作的测试用例、数据库场景化操作的测试用例和指定数据库的测试用例中的至少一个。The second acquisition module is used to acquire the test case instance from a general test case set, wherein the general test case set includes at least one of a test case for general database operations, a test case for scenario-based database operations, and a test case for a specified database.
基于同一构思,本申请实施例中还提供了一种电子设备,如图6所示,该电子设备主要包括:处理器601、存储器602和通信总线603,其中,处理器601和存储器602通过通信总线603完成相互间的通信。其中,存储器602中存储有可被处理器601执行的程序,处理器601执行存储器602中存储的程序,实现如下步骤:Based on the same concept, an electronic device is also provided in an embodiment of the present application, as shown in FIG6 , the electronic device mainly includes: a processor 601, a memory 602 and a communication bus 603, wherein the processor 601 and the memory 602 communicate with each other through the communication bus 603. The memory 602 stores a program executable by the processor 601, and the processor 601 executes the program stored in the memory 602 to implement the following steps:
运行待测试数据库的测试用例实例;在运行的过程中,采用目标参数调用待测试数据库的通用接口;通过通用接口,识别目标参数对应的操作类型接口,以及调用操作类型接口获取测试数据并返回;通过测试用例实例对测试数据进行测试。Run the test case instance of the database to be tested; during the running process, use the target parameters to call the general interface of the database to be tested; through the general interface, identify the operation type interface corresponding to the target parameters, and call the operation type interface to obtain test data and return it; test the test data through the test case instance.
上述电子设备中提到的通信总线603可以是外设部件互连标准(PeripheralComponent Interconnect,简称PCI)总线或扩展工业标准结构(Extended IndustryStandard Architecture,简称EISA)总线等。该通信总线603可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 603 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 603 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in FIG6 , but it does not mean that there is only one bus or one type of bus.
存储器602可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器601的存储装置。The memory 602 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor 601.
上述的处理器601可以是通用处理器,包括中央处理器(Central ProcessingUnit,简称CPU)、网络处理器(Network Processor,简称NP)等,还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
在本申请的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,使得计算机执行上述实施例中所描述的数据库接口测试方法。In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program runs on a computer, the computer executes the database interface testing method described in the above embodiment.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另外一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带等)、光介质(例如DVD)或者半导体介质(例如固态硬盘)等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state hard disk), etc.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111480491.0A CN114385483B (en) | 2021-12-06 | 2021-12-06 | Database interface testing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111480491.0A CN114385483B (en) | 2021-12-06 | 2021-12-06 | Database interface testing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114385483A CN114385483A (en) | 2022-04-22 |
CN114385483B true CN114385483B (en) | 2024-10-29 |
Family
ID=81195770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111480491.0A Active CN114385483B (en) | 2021-12-06 | 2021-12-06 | Database interface testing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114385483B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115061926A (en) * | 2022-06-27 | 2022-09-16 | 平安壹钱包电子商务有限公司 | Method, device and equipment for testing different database types in system docking |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058995A (en) * | 2019-03-05 | 2019-07-26 | 王长磊 | A kind of the data library test method and system of the interference of avoidable type of database |
CN113094281A (en) * | 2021-04-28 | 2021-07-09 | 杭州网易云音乐科技有限公司 | Hybrid App testing method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8386419B2 (en) * | 2011-05-12 | 2013-02-26 | Narendar Yalamanchilli | Data extraction and testing method and system |
CN113641590A (en) * | 2021-09-03 | 2021-11-12 | 中国银行股份有限公司 | Method and device for generating test case of PLSQL program and electronic equipment |
-
2021
- 2021-12-06 CN CN202111480491.0A patent/CN114385483B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058995A (en) * | 2019-03-05 | 2019-07-26 | 王长磊 | A kind of the data library test method and system of the interference of avoidable type of database |
CN113094281A (en) * | 2021-04-28 | 2021-07-09 | 杭州网易云音乐科技有限公司 | Hybrid App testing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114385483A (en) | 2022-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614324B (en) | A test case generation method and device | |
CN108459962B (en) | Code normalization detection method and device, terminal equipment and storage medium | |
CN111061733B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
WO2019104891A1 (en) | Method and device for importing and exporting report, storage medium, and terminal | |
CN111026670B (en) | Test case generation method, test case generation device and storage medium | |
CN106844190A (en) | test script automatic generation method and device | |
CN110209585A (en) | A kind of software test case intelligent training method, terminal and storage medium | |
CN112306861A (en) | An interface automated testing system and method based on Unittest and Jenkins tools | |
CN109460367A (en) | Method based on the sustainable integrated automation performance test of Jmeter | |
WO2019214014A1 (en) | Online product management method and apparatus, terminal device, and storage medium | |
CN109633415B (en) | Abnormal chip identification method and equipment | |
CN114385483B (en) | Database interface testing method, device, equipment and storage medium | |
CN114448848B (en) | Switch testing method, device, electronic equipment and storage medium | |
CN112328481A (en) | Automatic testing method, device and equipment for multi-task scene and storage medium | |
CN114385488A (en) | Blockchain testing method, device, equipment and storage medium | |
CN118113623B (en) | Automatic interface testing method and device, storage medium and electronic equipment | |
CN117892665B (en) | Modeling simulation method, device, medium and equipment based on circuit system level model | |
CN112631920A (en) | Test method, test device, electronic equipment and readable storage medium | |
CN113127346B (en) | Automatic testing method for IP-PBX system and terminal equipment | |
CN113867778B (en) | Image file generation method and device, electronic equipment and storage medium | |
CN115309638A (en) | Method and device for assisting model optimization | |
CN110119351B (en) | A test case execution method and device | |
CN116401140A (en) | Data processing method, device, equipment, readable medium and software product | |
CN115758976B (en) | Method for comparing device differences in PDK, electronic equipment and computer readable medium | |
CN118917296B (en) | Report generation method, device and storage medium based on large language model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |