WO2021189348A1 - Database synchronization test method and apparatus, and computer device and storage medium - Google Patents

Database synchronization test method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2021189348A1
WO2021189348A1 PCT/CN2020/081367 CN2020081367W WO2021189348A1 WO 2021189348 A1 WO2021189348 A1 WO 2021189348A1 CN 2020081367 W CN2020081367 W CN 2020081367W WO 2021189348 A1 WO2021189348 A1 WO 2021189348A1
Authority
WO
WIPO (PCT)
Prior art keywords
test case
target
target test
unique identifier
data
Prior art date
Application number
PCT/CN2020/081367
Other languages
French (fr)
Chinese (zh)
Inventor
梁焕勋
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2020/081367 priority Critical patent/WO2021189348A1/en
Priority to CN202080097443.0A priority patent/CN115136120A/en
Publication of WO2021189348A1 publication Critical patent/WO2021189348A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Definitions

  • This application relates to the field of computer technology, in particular to a database synchronization test method, device, computer equipment and storage medium.
  • the database is an inaccessible tool in the field of computer equipment, and developers can test the database through test cases.
  • code designers can create various test cases in computer equipment, and run the created test cases in computer equipment.
  • different programming language environments such as Java language environment, Kotlin language environment, C++ language environment, etc.
  • developers can write test cases in different programming language environments and run them in computer equipment to test the database.
  • the embodiments of the present application provide a database synchronization test method, device, computer equipment, and storage medium, which can implement synchronization testing in a scenario of data synchronization between multiple databases, and improve the scalability of test cases in this scenario.
  • the technical solution is as follows:
  • an embodiment of the present application provides a database synchronization test method, the method is executed by a computer device, and the method includes:
  • the target test case According to the unique identifier of the target test case, call the target test case through a target interface, and the target interface provides the test logic of the target test case;
  • a synchronization test is performed on the data between the at least two databases.
  • an embodiment of the present application provides a database synchronization test device, the device is used in a computer device, and the device includes:
  • An identification acquisition module configured to acquire a unique identification of a target test case from a configuration file, the target test case being used to test whether the data between at least two databases is synchronized;
  • the calling module is used to call the target test case through a target interface according to the unique identifier of the target test case, and the target interface provides the test logic of the target test case;
  • the test module is configured to perform a synchronization test on the data between the at least two databases according to the target test result output after calling the target test case.
  • an embodiment of the present application also provides a computer device, the computer device includes a processor and a memory, the memory stores at least one instruction, at least one program, code set, or instruction set, the at least one The instructions, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the database synchronization test method as described above.
  • an embodiment of the present application also provides a computer-readable storage medium, and the storage medium stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, the at least one The program, the code set or the instruction set is loaded and executed by the processor to realize the database synchronization test method as described above.
  • the target test case By obtaining the unique identifier of the target test case used to test whether the data between at least two databases is synchronized, the target test case is called using the target interface that provides the test logic of the target test case, and the target test result is output, and the target is passed
  • the test result performs a synchronization test on the data between at least two databases.
  • the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
  • Fig. 1 is a schematic structural diagram of a database synchronization provided by an exemplary embodiment of the present application
  • FIG. 2 is a method flowchart of a database synchronization test method related to an exemplary embodiment of the present application
  • FIG. 3 is a method flowchart of a database synchronization test method related to an exemplary embodiment of the present application
  • FIG. 4 is a schematic diagram of an interface of a test case calling interface related to an exemplary embodiment of the present application
  • FIG. 5 is a schematic diagram of an interface of a test case calling interface related to an exemplary embodiment of the present application
  • Fig. 6 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
  • FIG. 7 is a flowchart of a method for performing a database synchronization test method performed by a computer device in FIG. 6 according to an exemplary embodiment of the present application;
  • FIG. 8 is a structural block diagram of a database synchronization test device provided by an exemplary embodiment of the present application.
  • Fig. 9 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
  • Test case refers to the source code created when testing a software product, which can include code such as test targets, test environment, input data, test steps, expected results, test scripts, etc.
  • a test case is a set of test inputs, execution conditions, and expected results prepared for a certain source code to be tested, which can be used to verify whether the function of the source code to be tested is normal.
  • FIG. 1 shows a schematic structural diagram of a database synchronization provided by an exemplary embodiment of the present application.
  • a computer device 100 and several databases 110 are included.
  • the aforementioned computer device 100 may be a terminal device installed with development tools and having test cases written, for example, the computer device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, and so on.
  • the above-mentioned computer device 100 also includes a test case writing interface 101, and a developer can write a test case for any one of several databases 110 in the test case writing interface 101, so as to realize the test case.
  • data between at least two databases needs to be synchronized.
  • the data in database one is synchronized with the data in database two.
  • the data in database two is generally fixed.
  • the data in database one is prone to increase or decrease.
  • database two The data in is also increased or decreased in the same way.
  • the computer device 100 and several databases 110 may be connected through a communication network, and the communication network may be a wireless network or a wired network.
  • the aforementioned wireless network or wired network uses standard communication technologies and/or protocols.
  • the network is usually the Internet, but it can also be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (MAN), mobile, wired or wireless networks , Private network or any combination of virtual private network.
  • technologies and/or formats including HyperText Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network.
  • SSL Secure Socket Layer
  • TLS Transport Layer Security
  • VPN Virtual Private Network
  • IPsec Internet Protocol Security
  • customized and/or dedicated data communication technologies can also be used to replace or supplement the aforementioned data communication technologies.
  • an embodiment of the present application provides a database synchronization test method, which can be applied to the above-mentioned FIG. 1
  • the test of data synchronization between multiple databases can be realized.
  • FIG. 2 shows a method flowchart of a database synchronization test method involved in an exemplary embodiment of the present application. The method can be applied to the scenario architecture shown in FIG. Computer equipment execution.
  • the database synchronization test method may include the following steps.
  • Step 201 Obtain a unique identifier of a target test case from a configuration file.
  • the target test case is used to test whether the data between at least two databases is synchronized.
  • the unique identifier of the target test case may be the name of the target test case.
  • the target test case can test whether the data between at least two databases is synchronized.
  • Step 202 According to the unique identifier of the target test case, call the target test case through the target interface, and the target interface provides the test logic of the target test case.
  • Step 203 Perform a synchronization test on the data between at least two databases according to the target test result output after calling the target test case.
  • the target test case is invoked using the target interface that provides the test logic of the target test case, and the target test is output As a result, a synchronization test is performed on the data between at least two databases through the target test result.
  • the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
  • this application can also maintain a target container, which can store various test cases written by developers, and this application can associate the unique identifier of the test case with the test case.
  • the unique identifier of the test case can be used to find the corresponding test case from the target container.
  • FIG. 3 shows a method flowchart of a database synchronization test method involved in an exemplary embodiment of the present application.
  • the method can be applied to the scenario architecture shown in FIG. Computer equipment execution.
  • the database synchronization test method may include the following steps.
  • Step 301 Register the target test case in the target container by way of annotation.
  • the target test case is used to test whether the data between at least two databases is synchronized.
  • the target container may be maintained inside the computer equipment, or may be maintained in other computer equipment or servers outside the computer equipment.
  • the computer equipment can register the target test case in the target container for centralized management through annotations.
  • the target container is a Spring IOC (Inversion of Control) container.
  • the target container may store test cases for detecting whether the data between database one and database two is synchronized, and may also store test cases for detecting whether the data between database three, database four, and database five are synchronized.
  • synchronization between at least two databases means that when data in any one of the at least two databases increases or decreases, the other databases increase or decrease the same data accordingly. For example, between two databases, when data in one database increases or decreases, the other database also increases or decreases the same data. Or, between the three databases, when the data of one database increases or decreases, the other two databases also increase or decrease the same data.
  • Step 302 Add the unique identifier of the target test case in the configuration file.
  • the computer device may write a configuration file, and add the unique identifier of the target test case to the configuration file.
  • the unique identifier of the target test case may be the name of the target test case.
  • the configuration file can be used to store the unique identification of each target test case.
  • the computer device registers a target test case in the target container, the computer device can add the name of the target test case to the configuration file.
  • the configuration file can also be maintained in the computer device itself or in the server.
  • Step 303 Obtain the unique identifier of the target test case from the configuration file.
  • the computer device may obtain the unique identifier of a certain target test case through the configuration file, and call the target test case through the unique identifier.
  • the computer device can provide a unique identification input box for the target test case.
  • the computer device receives the input unique identification of the target test case, and searches for the target from the configuration file according to the unique identification of the target test case.
  • the unique identifier of the test case Please refer to FIG. 4, which shows an interface diagram of a test case calling interface involved in an exemplary embodiment of the present application.
  • the interface 400 contains an identification input box 401, a confirmation control 402, and a cancellation control 403.
  • the user can enter the name of the target test case in the identification input box 401 and click the confirmation control 402, and the computer device can Find the name of the target test case that is the same as the user input in the configuration file.
  • the computer device can provide a unique identification selection control corresponding to the above configuration file, and the computer device can receive the selection operation of the unique identification selection control, thereby obtaining the uniqueness of a certain target test case in the configuration file.
  • logo Please refer to FIG. 5, which shows an interface schematic diagram of a test case invoking interface related to an exemplary embodiment of the present application.
  • the interface 500 includes a logo selection control 501.
  • the logo selection control 501 can provide the names of all test cases included in the configuration file. The user can directly select a certain item in the configuration file through the logo selection control 501. The name of the test case.
  • Step 304 According to the unique identifier of the target test case, obtain the target test case corresponding to the unique identifier of the target test case from the target container.
  • the computer device may obtain the target test case corresponding to the unique identification from the target container through the unique identification of the target test case determined above.
  • Step 305 Obtain the initialization data and test logic of the target test case according to the unique identifier of the target test case.
  • the target interface in this application can define the synchronization test process of the database, and the initialization data and test logic of the target test case are provided through the target interface.
  • the computer device obtains the unique identifier of the target test case, it can obtain the initialization data and test logic of the target test case through the target interface.
  • the target interface provides the test case 1 with prepareData() method to initialize data and execute() method test logic.
  • the computer The device can obtain the initialization data of the prepareData() method and the test logic of the execute() method provided by the target interface.
  • Step 306 Invoke the target test case through the target interface according to the initialization data and the test logic.
  • the computer device can call the target test case according to the acquired initialization data and test logic to complete the operation of the target test case.
  • Step 307 Perform a synchronization test on the data between at least two databases according to the target test result output after calling the target test case.
  • the computer device detects whether the data between at least two databases corresponding to the target test case is synchronized according to the test result output after running the target test case.
  • the computer device can determine that the data between the at least two databases is synchronized in response to the output format of the target test result conforming to the first format. For example, when the computer device has synchronized the data between at least two databases, it can output the test results in a unified format after running the target test case. If the target test result output after calling the target test case is the same as the format, the computer device It can be determined that the data between at least two databases has been synchronized, and the data between at least two databases is consistent. Correspondingly, if the target test result output after calling the target test case is different from the above unified format, the computer device can determine that the data between at least two databases is inconsistent.
  • the target test case is invoked using the target interface that provides the test logic of the target test case, and the target test is output As a result, a synchronization test is performed on the data between at least two databases through the target test result.
  • the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
  • this application associates the test case with the test case through the name of the test case.
  • the corresponding test case is selected by the name of the test case, so as to test whether the data in at least two databases is consistent. This synchronous testing process improves the efficiency of testing whether the data between the two databases is consistent.
  • the above-mentioned target container and configuration file are both in a computer device.
  • FIG. 6 shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
  • the computer device includes a calling module 601, a test interface 602, a target container module 603, a configuration file module 604, and a test case module 605.
  • the calling module 601 can obtain the name of the target test case from the configuration file module 604, and call the target test case by the name of the target test case in the obtained configuration file.
  • the test interface 602 can provide test logic for different target test cases.
  • the computer device obtains the corresponding test logic by calling the name of the target test case in the module 601, and implements the call of the test case through the test interface.
  • the target container module 603 registers the test case module 605 with each target test in itself for centralized management, and provides corresponding test cases for the test interface 602.
  • the test case module 605 can register the target test case in the target container module 603.
  • FIG. 7 shows a flowchart of a method for a computer device to perform a database synchronization test method for a computer device in FIG. 6 according to an exemplary embodiment of the present application.
  • the computer device may include the following steps:
  • Step 701 Write a target test case in the computer device.
  • Step 702 The computer device adds the target test case to the configuration file.
  • Step 703 The computer device registers the target test case in the target container.
  • step 704 the computer device records the names of all target test cases.
  • the computer equipment records the names of all target test cases in the configuration file module.
  • Step 705 The computer device maintains all target test cases in the target container.
  • Step 706 The computer device discovers all target test cases through the configuration file.
  • the calling module in the computer device may search for the name of the same target test case from the configuration file module through the name of the target test case, and the configuration file module returns the name of the target test case to the calling module.
  • Step 707 The computer device obtains the target test case corresponding to the name of the target test case from the target container.
  • step 708 the computer device completes the test process of the target test case through the test interface.
  • step 305 reference may be made to the description of step 305 to step 307 in the foregoing embodiment, which will not be repeated here.
  • Fig. 8 is a structural block diagram of a database synchronization test device provided by an exemplary embodiment of the present application.
  • the database synchronization test device can be used in the computer device shown in FIG. 1 to perform all or part of the steps in the method shown in the corresponding embodiment of FIG. 2, FIG. 3, or FIG. 7.
  • the database synchronization test device may include the following modules:
  • the identification acquiring module 801 is configured to acquire a unique identification of a target test case from a configuration file, where the target test case is used to test whether the data between at least two databases is synchronized;
  • the calling module 802 is configured to call the target test case through a target interface according to the unique identifier of the target test case, and the target interface provides the test logic of the target test case;
  • the test module 803 is configured to perform a synchronization test on the data between the at least two databases according to the target test result output after calling the target test case.
  • the calling module 802 includes: a first acquiring unit, a second acquiring unit, and a calling unit;
  • the first obtaining unit is configured to obtain the target test case according to the unique identifier of the target test case
  • the second obtaining module is configured to obtain the initialization data and the test logic of the target test case according to the unique identifier of the target test case;
  • the calling unit is configured to call the target test case through the target interface according to the initialization data and the test logic.
  • the device further includes:
  • the registration module is used to register the target test case in the target container by way of annotation
  • Add module used to add the unique identifier of the target test case in the configuration file
  • the first obtaining unit is further configured to obtain the target test case corresponding to the unique identifier of the target test case from the target container according to the unique identifier of the target test case.
  • the identification acquiring module 801 includes: a receiving unit and a searching unit;
  • the receiving unit is configured to receive the input unique identifier of the target test case
  • the search unit is configured to search for the unique identification of the target test case from the configuration file according to the unique identification of the target test case.
  • test module 803 is further configured to determine that the data between the at least two databases is synchronized in response to the output format of the target test result conforming to the first format.
  • the remaining databases increase or decrease the same data accordingly.
  • the target test case is invoked using the target interface that provides the test logic of the target test case, and the target test is output As a result, a synchronization test is performed on the data between at least two databases through the target test result.
  • the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
  • the device provided in the above embodiment executes the above steps, only the division of the above functional modules is used as an example.
  • the above functions can be allocated by different functional modules as required, that is, the device The internal structure is divided into different functional modules to complete all or part of the functions described above.
  • the device provided in the foregoing embodiment and the method embodiment of the foregoing database synchronization test method belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be repeated here.
  • Fig. 9 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
  • the computer device 900 includes a central processing unit (CPU) 901, a system memory 904 including a random access memory (Random Access Memory, RAM) 902 and a read only memory (Read Only Memory, ROM) 903, and a connection The system memory 904 and the system bus 905 of the central processing unit 901.
  • the computer device 900 also includes a basic input/output system (Input/Output System, I/O system) 906 that helps to transfer information between various devices in the computer, and is used to store an operating system 912, application programs 913, and other programs.
  • the mass storage device 907 of the module 914 The mass storage device 907 of the module 914.
  • the basic input/output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse and a keyboard for the user to input information.
  • the display 908 and the input device 909 are both connected to the central processing unit 901 through the input and output controller 910 connected to the system bus 905.
  • the basic input/output system 906 may also include an input and output controller 910 for receiving and processing input from multiple other devices such as a keyboard, a mouse, or an electronic stylus.
  • the input and output controller 910 also provides output to a display screen, a printer, or other types of output devices.
  • the mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905.
  • the mass storage device 907 and its associated computer readable medium provide non-volatile storage for the computer device 900. That is, the mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
  • the computer-readable media may include computer storage media and communication media.
  • Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data.
  • Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid state Storage of its technology, CD-ROM, DVD (Digital Video Disc, high-density digital video disc) or other optical storage, tape cartridges, magnetic tape, disk storage or other magnetic storage devices.
  • RAM random access memory
  • ROM read only Memory
  • EPROM Erasable Programmable Read Only Memory
  • EEPROM Electrical Erasable Programmable Read-Only Memory
  • flash memory or other solid state Storage of its technology
  • CD-ROM DVD (Digital Video Disc, high-density digital video disc) or other optical storage, tape cartridges, magnetic tape, disk storage or other magnetic storage devices.
  • the computer device 900 may be connected to the Internet or other network devices through the network interface unit 911 connected to the system bus 905.
  • the memory further includes one or more programs, and the one or more programs are stored in the memory.
  • the central processing unit 901 executes the one or more programs to implement the methods provided in the foregoing embodiments of the present application. All or part of the steps performed by a computer device.
  • a computer-readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program
  • the code set or instruction set can be loaded and executed by a processor (also referred to as a central processing unit) of a computer device to complete all or part of the steps of the method shown in each embodiment of the present application.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A database synchronization test method and apparatus, and a computer device and a storage medium, relating to the technical field of computers. The method comprises: obtaining a unique identifier of a target test case from a configuration file, the target test case being used for testing whether data between at least two databases is synchronized (201); according to the unique identifier of the target test case, invoking the target test case by means of a target interface, the target interface providing test logic of the target test case (202); and according to the target test result outputted after invoking the target test case, performing a synchronization test on the data between the at least two databases (203). According to the method, in a scenario where data between at least two databases is synchronized, a synchronization test on the data between the at least two databases is achieved by means of a target test case and a target interface, avoiding the rewriting of each test case in the at least two databases, thereby improving the extensibility of each test case in this scenario.

Description

数据库同步测试方法、装置、计算机设备及存储介质Database synchronization test method, device, computer equipment and storage medium 技术领域Technical field
本申请涉及计算机技术领域,特别涉及一种数据库同步测试方法、装置、计算机设备及存储介质。This application relates to the field of computer technology, in particular to a database synchronization test method, device, computer equipment and storage medium.
背景技术Background technique
随着计算机技术领域的发展,数据库作为计算机设备领域中不可获取的工具,开发人员可以通过测试用例对数据库进行测试。With the development of the computer technology field, the database is an inaccessible tool in the field of computer equipment, and developers can test the database through test cases.
目前,代码设计人员可以在计算机设备中可以创建各种各样的测试用例,并在计算机设备中运行创建的测试用例。比如,计算机设备中可以运行有不同的编程语言环境,比如,Java语言环境、Kotlin语言环境、C++语言环境等等。当需要对某个数据库进行测试时,开发人员可以在不同的编程语言环境中编写测试用例,并在计算机设备中运行,从而对数据库进行测试。At present, code designers can create various test cases in computer equipment, and run the created test cases in computer equipment. For example, different programming language environments, such as Java language environment, Kotlin language environment, C++ language environment, etc., can be run in the computer equipment. When a database needs to be tested, developers can write test cases in different programming language environments and run them in computer equipment to test the database.
对于多个数据库之间数据同步的场景,如何采用测试用例对数据库进行同步测试,目前还没有完善的解决方案。For the scenario of data synchronization between multiple databases, how to use test cases to perform synchronization tests on the databases, there is currently no perfect solution.
发明内容Summary of the invention
本申请实施例提供了一种数据库同步测试方法、装置、计算机设备及存储介质,可以实现对多个数据库之间数据同步的场景中进行同步测试,提高测试用例在该场景下的扩展性。所述技术方案如下:The embodiments of the present application provide a database synchronization test method, device, computer equipment, and storage medium, which can implement synchronization testing in a scenario of data synchronization between multiple databases, and improve the scalability of test cases in this scenario. The technical solution is as follows:
一方面,本申请实施例提供了一种数据库同步测试方法,所述方法由计算机设备执行,所述方法包括:On the one hand, an embodiment of the present application provides a database synchronization test method, the method is executed by a computer device, and the method includes:
从配置文件中获取目标测试用例的唯一标识,所述目标测试用例用于测试至少两个数据库之间的数据是否同步;Obtaining the unique identifier of the target test case from the configuration file, where the target test case is used to test whether the data between at least two databases is synchronized;
根据所述目标测试用例的唯一标识,通过目标接口调用所述目标测试用例,所述目标接口提供有所述目标测试用例的测试逻辑;According to the unique identifier of the target test case, call the target test case through a target interface, and the target interface provides the test logic of the target test case;
根据调用所述目标测试用例后输出的目标测试结果,对所述至少两个数据库之间的数据进行同步测试。According to the target test result output after invoking the target test case, a synchronization test is performed on the data between the at least two databases.
另一方面,本申请实施例提供了一种数据库同步测试装置,所述装置用于计算机设备中,所述装置包括:On the other hand, an embodiment of the present application provides a database synchronization test device, the device is used in a computer device, and the device includes:
标识获取模块,用于从配置文件中获取目标测试用例的唯一标识,所述目标测试用例用于测试至少两个数据库之间的数据是否同步;An identification acquisition module, configured to acquire a unique identification of a target test case from a configuration file, the target test case being used to test whether the data between at least two databases is synchronized;
调用模块,用于根据所述目标测试用例的唯一标识,通过目标接口调用所述目标测试用例,所述目标接口提供有所述目标测试用例的测试逻辑;The calling module is used to call the target test case through a target interface according to the unique identifier of the target test case, and the target interface provides the test logic of the target test case;
测试模块,用于根据调用所述目标测试用例后输出的目标测试结果,对所述至少两个数据库之间的数据进行同步测试。The test module is configured to perform a synchronization test on the data between the at least two databases according to the target test result output after calling the target test case.
又一方面,本申请实施例还提供了一种计算机设备,所述计算机设备包含处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如上所述的数据库同步测试方法。In another aspect, an embodiment of the present application also provides a computer device, the computer device includes a processor and a memory, the memory stores at least one instruction, at least one program, code set, or instruction set, the at least one The instructions, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the database synchronization test method as described above.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如上所述的数据库同步测试方法。In another aspect, an embodiment of the present application also provides a computer-readable storage medium, and the storage medium stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, the at least one The program, the code set or the instruction set is loaded and executed by the processor to realize the database synchronization test method as described above.
本申请实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought about by the technical solutions provided by the embodiments of the present application include at least:
通过获取用于测试至少两个数据库之间的数据是否同步的目标测试用例的唯一标识,利用提供有目标测试用例的测试逻辑的目标接口调用该目标测试用例,并输出目标测试结果,通过该目标测试结果对至少两个数据库之间的数据进行同步测试。本申请可以在至少两个数据库之间的数据进行同步的场景中,通过目标测试用例以及目标接口实现对至少两个数据库之间的数据进行同步测试,避免了对至少两个数据库中各测试用例的重新编写,从而提高了对各测试用例在该场景下的扩展性。By obtaining the unique identifier of the target test case used to test whether the data between at least two databases is synchronized, the target test case is called using the target interface that provides the test logic of the target test case, and the target test result is output, and the target is passed The test result performs a synchronization test on the data between at least two databases. In the scenario where the data between at least two databases is synchronized, the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请一示例性实施例提供的一种数据库同步的结构示意图;Fig. 1 is a schematic structural diagram of a database synchronization provided by an exemplary embodiment of the present application;
图2是本申请一示例性实施例涉及的一种数据库同步测试方法的方法流程图;FIG. 2 is a method flowchart of a database synchronization test method related to an exemplary embodiment of the present application;
图3是本申请一示例性实施例涉及的一种数据库同步测试方法的方法流程图;FIG. 3 is a method flowchart of a database synchronization test method related to an exemplary embodiment of the present application;
图4是本申请一示例性实施例涉及的一种测试用例调用界面的界面示意图;FIG. 4 is a schematic diagram of an interface of a test case calling interface related to an exemplary embodiment of the present application;
图5是本申请一示例性实施例涉及的一种测试用例调用界面的界面示意图;FIG. 5 is a schematic diagram of an interface of a test case calling interface related to an exemplary embodiment of the present application;
图6是本申请一示例性实施例提供的一种计算机设备的结构示意图;Fig. 6 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application;
图7是本申请一示例性实施例涉及图6的一种计算机设备执行数据库同步测试方法的方法流程图;FIG. 7 is a flowchart of a method for performing a database synchronization test method performed by a computer device in FIG. 6 according to an exemplary embodiment of the present application;
图8是本申请一示例性实施例提供的一种数据库同步测试装置的结构方框图;FIG. 8 is a structural block diagram of a database synchronization test device provided by an exemplary embodiment of the present application;
图9是本申请一示例性实施例提供的计算机设备的结构示意图。Fig. 9 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the application as detailed in the appended claims.
本申请提供的方案,可以用于在程序代码开发过程中多个数据库的数据进行同步调用测试用例的现实场景中。为了便于理解,下面首先对一些名词术语以及场景架构进行简单介绍。The solution provided in this application can be used in a real-world scenario in which data from multiple databases are synchronized to call test cases in the process of program code development. In order to facilitate understanding, the following first briefly introduces some terms and scenario architecture.
测试用例(Test Case):是指对某个软件产品进行测试时所建立的源代码,可以包含测试目标、测试环境、输入数据、测试步骤、预期结果、测试脚本等代码。或者说,测试用例是为某个待测源代码而编制的一组测试输入、执行条件以及预期结果,可以用于核实待测源代码的功能是否正常。Test case (Test Case): refers to the source code created when testing a software product, which can include code such as test targets, test environment, input data, test steps, expected results, test scripts, etc. In other words, a test case is a set of test inputs, execution conditions, and expected results prepared for a certain source code to be tested, which can be used to verify whether the function of the source code to be tested is normal.
请参考图1,其示出了本申请一示例性实施例提供的一种数据库同步的结构示意图。如图1所示,其中包含了计算机设备100,若干个数据库110。Please refer to FIG. 1, which shows a schematic structural diagram of a database synchronization provided by an exemplary embodiment of the present application. As shown in Fig. 1, a computer device 100 and several databases 110 are included.
可选的,上述计算机设备100可以是安装有开发工具并具有编写测试用例的终端设备,比如,该计算机设备可以是手机、平板电脑、笔记本电脑和台式计算机等等。Optionally, the aforementioned computer device 100 may be a terminal device installed with development tools and having test cases written, for example, the computer device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, and so on.
比如,上述计算机设备100中还包含有测试用例编写界面101,开发人员可以在测试用例编写界面101中对若干个数据库110中的任意一个数据库编写测试用例,从而测试用例的实现。For example, the above-mentioned computer device 100 also includes a test case writing interface 101, and a developer can write a test case for any one of several databases 110 in the test case writing interface 101, so as to realize the test case.
可选的,上述若干个数据库110中,包含有至少两个数据库之间的数据需要同步。比如,数据库一的数据与数据库二中的数据同步,其中,数据库二中的数据一般固定不变,数据库一的数据容易发生增加或者减少,在数据库一中的数据发生增加或者减少时,数据库二中的数据也做同样的增加或者减少。Optionally, in the foregoing several databases 110, data between at least two databases needs to be synchronized. For example, the data in database one is synchronized with the data in database two. The data in database two is generally fixed. The data in database one is prone to increase or decrease. When the data in database one increases or decreases, database two The data in is also increased or decreased in the same way.
可选地,计算机设备100与若干个数据库110之间可以通过通信网络连接,该通信网络可以是无线网络或者有线网络。Optionally, the computer device 100 and several databases 110 may be connected through a communication network, and the communication network may be a wireless network or a wired network.
可选的,上述的无线网络或者有线网络使用标准通信技术和/或协议。网络通常为因特网、但也可以是任何网络,包括但不限于局域网(Local AreaNetwork,LAN)、城域网(Metropolitan Area Network,MAN)、广域网(Wide Area Network,MAN)、移动、有线或者无线网络、专用网络或者虚拟专用网络的任何组合。在一些实施例中,使用包括超文本标记语言(Hyper Text Mark-up Language,HTML)、可扩展标记语言(Extensible Markup Language,XML)等的技术和/或格式来代表通过网络交换的数据。此外还可以使用诸如安全套接字层(Secure Socket Layer,SSL)、传输层安全(Transport Layer Security,TLS)、虚拟专用网络(Virtual Private Network,VPN)、网际协议安全(Internet Protocol Security,IPsec)等常规加密技术来加密所有或者一些链路。在另一些实施例中,还可以使用定制和/或专用数据通信技术取代或者补充上述数据通信技术。Optionally, the aforementioned wireless network or wired network uses standard communication technologies and/or protocols. The network is usually the Internet, but it can also be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (MAN), mobile, wired or wireless networks , Private network or any combination of virtual private network. In some embodiments, technologies and/or formats including HyperText Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, you can also use such things as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) Wait for conventional encryption technology to encrypt all or some links. In other embodiments, customized and/or dedicated data communication technologies can also be used to replace or supplement the aforementioned data communication technologies.
为了实现对多个数据库之间数据同步的场景中进行同步测试,提高测试用例在该场景下的扩展性,本申请实施例提供了一种数据库同步测试方法,可以应用于上述图1所示的场景架构中,从而实现对多个数据库之间数据同步的测试。请参考图2,其示出了本申请一示例性实施例涉及的一种数据库同步测试方法的方法流程图,该方法可以应用于上述图1所示的场景架构中,由该场景架 构中的计算机设备执行。如图2所示,该数据库同步测试方法可以包括如下几个步骤。In order to achieve synchronization testing in the scenario of data synchronization between multiple databases, and to improve the scalability of test cases in this scenario, an embodiment of the present application provides a database synchronization test method, which can be applied to the above-mentioned FIG. 1 In the scenario architecture, the test of data synchronization between multiple databases can be realized. Please refer to FIG. 2, which shows a method flowchart of a database synchronization test method involved in an exemplary embodiment of the present application. The method can be applied to the scenario architecture shown in FIG. Computer equipment execution. As shown in Figure 2, the database synchronization test method may include the following steps.
步骤201,从配置文件中获取目标测试用例的唯一标识,目标测试用例用于测试至少两个数据库之间的数据是否同步。Step 201: Obtain a unique identifier of a target test case from a configuration file. The target test case is used to test whether the data between at least two databases is synchronized.
其中,目标测试用例的唯一标识可以是目标测试用例的名称。该目标测试用例可以测试至少两个数据库之间的数据是否同步。Among them, the unique identifier of the target test case may be the name of the target test case. The target test case can test whether the data between at least two databases is synchronized.
步骤202,根据目标测试用例的唯一标识,通过目标接口调用目标测试用例,目标接口提供有目标测试用例的测试逻辑。Step 202: According to the unique identifier of the target test case, call the target test case through the target interface, and the target interface provides the test logic of the target test case.
步骤203,根据调用目标测试用例后输出的目标测试结果,对至少两个数据库之间的数据进行同步测试。Step 203: Perform a synchronization test on the data between at least two databases according to the target test result output after calling the target test case.
综上所述,通过获取用于测试至少两个数据库之间的数据是否同步的目标测试用例的唯一标识,利用提供有目标测试用例的测试逻辑的目标接口调用该目标测试用例,并输出目标测试结果,通过该目标测试结果对至少两个数据库之间的数据进行同步测试。本申请可以在至少两个数据库之间的数据进行同步的场景中,通过目标测试用例以及目标接口实现对至少两个数据库之间的数据进行同步测试,避免了对至少两个数据库中各测试用例的重新编写,从而提高了对各测试用例在该场景下的扩展性。In summary, by obtaining the unique identifier of the target test case used to test whether the data between at least two databases is synchronized, the target test case is invoked using the target interface that provides the test logic of the target test case, and the target test is output As a result, a synchronization test is performed on the data between at least two databases through the target test result. In the scenario where the data between at least two databases is synchronized, the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
在一种可能实现的方式中,本申请中还可以维护目标容器,该目标容器中可以存储有开发人员编写的各个测试用例,本申请可以将测试用例的唯一标识与该测试用例进行关联,当调用该测试用例时,通过该测试用例的唯一标识从目标容器中查找对应的测试用例即可。In a possible implementation manner, this application can also maintain a target container, which can store various test cases written by developers, and this application can associate the unique identifier of the test case with the test case. When When the test case is invoked, the unique identifier of the test case can be used to find the corresponding test case from the target container.
请参考图3,其示出了本申请一示例性实施例涉及的一种数据库同步测试方法的方法流程图,该方法可以应用于上述图1所示的场景架构中,由该场景架构中的计算机设备执行。如图3所示,该数据库同步测试方法可以包括如下几个步骤。Please refer to FIG. 3, which shows a method flowchart of a database synchronization test method involved in an exemplary embodiment of the present application. The method can be applied to the scenario architecture shown in FIG. Computer equipment execution. As shown in Figure 3, the database synchronization test method may include the following steps.
步骤301,通过注解的方式,将目标测试用例注册到目标容器中。Step 301: Register the target test case in the target container by way of annotation.
其中,目标测试用例用于测试至少两个数据库之间的数据是否同步。Among them, the target test case is used to test whether the data between at least two databases is synchronized.
可选的,目标容器可以维护在计算机设备内部,也可以维护在计算机设备外部的其他计算机设备或者服务器中。当计算机设备中编写出一个目标测试用例后,计算机设备可以通过注解的方式,把该目标测试用例注册到目标容器中 进行集中管理。例如,该目标容器是Spring IOC(Inversion of Control,控制反转)容器。该目标容器中可以存储有检测数据库一和数据库二之间的数据是否同步的测试用例,也可以存储有检测数据库三、数据库四、数据库五之间的数据是否同步的测试用例。Optionally, the target container may be maintained inside the computer equipment, or may be maintained in other computer equipment or servers outside the computer equipment. After a target test case is written in the computer equipment, the computer equipment can register the target test case in the target container for centralized management through annotations. For example, the target container is a Spring IOC (Inversion of Control) container. The target container may store test cases for detecting whether the data between database one and database two is synchronized, and may also store test cases for detecting whether the data between database three, database four, and database five are synchronized.
可选的,至少两个数据库之间的同步是指至少两个数据库中任意一个数据库的数据增加或者减少时,其余数据库相应的增加或者减少相同的数据。比如,在两个数据库之间,当一个数据库的数据发生增加或者减少时,另一个数据库也增加或者减少相同的数据。或者,在三个数据库之间,当一个数据库的数据发生增加或者减少时,另外两个数据库也增加或者减少相同的数据。Optionally, synchronization between at least two databases means that when data in any one of the at least two databases increases or decreases, the other databases increase or decrease the same data accordingly. For example, between two databases, when data in one database increases or decreases, the other database also increases or decreases the same data. Or, between the three databases, when the data of one database increases or decreases, the other two databases also increase or decrease the same data.
步骤302,在配置文件中增加目标测试用例的唯一标识。Step 302: Add the unique identifier of the target test case in the configuration file.
可选的,计算机设备在将目标测试用例注解到目标容器的过程中,可以编写配置文件,在配置文件中添加该目标测试用例的唯一标识。在一种可能实现的方式中,目标测试用例的唯一标识可以是目标测试用例的名称。在本申请中,配置文件可以用来存储各个目标测试用例的唯一标识,当计算机设备向目标容器中注册一个目标测试用例,计算机设备可以在配置文件中增加该目标测试用例的名称。可选的,该配置文件也可以维护在计算机设备自身,也可以维护在服务器中。Optionally, in the process of annotating the target test case to the target container, the computer device may write a configuration file, and add the unique identifier of the target test case to the configuration file. In a possible implementation manner, the unique identifier of the target test case may be the name of the target test case. In this application, the configuration file can be used to store the unique identification of each target test case. When the computer device registers a target test case in the target container, the computer device can add the name of the target test case to the configuration file. Optionally, the configuration file can also be maintained in the computer device itself or in the server.
步骤303,从配置文件中获取目标测试用例的唯一标识。Step 303: Obtain the unique identifier of the target test case from the configuration file.
可选的,对至少两个数据库之间的数据是否同步进行检测时,计算机设备可以通过配置文件获取某个目标测试用例的唯一标识,通过该唯一标识对该目标测试用例进行调用。Optionally, when detecting whether the data between at least two databases is synchronized, the computer device may obtain the unique identifier of a certain target test case through the configuration file, and call the target test case through the unique identifier.
在一种可能实现的方式中,计算机设备中可以提供有目标测试用例的唯一标识输入框,计算机设备接收输入的目标测试用例的唯一标识,根据目标测试用例的唯一标识,从配置文件中查找目标测试用例的唯一标识。请参考图4,其示出了本申请一示例性实施例涉及的一种测试用例调用界面的界面示意图。如图4所示,在界面400中包含了标识输入框401,确认控件402,取消控件403,用户可以在该标识输入框401中输入目标测试用例的名称,并点击确认控件402,计算机设备可以在配置文件中查找与用户输入内容相同的目标测试用例的名称。In a possible implementation, the computer device can provide a unique identification input box for the target test case. The computer device receives the input unique identification of the target test case, and searches for the target from the configuration file according to the unique identification of the target test case. The unique identifier of the test case. Please refer to FIG. 4, which shows an interface diagram of a test case calling interface involved in an exemplary embodiment of the present application. As shown in Figure 4, the interface 400 contains an identification input box 401, a confirmation control 402, and a cancellation control 403. The user can enter the name of the target test case in the identification input box 401 and click the confirmation control 402, and the computer device can Find the name of the target test case that is the same as the user input in the configuration file.
在一种可能实现的方式中,计算机设备可以对应上述配置文件提供有唯一标识选择控件,计算机设备可以接收对该唯一标识选择控件的选择操作,从而 获取到配置文件中某个目标测试用例的唯一标识。请参考图5,其示出了本申请一示例性实施例涉及的一种测试用例调用界面的界面示意图。如图5所示,在界面500中包含了标识选择控件501,该标识选择控件501可以提供有配置文件中包含的所有测试用例的名称,用户可以通过标识选择控件501直接选择配置文件中某个测试用例的名称。In a possible implementation manner, the computer device can provide a unique identification selection control corresponding to the above configuration file, and the computer device can receive the selection operation of the unique identification selection control, thereby obtaining the uniqueness of a certain target test case in the configuration file. Logo. Please refer to FIG. 5, which shows an interface schematic diagram of a test case invoking interface related to an exemplary embodiment of the present application. As shown in Figure 5, the interface 500 includes a logo selection control 501. The logo selection control 501 can provide the names of all test cases included in the configuration file. The user can directly select a certain item in the configuration file through the logo selection control 501. The name of the test case.
步骤304,根据目标测试用例的唯一标识,从目标容器中获取目标测试用例的唯一标识对应的目标测试用例。Step 304: According to the unique identifier of the target test case, obtain the target test case corresponding to the unique identifier of the target test case from the target container.
可选的,计算机设备可以通过上述确定的目标测试用例的唯一标识,从目标容器中获取与该唯一标识对应的目标测试用例。Optionally, the computer device may obtain the target test case corresponding to the unique identification from the target container through the unique identification of the target test case determined above.
步骤305,根据目标测试用例的唯一标识,获取目标测试用例的初始化数据和测试逻辑。Step 305: Obtain the initialization data and test logic of the target test case according to the unique identifier of the target test case.
可选的,本申请中目标接口可以对数据库的同步测试过程进行定义,通过目标接口提供有目标测试用例的初始化数据和测试逻辑。计算机设备获取到目标测试用例的唯一标识后,可以通过目标接口获取目标测试用例的初始化数据和测试逻辑。比如,对于目标测试用例1,目标接口对该测试用例1提供有prepareData()方法初始化数据和execute()方法的测试逻辑,当用户选择的目标测试用例的名称是目标测试用例1,那么,计算机设备可以获取到目标接口提供的prepareData()方法初始化数据和execute()方法的测试逻辑。Optionally, the target interface in this application can define the synchronization test process of the database, and the initialization data and test logic of the target test case are provided through the target interface. After the computer device obtains the unique identifier of the target test case, it can obtain the initialization data and test logic of the target test case through the target interface. For example, for target test case 1, the target interface provides the test case 1 with prepareData() method to initialize data and execute() method test logic. When the name of the target test case selected by the user is target test case 1, then the computer The device can obtain the initialization data of the prepareData() method and the test logic of the execute() method provided by the target interface.
步骤306,按照初始化数据和测试逻辑通过目标接口调用目标测试用例。Step 306: Invoke the target test case through the target interface according to the initialization data and the test logic.
计算机设备可以按照上述获取到的初始化数据和测试逻辑对目标测试用例进行调用,完成目标测试用例的运行。The computer device can call the target test case according to the acquired initialization data and test logic to complete the operation of the target test case.
步骤307,根据调用目标测试用例后输出的目标测试结果,对至少两个数据库之间的数据进行同步测试。Step 307: Perform a synchronization test on the data between at least two databases according to the target test result output after calling the target test case.
即,计算机设备根据运行目标测试用例后输出的测试结果,检测该目标测试用例对应的至少两个数据库之间的数据是否完成同步。That is, the computer device detects whether the data between at least two databases corresponding to the target test case is synchronized according to the test result output after running the target test case.
在一种可能实现的方式中,计算机设备可以响应于目标测试结果的输出格式符合第一格式,确定至少两个数据库之间的数据是同步的。比如,计算机设备对至少两个数据库之间的数据已经完成同步时,运行目标测试用例后可以按照统一的格式输出测试结果,如果调用目标测试用例后输出的目标测试结果与该格式相同,计算机设备可以确定至少两个数据库之间的数据已经完成同步,至少两个数据库之间的数据是一致的。相应的,如果调用目标测试用例后输出 的目标测试结果与上述统一的格式不同,则计算机设备可以确定至少两个数据库之间的数据不一致。In a possible implementation manner, the computer device can determine that the data between the at least two databases is synchronized in response to the output format of the target test result conforming to the first format. For example, when the computer device has synchronized the data between at least two databases, it can output the test results in a unified format after running the target test case. If the target test result output after calling the target test case is the same as the format, the computer device It can be determined that the data between at least two databases has been synchronized, and the data between at least two databases is consistent. Correspondingly, if the target test result output after calling the target test case is different from the above unified format, the computer device can determine that the data between at least two databases is inconsistent.
综上所述,通过获取用于测试至少两个数据库之间的数据是否同步的目标测试用例的唯一标识,利用提供有目标测试用例的测试逻辑的目标接口调用该目标测试用例,并输出目标测试结果,通过该目标测试结果对至少两个数据库之间的数据进行同步测试。本申请可以在至少两个数据库之间的数据进行同步的场景中,通过目标测试用例以及目标接口实现对至少两个数据库之间的数据进行同步测试,避免了对至少两个数据库中各测试用例的重新编写,从而提高了对各测试用例在该场景下的扩展性。In summary, by obtaining the unique identifier of the target test case used to test whether the data between at least two databases is synchronized, the target test case is invoked using the target interface that provides the test logic of the target test case, and the target test is output As a result, a synchronization test is performed on the data between at least two databases through the target test result. In the scenario where the data between at least two databases is synchronized, the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
另外,本申请通过测试用例的名称与测试用例进行关联,在需要调用测试用例时,通过该测试用例的名称选择对应的测试用例,从而对至少两个数据库中数据是否一致进行测试,规定了一种同步测试的流程,提高了测试两个数据库之间的数据是否一致的效率。In addition, this application associates the test case with the test case through the name of the test case. When the test case needs to be called, the corresponding test case is selected by the name of the test case, so as to test whether the data in at least two databases is consistent. This synchronous testing process improves the efficiency of testing whether the data between the two databases is consistent.
在一种可能实现的方式中,上述目标容器和配置文件均在计算机设备中,请参考图6,其示出了本申请一示例性实施例提供的一种计算机设备的结构示意图。如图6所示,其中在计算机设备中包含了调用模块601,测试接口602,目标容器模块603,配置文件模块604,测试用例模块605。In a possible implementation manner, the above-mentioned target container and configuration file are both in a computer device. Please refer to FIG. 6, which shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application. As shown in FIG. 6, the computer device includes a calling module 601, a test interface 602, a target container module 603, a configuration file module 604, and a test case module 605.
其中,调用模块601可以从配置文件模块604中获取目标测试用例的名称,通过获取的配置文件中目标测试用例的名称调用该目标测试用例。The calling module 601 can obtain the name of the target test case from the configuration file module 604, and call the target test case by the name of the target test case in the obtained configuration file.
测试接口602可以提供不同目标测试用例的测试逻辑,计算机设备通过调用模块601中目标测试用例的名称,获取对应的测试逻辑,并通过测试接口实现测试用例的调用。The test interface 602 can provide test logic for different target test cases. The computer device obtains the corresponding test logic by calling the name of the target test case in the module 601, and implements the call of the test case through the test interface.
目标容器模块603将测试用例模块605注册到自身中的各个目标测试进行集中管理,为测试接口602提供对应的测试用例。相应的,测试用例模块605可以向目标容器模块603中注册目标测试用例。The target container module 603 registers the test case module 605 with each target test in itself for centralized management, and provides corresponding test cases for the test interface 602. Correspondingly, the test case module 605 can register the target test case in the target container module 603.
请参考图7,其示出了本申请一示例性实施例涉及图6的一种计算机设备执行数据库同步测试方法的方法流程图。如图7所示,该计算机设备可以包括如下步骤:Please refer to FIG. 7, which shows a flowchart of a method for a computer device to perform a database synchronization test method for a computer device in FIG. 6 according to an exemplary embodiment of the present application. As shown in Figure 7, the computer device may include the following steps:
步骤701,计算机设备中编写目标测试用例。Step 701: Write a target test case in the computer device.
步骤702,计算机设备将目标测试用例添加至配置文件中。Step 702: The computer device adds the target test case to the configuration file.
步骤703,计算机设备将目标测试用例注册至目标容器中。Step 703: The computer device registers the target test case in the target container.
步骤704,计算机设备记录所有目标测试用例的名称。In step 704, the computer device records the names of all target test cases.
其中,计算机设备在配置文件模块中记录所有目标测试用例的名称。Among them, the computer equipment records the names of all target test cases in the configuration file module.
步骤705,计算机设备在目标容器中维护所有目标测试用例。Step 705: The computer device maintains all target test cases in the target container.
步骤706,计算机设备通过配置文件发现所有的目标测试用例。Step 706: The computer device discovers all target test cases through the configuration file.
可选的,计算机设备中的调用模块可以通过目标测试用例的名称从配置文件模块中查找相同的目标测试用例的名称,配置文件模块向调用模块返回该目标测试用例的名称。Optionally, the calling module in the computer device may search for the name of the same target test case from the configuration file module through the name of the target test case, and the configuration file module returns the name of the target test case to the calling module.
步骤707,计算机设备从目标容器中获取该目标测试用例的名称对应的目标测试用例。Step 707: The computer device obtains the target test case corresponding to the name of the target test case from the target container.
步骤708,计算机设备通过测试接口完成目标测试用例的测试过程。In step 708, the computer device completes the test process of the target test case through the test interface.
可选的,本步骤可以参考上述实施例中步骤305至步骤307的描述,此处不再赘述。Optionally, for this step, reference may be made to the description of step 305 to step 307 in the foregoing embodiment, which will not be repeated here.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of this application, which can be used to implement the method embodiments of this application. For details that are not disclosed in the device embodiments of this application, please refer to the method embodiments of this application.
图8是本申请一示例性实施例提供的一种数据库同步测试装置的结构方框图。该数据库同步测试装置可以用于图1所示的计算机设备中,以执行图2、图3或图7对应实施例所示的方法中的全部或者部分步骤。该数据库同步测试装置可以包括如下模块:Fig. 8 is a structural block diagram of a database synchronization test device provided by an exemplary embodiment of the present application. The database synchronization test device can be used in the computer device shown in FIG. 1 to perform all or part of the steps in the method shown in the corresponding embodiment of FIG. 2, FIG. 3, or FIG. 7. The database synchronization test device may include the following modules:
标识获取模块801,用于从配置文件中获取目标测试用例的唯一标识,所述目标测试用例用于测试至少两个数据库之间的数据是否同步;The identification acquiring module 801 is configured to acquire a unique identification of a target test case from a configuration file, where the target test case is used to test whether the data between at least two databases is synchronized;
调用模块802,用于根据所述目标测试用例的唯一标识,通过目标接口调用所述目标测试用例,所述目标接口提供有所述目标测试用例的测试逻辑;The calling module 802 is configured to call the target test case through a target interface according to the unique identifier of the target test case, and the target interface provides the test logic of the target test case;
测试模块803,用于根据调用所述目标测试用例后输出的目标测试结果,对所述至少两个数据库之间的数据进行同步测试。The test module 803 is configured to perform a synchronization test on the data between the at least two databases according to the target test result output after calling the target test case.
可选的,所述调用模块802,包括:第一获取单元,第二获取单元以及调用单元;Optionally, the calling module 802 includes: a first acquiring unit, a second acquiring unit, and a calling unit;
所述第一获取单元,用于根据所述目标测试用例的唯一标识,获取所述目标测试用例;The first obtaining unit is configured to obtain the target test case according to the unique identifier of the target test case;
所述第二获取模块,用于根据所述目标测试用例的唯一标识,获取所述目 标测试用例的初始化数据和所述测试逻辑;The second obtaining module is configured to obtain the initialization data and the test logic of the target test case according to the unique identifier of the target test case;
所述调用单元,用于按照所述初始化数据和所述测试逻辑通过所述目标接口调用所述目标测试用例。The calling unit is configured to call the target test case through the target interface according to the initialization data and the test logic.
可选的,所述装置还包括:Optionally, the device further includes:
注册模块,用于通过注解的方式,将所述目标测试用例注册到目标容器中;The registration module is used to register the target test case in the target container by way of annotation;
增加模块,用于在所述配置文件中增加所述目标测试用例的唯一标识;Add module, used to add the unique identifier of the target test case in the configuration file;
所述第一获取单元,还用于根据所述目标测试用例的唯一标识,从所述目标容器中获取所述目标测试用例的唯一标识对应的所述目标测试用例。The first obtaining unit is further configured to obtain the target test case corresponding to the unique identifier of the target test case from the target container according to the unique identifier of the target test case.
可选的,所述标识获取模块801,包括:接收单元和查找单元;Optionally, the identification acquiring module 801 includes: a receiving unit and a searching unit;
所述接收单元,用于接收输入的所述目标测试用例的唯一标识;The receiving unit is configured to receive the input unique identifier of the target test case;
所述查找单元,用于根据所述目标测试用例的唯一标识,从配置文件中查找所述目标测试用例的唯一标识。The search unit is configured to search for the unique identification of the target test case from the configuration file according to the unique identification of the target test case.
可选的,所述测试模块803,还用于响应于所述目标测试结果的输出格式符合第一格式,确定所述至少两个数据库之间的数据是同步的。Optionally, the test module 803 is further configured to determine that the data between the at least two databases is synchronized in response to the output format of the target test result conforming to the first format.
可选的,所述至少两个数据库中任意一个数据库的数据增加或者减少时,其余数据库相应的增加或者减少相同的数据。Optionally, when the data of any one of the at least two databases increases or decreases, the remaining databases increase or decrease the same data accordingly.
综上所述,通过获取用于测试至少两个数据库之间的数据是否同步的目标测试用例的唯一标识,利用提供有目标测试用例的测试逻辑的目标接口调用该目标测试用例,并输出目标测试结果,通过该目标测试结果对至少两个数据库之间的数据进行同步测试。本申请可以在至少两个数据库之间的数据进行同步的场景中,通过目标测试用例以及目标接口实现对至少两个数据库之间的数据进行同步测试,避免了对至少两个数据库中各测试用例的重新编写,从而提高了对各测试用例在该场景下的扩展性。In summary, by obtaining the unique identifier of the target test case used to test whether the data between at least two databases is synchronized, the target test case is invoked using the target interface that provides the test logic of the target test case, and the target test is output As a result, a synchronization test is performed on the data between at least two databases through the target test result. In the scenario where the data between at least two databases is synchronized, the application can realize the synchronization test of the data between at least two databases through the target test case and the target interface, which avoids the need for each test case in the at least two databases. The rewriting of, thus improving the scalability of each test case in this scenario.
需要说明的是:上述实施例提供的装置在执行上述步骤时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与上述数据库同步测试方法的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the device provided in the above embodiment executes the above steps, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated by different functional modules as required, that is, the device The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the foregoing embodiment and the method embodiment of the foregoing database synchronization test method belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be repeated here.
图9是本申请一示例性实施例提供的一种计算机设备的结构示意图。所述计算机设备900包括中央处理单元(Central Processing Unit,CPU)901、包括随机存取存储器(Random Access Memory,RAM)902和只读存储器(Read Only Memory,ROM)903的系统存储器904,以及连接系统存储器904和中央处理单元901的系统总线905。所述计算机设备900还包括帮助计算机内的各个器件之间传输信息的基本输入/输出系统(Input/Output System,I/O系统)906,和用于存储操作系统912、应用程序913和其他程序模块914的大容量存储设备907。Fig. 9 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application. The computer device 900 includes a central processing unit (CPU) 901, a system memory 904 including a random access memory (Random Access Memory, RAM) 902 and a read only memory (Read Only Memory, ROM) 903, and a connection The system memory 904 and the system bus 905 of the central processing unit 901. The computer device 900 also includes a basic input/output system (Input/Output System, I/O system) 906 that helps to transfer information between various devices in the computer, and is used to store an operating system 912, application programs 913, and other programs. The mass storage device 907 of the module 914.
所述基本输入/输出系统906包括有用于显示信息的显示器908和用于用户输入信息的诸如鼠标、键盘之类的输入设备909。其中所述显示器908和输入设备909都通过连接到系统总线905的输入输出控制器910连接到中央处理单元901。所述基本输入/输出系统906还可以包括输入输出控制器910以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器910还提供输出到显示屏、打印机或其他类型的输出设备。The basic input/output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse and a keyboard for the user to input information. The display 908 and the input device 909 are both connected to the central processing unit 901 through the input and output controller 910 connected to the system bus 905. The basic input/output system 906 may also include an input and output controller 910 for receiving and processing input from multiple other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input and output controller 910 also provides output to a display screen, a printer, or other types of output devices.
所述大容量存储设备907通过连接到系统总线905的大容量存储控制器(未示出)连接到中央处理单元901。所述大容量存储设备907及其相关联的计算机可读介质为计算机设备900提供非易失性存储。也就是说,所述大容量存储设备907可以包括诸如硬盘或者CD-ROM(Compact Disc Read-Only Memory,只读光盘)驱动器之类的计算机可读介质(未示出)。The mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer readable medium provide non-volatile storage for the computer device 900. That is, the mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
所述计算机可读介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括RAM、ROM、EPROM(Erasable Programmable Read Only Memory,可擦除可编程只读存储器)、EEPROM(Electrically Erasable Programmable Read-Only Memory,带电可擦可编程只读存储器)、闪存或其他固态存储其技术,CD-ROM、DVD(Digital Video Disc,高密度数字视频光盘)或其他光学存储、磁带盒、磁带、磁盘存储或其他磁性存储设备。当然,本领域技术人员可知所述计算机存储介质不局限于上述几种。上述的系统存储器904和大容量存储设备907可以统称为存储器。The computer-readable media may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid state Storage of its technology, CD-ROM, DVD (Digital Video Disc, high-density digital video disc) or other optical storage, tape cartridges, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art may know that the computer storage medium is not limited to the above-mentioned types. The aforementioned system memory 904 and mass storage device 907 may be collectively referred to as a memory.
计算机设备900可以通过连接在所述系统总线905上的网络接口单元911连接到互联网或者其它网络设备。The computer device 900 may be connected to the Internet or other network devices through the network interface unit 911 connected to the system bus 905.
所述存储器还包括一个或者一个以上的程序,所述一个或者一个以上程序 存储于存储器中,中央处理单元901通过执行该一个或一个以上程序来实现本申请上述各个实施例提供的方法中,由计算机设备执行的全部或者部分步骤。The memory further includes one or more programs, and the one or more programs are stored in the memory. The central processing unit 901 executes the one or more programs to implement the methods provided in the foregoing embodiments of the present application. All or part of the steps performed by a computer device.
在一个示例性实施例中,还提供了一种计算机可读存储介质,该存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集可由计算机设备的处理器(也称为中央处理单元)加载并执行,以完成本申请各个实施例所示的方法的全部或者部分步骤。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided, and the storage medium stores at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program The code set or instruction set can be loaded and executed by a processor (also referred to as a central processing unit) of a computer device to complete all or part of the steps of the method shown in each embodiment of the present application. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the present application. This application is intended to cover any variations, uses, or adaptive changes of this application. These variations, uses, or adaptive changes follow the general principles of this application and include common knowledge or customary technical means in the technical field that are not disclosed in this application. . The description and the embodiments are only regarded as exemplary, and the true scope and spirit of the application are pointed out by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the application is only limited by the appended claims.

Claims (10)

  1. 一种数据库同步测试方法,其特征在于,所述方法由计算机设备执行,所述方法包括:A database synchronization test method, characterized in that the method is executed by a computer device, and the method includes:
    从配置文件中获取目标测试用例的唯一标识,所述目标测试用例用于测试至少两个数据库之间的数据是否同步;Obtaining the unique identifier of the target test case from the configuration file, where the target test case is used to test whether the data between at least two databases is synchronized;
    根据所述目标测试用例的唯一标识,通过目标接口调用所述目标测试用例,所述目标接口提供有所述目标测试用例的测试逻辑;According to the unique identifier of the target test case, call the target test case through a target interface, and the target interface provides the test logic of the target test case;
    根据调用所述目标测试用例后输出的目标测试结果,对所述至少两个数据库之间的数据进行同步测试。According to the target test result output after invoking the target test case, a synchronization test is performed on the data between the at least two databases.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述目标测试用例的唯一标识,通过目标接口调用所述目标测试用例,包括:The method according to claim 1, wherein the invoking the target test case through a target interface according to the unique identifier of the target test case comprises:
    根据所述目标测试用例的唯一标识,获取所述目标测试用例;Obtaining the target test case according to the unique identifier of the target test case;
    根据所述目标测试用例的唯一标识,获取所述目标测试用例的初始化数据和所述测试逻辑;Acquiring the initialization data and the test logic of the target test case according to the unique identifier of the target test case;
    按照所述初始化数据和所述测试逻辑通过所述目标接口调用所述目标测试用例。Invoke the target test case through the target interface according to the initialization data and the test logic.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    通过注解的方式,将所述目标测试用例注册到目标容器中;Register the target test case in the target container by way of annotation;
    在所述配置文件中增加所述目标测试用例的唯一标识;Adding the unique identifier of the target test case to the configuration file;
    所述根据所述目标测试用例的唯一标识,获取所述目标测试用例,包括:The acquiring the target test case according to the unique identifier of the target test case includes:
    根据所述目标测试用例的唯一标识,从所述目标容器中获取所述目标测试用例的唯一标识对应的所述目标测试用例。According to the unique identifier of the target test case, the target test case corresponding to the unique identifier of the target test case is obtained from the target container.
  4. 根据权利要求1所述的方法,其特征在于,所述从配置文件中获取目标测试用例的唯一标识,包括:The method according to claim 1, wherein the obtaining the unique identifier of the target test case from the configuration file comprises:
    接收输入的所述目标测试用例的唯一标识;Receiving the input unique identifier of the target test case;
    根据所述目标测试用例的唯一标识,从配置文件中查找所述目标测试用例的唯一标识。According to the unique identifier of the target test case, the unique identifier of the target test case is searched from the configuration file.
  5. 根据权利要求1所述的方法,其特征在于,所述根据调用所述目标测试用例后输出的目标测试结果,对所述至少两个数据库之间的数据进行同步测试,包括:The method according to claim 1, wherein the performing a synchronization test on the data between the at least two databases according to the target test result output after invoking the target test case comprises:
    响应于所述目标测试结果的输出格式符合第一格式,确定所述至少两个数据库之间的数据是同步的。In response to the output format of the target test result conforming to the first format, it is determined that the data between the at least two databases is synchronized.
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述至少两个数据库中任意一个数据库的数据增加或者减少时,其余数据库相应的增加或者减少相同的数据。The method according to any one of claims 1 to 5, wherein when the data of any one of the at least two databases increases or decreases, the other databases increase or decrease the same data accordingly.
  7. 一种数据库同步测试装置,其特征在于,所述装置用于计算机设备中,所述装置包括:A database synchronization test device, characterized in that the device is used in computer equipment, and the device includes:
    标识获取模块,用于从配置文件中获取目标测试用例的唯一标识,所述目标测试用例用于测试至少两个数据库之间的数据是否同步;An identification acquisition module, configured to acquire a unique identification of a target test case from a configuration file, the target test case being used to test whether the data between at least two databases is synchronized;
    调用模块,用于根据所述目标测试用例的唯一标识,通过目标接口调用所述目标测试用例,所述目标接口提供有所述目标测试用例的测试逻辑;The calling module is used to call the target test case through a target interface according to the unique identifier of the target test case, and the target interface provides the test logic of the target test case;
    测试模块,用于根据调用所述目标测试用例后输出的目标测试结果,对所述至少两个数据库之间的数据进行同步测试。The test module is configured to perform a synchronization test on the data between the at least two databases according to the target test result output after calling the target test case.
  8. 根据权利要求7所述的装置,其特征在于,所述调用模块,包括:第一获取单元,第二获取单元以及调用单元;8. The device according to claim 7, wherein the calling module comprises: a first acquiring unit, a second acquiring unit, and a calling unit;
    所述第一获取单元,用于根据所述目标测试用例的唯一标识,获取所述目标测试用例;The first obtaining unit is configured to obtain the target test case according to the unique identifier of the target test case;
    所述第二获取模块,用于根据所述目标测试用例的唯一标识,获取所述目标测试用例的初始化数据和所述测试逻辑;The second acquisition module is configured to acquire the initialization data and the test logic of the target test case according to the unique identifier of the target test case;
    所述调用单元,用于按照所述初始化数据和所述测试逻辑通过所述目标接口调用所述目标测试用例。The calling unit is configured to call the target test case through the target interface according to the initialization data and the test logic.
  9. 一种计算机设备,其特征在于,所述计算机设备包含处理器和存储器, 所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至6任一所述的数据库同步测试方法。A computer device, wherein the computer device includes a processor and a memory, and the memory stores at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program The code set or instruction set is loaded and executed by the processor to realize the database synchronization test method according to any one of claims 1 to 6.
  10. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如权利要求1至6任一所述的数据库同步测试方法。A computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or The instruction set is loaded and executed by the processor to realize the database synchronization test method according to any one of claims 1 to 6.
PCT/CN2020/081367 2020-03-26 2020-03-26 Database synchronization test method and apparatus, and computer device and storage medium WO2021189348A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/081367 WO2021189348A1 (en) 2020-03-26 2020-03-26 Database synchronization test method and apparatus, and computer device and storage medium
CN202080097443.0A CN115136120A (en) 2020-03-26 2020-03-26 Database synchronization test method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/081367 WO2021189348A1 (en) 2020-03-26 2020-03-26 Database synchronization test method and apparatus, and computer device and storage medium

Publications (1)

Publication Number Publication Date
WO2021189348A1 true WO2021189348A1 (en) 2021-09-30

Family

ID=77890807

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/081367 WO2021189348A1 (en) 2020-03-26 2020-03-26 Database synchronization test method and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN115136120A (en)
WO (1) WO2021189348A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118427111A (en) * 2024-07-05 2024-08-02 江苏华库数据技术有限公司 RTSync file source and file target end data synchronization test method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110137859A1 (en) * 2009-12-08 2011-06-09 David Dickman Staged Data Conversion
CN106156278A (en) * 2016-06-24 2016-11-23 努比亚技术有限公司 A kind of database data reading/writing method and device
CN107402872A (en) * 2016-03-31 2017-11-28 阿里巴巴集团控股有限公司 A kind of method and apparatus for being used to determine database data synchronic delay
CN109189864A (en) * 2018-08-09 2019-01-11 联动优势电子商务有限公司 A kind of the determination method, apparatus and equipment of data synchronizing relay

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110137859A1 (en) * 2009-12-08 2011-06-09 David Dickman Staged Data Conversion
CN107402872A (en) * 2016-03-31 2017-11-28 阿里巴巴集团控股有限公司 A kind of method and apparatus for being used to determine database data synchronic delay
CN106156278A (en) * 2016-06-24 2016-11-23 努比亚技术有限公司 A kind of database data reading/writing method and device
CN109189864A (en) * 2018-08-09 2019-01-11 联动优势电子商务有限公司 A kind of the determination method, apparatus and equipment of data synchronizing relay

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHU YA-HUI: "Design And Implementation of Automated Functional Test Tool for Real-time Data Synchronization System", CHINESE MASTER'S THESES FULL-TEXT DATABASE, 1 May 2017 (2017-05-01), pages 1 - 44, XP055853365, ISSN: 1674-0246 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118427111A (en) * 2024-07-05 2024-08-02 江苏华库数据技术有限公司 RTSync file source and file target end data synchronization test method

Also Published As

Publication number Publication date
CN115136120A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
US11269660B2 (en) Methods and systems for integrated development environment editor support with a single code base
US10360141B2 (en) Automated application test system
US9021442B2 (en) Dynamic scenario testing of web application
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
US7761586B2 (en) Accessing and manipulating data in a data flow graph
US20080126390A1 (en) Efficient stress testing of a service oriented architecture based application
US8464242B2 (en) Virtualization of configuration settings
JPH06208519A (en) Communication interface generating system and method therof
US10474479B1 (en) Preventing framework conflicts for multi-OS applications
US10585678B2 (en) Insertion of custom activities in an orchestrated application suite
JP2023070148A (en) Systems and methods for dynamically binding robotic process automation (RPA) robots to resources
CN116893807A (en) System and method for designing a robotic flow automation robot using a browser
US20220337620A1 (en) System for collecting computer network entity information employing abstract models
WO2021189348A1 (en) Database synchronization test method and apparatus, and computer device and storage medium
JP2024505236A (en) Data set multiplexer for data processing systems
WO2015179071A1 (en) Tabular format transaction editor
JP5377522B2 (en) Efficiently correlate nominally incompatible types
US8490048B2 (en) Apparatus, system, and method for tool-based creation of a hub server/application interface
CN108255823B (en) Method and device for reading invoice information
JP2022153237A (en) security test system
US20170249176A1 (en) Systems and methods for configuration knowledge search
US9038049B2 (en) Automated discovery of resource definitions and relationships in a scripting environment
WO2024207845A1 (en) Debugging method, system and apparatus for low-code platform, and device and medium
US10120699B2 (en) Method for accessing multiple internal registers of a server
CN116048999A (en) Embedded software data access method, device, terminal and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20927369

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 160223)

122 Ep: pct application non-entry in european phase

Ref document number: 20927369

Country of ref document: EP

Kind code of ref document: A1