A test method and test device
A test method and test case technology, applied in the database field, can solve the problems of authenticity and comprehensiveness of test results, difficult to deploy assemblies of third-party application services, inaccurate test results, etc., to improve coverage and practicability , reduce misjudgment and improve accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] refer to figure 1 , the present embodiment provides a test method, the test method is used to test the performance, function, etc. of the database to be tested, and the test method includes the following steps:
[0058] Step 10: Obtain the benchmark data and log files of the production database.
[0059] In this embodiment, the benchmark test data and log files of the production database are acquired first. Wherein, the benchmark test data file may be obtained from a copy or backup of the production database, or may be directly exported from the production database.
[0060] In actual application scenarios, when the production database is running, it will generate corresponding log files and store the log files on local or remote storage devices. Among them, the log file mainly records the operation behavior of the application program on the database, and through the log file, it can be learned what operations the application program has performed on the database and ...
Embodiment 2
[0168] Different from the above-mentioned embodiment 1, in order to further ensure the accuracy of the test case, in this embodiment, after the test case is created, it will periodically return to the production database for simulation testing, based on the simulation test results and expected test results Evaluate and determine whether the test case can truly simulate the user's operation behavior. If the difference between the simulated test result and the expected test result is small, it means that the test case can truly simulate the user's operation behavior, and the test case can be used to treat the test database Test; if the simulated test results differ greatly from the expected test results, it means that the test case cannot truly simulate the user's operation behavior and recreate the test case. Please refer to the specific steps of the test method of this embodiment Figure 4 .
[0169] Step 20: Obtain benchmark data and log files of the production database...
Embodiment 3
[0200] see Image 6 , Image 6 It is a schematic structural diagram of a test device provided by an embodiment of the present invention. The test device in this embodiment includes one or more processors 61 and memory 62 . in, Image 6 A processor 61 is taken as an example.
[0201] Processor 61 and memory 62 can be connected by bus or other means, Image 6 Take connection via bus as an example.
[0202] The memory 62, as a non-volatile computer-readable storage medium based on the test method, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the test method in Embodiment 1 and the corresponding program instructions. The processor 61 executes various functional applications and data processing of the test method by running the non-volatile software programs, instructions and modules stored in the memory 62, and realizes the functions of the test method of Embodiment 1 or Embodiment 2.
[0203]...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


