Distributed database test method, apparatus and device, and computer readable medium
A testing method and data testing technology, applied in the field of database testing, to achieve full automation and save labor costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] see figure 1 , which is a flow chart of the steps of the distributed database testing method according to the first embodiment of the present invention. The first embodiment provides a distributed database testing method, including the following steps:
[0064] S110: Formulate a data test model.
[0065] When developing a data test model, it is necessary to simplify the data test model. Because for the record with the same ID, if an SQL operation is performed, the record has 4 possible changes (addition, deletion, modification and query), then if N SQL operations are performed, the record has 4 possible changes to the Nth power, so that The huge permutation and combination cannot verify the correctness of the data. Since the sequence of SQL statements only affects the result of the data and does not affect the internal logic of the database, the data testing model can be simplified as follows: the data with the same ID can only perform an insert operation once, and t...
Embodiment 2
[0106] The difference from Embodiment 1 is that in the step of executing abnormality simulation in Embodiment 2, the abnormality simulation adopted further includes: link abnormality simulation and machine abnormality simulation. Among them, when the link abnormality simulation is used, iptables+tc can be used to simulate the abnormal state of the link. When a machine exception is used, the cpulimit+Linux command can be used to simulate.
[0107] The principle of the second embodiment is the same as that of the first embodiment, so it will not be repeated.
Embodiment 3
[0109] The third embodiment corresponds to the first embodiment, and provides a distributed database testing apparatus. see Figure 7 , which is a connection block diagram of the distributed database testing device of the third embodiment.
[0110] The third embodiment provides a distributed database testing device, including:
[0111] The test model formulation module 110 is used to formulate a data test model.
[0112] The data testing model is as follows: data with the same ID can only be inserted once, and the operations of query, modification and deletion occur after the addition operation.
[0113] The test data generating module 120 is used for generating test data.
[0114] The form of the test data is (id, k, c), the value of the id field is a positive integer, the k=id*n, where n is a constant; the field value of the c is the mth digit in the letters A-Z The corresponding value, where m=id%26, indicates that the value of id is divided by 26 and the remainder is t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com