Test data generation method and device
A technology for testing data and data categories, applied in the field of data processing, it can solve the problems of difficult data reuse, inability to achieve full preparation of test data, and difficulty in ensuring test adequacy, and achieve the effect of ensuring adequacy and comprehensiveness.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] see figure 1 A method for generating test data provided in Embodiment 1 of the present invention is characterized in that the method includes the following steps:
[0058] S11. Generate test data preparation rules according to data categories;
[0059]Among them, the test data preparation rules include data extraction rules, case data preparation rules, associated data acquisition rules and program data acquisition rules. Specifically, the corresponding data extraction rules obtained from the database of the system under test are extracted to obtain test data, which is also a commonly used data extraction rule in the prior art. In practical applications, the corresponding SQL (Structured Query Language) is recorded in the data extraction rules. Query Language) statement, that is, the test data can be obtained by calling the SQL statement to search the database of the system under test; the completion of data preparation by executing historical test cases corresponds to...
Embodiment 2
[0067] Referring to embodiment one of the present invention and figure 1 The specific process of steps S11 to S15 described in , firstly generate test data preparation rules according to the data category, wherein the test data preparation rules include data extraction rules, case data preparation rules, associated data acquisition rules and program data acquisition rules;
[0068] The generation process of the test data preparation rules may include:
[0069] Extract test data from the database of the system under test according to keywords in the data category, and generate data extraction rules;
[0070] Obtaining the execution cases completed by the historical test, recording the case numbers of the execution cases and the test data of the execution cases as a mapping relationship, and generating case data preparation rules;
[0071] According to the association information in the data category, associate the data category with the corresponding system data under test, an...
Embodiment 3
[0103] Corresponding to the test data generation methods disclosed in the first and second embodiments of the present invention, the third embodiment of the present invention also provides a test data generation device, see Figure 4 , the device consists of:
[0104] The rule generating module 1 is used to generate test data preparation rules according to data categories, wherein the test data preparation rules include data extraction rules, case data preparation rules, associated data acquisition rules and program data acquisition rules;
[0105] Data structure determination module 2, used to determine the data structure of the test data to be generated according to the test case;
[0106] A data category acquisition module 3, configured to acquire the data category corresponding to the data structure;
[0107] A rule determination module 4, configured to determine the test data preparation rule corresponding to the data category in the test data preparation rule;
[0108]...
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