CN117130934A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117130934A
CN117130934A CN202311170329.8A CN202311170329A CN117130934A CN 117130934 A CN117130934 A CN 117130934A CN 202311170329 A CN202311170329 A CN 202311170329A CN 117130934 A CN117130934 A CN 117130934A
Authority
CN
China
Prior art keywords
data
service
test data
target
tested
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.)
Pending
Application number
CN202311170329.8A
Other languages
Chinese (zh)
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311170329.8A priority Critical patent/CN117130934A/en
Publication of CN117130934A publication Critical patent/CN117130934A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to the field of data processing technologies, and in particular, to a data processing method, a data processing device, an electronic device, and a storage medium. The method comprises the following steps: receiving a data demand request, wherein the data demand request carries demand information related to test data required by a service to be tested; the demand information at least comprises a target field and a type of data; obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule; generating a target test data generating template according to at least one data screening rule and a preset template table, and associating the target test data generating template with an association database; the association database stores data associated with the service to be tested; and receiving operation information of the target test data generation template, and obtaining the target test data according to the operation information.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a data processing method, a data processing device, electronic equipment and a storage medium.
Background
Currently, in the field of enterprise-level software testing, the preparation of test data is a very important step. In general, no developer or tester is required to consume a great deal of effort and time to complete the preparation of test data.
In the banking industry, because various information of clients is complex, better requirements are also provided for the quality of test data of software tests in the banking industry.
However, in the prior art, the testers or developers generally search data meeting the service rule conditions from the massive data, and the data is used as test data, so that the whole process is long and complicated, and the obtained data is incomplete due to manual searching and screening, so that the screened data cannot be used as the test data.
In summary, how to obtain test data efficiently and accurately is a problem to be solved.
Disclosure of Invention
The embodiment of the invention aims to provide a data processing method, a data processing device, electronic equipment and a storage medium, which are used for efficiently and accurately obtaining test data.
In a first aspect, an embodiment of the present invention provides a data processing method, applied to an electronic device, where the method includes:
receiving a data demand request, wherein the data demand request carries demand information related to test data required by a service to be tested; the demand information at least comprises a target field and a type of data;
obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule;
generating a target test data generation template according to the at least one data screening rule and a preset template table, and associating the target test data generation template with an association database; the association database stores data associated with the service to be tested;
receiving operation information of the target test data generation template, and obtaining target test data according to the operation information; the operation information is used for indicating to screen the data conforming to the target test data generation template from the association database.
In one possible implementation, at least one data filtering rule is obtained according to the target field and the type of the data and the data generation table; comprising the following steps:
determining at least one service sub-scene corresponding to the service to be tested according to the target field and the type of the data;
respectively determining data generation information corresponding to each service sub-scene according to the data generation table, and respectively generating corresponding data screening rules according to the corresponding data generation information, the target field and the type; the data generation information is used for indicating the generation mode and the generation quantity of the test data.
In one possible embodiment, after obtaining the target test data, the method further includes:
determining whether the service to be tested belongs to a preset reusable service set; the preset reusable service set comprises a customer transfer service, a customer allocation service and a customer reallocation service;
when the service to be tested is determined to belong to the preset reusable service set, the target test data is used as reusable test data, and the target test data and the identification of the service to be tested are associated and stored in a target storage area of the reusable test data.
In one possible embodiment, after obtaining the target test data, the method further includes:
and checking the integrity and the correctness of the target test data, and after the verification is passed, storing the target test data in a corresponding storage area.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, applied to an electronic device, where the apparatus includes:
the receiving unit is used for receiving a data demand request, wherein the data demand request carries demand information related to test data required by a service to be tested; the demand information at least comprises a target field and a type of data;
the obtaining unit is used for obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule;
the generating unit is used for generating a target test data generating template according to the at least one data screening rule and a preset template table, and associating the target test data generating template with an association database; the association database stores data associated with the service to be tested;
The processing unit is used for receiving the operation information of the target test data generation template and obtaining target test data according to the operation information; the operation information is used for indicating to screen the data conforming to the target test data generation template from the association database.
In a possible embodiment, the obtaining unit is specifically configured to:
determining at least one service sub-scene corresponding to the service to be tested according to the target field and the type of the data;
respectively determining data generation information corresponding to each service sub-scene according to the data generation table, and respectively generating corresponding data screening rules according to the corresponding data generation information, the target field and the type; the data generation information is used for indicating the generation mode and the generation quantity of the test data.
In a possible embodiment, the processing unit is further configured to:
determining whether the service to be tested belongs to a preset reusable service set; the preset reusable service set comprises a customer transfer service, a customer allocation service and a customer reallocation service;
when the service to be tested is determined to belong to the preset reusable service set, the target test data is used as reusable test data, and the target test data and the identification of the service to be tested are associated and stored in a target storage area of the reusable test data.
In a possible embodiment, the processing unit is further configured to:
and checking the integrity and the correctness of the target test data, and after the verification is passed, storing the target test data in a corresponding storage area.
In a third aspect, an embodiment of the present invention provides an electronic device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the methods provided by the embodiments of the first aspect of the present invention.
In a fourth aspect, embodiments of the present invention provide a computer storage medium, where the computer readable storage medium stores a computer program for causing a computer to perform any of the methods provided by the embodiments of the first aspect of the present invention.
In a fifth aspect, embodiments of the present invention provide a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform any of the methods provided by the embodiments of the first aspect of the invention.
The invention has the following beneficial effects:
in the embodiment of the invention, the electronic equipment can receive a data demand request, wherein the data demand request carries the demand information related to the test data required by the service to be tested; the demand information at least comprises a target field and a type of data; obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule; then generating a target test data generating template according to at least one data screening rule and a preset template table, and associating the target test data generating template with an association database; the association database stores data associated with the service to be tested; further, receiving operation information of a target test data generation template, and obtaining target test data according to the operation information; the operation information is used for indicating the data which accords with the target test data generation template to be screened from the associated database. That is, the electronic device may automatically generate the target test data generation template according to the received demand information, thereby automatically generating the target test data without manual intervention of operation information, and thus efficiently and accurately obtaining the target test data.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a front page of a data generation platform according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware composition structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention. Embodiments of the invention and features of the embodiments may be combined with one another arbitrarily without conflict. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
The term "comprising" and any variations thereof in the description of the invention and in the claims is intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
In the embodiments of the present invention, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
In the technical scheme of the invention, the data is collected, transmitted, used and the like, and all meet the requirements of national relevant laws and regulations.
As described above, in the prior art, the testers or developers generally search the data meeting the service rule conditions from the massive data, and as the test data, the whole process is long and complicated, and the obtained data may be incomplete due to manual searching and screening, so that the screened data cannot be used as the test data. Therefore, how to obtain test data efficiently and accurately is a problem to be solved.
In view of this, an embodiment of the present invention provides a data processing method, by which, in an embodiment of the present invention, an electronic device may receive a data request, where the data request carries requirement information associated with test data required by a service to be tested; the demand information at least comprises a target field and a type of data; obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule; then generating a target test data generating template according to at least one data screening rule and a preset template table, and associating the target test data generating template with an association database; the association database stores data associated with the service to be tested; further, receiving operation information of a target test data generation template, and obtaining target test data according to the operation information; the operation information is used for indicating the data which accords with the target test data generation template to be screened from the associated database. That is, the electronic device may automatically generate the target test data generation template according to the received demand information, thereby automatically generating the target test data without manual intervention of operation information, and thus efficiently and accurately obtaining the target test data.
After the design idea of the embodiment of the present invention is introduced, some simple descriptions are made below for application scenarios applicable to the technical solution of the embodiment of the present invention, and it should be noted that the application scenarios described below are only used for illustrating the embodiment of the present invention and are not limiting. In the specific implementation process, the technical scheme provided by the embodiment of the invention can be flexibly applied according to actual needs.
The scheme provided by the embodiment of the invention can be suitable for all various business scenes needing to generate the test data, such as scenes needing to generate the test data for a private customer relationship management system (namely a system for managing and maintaining the personal customer relationship of a bank by a bank customer manager).
Referring to fig. 1, a schematic view of a scenario provided in an embodiment of the present invention may include a plurality of terminal devices 101 and a server 102, where the terminal devices 101-1, 101-2, … …, and 101-n may be used by different business personnel and/or developers, each system on each terminal device is provided with a front-end system of a test data generating platform, and the server 102 provides services for a back-end system of the test data generating platform. The test data generation platform may support embedding a set of data acquisition codes into a page corresponding to the platform, where the set of data acquisition codes is determined, for example, from a test data generation template. And the test data generation platform is also provided with an interface supporting interaction.
For example, the embodiment of the invention provides a test data generation platform. The platform comprises a demand module, a rule generation module, a template generation module and a test data acquisition module.
In the embodiment of the invention, the requirement module is used for receiving requirement information of test data required by service personnel, generating a data requirement request based on the requirement information and sending the data requirement request to the rule generating module. The rule generation module is used for obtaining at least one data screening rule according to the target field and the type of the data in the data demand request and the data generation table. The template generation module is used for generating a target test data generation template according to at least one data screening rule and a preset template table. In the embodiment of the invention, the generated test data generation template can be subjected to secondary processing, such as modification, according to actual requirements, so that a new template is correspondingly generated, and the generated test data generation template supports multiplexing. The test data obtaining module is used for receiving the operation information of the target test data generating template and obtaining the target test data according to the operation information. The operation information is triggered by a developer, a tester or a business person based on the front-end page of the test data generation platform. Optionally, the platform may further include a data service module, where the data service module is configured to provide the target test data to a system corresponding to the service to be tested, so as to complete the test of the performance of the system corresponding to the service to be tested.
In the embodiment of the invention, a service person can log in a front-end page of a test data generation platform on the terminal equipment 101-1 to trigger a data demand request. Wherein, the front page of the test data generating platform is shown in fig. 2, for example. In this way, the business personnel can select the target field and type of the test requirement request, such as account change reminding, on the front page of the test data generation platform. Then, the terminal device 101-1 may generate a data demand request based on the operation information of the service personnel, and send the data demand request to the server 102, and then the server 102 processes the data demand request to obtain a target test data generating template, receives the operation information of the target test data generating template sent by the terminal device 101-2, and obtains the target test data according to the operation information. Therefore, in the embodiment of the invention, the screening of the test data is not needed manually, so that the efficiency of obtaining the test data is improved, and the accuracy of obtaining the target test data can be improved as the server is adopted to automatically obtain the target test data compared with the mode of manually screening to obtain the test data in the prior art.
In the embodiment of the present invention, the terminal device 101 may be, for example, a mobile phone, a tablet personal computer (PAD), a personal computer (Personal computer, PC), an intelligent television, an intelligent vehicle-mounted device, a wearable device, or the like, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the server 102 may be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms, or may be a physical server, but is not limited thereto.
Wherein, the terminal equipment 101 and the server 102, and the terminal equipment 101 can be directly or indirectly connected through one or more networks 103. The network 103 may be a wired network, or may be a Wireless network, for example, a mobile cellular network, or may be a Wireless-Fidelity (WIFI) network, or may be other possible networks, which are not limited in this embodiment of the present invention.
Of course, the method provided by the embodiment of the present invention is not limited to the application scenario shown in fig. 1, but may be used in other possible application scenarios, for example, only the terminal device implements the data processing method or only the server implements the data processing, which is not limited by the embodiment of the present invention. The functions that can be implemented by each device in the application scenario shown in fig. 1 will be described together in the following method embodiments, which are not described in detail herein.
In order to further explain the technical solution provided by the embodiments of the present invention, the following details are described with reference to the accompanying drawings and the detailed description. Although embodiments of the present invention provide the method operational steps shown in the following embodiments or figures, more or fewer operational steps may be included in the method, either on a routine or non-inventive basis. In steps where there is logically no necessary causal relationship, the execution order of the steps is not limited to the execution order provided by the embodiments of the present invention. The methods may be performed sequentially or in parallel as shown in the embodiments or the drawings when the actual processing or the apparatus is performed.
Referring to fig. 3, fig. 3 is a flow chart illustrating a data processing method according to an embodiment of the invention. The flow of the method may be performed by an electronic device, which may be the server 102 in fig. 1, and the specific implementation flow of the method is as follows:
Step 301: receiving a data demand request, wherein the data demand request carries demand information related to test data required by a service to be tested; the requirement information includes at least a target field and a type of data.
In the embodiment of the invention, the electronic equipment can receive the data demand request triggered by the service personnel through the terminal equipment. Optionally, the service personnel may input the target field and type of the data in the front page of the test data generating platform of the terminal device, or may select the target field and type of the data in the front page of the test data generating platform of the terminal device, where the type is a data type of the screened test data, optionally, one target field corresponds to one data type, or multiple target fields correspond to one data type, for example, taking all target fields correspond to one data type as an example, and the target fields included in the demand request are: the types of employee numbers, employee names, visit records, visit places, visit time, visit personnel and the like are floating point types, so that the terminal equipment generates a data demand request based on corresponding operation of business personnel and sends the data demand request to the electronic equipment.
Step 302: obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data required by the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule.
In the embodiment of the invention, the electronic equipment can determine at least one service sub-scene corresponding to the service to be tested according to the target field and the type of the data in the demand information; and respectively determining data generation information corresponding to each service sub-scene according to the data generation table, and respectively generating corresponding data screening rules according to the corresponding data generation information, the target field and the type.
For example, the electronic device may determine that the target fields of the data in the demand information are: the client number, the offer purpose, the offer place, the offer time and the offer state are of integer type, and the electronic device can analyze the target field, for example, compare with the key field in the existing business sub-scene, thereby determining that the business sub-scene is an employee visiting offer sub-scene.
In the embodiment of the invention, the data generation table comprises a plurality of relations, and each relation indicates the relation between the target field and the type of one group of data and the data screening rule. Each data screening rule comprises whether data are generated in batches, the number of the generated data, the related field of the generated data and the type related to the generated data. For example, data screening rule a is: batch generation, 500 pieces of data, customer level, integer type.
For another example, continuing to take a business sub-scene as an employee visit invitation scene as an example, corresponding data generation information can be determined according to the business sub-scene, and the data generation information is 100 pieces and generated in batches, so that the data screening rule can be determined according to the target field and the type of the data: batch generation, 100 pieces of data, customer number, customer level, offer time, offer purpose, offer status, and integer type. When the integer type is included in the data filtering rule, it may be determined that the data type of the filtered data is the integer type.
Step 303: generating a target test data generating template according to at least one data screening rule and a preset template table, and associating the target test data generating template with an association database; the association database stores data associated with the business to be tested.
In the embodiment of the invention, a plurality of preset template tables can be firstly established based on actual implementation scenes, and then the electronic equipment screens target preset template tables from the plurality of preset template tables according to the identification information of the service to be tested. Further, at least one data screening rule is filled into the target preset template table, so that a target test data generation template is generated. And, the electronic device may associate the target test data generation template with the association database. Optionally, the electronic device may further associate the target test data generation template with the test environment. In this way, the data generated based on the target test data generation template can be directly put into the test environment for testing.
Step 304: receiving operation information of a target test data generation template, and obtaining target test data according to the operation information; the operation information is used for indicating the data which accords with the target test data generation template to be screened from the associated database.
In the embodiment of the invention, the electronic equipment can further determine whether the service to be tested belongs to a preset reusable service set; the preset reusable service set comprises a customer transfer service, a customer allocation service and a customer reallocation service; when the service to be tested is determined to belong to the preset reusable service set, the target test data is used as reusable test data, and the target test data and the identification of the service to be tested are stored in a target storage area of the reusable test data in a correlated mode.
In the embodiment of the invention, the requirements of test data under different service scenes can be analyzed so as to determine the preset reusable service set, that is, the preset reusable service set can be updated based on the actual implementation service scene. After the reusable test data is obtained, marking the reusable test data according to different service scenes, namely storing the reusable test data and the identification of the service to be tested in a target storage area of the reusable test data in a correlated manner. In other words, the storage area in the embodiment of the invention can be divided according to the common test data and the reusable test data, and the data is stored according to the service identifier to be tested in the storage area corresponding to the common test data and the storage area corresponding to the reusable test data. Therefore, when the corresponding test data is needed to be used or the reusable test data is multiplexed, the test data can be quickly searched, and the efficiency of acquiring the test data is improved.
Therefore, in the embodiment of the invention, when the service to be tested is determined to belong to the preset reusable service set, the target test data corresponding to the service to be tested can be used as reusable test data, so that when the new service to be tested belongs to the preset reusable service set, the reusable test data can be directly used as test data without generating the test data again, and the efficiency of obtaining the test data is improved.
In the embodiment of the invention, the electronic equipment can also check the integrity and the correctness of the target test data, and after the verification is passed, the target test data is stored in the corresponding storage area. Therefore, the test data which are complete and high in accuracy can be obtained, so that the test data are more in line with the data corresponding to the actual implementation scene, and the accuracy of the subsequent test based on the test data is improved.
In the embodiment of the invention, the service to be tested is assumed to be a bank-to-private customer relationship management service, and the integrity verification of the customer information is necessary because the customer information needs to be complete in the bank-to-private customer relationship management service to continue the related processing. Optionally, the integrity check and the correctness check can be performed on the data such as the number of the client, the identification card number of the client, the attribution information of the client and the like in the test data. For example, the integrity check is, for example, 18 bits of the identification number, and if the identification number in the data is 17 bits, it may be determined that the integrity check fails.
Based on the same inventive concept, the embodiment of the invention also provides a data processing device. As shown in fig. 4, which is a schematic structural diagram of the data processing apparatus 400, may include: a receiving unit 401, an obtaining unit 402, a generating unit 403, and a processing unit 404. The receiving unit 401 may be understood as the foregoing requirement template, the obtaining unit 402 may be understood as the foregoing rule generating module, the generating unit 403 may be understood as the foregoing template generating module, and the processing unit 404 may be understood as the foregoing test data obtaining module.
A receiving unit 401, configured to receive a data demand request, where the data demand request carries demand information associated with test data required by a service to be tested; the demand information at least comprises a target field and a type of data;
an obtaining unit 402, configured to obtain at least one data filtering rule according to a target field and a type of the data and a data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule;
a generating unit 403, configured to generate a target test data generating template according to the at least one data screening rule and a preset template table, and associate the target test data generating template with an association database; the association database stores data associated with the service to be tested;
The processing unit 404 is configured to receive operation information of the target test data generation template, and obtain target test data according to the operation information; the operation information is used for indicating to screen the data conforming to the target test data generation template from the association database.
In a possible implementation manner, the obtaining unit 402 is specifically configured to:
determining at least one service sub-scene corresponding to the service to be tested according to the target field and the type of the data;
respectively determining data generation information corresponding to each service sub-scene according to the data generation table, and respectively generating corresponding data screening rules according to the corresponding data generation information, the target field and the type; the data generation information is used for indicating the generation mode and the generation quantity of the test data.
In a possible implementation, the processing unit 404 is further configured to:
determining whether the service to be tested belongs to a preset reusable service set; the preset reusable service set comprises a customer transfer service, a customer allocation service and a customer reallocation service;
when the service to be tested is determined to belong to the preset reusable service set, the target test data is used as reusable test data, and the target test data and the identification of the service to be tested are associated and stored in a target storage area of the reusable test data.
In a possible implementation, the processing unit 404 is further configured to:
and checking the integrity and the correctness of the target test data, and after the verification is passed, storing the target test data in a corresponding storage area.
For convenience of description, the above parts are described as being functionally divided into modules (or units) respectively. Of course, the functions of each module (or unit) may be implemented in the same piece or pieces of software or hardware when implementing the present invention.
Having described the data processing method and apparatus of an exemplary embodiment of the present invention, next, an electronic device according to another exemplary embodiment of the present invention is described.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
The embodiment of the invention also provides electronic equipment based on the same conception as the embodiment of the method. In this embodiment, the structure of the electronic device may be shown in fig. 5, where the electronic device is, for example, the server 102 in fig. 1, as shown in fig. 5, and the electronic device in the embodiment of the present invention includes at least one processor 501, and a memory 502 and a communication interface 503 connected to the at least one processor 501, where the embodiment of the present invention does not limit a specific connection medium between the processor 501 and the memory 502, and in fig. 5, a connection between the processor 501 and the memory 502 is taken as an example, and in fig. 5, the system bus 500 is shown in bold line, and a connection manner between other components is merely illustrative and not limited. The system bus 500 may be divided into an address bus, a data bus, a control bus, etc., and is represented by only one thick line in fig. 5 for ease of illustration, but does not represent only one bus or one type of bus.
In the embodiment of the present invention, the memory 502 stores instructions executable by the at least one processor 501, and the at least one processor 501 may perform the steps included in the aforementioned data processing method by executing the instructions stored in the memory 502.
The processor 501 is a control center of the electronic device, and may connect various parts of the entire electronic device using various interfaces and lines, and may implement various functions of the electronic device by executing or executing instructions stored in the memory 502 and invoking data stored in the memory 502. Alternatively, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, wherein the processor 501 primarily processes operating information systems, user interfaces, applications, etc., and the modem processor primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip, or they may be implemented separately on separate chips in some embodiments.
The processor 501 may be a general purpose processor such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, and may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
The memory 502, as a non-volatile computer readable storage medium, may be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The Memory 502 may include at least one type of storage medium, and may include, for example, flash Memory, hard disk, multimedia card, card Memory, random access Memory (Random Access Memory, RAM), static random access Memory (Static Random Access Memory, SRAM), programmable Read-Only Memory (Programmable Read Only Memory, PROM), read-Only Memory (ROM), charged erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory), magnetic Memory, magnetic disk, optical disk, and the like. Memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 502 in embodiments of the present invention may also be circuitry or any other device capable of performing storage functions for storing program instructions and/or data.
The communication interface 503 is a transmission interface that can be used for communication, and data can be received or transmitted through the communication interface 503.
In addition, the electronic device includes a basic input/output system (I/O system) 504, which facilitates the transfer of information between various devices within the electronic device, a mass storage device 508 for storing operating information system 505, application programs 506, and other program modules 507.
The basic input/output system 504 includes a display 509 for displaying information and an input device 510, such as a mouse, keyboard, etc., for user input of information. Wherein the display 509 and the input device 510 are coupled to the processor 501 by a basic input/output system 504 coupled to the system bus 500. The basic input/output system 504 may also include an input/output controller for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller also provides output to a display screen, a printer, or other type of output device.
In particular, mass storage device 508 is connected to processor 501 through a mass storage controller (not shown) connected to system bus 500. Where the mass storage device 508 and its associated computer-readable media provide non-volatile storage for the server package. That is, mass storage device 508 may include a computer-readable medium (not shown), such as a hard disk or CD-ROM drive.
The electronic device may also operate via a network, such as the internet, connected to a remote computer on the network, in accordance with various embodiments of the present invention. I.e., the electronic device may be connected to the network 511 via a communication interface 503 coupled to the system bus 500, or alternatively, the communication interface 503 may be used to connect to other types of networks or remote computer systems (not shown).
The embodiment of the invention also provides a computer storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is used for making a computer execute the technical scheme of the data processing method of the embodiment.
Embodiments of the present invention also provide a computer program product comprising: computer program code for implementing the technical solution of the data processing method in the above embodiment when the computer program code runs on a computer, so that the computer executes the computer program.
Those skilled in the art will appreciate that: all or part of the steps of implementing the above method embodiments may be implemented by hardware associated with program instructions pertaining to a computer program, which may be stored in a computer-readable storage medium, which when executed performs steps comprising the above method embodiments; the readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product of embodiments of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program code and may run on a computing device. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with a command execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with a command execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations information for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's equipment, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A data processing method, applied to an electronic device, the method comprising:
receiving a data demand request, wherein the data demand request carries demand information related to test data required by a service to be tested; the demand information at least comprises a target field and a type of data;
obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule;
generating a target test data generation template according to the at least one data screening rule and a preset template table, and associating the target test data generation template with an association database; the association database stores data associated with the service to be tested;
Receiving operation information of the target test data generation template, and obtaining target test data according to the operation information; the operation information is used for indicating to screen the data conforming to the target test data generation template from the association database.
2. The method of claim 1, wherein at least one data screening rule is obtained from a destination field and type of the data and a data generation table; comprising the following steps:
determining at least one service sub-scene corresponding to the service to be tested according to the target field and the type of the data;
respectively determining data generation information corresponding to each service sub-scene according to the data generation table, and respectively generating corresponding data screening rules according to the corresponding data generation information, the target field and the type; the data generation information is used for indicating the generation mode and the generation quantity of the test data.
3. The method of claim 1 or 2, wherein after obtaining the target test data, the method further comprises:
determining whether the service to be tested belongs to a preset reusable service set; the preset reusable service set comprises a customer transfer service, a customer allocation service and a customer reallocation service;
When the service to be tested is determined to belong to the preset reusable service set, the target test data is used as reusable test data, and the target test data and the identification of the service to be tested are associated and stored in a target storage area of the reusable test data.
4. The method of claim 1 or 2, wherein after obtaining the target test data, the method further comprises:
and checking the integrity and the correctness of the target test data, and after the verification is passed, storing the target test data in a corresponding storage area.
5. A data processing apparatus for application to an electronic device, the apparatus comprising:
the receiving unit is used for receiving a data demand request, wherein the data demand request carries demand information related to test data required by a service to be tested; the demand information at least comprises a target field and a type of data;
the obtaining unit is used for obtaining at least one data screening rule according to the target field and the type of the data and the data generation table; the data screening rule is used for screening test data which accords with the service to be tested, and the data generation table is used for indicating the relation between the target field and the type of the data and the data screening rule;
The generating unit is used for generating a target test data generating template according to the at least one data screening rule and a preset template table, and associating the target test data generating template with an association database; the association database stores data associated with the service to be tested;
the processing unit is used for receiving the operation information of the target test data generation template and obtaining target test data according to the operation information; the operation information is used for indicating to screen the data conforming to the target test data generation template from the association database.
6. The apparatus according to claim 5, wherein the obtaining unit is specifically configured to:
determining at least one service sub-scene corresponding to the service to be tested according to the target field and the type of the data;
respectively determining data generation information corresponding to each service sub-scene according to the data generation table, and respectively generating corresponding data screening rules according to the corresponding data generation information, the target field and the type; the data generation information is used for indicating the generation mode and the generation quantity of the test data.
7. The apparatus of claim 5 or 6, wherein the processing unit is further to:
Determining whether the service to be tested belongs to a preset reusable service set; the preset reusable service set comprises a customer transfer service, a customer allocation service and a customer reallocation service;
when the service to be tested is determined to belong to the preset reusable service set, the target test data is used as reusable test data, and the target test data and the identification of the service to be tested are associated and stored in a target storage area of the reusable test data.
8. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to implement the method of any of claims 1-4.
9. A computer storage medium, characterized in that the computer storage medium stores a computer program for enabling a computer to perform the method according to any one of claims 1-4.
10. A computer program product, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of any of the preceding claims 1-4.
CN202311170329.8A 2023-09-12 2023-09-12 Data processing method and device, electronic equipment and storage medium Pending CN117130934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311170329.8A CN117130934A (en) 2023-09-12 2023-09-12 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311170329.8A CN117130934A (en) 2023-09-12 2023-09-12 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117130934A true CN117130934A (en) 2023-11-28

Family

ID=88856310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311170329.8A Pending CN117130934A (en) 2023-09-12 2023-09-12 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117130934A (en)

Similar Documents

Publication Publication Date Title
CN110474900B (en) Game protocol testing method and device
CN110674360B (en) Tracing method and system for data
CN109542764B (en) Webpage automatic testing method and device, computer equipment and storage medium
CN108074033A (en) Processing method, system, electronic equipment and the storage medium of achievement data
CN111258832B (en) Interface parameter verification method, device, equipment and medium
CN113326247A (en) Cloud data migration method and device and electronic equipment
CN114817022A (en) Railway electronic payment platform test method, system, equipment and storage medium
CN116069838A (en) Data processing method, device, computer equipment and storage medium
CN113535577A (en) Application testing method and device based on knowledge graph, electronic equipment and medium
CN110110153A (en) A kind of method and apparatus of node searching
CN116775575A (en) File merging method and device, electronic equipment and storage medium
CN111831750A (en) Block chain data analysis method and device, computer equipment and storage medium
CN116662302A (en) Data processing method, device, electronic equipment and storage medium
CN115481026A (en) Test case generation method and device, computer equipment and storage medium
CN117130934A (en) Data processing method and device, electronic equipment and storage medium
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN108536604B (en) Method and terminal for testing response time of WEB page
CN112131611A (en) Data correctness verification method, device, equipment, system and storage medium
CN114385722A (en) Interface attribute consistency checking method and device, electronic equipment and storage medium
CN110688295A (en) Data testing method and device
CN117113101A (en) Processing method and device of open source assembly, electronic equipment and storage medium
CN111309623B (en) Coordinate class data classification test method and device
CN111324846B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
CN116910727A (en) Authority processing method and device, electronic equipment and storage 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