Concurrent testing method of database and related product
By setting breakpoints in the database and simulating concurrent modification scenarios, the problem of the inability to verify the consistency of concurrent modification of database data definition statements in the prior art is solved, and the reliability of database concurrent testing is improved.
Patent Information
- Application Number
- CN202411897414.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, the consistency between the statements involved in data definition in the database before and after concurrent modification, resulting in the inability to accurately discover the problems existing in the database when the object is modified concurrently.
By setting breakpoints at the data definition statement in the object to be tested, the execution flow is controlled, the concurrent modification scenario is simulated, and the eigenvalue consistency of the data definition statement is compared at the breakpoint.
It realizes the consistency verification of the characteristic value before and after concurrent modification of the data definition statement in the database, and improves the reliability of database concurrent testing.
Smart Images

Figure CN119902978A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of databases, and in particular to a concurrent testing method for a database and related products. Background Art
[0002] A database is a system that allows concurrent processing of transactions. It can not only concurrently operate on user data (such as query operations on data tables), but also concurrently operate on data definitions in the database. In a database, for example, in PLSQL (Procedural Language Structured Query Language), there are many data definition statements that can be used concurrently. For example, during the call of functions, stored procedures, packages and other objects, statements that define data such as variables, parameter types, and default values of objects can be modified concurrently, so that the correct data can be read when the object is accessed again.
[0003] Concurrency testing is a method used to determine whether the behavior of the test system is normal when running multiple different operations at the same time. Correspondingly, database concurrency testing simulates the performance of the database when multiple users access user data (such as table data) at the same time to verify whether the database behaves normally in a multi-user environment.
[0004] Since the database executes multiple statements and is concurrently random, the concurrency testing methods in the prior art cannot verify the consistency of concurrent reading and writing of statements involving data definitions in the database, and therefore cannot accurately detect problems that exist when objects in the database are concurrently modified. Summary of the invention
[0005] The purpose of the present invention is to provide a concurrent testing method and related products for a database, which are used to solve the problem that the concurrent testing method in the prior art cannot verify the consistency of statements involving data definitions in the database before and after concurrent modification, so as to achieve the purpose of improving the reliability of concurrent testing of the database.
[0006] In a first aspect, the present invention provides a concurrent testing method for a database, comprising:
[0007] Acquire a measured object, wherein a breakpoint is set at a data definition statement in the measured object;
[0008] Executing the object under test, and detecting whether the execution reaches a breakpoint of the object under test;
[0009] If yes, then recording the characteristic value of the data definition statement corresponding to the breakpoint, and concurrently modifying the data definition statement corresponding to the breakpoint;
[0010] The characteristic value of the data definition statement corresponding to the breakpoint is obtained again to verify the consistency of the characteristic value of the data definition statement corresponding to the breakpoint before and after the concurrent modification.
[0011] Furthermore, the step of obtaining the object to be measured includes:
[0012] Identifying data definition statements in the object under test;
[0013] A preset breakpoint function is used to set a breakpoint at a data definition statement in the object under test.
[0014] Furthermore, the step of identifying the data definition statements in the object under test includes:
[0015] The setting SQL statements, setting PLSQL statements, variable declaration statements, parameter reference statements, return value statements, data table column data acquisition statements, user-defined type element acquisition statements and type conversion statements in the object under test are used as the data definition statements.
[0016] Furthermore, the step of executing the measured object includes:
[0017] The object under test is executed step by step according to the breakpoints using a preset debugging tool.
[0018] Furthermore, before the step of obtaining the object to be measured, the method further includes:
[0019] A preset startup function is used to enable the global debugging function of the database.
[0020] Furthermore, the step of obtaining the object to be measured includes:
[0021] Constructing the object under test including data definition statements, wherein the data definition statements at least include statements including variables, parameter declaration statements or statements including default values.
[0022] Furthermore, after the step of verifying the consistency of the characteristic value of the data definition statement corresponding to the breakpoint before and after the concurrent modification, the method further includes:
[0023] A test report of the object under test is generated according to the consistency of the characteristic value of the data definition statement corresponding to the breakpoint before and after the concurrent modification.
[0024] In a second aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned concurrent testing methods for a database are implemented.
[0025] In a third aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for concurrent testing of a database.
[0026] In a fourth aspect, the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the concurrent testing method for a database as described in any one of the above items.
[0027] The technical solution provided by the present invention sets breakpoints at the data definition statements in the object under test, so as to control the execution flow of the object under test through the breakpoints, and accurately simulate the concurrent modification of the data definition statements in the object under test in different scenarios. In addition, the technical solution of the present invention also compares the consistency of the characteristic values of the data definition statements corresponding to the breakpoints before and after the concurrent modification at each breakpoint, thereby solving the problem in the prior art that the consistency of the statements involving data definition in the database before and after the concurrent modification cannot be verified, so as to achieve the purpose of improving the reliability of concurrent testing of the database.
[0028] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Hereinafter, some specific embodiments of the present invention will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:
[0030] Figure 1 is a schematic flow chart of a concurrent testing method for a database according to an embodiment of the present invention;
[0031] Figure 2 is a schematic flow chart of executing a tested object in a concurrent testing method according to an embodiment of the present invention;
[0032] Figure 3 is a schematic flow chart of setting breakpoints in a tested object in a concurrent testing method according to an embodiment of the present invention;
[0033] Figure 4 is a schematic flow chart of a concurrent testing method for a database according to another embodiment of the present invention;
[0034] Figure 5 is a schematic diagram of a computer program product according to an embodiment of the present invention;
[0035] Figure 6is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention; and
[0036] Figure 7 is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0037] Refer to the following Figures 1 to 7 To describe the concurrent testing method and related products of the database of the embodiment of the present invention. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. When a feature "includes or contains" one or some of the features it covers, unless otherwise specifically described, this indicates that other features are not excluded and other features may be further included.
[0038] See also Figure 1 , Figure 1 What is shown is a schematic flow chart of a concurrent update test method for an object in one embodiment of the present invention. The test method can perform concurrent testing on the object to be tested to verify the consistency of data definitions involved in the database during concurrent reading and writing.
[0039] like Figure 1 As shown, the concurrent testing method of the database of the present invention can generally include:
[0040] Step S102: obtaining a tested object, wherein a breakpoint is set at a data definition statement in the tested object;
[0041] Step S104: executing the object under test according to the breakpoints in the object under test to obtain a test result of the object under test.
[0042] In the above step S102, the type of the object under test obtained is related to the database. For example, for PLSQL, the object under test obtained is a PLSQL object. Since PLSQL has multiple statements executed and there is randomness in concurrent reading and writing, in order to verify whether the characteristic value of the data definition statement in the object under test changes before and after the concurrent modification, it is necessary to set a breakpoint at the data definition statement in the object under test, so as to control the execution flow of the object under test through the set breakpoint.
[0043] In this embodiment, at least one breakpoint is set in the object under test. In the above step S104, the method of the object under test is executed according to the breakpoint in the object under test. Figure 2 As shown, the following steps are included:
[0044] Step S112: Detect whether the execution reaches the breakpoint of the object under test;
[0045] If yes, execute step S114;
[0046] Step S114: recording the characteristic value of the data definition statement corresponding to the breakpoint, and concurrently modifying the data definition statement corresponding to the breakpoint;
[0047] Step S116: obtaining the characteristic value of the data definition statement corresponding to the breakpoint again;
[0048] Step S118: comparing the characteristic values of the data definition statement corresponding to the breakpoint before and after the concurrent modification to verify the consistency of the characteristic values of the data definition statement corresponding to the breakpoint before and after the concurrent modification.
[0049] In the above step S112, since there are multiple statements in the object under test, and each statement is executed in sequence according to a preset logical order, in this embodiment, after each statement is executed, it can be detected whether the next statement is a breakpoint statement; if so, it is determined that the breakpoint in the object under test has been reached.
[0050] In the above step S114, the type of the characteristic value can be determined according to the type of the data definition statement corresponding to the breakpoint, and then the characteristic value of the data definition statement corresponding to the breakpoint can be obtained by identifying the data definition statement corresponding to the breakpoint. For example, if the data definition statement corresponding to the breakpoint is a statement containing a variable, the value of the variable can be used as the characteristic value of the data definition statement corresponding to the breakpoint.
[0051] Testing the object under test can be considered to occur in one session; during the testing of the object under test, after reaching the breakpoint of the object under test, the execution of the object under test will be stopped and another session will be started to concurrently modify the feature value of the data definition statement corresponding to the breakpoint at the breakpoint. For example, if the data definition statement corresponding to the breakpoint is a statement with a variable, the variable will be modified concurrently.
[0052] In the above step S118, the characteristic value of the data definition statement corresponding to the breakpoint before the concurrent modification can be used as the prior characteristic value, that is, the characteristic value of the data definition statement corresponding to the breakpoint obtained in the above step S114 can be used as the prior characteristic value; the characteristic value of the data definition statement corresponding to the breakpoint after the concurrent modification can be used as the subsequent characteristic value, that is, the characteristic value of the data definition statement corresponding to the breakpoint obtained in the above step S116 can be used as the subsequent characteristic value.
[0053] If the subsequent feature value and the prior feature value of the data definition statement corresponding to the breakpoint are the same, it is determined that the feature value of the data definition statement corresponding to the breakpoint is consistent before and after the concurrent modification, that is, the feature value of the data definition statement corresponding to the breakpoint is not modified in the concurrent session; if the subsequent feature value and the prior feature value of the data definition statement corresponding to the breakpoint are different, it is determined that the feature value of the data definition statement corresponding to the breakpoint is inconsistent before and after the concurrent modification, that is, the feature value of the data definition statement corresponding to the breakpoint is modified in the concurrent session.
[0054] According to the above content, the technical solution of this embodiment sets a breakpoint at the data definition statement in the object under test, so as to control the execution flow of the object under test through the breakpoint, and accurately simulate the concurrent modification of the data definition statement in the object under test in different scenarios. In addition, the technical solution of this embodiment also compares the consistency of the characteristic values of the data definition statement corresponding to the breakpoint before and after the concurrent modification at each breakpoint, thereby solving the problem in the prior art that the consistency of the statements involving data definition in the database before and after the concurrent modification cannot be verified, so as to achieve the purpose of improving the reliability of concurrent testing of the database.
[0055] In some embodiments of the present invention, the method for obtaining the measured object in step S102 is as follows: Figure 3 As shown, the following steps are included:
[0056] Step S122: identifying data definition statements in the object under test;
[0057] Step S124: using a preset breakpoint function to set a breakpoint at a data definition statement in the object under test.
[0058] In the above step S122, a recognition rule for data definition statements may be preset, and then the data definition statements in the object under test may be recognized according to the recognition rule. For example, statements of a specified type in the object under test may be used as data definition statements.
[0059] In the above step S124, a breakpoint may be set at a data definition statement in the object under test according to a breakpoint function preset in the database, so that the object under test generates a concurrent operation when executing the data definition statement.
[0060] In this embodiment, the breakpoint function in the database may be a plsql_pldbg_set_breakpoint function, and the method of using the breakpoint function to set a breakpoint in the object under test is as follows:
[0061] plsql_pldbg_set_breakpoint(sessionID,OID,LineNumber);
[0062] Among them, sessionID is the debugger session handle, OID is the identifier of the object under test, and LineNumber is the line number of the code in the object under test where the breakpoint needs to be set. After setting a breakpoint in the object under test using the plsql_pldbg_set_breakpoint breakpoint function, during the execution of the object under test, the execution of the object under test is suspended after the breakpoint in the object under test is executed to concurrently modify the corresponding data definition statement.
[0063] The technical solution of this embodiment sets breakpoints at data definition statements in the object under test through breakpoint functions, thereby facilitating control of the execution flow of the object under test through breakpoints and improving the accuracy of concurrent database modifications to data definition statements in the object under test in simulating different scenarios.
[0064] In some embodiments of the present invention, the method of identifying the data definition statement in the object under test in step S122 includes:
[0065] The setting SQL statements, setting PLSQL statements, variable declaration statements, parameter reference statements, return value statements, data table column data acquisition statements, user-defined type element acquisition statements and type conversion statements in the object under test are regarded as data definition statements.
[0066] Among them, the set type SQL statements include SELECT statements, DML statements, etc. The set type PLSQL statements include IF statements, FOR statements, ASSIGN statements, and CALL statements.
[0067] Since SQL statements, PLSQL statements, variable declaration statements, parameter reference statements, return value statements, table column data acquisition statements, class element acquisition statements, and type conversion statements may be modified in concurrent sessions, these statements are treated as data definition statements to facilitate concurrent testing of these statements.
[0068] The technical solution of this embodiment sets screening conditions for data definition statements, so that data definition statements in the object under test can be accurately identified to improve the accuracy of setting breakpoints of the object under test, thereby improving the accuracy and reliability of concurrent testing of the object under test.
[0069] In some embodiments of the present invention, the method of executing the object under test according to the breakpoints in the object under test in the above step S104 includes:
[0070] Use the preset debugging tool to single-step the object under test according to the breakpoints.
[0071] For example, in this embodiment, plsqldebug can be used as a preset debugging tool, wherein single-step execution refers to a method of executing one program code instruction at a time in the debugger, which allows programmers to gradually track the execution process of the program and observe the changes in variables, the flow of the program and potential errors. For example, the program can be paused after executing to a breakpoint in the object under test, and the characteristic values of data definition statements such as variables of the object under test can be detected in the paused state.
[0072] In this embodiment, a debugging tool is used to execute the object under test step by step, so as to control the execution flow of the object under test through breakpoints, thereby improving the reliability of the test on the object under test.
[0073] In some embodiments of the present invention, before acquiring the object to be tested in the above step S102, it also includes: using a preset startup function to start the global debugging function of the database.
[0074] The global debugging function refers to the comprehensive testing, diagnosis and correction of the database in the database system through a series of tools, technologies and methods to ensure that the database runs correctly, efficiently and stably.
[0075] The activation of the database debugging function usually depends on the database management system used and the tools or integrated development environment it provides. Common methods for activating the debugging function of database systems include:
[0076] For the PostgreSQL database, its management tool pgAdmin and command line tool psql do not provide direct debugging functions themselves, so some plug-ins can be used to implement the global debugging function of the database. For example, the pldbgapi plug-in can be used to implement the global debugging function of the database.
[0077] The technical solution of this embodiment starts the global debugging function of the database to perform concurrent testing on the object under test, which can improve the accuracy and reliability of the testing of the object under test.
[0078] In some embodiments of the present invention, before the above step S102 of acquiring the object to be measured, a step of constructing the object to be measured is also included.
[0079] In this embodiment, the method for constructing the object under test includes: constructing the object under test including data definition statements, wherein the data definition statements at least include statements including variables, parameter declaration statements, and statements including default values.
[0080] This embodiment can first determine which data definition statements are in the object under test according to the type of the object under test, that is, which one or more of the statements containing variables, parameter declaration statements and statements containing default values are included; then create an object containing these data definition statements to construct the object under test.
[0081] The technical solution of this embodiment can set data definition statements such as statements containing variables, parameter declaration statements and statements containing default values in the object under test during the process of building the object under test, so that these data definition statements can be executed concurrently during the debugging process of the object under test.
[0082] In some embodiments of the present invention, after obtaining the test result of the object under test in the above step S104, the method further includes:
[0083] Generate a test report for the object under test based on the test results of the object under test.
[0084] In this embodiment, the execution time of the statement corresponding to each breakpoint in the tested object, the characteristic value of the definition statement corresponding to each breakpoint before and after concurrent modification, and the verification results of the concurrent reading and writing consistency of the data definition can be stored in the test report.
[0085] Through the technical solution of this embodiment, after the test results of the tested object are recorded in the test report, the user can query the test results of the tested object in the test report, so as to achieve the purpose of improving user experience.
[0086] In some embodiments of the present invention, the concurrent testing method of the database of the present invention is as follows: Figure 4 As shown, the following steps are included:
[0087] Step S202: constructing a tested object, the tested object including a data definition statement, the data definition statement including a statement containing a variable, a parameter declaration statement or a statement containing a default value;
[0088] Step S204: using a preset startup function to enable the global debugging function of the database, and calling the created object under test;
[0089] Step S206: using a preset breakpoint function to set a breakpoint at a data definition statement in the object to be tested;
[0090] Step S208: Use a preset debugging tool to start single-step execution of the object under test;
[0091] Step S210: Detect whether the execution reaches a breakpoint in the object under test;
[0092] If yes, execute step S212;
[0093] Step S212: Detect and record the characteristic value of the data definition statement corresponding to the breakpoint, and concurrently modify the data definition statement corresponding to the breakpoint;
[0094] Step S214: obtaining the characteristic value of the data definition statement corresponding to the breakpoint again;
[0095] Step S216: comparing the characteristic values of the data definition statement corresponding to the breakpoint before and after the concurrent modification to verify the consistency of the characteristic values of the data definition statement corresponding to the breakpoint before and after the concurrent modification;
[0096] Step S218: Determine whether there are any unexecuted statements in the object under test;
[0097] If yes, then return to step S210; if no, then execute step S220:
[0098] Step S220: Acquire the test results of each breakpoint in the tested object, and generate a test report of the tested object according to the test results.
[0099] In this embodiment, the process of debugging the object under test occurs in the first session session1, and the other session opened in the above step S212 is the second session session2, that is, the second session session2 is a concurrent operation of the first session session1, and the data definition statement corresponding to the executed breakpoint is modified concurrently in the second session session2.
[0100] The technical solution of this embodiment sets a breakpoint at the data definition statement in the object under test, so as to control the execution flow of the object under test through the breakpoint, and accurately simulate the concurrent modification of the data definition statement in the object under test in different scenarios. In addition, the technical solution of this embodiment also compares the consistency of the characteristic value of the data definition statement corresponding to the breakpoint before and after the concurrent modification at each breakpoint, thereby solving the problem in the prior art that the consistency of the statements involving data definition in the database before and after the concurrent modification cannot be verified, so as to achieve the purpose of improving the reliability of concurrent testing of the database.
[0101] The flow chart provided by the present embodiment is not intended to indicate that the operation of the method will be performed in any particular order, or that all operations of the method are included in all every case. In addition, the above method may include additional operations. Within the scope of the technical ideas provided by the present embodiment method, additional changes may be made to the above method.
[0102] It should be understood that in some embodiments, each part can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
[0103] This embodiment also provides a computer program product 10 , a computer readable storage medium 20 , and a computer device 30 . Figure 5 is a schematic diagram of a computer program product 10 according to an embodiment of the present invention, Figure 6 is a schematic diagram of a computer-readable storage medium 20 according to an embodiment of the present invention, Figure 7is a schematic diagram of a computer device 30 according to an embodiment of the present invention. The computer program product 10 includes a computer program 11, which implements the steps of any of the above-mentioned concurrent testing methods for databases when executed by a processor 32. The computer-readable storage medium 20 stores the above-mentioned computer program 11, which implements the steps of any of the above-mentioned concurrent testing methods for databases when executed by a processor 32. The computer device 30 may include a memory 31, a processor 32, and the computer program 11 stored in the memory 31 and running on the processor 32.
[0104] The computer program 11 for performing the operation of the present invention may be an assembly instruction, an instruction set architecture (ISA) instruction, a machine instruction, a machine-related instruction, a microcode, a firmware instruction, a state setting data, a configuration data of an integrated circuit, or a source code or an object code written in any combination of one or more programming languages and process programming languages. The computer program 11 may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider via the Internet). In some embodiments, in order to perform various aspects of the present invention, an electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) may execute computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit.
[0105] In the description of this embodiment, the computer program product 10 is a related product including the computer program 11 .
[0106] For the purpose of the description of the present embodiment, the computer readable storage medium 20 is a tangible device capable of retaining and storing the computer program 11, which can be any device that can contain, store, communicate, propagate or use the computer program 11 for an instruction execution system, device or apparatus or in conjunction with these instruction execution systems, devices or apparatuses. More specific examples (a non-exhaustive list) of the computer readable storage medium 20 include the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, and any suitable combination of the above.
[0107] The computer device 30 may be, for example, a server, a desktop computer, a notebook computer, a tablet computer, or a smart phone. In some examples, the computer device 30 may be a cloud computing node. The computer device 30 may be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, a program module may include routines, programs, target programs, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. The computer device 30 may be implemented in a distributed cloud computing environment where remote processing devices linked via a communication network perform tasks. In a distributed cloud computing environment, program modules may be located on a local or remote computing system storage medium including a storage device.
[0108] The computer device 30 may include a processor 32 adapted to execute stored instructions, and a memory 31 providing temporary storage space for the operation of the instructions during operation. The processor 32 may be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. The memory 31 may include a random access memory (RAM), a read-only memory, a flash memory, or any other suitable storage system.
[0109] The computer device 30 may also include a network adapter / interface and an input / output (I / O) interface. The I / O interface allows data to be input and output with external devices that may be connected to the computer device. The network adapter / interface may provide communication between the computer device and a network, which is typically shown as a communication network.
[0110] At this point, those skilled in the art should recognize that, although multiple exemplary embodiments of the present invention have been shown and described in detail herein, many other variations or modifications that conform to the principles of the present invention can still be directly determined or derived based on the content disclosed in the present invention without departing from the spirit and scope of the present invention. Therefore, the scope of the present invention should be understood and recognized as covering all these other variations or modifications.
Claims
1. A concurrent testing method for a database, characterized in that: include: Acquire a measured object, wherein a breakpoint is set at a data definition statement in the measured object; Executing the object under test, and detecting whether the execution reaches a breakpoint of the object under test; If yes, then recording the characteristic value of the data definition statement corresponding to the breakpoint, and concurrently modifying the data definition statement corresponding to the breakpoint; The characteristic value of the data definition statement corresponding to the breakpoint is obtained again to verify the consistency of the characteristic value of the data definition statement corresponding to the breakpoint before and after the concurrent modification.
2. The concurrent testing method for a database according to claim 1, characterized in that: The step of obtaining the object to be measured includes: Identifying data definition statements in the object under test; A preset breakpoint function is used to set a breakpoint at a data definition statement in the object under test.
3. The concurrent testing method for a database according to claim 2, characterized in that: The step of identifying the data definition statements in the object under test comprises: The setting SQL statements, setting PLSQL statements, variable declaration statements, parameter reference statements, return value statements, data table column data acquisition statements, user-defined type element acquisition statements and type conversion statements in the object under test are used as the data definition statements.
4. The concurrent testing method for a database according to claim 1, characterized in that: The step of executing the object under test includes: The object under test is executed step by step according to the breakpoints using a preset debugging tool.
5. The concurrent testing method for a database according to claim 1, characterized in that: Before the step of obtaining the object to be measured, the method further includes: A preset startup function is used to enable the global debugging function of the database.
6. The concurrent testing method for a database according to claim 1, characterized in that: The step of obtaining the measured object comprises: Constructing the object under test including data definition statements, wherein the data definition statements at least include statements including variables, parameter declaration statements or statements including default values.
7. The concurrent testing method for a database according to claim 1, characterized in that: After the step of verifying the consistency of the characteristic value of the data definition statement corresponding to the breakpoint before and after the concurrent modification, the method further includes: A test report of the object under test is generated according to the consistency of the characteristic value of the data definition statement corresponding to the breakpoint before and after the concurrent modification.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the concurrent testing method for a database described in any one of claims 1 to 7 are implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the concurrent testing method for a database according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the concurrent testing method for a database according to any one of claims 1 to 7.