Distributed database testing method, apparatus, device and computer readable medium
A technology of data testing and testing methods, applied in the field of database testing, to achieve the effect of saving labor costs and realizing full automation
- 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 Embodiment 1 of the present invention. The first embodiment provides a distributed database testing method, including the following steps:
[0064] S110: Develop a data testing model.
[0065] When formulating the data test model, the data test model needs to be simplified. Because for a record with the same ID, if one SQL operation is performed, the record has 4 possible changes (addition, deletion, modification, query), then N SQL operations are performed, and the record has 4 to the Nth power of possible changes, so Huge permutations and combinations cannot verify the correctness of the data. Since the sequence sequence of the SQL statement 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 of the same ID can only perform an insert (insert) operation once, an...
Embodiment 2
[0106] The difference from Embodiment 1 is that: in the step of performing abnormality simulation in Embodiment 2, the abnormality simulation adopted also includes: link abnormality simulation and machine abnormality simulation. Among them, when link abnormality simulation is used, iptables+tc can be used to simulate link abnormal state. When machine exceptions are 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 device. see Figure 7 , which is a connection block diagram of the distributed database testing device in 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: the data of 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 configured to generate test data.
[0114] The form of the test data is (id, k, c), the field value of the id is a positive integer, the k=id*n, wherein n is a constant; the field value of the c is the mth bit in letters A-Z The corresponding value, where m=id%26, indicates that the value of id is divided by 26 and the remainder is taken.
[011...
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