CN112231226B - Method and system for generating, maintaining and exporting software test data - Google Patents

Method and system for generating, maintaining and exporting software test data Download PDF

Info

Publication number
CN112231226B
CN112231226B CN202011208889.4A CN202011208889A CN112231226B CN 112231226 B CN112231226 B CN 112231226B CN 202011208889 A CN202011208889 A CN 202011208889A CN 112231226 B CN112231226 B CN 112231226B
Authority
CN
China
Prior art keywords
data
data structure
export
service data
generation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011208889.4A
Other languages
Chinese (zh)
Other versions
CN112231226A (en
Inventor
潘林圣
于洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Enyike Beijing Data Technology Co ltd
Original Assignee
Enyike Beijing Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Enyike Beijing Data Technology Co ltd filed Critical Enyike Beijing Data Technology Co ltd
Priority to CN202011208889.4A priority Critical patent/CN112231226B/en
Publication of CN112231226A publication Critical patent/CN112231226A/en
Application granted granted Critical
Publication of CN112231226B publication Critical patent/CN112231226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application discloses a method and a system for generating, maintaining and exporting software test data, wherein the method comprises the following steps: maintaining a business data structure; selecting any business data structure to generate software test sample data corresponding to the business data structure; and exporting the sample data to a target storage terminal. Through the method and the device, various business data structures are conveniently and uniformly maintained, sample data can be rapidly generated and provided for research and development personnel or demonstration, communication cost is reduced, and accuracy of supply number and efficiency of development and debugging are improved.

Description

Method and system for generating, maintaining and exporting software test data
Technical Field
The invention belongs to the technical field of network data. More particularly, the present invention relates to a method and system for software test data generation, maintenance and export.
Background
With the continuous development of the internet, various business data maintained inside enterprises also have an exponential growth. In order to fully utilize a large amount of service data, enterprises invest resources to start digital transformation, attempt to mine hidden service rules and values in the data, and find new service growth points.
In this context, maintenance of data is a challenge for various staff in the software development process. Along with the increase of service data types, the update management of data is complicated, meanwhile, the description of the data structure of the bias technology is easy to deviate, and the searching of sample data is time-consuming. At present, research and development personnel usually ask for sample data from a product manager or construct debug sample data by themselves according to a data structure provided by a product, so that communication cost is high, and data accuracy is difficult to guarantee. According to the data structure and the test scene, the test data are stored in various different types of data terminals according to different requirements, and the test personnel perform the operations in a manual transmission mode, so that the overall working efficiency is low.
Currently, data generation and maintenance technologies include DataX, faker and alicloud DMS. However, the above technique still has the following problems:
1. DataX has very good use effect on the data synchronization scene among a plurality of different types of data sources, but the bottom implementation architecture of the submitted job is relatively complex for the data maintenance and sample export scenes. The DataX does not have the function of simple data structure maintenance and data generation, and cannot realize the data generation scene of what you see is what you get. The latest technology and related application in the field of software testing are relatively distributed in the whole network, so that testers are difficult to acquire related knowledge contents of a system;
2. faker has very good use effect on the scene of generating different types of data, but can only generate single field data and can only be used in an encoding mode, so that the method is not friendly to non-technical personnel. The Faker does not have a simple data structure maintenance function, and the scene of generating the data in what you see is what you get can't be realized;
3. the DMS has a very good use effect on the scene of generating database type data, but is complex in configuration and complicated in flow, manual auditing is needed, the smoothness of data use is affected, and the DMS does not support a file type terminal.
Disclosure of Invention
The embodiment of the application provides a method for generating, maintaining and exporting software test data, which is used for at least solving the problem of influence of subjective factors in the related technology.
The invention provides a method for generating, maintaining and exporting software testing data, which comprises the following steps:
maintenance: maintaining a business data structure;
a data generation step: selecting any business data structure to generate software test sample data corresponding to the business data structure;
a data export step: and exporting the sample data to a target storage terminal.
As a further improvement of the invention, the maintenance step comprises in particular the steps of:
creating a selection step: selecting whether to create the service data structure;
the creation step: if yes, creating the service data structure;
and (3) loading: if not, loading the saved business data structure in the system;
editing: editing the service data structure, and storing the edited service data structure in a warehouse.
As a further improvement of the invention, the creating step specifically comprises the steps of:
uploading and selecting: it is selected whether to upload the sample data file,
a first creation step: if yes, creating the service data structure according to the uploaded sample data file;
a second creation step: if not, the user can create the service data structure by manually inputting each field of the service data.
As a further improvement of the present invention, the data generation step specifically includes the steps of:
and a service data structure selection step: selecting any service data structure;
rule definition step: defining a generation rule of each data field in the service data structure;
the number defining step: defining the generation quantity of the sample data;
a data generation preview step: generating the sample data according to the generation rule and the generation quantity and previewing;
rule preservation: and storing the generation rule.
As a further improvement of the present invention, the rule definition step specifically includes the steps of:
and a loading selection step: selecting whether to load the generation rule;
loading: if yes, loading the generation rule stored in the system;
configuration: if not, the user can manually configure the generation rule of each data field.
As a further improvement of the present invention, the data deriving step specifically includes the steps of:
and a step of deriving connection: inputting and exporting configuration and connecting an export terminal;
a file generation step: the front end generates the sample data into a standardized file and submits an export task to the rear end;
analyzing: after the rear end receives the standardized file and the export configuration sent by the front end, selecting an export terminal to analyze the content of the standardized file according to the export configuration;
the step of export: and the content of the parsed standardized file is returned to the front end to complete the sample data export.
Based on the same inventive thought, the application also discloses a method for generating, maintaining and exporting the software testing data based on any one of the above inventions, discloses a system for generating, maintaining and exporting the software testing data,
the system for generating, maintaining and exporting the software testing data comprises:
the maintenance module is used for maintaining the business data structure;
the data generation module selects any service data structure and generates software test sample data corresponding to the service data structure;
and the data export module exports the sample data to a target storage terminal.
As a further improvement of the present invention, the maintenance module includes:
a creation selection unit that selects whether to create the service data structure;
the creating unit is used for creating the service data structure if the service data structure is the same as the service data structure;
a loading unit, if not, loading the saved business data structure in the system;
and the editing unit edits the service data structure and stores the edited service data structure in a warehouse.
As a further improvement of the present invention, the creation unit includes:
an upload selection unit that selects whether to upload the sample data file,
the first creating unit is used for creating the service data structure according to the uploaded sample data file if the service data structure is the same as the uploaded sample data file;
and the second creation unit is used for creating the service data structure by manually inputting each field of the service data if the user does not need to enter the service data structure.
As a further improvement of the present invention, the data generation module includes:
a service data structure selection unit for selecting any one of the service data structures;
a rule definition unit for defining the generation rule of each data field in the service data structure;
a number definition unit that defines the sample data generation number;
a data generation preview unit for generating and previewing the sample data according to the generation rule and the generation quantity;
and a rule preservation unit for preserving the generated rule.
Compared with the prior art, the invention has the following beneficial effects:
1. the method for generating, maintaining and exporting the software test data can quickly generate a service data structure in a visible and available mode, quickly generate test data samples through simple rule configuration, and support one-key export to various data storage terminals, so that each role in the whole software development process can conveniently maintain the service data;
2. the product manager can uniformly maintain the service data structure through the method provided by the application, and can quickly generate sample data to provide for research and development personnel;
3. the research personnel can quickly generate data through the method provided by the application and export the data to the target terminal for debugging, so that the efficiency of development and debugging is improved;
4. the tester can maintain the data structure and the data generation rule under various test scenes by the method provided by the application, and can quickly generate test data, one key is exported to various data terminals for subsequent test use, so that the efficiency of constructing test data in a test flow is improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flowchart of a method for generating, maintaining and exporting software testing data according to an embodiment of the present invention;
FIG. 2 is a system architecture diagram provided by an embodiment of the present application;
FIG. 3 is a flowchart illustrating the step S1 of FIG. 1;
fig. 4 is a schematic diagram of a service data structure maintenance flow provided in the present embodiment;
FIG. 5 is a flowchart illustrating the step S12 of FIG. 3;
FIG. 6 is a flowchart illustrating the step S2 of FIG. 1;
fig. 7 is a schematic flow chart of sample data generation provided in the present embodiment;
FIG. 8 is a flowchart illustrating the step S22 of FIG. 6;
FIG. 9 is a flowchart illustrating the step S3 of FIG. 1;
FIG. 10 is a schematic diagram of the front-end workflow provided by the present embodiment;
FIG. 11 is a back-end workflow diagram provided by the present embodiment;
FIG. 12 is a system architecture diagram for software test data generation, maintenance and export provided by an embodiment of the present invention;
fig. 13 is a frame diagram of a computer device according to an embodiment of the present invention.
In the above figures:
100. a maintenance module; 200. a data generation module; 300. a data export module; 101. creating a selection unit; 102. a creation unit; 103. a loading unit; 104. an editing unit; 1021. an upload selection unit; 1022. a first creation unit; 1023. a second creation unit; 201. a service data structure selection unit; 202. a rule definition unit; 203. a number definition unit; 204. a data generation preview unit; 205. a rule storage unit; 2021. a load selection unit; 2022. a loading unit; 2023. a configuration unit; 301. a lead-out connection unit; 302. a file generation unit; 303. an analysis unit; 304. a derivation unit; 80. a bus; 81. a processor; 82. a memory; 83. a communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein refers to two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The present invention will be described in detail below with reference to the embodiments shown in the drawings, but it should be understood that the embodiments are not limited to the present invention, and functional, method, or structural equivalents and alternatives according to the embodiments are within the scope of protection of the present invention by those skilled in the art.
Before explaining the various embodiments of the invention in detail, the core inventive concepts of the invention are summarized and described in detail by the following examples.
The invention can maintain the business data structure, generate and export the software test data, and effectively improve the working efficiency of constructing the test data.
Embodiment one:
referring to fig. 1 to 11, the present example discloses a specific embodiment of a method for generating, maintaining and exporting software test data (hereinafter referred to as "method").
Referring specifically to fig. 1 and 2, the method disclosed in this embodiment mainly includes the following steps:
and step S1, maintaining the service data structure.
In some of these embodiments, referring to fig. 3 and 4, step S1 specifically includes the following steps:
s11, selecting whether to create the service data structure;
s12, if yes, creating the service data structure;
s13, if not, loading the saved business data structure in the system;
s14, editing the service data structure, and storing the edited service data structure in a warehouse.
Specifically, referring to fig. 5, step S12 specifically includes the steps of:
s121, selecting whether to upload the sample data file,
s122, if yes, creating the service data structure according to the uploaded sample data file;
s123, if not, the user can create the service data structure by manually inputting each field of the service data.
Then, referring to fig. 6 and 7, step S2 is performed to select any one of the service data structures, and software test sample data corresponding to the service data structure is generated.
The step S2 specifically comprises the following steps:
s21, selecting any service data structure;
s22, defining a generation rule of each data field in the service data structure;
s23, defining the generation quantity of the sample data;
s24, generating the sample data according to the generation rule and the generation quantity and previewing;
s25, storing the generation rule.
Specifically, referring to fig. 8, step S22 specifically includes the steps of:
s221, selecting whether to load the generation rule;
s222, if yes, loading the stored generation rule in the system;
s223, if not, the user can manually configure the generation rule of each data field.
Specifically, in the present embodiment, the data field rules are used to define sample data generation logic for the current business data. The field generation rules supported by the system include, but are not limited to, the following: 1. customizing an input value; 2. random ID types (IDFA, IMEI, etc.); 3. a random string; 4. a random integer value; 5. random floating point numbers; 6. JSON; 7. a random time stamp; 8. custom enumerated values. Among them, JSON (JavaScript Object Notation, JS object profile) is a lightweight data exchange format. It stores and presents data in a text format that is completely independent of the programming language, based on a subset of ECMAScript (js specification formulated by the european computer institute). The compact and clear hierarchical structure makes JSON an ideal data exchange language. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency.
Specifically, in this embodiment, in step S25, there are three ways to save the generation rule, that is, the first way is that the generation rule does not need to be saved; the second is to save the generation rule; and thirdly, the generation rule is covered by the generation rule to be saved.
Then, step S3 is performed to derive the sample data to the target storage terminal as shown in fig. 9, 10, and 11.
Specifically, the step S3 includes the steps of:
s31, inputting export configuration and connecting an export terminal;
s32, the front end generates a standardized file from the sample data and submits an export task to the rear end;
s33, after the rear end receives the standardized file and the export configuration sent by the front end, selecting an export terminal to analyze the content of the standardized file according to the export configuration;
s34, the content of the parsed standardized file is returned to the front end to complete the sample data export.
Specifically, after the sample data is generated, the user can manually input various configurations of the export terminal, or load the already-stored export terminal to export the sample data. Before exporting the data, the system ensures that the data can be exported normally according to selecting one export terminal and checking the export terminal and the current sample data structure. The export terminals supported by the current system include, but are not limited to, the following: 1. a local file; 2. mysql; 3. redis; 4. ES; 5. HDFS; 6. SFTP; 7. postgres. Fig. 11 is a flowchart of the file analysis of each target terminal.
By the method for generating, maintaining and exporting the software test data, disclosed by the embodiment of the application, the service data structure can be quickly generated in a visible and obtained mode, the test data sample is quickly generated through simple rule configuration, and one-key export to various data storage terminals is supported, so that each role in the whole software development process can conveniently maintain the service data. The product manager can uniformly maintain the service data structure through the method provided by the application, and can quickly generate sample data to provide for research and development personnel. The research personnel can quickly generate data through the method provided by the application and export the data to the target terminal for debugging, so that the efficiency of development and debugging is improved. The tester can maintain the data structure and the data generation rule under various test scenes by the method provided by the application, and can quickly generate test data, one key is exported to various data terminals for subsequent test use, so that the efficiency of constructing test data in a test flow is improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Embodiment two:
in connection with the method for generating, maintaining and exporting software test data according to the first embodiment, the present embodiment discloses a specific implementation example of a system for generating, maintaining and exporting software test data (hereinafter referred to as "system").
Referring to fig. 12, the system includes:
a maintenance module 100 for maintaining the service data structure;
the data generating module 200 selects any one of the service data structures to generate software test sample data corresponding to the service data structures;
and the data export module 300 exports the sample data to a target storage terminal.
In some of these embodiments, the maintenance module 100 includes:
a creation selection unit 101 that selects whether to create the service data structure;
a creating unit 102, if yes, creating the service data structure;
a loading unit 103, if not, loading the business data structure stored in the system;
and the editing unit 104 edits the service data structure and stores the edited service data structure in a warehouse.
In some of these embodiments, the creation unit 102 includes:
an upload selection unit 1021 selects whether to upload the sample data file,
a first creating unit 1022, if yes, creating the service data structure according to the uploaded sample data file;
the second creating unit 1023 may create the service data structure by manually entering the fields of the service data if not.
In some of these embodiments, the data generation module 200 includes:
a service data structure selection unit 201 for selecting any one of the service data structures;
a rule definition unit 202, which defines the generation rule of each data field in the service data structure;
a number definition unit 203 that defines the sample data generation number;
a data generation preview unit 204 that generates and previews the sample data according to the generation rule and the generation number;
the rule storage unit 205 performs a storage process for the generated rule.
In some of these embodiments, rule definition unit 202 includes:
a load selection unit 2021 that selects whether to load the generation rule;
a loading unit 2022, if yes, loading the generation rule stored in the system;
the configuration unit 2023 may manually configure the generation rule of each data field if otherwise the user.
In some of these embodiments, the data export module 300 includes:
export connection section 301 for inputting export configuration and connecting export terminals;
a file generating unit 302, wherein the front end generates the sample data into a standardized file and submits an export task to the back end;
the parsing unit 303, after the back end receives the standardized file and the export configuration sent by the front end, selects an export terminal to parse the content of the standardized file according to the export configuration;
and the export unit 304 recalls the content of the parsed standardized file to the front end to complete the export of the sample data.
The system for generating, maintaining and exporting software test data disclosed in this embodiment and the technical solution of the rest of the same parts in the method for generating, maintaining and exporting software test data disclosed in the first embodiment are described in reference to the first embodiment, and are not repeated here.
Embodiment III:
referring to FIG. 13, this embodiment discloses a specific implementation of a computer device. The computer device may include a processor 81 and a memory 82 storing computer program instructions.
In particular, the processor 81 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 82 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 82 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, solid state Drive (Solid State Drive, SSD), flash memory, optical Disk, magneto-optical Disk, tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. The memory 82 may include removable or non-removable (or fixed) media, where appropriate. The memory 82 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 82 is a Non-Volatile (Non-Volatile) memory. In a particular embodiment, the Memory 82 includes Read-Only Memory (ROM) and random access Memory (Random Access Memory, RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, abbreviated PROM), an erasable PROM (Erasable Programmable Read-Only Memory, abbreviated EPROM), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, abbreviated EEPROM), an electrically rewritable ROM (Electrically Alterable Read-Only Memory, abbreviated EAROM), or a FLASH Memory (FLASH), or a combination of two or more of these. The RAM may be Static Random-Access Memory (SRAM) or dynamic Random-Access Memory (Dynamic Random Access Memory DRAM), where the DRAM may be a fast page mode dynamic Random-Access Memory (Fast Page Mode Dynamic Random Access Memory FPMDRAM), extended data output dynamic Random-Access Memory (Extended Date Out Dynamic Random Access Memory EDODRAM), synchronous dynamic Random-Access Memory (Synchronous Dynamic Random-Access Memory SDRAM), or the like, as appropriate.
Memory 82 may be used to store or cache various data files that need to be processed and/or communicated, as well as possible computer program instructions for execution by processor 81.
The processor 81 implements the method of software test data generation, maintenance and export of any of the above embodiments by reading and executing computer program instructions stored in the memory 82.
In some of these embodiments, the computer device may also include a communication interface 83 and a bus 80. As shown in fig. 13, the processor 81, the memory 82, and the communication interface 83 are connected to each other via the bus 80 and perform communication with each other.
The communication interface 83 is used to implement communications between various modules, devices, units, and/or units in embodiments of the present application. Communication port 83 may also enable communication with other components such as: and the external equipment, the image/data acquisition equipment, the database, the external storage, the image/data processing workstation and the like are used for data communication.
Bus 80 includes hardware, software, or both, coupling components of the computer device to each other. Bus 80 includes, but is not limited to, at least one of: data Bus (Data Bus), address Bus (Address Bus), control Bus (Control Bus), expansion Bus (Expansion Bus), local Bus (Local Bus). By way of example, and not limitation, bus 80 may include a graphics acceleration interface (Accelerated Graphics Port), abbreviated AGP, or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, a wireless bandwidth (InfiniBand) interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (Micro Channel Architecture, abbreviated MCa) Bus, a peripheral component interconnect (Peripheral Component Interconnect, abbreviated PCI) Bus, a PCI-Express (PCI-X) Bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, abbreviated SATA) Bus, a video electronics standards association local (Video Electronics Standards Association Local Bus, abbreviated VLB) Bus, or other suitable Bus, or a combination of two or more of the foregoing. Bus 80 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
The computer device may generate software test data based on the web page and derive the data to implement the method described in connection with fig. 1.
In addition, in combination with the software test data generating, maintaining and exporting methods in the above embodiments, embodiments of the present application may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the software test data generation, maintenance and export methods of the above embodiments.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
In summary, the method for generating, maintaining and exporting software test data has the advantages that the service data structure can be quickly generated in a visible and available mode, test data samples can be quickly generated through simple rule configuration, and one-key export to various data storage terminals is supported, so that each role in the whole software development process can conveniently maintain service data. The product manager can uniformly maintain the service data structure through the method provided by the application, and can quickly generate sample data to provide for research and development personnel. The research personnel can quickly generate data through the method provided by the application and export the data to the target terminal for debugging, so that the efficiency of development and debugging is improved. The tester can maintain the data structure and the data generation rule under various test scenes by the method provided by the application, and can quickly generate test data, one key is exported to various data terminals for subsequent test use, so that the efficiency of constructing test data in a test flow is improved.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (5)

1. A method for generating, maintaining and exporting software testing data, comprising the steps of:
maintenance: maintaining a business data structure;
a data generation step: selecting any business data structure to generate software test sample data corresponding to the business data structure;
a data export step: exporting the sample data to a target storage terminal;
wherein, the maintenance step specifically comprises the following steps:
creating a selection step: selecting whether to create the service data structure;
the creation step: if yes, creating the service data structure;
and (3) loading: if not, loading the saved business data structure in the system;
editing: editing the service data structure, and storing the edited service data structure in a warehouse;
the data generation step specifically comprises the following steps:
and a service data structure selection step: selecting any service data structure;
rule definition step: defining a generation rule of each data field in the service data structure;
the number defining step: defining the generation quantity of the sample data;
a data generation preview step: generating the sample data according to the generation rule and the generation quantity and previewing;
rule preservation: storing the generation rule;
the data export step specifically comprises the following steps:
and a step of deriving connection: inputting and exporting configuration and connecting an export terminal;
a file generation step: the front end generates the sample data into a standardized file and submits an export task to the rear end;
analyzing: after the rear end receives the standardized file and the export configuration sent by the front end, selecting an export terminal to analyze the content of the standardized file according to the export configuration;
the step of export: and the content of the parsed standardized file is returned to the front end to complete the sample data export.
2. The method for generating, maintaining and exporting software testing data according to claim 1, wherein the creating step comprises the steps of:
uploading and selecting: it is selected whether to upload the sample data file,
a first creation step: if yes, creating the service data structure according to the uploaded sample data file;
a second creation step: if not, the user can create the service data structure by manually inputting each field of the service data.
3. The method for generating, maintaining and exporting software testing data according to claim 1, wherein the rule defining step comprises the steps of:
and a loading selection step: selecting whether to load the generation rule;
loading: if yes, loading the generation rule stored in the system;
configuration: if not, the user can manually configure the generation rule of each data field.
4. A system for generating, maintaining and exporting software testing data, which runs the method for generating, maintaining and exporting software testing data according to any one of claims 1 to 3,
the system for generating, maintaining and exporting the software testing data comprises:
the maintenance module is used for maintaining the business data structure;
the data generation module selects any service data structure and generates software test sample data corresponding to the service data structure;
the data export module exports the sample data to a target storage terminal;
wherein, the maintenance module includes:
a creation selection unit that selects whether to create the service data structure;
the creating unit is used for creating the service data structure if the service data structure is the same as the service data structure;
a loading unit, if not, loading the saved business data structure in the system;
the editing unit edits the service data structure and stores the edited service data structure in a warehouse;
the data generation module comprises:
a service data structure selection unit for selecting any one of the service data structures;
a rule definition unit for defining the generation rule of each data field in the service data structure;
a number definition unit that defines the sample data generation number;
a data generation preview unit for generating and previewing the sample data according to the generation rule and the generation quantity;
a rule storage unit configured to store the generated rule;
the data export module comprises:
export the connection unit, input and export the configuration and connect and export the terminal station;
the front end generates the sample data into a standardized file and submits an export task to the rear end;
the analysis unit is used for selecting an export terminal to analyze the content of the standardized file according to the export configuration after the rear end receives the standardized file and the export configuration sent by the front end;
and the export unit is used for recalling the analyzed standardized file content to the front end to complete the export of the sample data.
5. The system for generating, maintaining, and exporting software testing data according to claim 4, wherein the creation unit comprises:
an upload selection unit that selects whether to upload the sample data file,
the first creating unit is used for creating the service data structure according to the uploaded sample data file if the service data structure is the same as the uploaded sample data file;
and the second creation unit is used for creating the service data structure by manually inputting each field of the service data if the user does not need to enter the service data structure.
CN202011208889.4A 2020-11-03 2020-11-03 Method and system for generating, maintaining and exporting software test data Active CN112231226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011208889.4A CN112231226B (en) 2020-11-03 2020-11-03 Method and system for generating, maintaining and exporting software test data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011208889.4A CN112231226B (en) 2020-11-03 2020-11-03 Method and system for generating, maintaining and exporting software test data

Publications (2)

Publication Number Publication Date
CN112231226A CN112231226A (en) 2021-01-15
CN112231226B true CN112231226B (en) 2024-04-05

Family

ID=74122732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011208889.4A Active CN112231226B (en) 2020-11-03 2020-11-03 Method and system for generating, maintaining and exporting software test data

Country Status (1)

Country Link
CN (1) CN112231226B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133772A (en) * 2014-08-13 2014-11-05 广东电网公司信息中心 Automatic test data generation method
CN104866426A (en) * 2015-05-28 2015-08-26 华北计算技术研究所 Software test integrated control method and system
CN106897205A (en) * 2015-12-18 2017-06-27 阿里巴巴集团控股有限公司 A kind of test data generating method and device
CN111176976A (en) * 2019-08-05 2020-05-19 腾讯科技(深圳)有限公司 Test data generation method and device, storage medium and electronic device
CN111552690A (en) * 2020-03-31 2020-08-18 深圳壹账通智能科技有限公司 Data generation method, device, terminal and storage medium
CN111813661A (en) * 2020-06-15 2020-10-23 福建省农村信用社联合社 Global service data drive automatic test method, device, equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8429614B2 (en) * 2008-06-23 2013-04-23 International Business Machines Corporation Method and apparatus of effective functional test data generation for web service testing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133772A (en) * 2014-08-13 2014-11-05 广东电网公司信息中心 Automatic test data generation method
CN104866426A (en) * 2015-05-28 2015-08-26 华北计算技术研究所 Software test integrated control method and system
CN106897205A (en) * 2015-12-18 2017-06-27 阿里巴巴集团控股有限公司 A kind of test data generating method and device
CN111176976A (en) * 2019-08-05 2020-05-19 腾讯科技(深圳)有限公司 Test data generation method and device, storage medium and electronic device
CN111552690A (en) * 2020-03-31 2020-08-18 深圳壹账通智能科技有限公司 Data generation method, device, terminal and storage medium
CN111813661A (en) * 2020-06-15 2020-10-23 福建省农村信用社联合社 Global service data drive automatic test method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Evaluation of Using Mobile Devices to Streamline General Aviation Instrument Flight Rules Operations;Paul A. Diffenderfer等;《2019 IEEE/AIAA 38th Digital Avionics Systems Conference (DASC)》;1-8 *
基于数据模型的接口用例自动生成;虞砺琨等;《测控技术》;24-29 *

Also Published As

Publication number Publication date
CN112231226A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN109933752B (en) Method and device for exporting electronic document
CN104866426B (en) Software test integrated control method and system
CN108829584B (en) Service logic interface mock test method and system
CN107015948B (en) Log information formatting method and system
CN108009243B (en) Multi-user synchronous editing processing system and processing method for same document
CN111679979B (en) Destructive testing method and device
CN114328276B (en) Test case generation method and device, and test case display method and device
CN108763094B (en) Test case generation method, device, equipment and storage medium
CN110287104A (en) Method for generating test case, device, terminal and computer readable storage medium
CN114610963A (en) Customized data display method, system, computer equipment and storage medium
CN110489379B (en) Comprehensive display and data analysis and evaluation platform for aircraft test flight
CN112231226B (en) Method and system for generating, maintaining and exporting software test data
CN109255161B (en) Method for generating NOD netlist file from NET netlist file
CN112650529B (en) System and method for configurable generation of mobile terminal APP codes
CN112346775B (en) Index data general processing method, electronic device and storage medium
CN114003451A (en) Interface test method, device, system and medium
CN113741878B (en) GraphQL-based interface construction method, system, electronic equipment and storage medium
CN111142871A (en) Front-end page development system, method, equipment and medium
US20240005083A1 (en) Method and system for merging pdf files in a large batch
CN115840765A (en) Data processing method and device based on rule engine
CN113419957A (en) Rule-based big data offline batch processing performance capacity scanning method and device
CN113742529A (en) Multi-table front-end processing method and device
US9064069B1 (en) Creating an end point report based on a comprehensive timing report
CN113486127A (en) Knowledge alignment method, system, electronic device and medium
CN113448869A (en) Method and device for generating test case, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant