Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2020-05-19
WUHAN DAMENG DATABASE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the test case is applicable to the database to be tested, the database to be tested is tested based on the test case, which improves the accuracy of the test and reduces the occurrence of misjudgments, thus solving the problem of difficult deployment of the application services required by the third party At the same time, if the program set of the application service does not match the database to be tested, it will cause inaccurate test results, which will lead to misjudgment of the performance and functions of the database to be tested, and the authenticity and comprehensiveness of the test results. flawed technical issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A test method and test device
  • A test method and test device
  • A test method and test device

Examples

Experimental program
Comparison scheme
Effect test

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]...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a test method and a test device. The test method comprises the following steps: obtaining benchmark test data and log files of a production database; Creating test cases from benchmark data and log files; Determining whether the test case is applicable to the database to be tested or not; If the test case is applicable to the database to be tested, the test case is used totest the database to be tested, and the test result is output. The test method is based on the log file of the production database to create test cases. Because the log file can truly reflect the actual use scenario of the application services, it improves the coverage and practicability of the test cases. Only when the test cases are applied to the databases to be tested can the test be carried out based on the test cases, which improves the accuracy of the test and reduces the occurrence of misjudgment.

Description

technical field [0001] The invention belongs to the technical field of databases, and more specifically relates to a testing method and a testing device. Background technique [0002] A database is an organized collection of data that provides data services for various computer applications, such as query, record, update, etc. With the development of information technology, various computer applications emerge in an endless stream. In order to ensure the stability of database performance, it is necessary to test the performance and functions of the database. [0003] In order to improve the accuracy of database system testing and ensure that the database meets the functional requirements and performance requirements of specific application scenarios, it has become a widely used testing method to simulate specific computer applications to test the database to be tested. At present, there are two traditional methods for testing database systems by simulating computer applicat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3684
Inventor 丁普升付铨冯源
Owner WUHAN DAMENG DATABASE