CN117033172A - Test data processing method, apparatus, device, storage medium and program product - Google Patents

Test data processing method, apparatus, device, storage medium and program product Download PDF

Info

Publication number
CN117033172A
CN117033172A CN202310790683.4A CN202310790683A CN117033172A CN 117033172 A CN117033172 A CN 117033172A CN 202310790683 A CN202310790683 A CN 202310790683A CN 117033172 A CN117033172 A CN 117033172A
Authority
CN
China
Prior art keywords
data
security
production
test
target software
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
CN202310790683.4A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310790683.4A priority Critical patent/CN117033172A/en
Publication of CN117033172A publication Critical patent/CN117033172A/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

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)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a test data processing method, a device, equipment, a storage medium and a program product, relates to the technical field of computers, and can be used in the technical field of finance and other related fields. The method comprises the following steps: acquiring production log data of target software; the production log data represents data generated by the target software in the use process of the production environment; updating production log data of the target software to obtain initial test data; the initial test data represents data that matches the test environment; and generating test data of the target software according to the initial test data and the test requirement parameters of the test environment. According to the method, the production data of the production environment are processed through the corresponding processing means to generate the available test data of the test environment, the test data generated based on the mode is more reliable, and the test reliability of mobile banking software is improved.

Description

Test data processing method, apparatus, device, storage medium and program product
Technical Field
The present application relates to the field of computer technology, and may be used in the field of financial technology or other related fields, and in particular, to a test data processing method, apparatus, device, storage medium, and program product.
Background
Software development is the process of building a software system or developing a product of software components in a system according to requirements. Generally, after relevant software is initially developed as required, software testing is required using test data to discover errors and evaluate the quality of the software.
Taking mobile banking software as an example, in the related art, when testing mobile banking software, the adopted test data is usually manufactured manually according to experience, and the situation that the test data is unreliable easily occurs, so that the test reliability of the mobile banking software is poor.
Disclosure of Invention
Based on the above, it is necessary to provide a test data processing method, apparatus, device, storage medium and program product, which can process the production data of the production environment by corresponding processing means to generate test data usable by the test environment, and the test data generated based on this method is more reliable, so as to improve the test reliability of the mobile banking software.
In a first aspect, an embodiment of the present application provides a test data processing method. The method comprises the following steps:
acquiring production log data of target software; the production log data represents data generated by the target software in the use process of the production environment;
Updating production log data of the target software to obtain initial test data; the initial test data represents data that matches the test environment;
and generating test data of the target software according to the initial test data and the test requirement parameters of the test environment.
In one embodiment, updating production log data of the target software to obtain initial test data includes:
carrying out standard format processing on the production log data to obtain standardized production log data; standardized production log data includes key value pairs for each operation metadata;
performing key value integration on the standardized production log data to obtain production log data in a key value pair format;
and updating the security data in the production log data in the key value pair format to obtain initial test data.
In one embodiment, performing key value integration on standardized production log data to obtain production log data in a key value pair format includes:
redundant information in standardized production log data is acquired;
performing duplicate removal processing on redundant information in standardized production log data;
and performing key value integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in a key value pair format.
In one embodiment, updating security data in production log data in a key pair format to obtain initial test data includes:
for any one security data, acquiring a security key and a corresponding security value of the security data according to a key value pair of the security data; the security key represents an attribute corresponding to the security data; the security value represents the content to which the security data corresponds;
updating each character in the security value of the security data to obtain updated data of the security data;
and obtaining initial test data according to the update data of each security data in the production log data in the key value pair format.
In one embodiment, updating each character in the security value of the security data to obtain updated data of the security data includes:
acquiring updated characters of each character in the security value of the security data; the updated character represents any character in the same format as each security character;
and replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
In one embodiment, generating test data of the target software according to the initial test data and the test requirement parameters of the test environment includes:
Acquiring a production characteristic key and a corresponding production characteristic value in initial test data; the production characteristic key represents an attribute corresponding to the production environment identifier in the initial test data; the production characteristic value represents the content corresponding to the production environment identifier in the initial test data;
replacing the production characteristic value with the test demand parameter to obtain target test data;
and taking the target test data as the test data of the target software.
In one embodiment, obtaining production log data for target software includes:
acquiring a plurality of systems corresponding to target software;
production log data of the target software is obtained from each system.
In a second aspect, the embodiment of the application also provides a test data processing device. The device comprises:
the data acquisition module is used for acquiring production log data of the target software; the production log data represents data generated by the target software in the use process of the production environment;
the data updating module is used for updating the production log data of the target software to obtain initial test data; the initial test data represents data that matches the test environment;
the data generation module is used for generating test data of the target software according to the initial test data and the test requirement parameters of the test environment.
In a third aspect, the embodiment of the application further provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the embodiments of the first aspect described above when the processor executes the computer program.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the embodiments of the first aspect described above.
In a fifth aspect, embodiments of the present application also provide a computer program product. A computer program product comprising a computer program which when executed by a processor performs the steps of any of the embodiments of the first aspect described above.
According to the test data processing method, the device, the equipment, the storage medium and the program product, the production log data of the target software are obtained, then the production log data of the target software are updated to obtain initial test data, and finally the test data of the target software are generated according to the initial test data and the test requirement parameters of the test environment. According to the method, the production log data of the target software are updated, and the test requirement parameters of the test environment are correspondingly added, so that the test data of the target software can be generated, namely, the test data do not need to be manufactured manually according to experience, but the production data of the production environment are processed through corresponding processing means, so that the test data available in the test environment are generated, the test data generated based on the method are more reliable, and the test reliability of the mobile banking software is improved.
Drawings
FIG. 1 is a diagram of an application environment for a test data processing method in one embodiment;
FIG. 2 is a flow chart of a test data processing method in one embodiment;
FIG. 3 is a flow chart of obtaining initial test data in one embodiment;
FIG. 4 is a flow chart of obtaining initial test data according to another embodiment;
FIG. 5 is a flow diagram of generating test data for target software in one embodiment;
FIG. 6 is a flow chart of a test data processing method according to another embodiment;
FIG. 7 is a schematic diagram of a test data processing device in one embodiment;
FIG. 8 is a schematic diagram of a test data processing device according to another embodiment;
FIG. 9 is a schematic diagram of a test data processing device according to another embodiment;
fig. 10 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The test data processing method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. Optionally, the terminal 102 is a test environment server, and is used for performing software testing; after generating the test data of the target software, the server 104 may send the test data of the target software to the terminal 102, so that the terminal 102 tests the target software using the test data of the target software. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a test data processing method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
s201, obtaining production log data of target software.
In the embodiment of the application, the target software is the software which needs to be tested. The production log data represents data generated by the target software during use in the production environment. Optionally, the production log data may include information filled in by the user in the use process, and the like; such as user account number, user name, user account password, and mailbox address.
One implementation way is that all log data are stored in a log database, and when target software is acquired, a production log data acquisition request of the target software can be sent to a server where the log database is located; after receiving the request, the server where the log database is located can obtain corresponding production log data from the log database according to the identification information corresponding to the target software included in the production log data obtaining request, and feed back the corresponding production log data to the server currently used for generating test data, so that the production log data of the target software can be obtained.
Another implementation manner is to acquire a plurality of systems corresponding to the target software; production log data of the target software is obtained from each system.
Alternatively, the production log data of the target software may include log data in each system corresponding to the target software. For example, if the target software is mobile banking software, the production log data of the target software may include log data of a front end of the mobile banking software, log data of a background management system of the mobile banking, log data of an internet banking end, and the like.
Illustratively, a system corresponding to the target software is first determined, and production log data is acquired from a plurality of systems as the production log data of the target software.
S202, updating production log data of the target software to obtain initial test data.
In the embodiment of the application, the initial test data represents data matched with the test environment, namely, data which can be used in the test process.
One implementation is to input the production log data of the target software into a pre-trained model, update the production log data of the target software by the model, and output initial test data.
Another implementation manner is to update the production log data of the target software based on a preset update logic for updating the production log data, so as to obtain updated production log data, i.e. initial test data.
Optionally, each piece of security data in the production log data of the target software can be obtained, and any character is added in the character string of each piece of security data to obtain updated security data; and obtaining initial test data according to the updated security data in the production log data.
S203, generating test data of the target software according to the initial test data and the test requirement parameters of the test environment.
In the embodiment of the application, the test requirement parameter is a parameter with test characteristics in a test environment; such as testing the environment key parameters, etc.
One implementation is to input the initial test data and the test requirement parameters of the test environment into a pre-trained model, and output the test data of the target software from the model.
Another implementation manner is to obtain data needing to be added with test requirement parameters in initial test data, and correspondingly adding the test requirement parameters in character strings corresponding to the data needing to be added with the test requirement parameters so as to obtain initial test data after the test requirement parameters are added; and obtaining the test data of the target software according to the initial test data added with the test requirement parameters in the initial test data.
In the test data processing method provided by the embodiment of the application, the initial test data is obtained by acquiring the production log data of the target software and then updating the production log data of the target software, and finally the test data of the target software is generated according to the initial test data and the test requirement parameters of the test environment. According to the method, the production log data of the target software are updated, and the test requirement parameters of the test environment are correspondingly added, so that the test data of the target software can be generated, namely, the test data do not need to be manufactured manually according to experience, but the production data of the production environment are processed through corresponding processing means, so that the test data available in the test environment are generated, the test data generated based on the method are more reliable, and the test reliability of the mobile banking software is improved.
In order to generate reliable test data which can be used for testing the target software in the test environment, the production data can be used for carrying out corresponding processing on the production data under the condition of not manually creating numbers so as to generate the test data of the target software; because the production data comprises a lot of privacy data, the production data cannot be directly used for software testing, and therefore, in the process of generating test data according to the production data, the security data in the production data is firstly required to be deformed or desensitized; based on this, in one embodiment, an alternative way of updating production log data of target software is provided. As shown in fig. 3, the steps may be included as follows:
S301, standard format processing is carried out on the production log data, and standardized production log data are obtained.
In the embodiment of the application, the standard format processing is to unify the production log data into a key value pair format. Standardized production log data includes key value pairs for each operation metadata; wherein the operation metadata represents operation data generated by daily operation of the system.
In one implementation manner, each key information type and data corresponding to each key information type in production log data of the target software can be obtained; and determining standardized production log data according to each key information type and the data corresponding to each key information type.
The key information is related information used for testing in the testing environment; the key information types may include a user name, a user account number, a mailbox address, an account number password, and the like. The data corresponding to each key information type is the specific content or data of each key information type; for example, if the key information type is a mailbox address, the data corresponding to the key information type may be 20516@yeah.net.
Alternatively, the production log data of the target software may be input into a pre-trained model, and the model outputs the key information types and the data corresponding to the key information types. For example, one data in the production log data of the target software is [ operation name copy ] copy source path a to target path B; at this time, each key information type of the data is an operation name, a source path, and a target path, and the data corresponding to each key information type is copy, a, and B.
Further, for each data, taking the key information type of the data as a key of the data, and taking the data corresponding to the key information type of the data as a value of the data as a key value pair of the data; and combining each data according to the mode to obtain the standardized production log data. For example, the key information types of one data are an operation name, a source path and a target path respectively, and the data corresponding to each key information type are copy, A and B respectively; at this time, the key value pair of the data is { opt: copy, srcPath: A, targetPath: B }.
S302, performing key value integration on the standardized production log data to obtain the production log data in a key value pair format.
In one implementation, redundant information in standardized production log data may be obtained; performing duplicate removal processing on redundant information in standardized production log data; and performing key value integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in a key value pair format.
Optionally, each datum in the standardized production japanese data of each system can be compared one by one, and if a plurality of repeated data exist according to the comparison result, redundant data are removed to obtain standardized production log data after the duplicate removal processing; further, according to the key value pair of each data, integrating the standardized production log data after the duplication removal processing of each system to obtain the production log data in a key value pair format.
S303, updating the security data in the production log data in the key value pair format to obtain initial test data.
Alternatively, the security data in the production log data in the key-value pair format may be acquired first, then the security data in the production log data in the key-value pair format may be input into a pre-trained model, and the model outputs the initial test data.
In the embodiment of the application, the privacy data in the production log data can be desensitized by carrying out the duplicate removal processing and integrating on the production log data of the target software, so that the obtained test data is more reliable, and the data support is provided for generating the test data of the target software.
In one embodiment, based on the above embodiment, the step S304 of updating the security data in the production log data in the key value pair format to obtain the initial test data is further explained in detail. As shown in fig. 4, the steps may be included as follows:
s401, for any security data, acquiring a security key and a corresponding security value of the security data according to a key value pair of the security data.
In the embodiment of the application, the security key represents the attribute corresponding to the security data; the security value represents the content to which the security data corresponds.
Alternatively, the security data in the production log data in the key-value pair format may be determined first, and since each data is presented in the form of a key-value pair, for any security data, the key of the security data is the security key, and the value of the security data is the security value.
S402, updating each character in the security value of the security data to obtain updated data of the security data.
In one implementation, updated characters for each character in the security value of the security data may be obtained; and replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
In the embodiment of the application, the updated character represents any character in the same format as each security character.
Optionally, for any security data, each character in the security value of the security data may be obtained first, then, according to the character, an updated character of the character is determined, and finally, each character in the security value in the security data is replaced with each corresponding updated character, so as to obtain the updated data of the security data.
S403, obtaining initial test data according to the update data of each security data in the production log data in the key value pair format.
Optionally, after updating each security data in the production log data in the key-value pair format to the updated data, other data and each updated data in the production log data in the key-value pair format, which do not belong to the security data, are initial test data.
In the embodiment of the application, an optional mode is provided for quickly obtaining the initial test data; by acquiring the security value of the security data and updating each character in the security value into a new character, the security data can be updated, and the initial test data can be further obtained.
In order to ensure the reliability of the finally generated test data, after the desensitization processing is performed on the production log data, the production environment parameters in the generated log data are replaced by the test environment parameters; based on this, in one embodiment, the test data of the target software is further generated for S203 according to the initial test data and the test requirement parameters of the test environment. As shown in fig. 5, the steps may be included as follows:
s501, acquiring a production characteristic key and a corresponding production characteristic value in initial test data.
S502, replacing the production characteristic value with the test demand parameter to obtain target test data.
S503, taking the target test data as the test data of the target software.
In the embodiment of the application, the production characteristic key represents the attribute corresponding to the production environment identifier in the initial test data; the production characteristic value represents the content corresponding to the production environment identifier in the initial test data; the production environment identifier may include a production environment key, a production channel identifier, and the like.
Optionally, each production characteristic key and each corresponding production characteristic value may be obtained from the initial test data according to the key value pair of each data in the initial test data; then, each production characteristic value in the initial test data is replaced by a corresponding test environment parameter respectively to obtain target test data; and taking the target test data as the test data of the target software. For example, if the production characteristic key and the corresponding production characteristic value of a certain data are Channel ID: phone and the corresponding test environment parameter is computer, the Channel ID: computer can be obtained by directly replacing the phone with computer.
It should be noted that the number of the test environments may be multiple, and the test requirement parameters corresponding to different test environments are different, when the test data of the target software is generated according to the initial test data and the test requirement parameters of the test environments, it is required to determine which test environment the generated test data of the target software is used for, and then further replace the corresponding production characteristic values with the test requirement parameters of the corresponding test environments, so as to generate the test data of the corresponding test environments.
In the embodiment of the application, an optional mode is provided for quickly generating the test data of the target software; the production characteristic value is replaced by the test requirement parameter, so that the production environment parameter in the generated log data is replaced by the test environment parameter, the generated test data can be used for the test environment of the target software, and the reliability of the test is not affected.
In addition, in one embodiment, an alternative example of a test data processing method is also provided in an embodiment of the present application. As shown in connection with fig. 6, includes:
s601, acquiring a plurality of systems corresponding to target software.
S602, obtaining production log data of target software from each system.
Wherein, the production log data represents data generated by the target software in the use process of the production environment.
S603, carrying out standard format processing on the production log data to obtain standardized production log data.
Wherein the standardized production log data includes a key value pair for each operation metadata.
S604, obtaining redundant information in the standardized production log data.
S605, performing duplicate removal processing on redundant information in the standardized production log data.
S606, performing key value integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in a key value pair format.
S607, for any security data, the security key of the security data and the corresponding security value are acquired according to the key value pair of the security data.
Wherein the security key represents an attribute corresponding to the security data; the security value represents the content to which the security data corresponds.
S608, acquiring updated characters of each character in the security value of the security data.
Wherein the updated character represents any character in the same format as each security character.
S609, replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
S610, obtaining initial test data according to the update data of each security data in the production log data in the key value pair format.
S611, acquiring a production characteristic key and a corresponding production characteristic value in the initial test data.
The production characteristic key represents an attribute corresponding to a production environment identifier in the initial test data; the production characteristic value represents content corresponding to the production environment identifier in the initial test data.
S612, replacing the production characteristic value with the test demand parameter to obtain target test data.
And S613, taking the target test data as the test data of the target software.
The above processes of S601-S613 may be referred to the description of the above method embodiments, and the implementation principle and technical effects are similar, and are not repeated here.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a test data processing device for realizing the above-mentioned test data processing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the test data processing device provided below may refer to the limitation of the test data processing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 7, there is provided a test data processing apparatus 1, comprising: a data acquisition module 10, a data update module 20 and a data generation module 30, wherein:
a data acquisition module 10 for acquiring production log data of the target software; the production log data represents data generated by the target software in the use process of the production environment;
the data updating module 20 is configured to update production log data of the target software to obtain initial test data; the initial test data represents data that matches the test environment;
the data generating module 30 is configured to generate test data of the target software according to the initial test data and the test requirement parameters of the test environment.
In one embodiment, as shown in fig. 8, the data updating module 20 may include:
a data processing unit 21 for performing standard format processing on the production log data to obtain standardized production log data; standardized production log data includes key value pairs for each operation metadata;
a data integration unit 22, configured to perform key value integration on the standardized production log data to obtain production log data in a key value pair format;
and a data updating unit 23, configured to update the security data in the production log data in the key value pair format, so as to obtain initial test data.
In one embodiment, the data integration unit 22 may be configured to:
redundant information in standardized production log data is acquired; performing duplicate removal processing on redundant information in standardized production log data; and performing key value integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in a key value pair format.
In one embodiment, as shown in fig. 9, the data updating unit 23 may include:
a data obtaining subunit 231, configured to obtain, for any one security data, a security key and a corresponding security value of the security data according to a key value pair of the security data; the security key represents an attribute corresponding to the security data; the security value represents the content to which the security data corresponds;
a data updating subunit 232, configured to update each character in the security value of the security data, so as to obtain updated data of the security data;
the data determining subunit 233 is configured to obtain initial test data according to the update data of each security data in the production log data in the key value pair format.
In one embodiment, the data update subunit 232 may be configured to:
Acquiring updated characters of each character in the security value of the security data; the updated character represents any character in the same format as each security character; and replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
In one embodiment, the data generating module 30 may be configured to:
acquiring a production characteristic key and a corresponding production characteristic value in initial test data; the production characteristic key represents an attribute corresponding to the production environment identifier in the initial test data; the production characteristic value represents the content corresponding to the production environment identifier in the initial test data; replacing the production characteristic value with the test demand parameter to obtain target test data; and taking the target test data as the test data of the target software.
In one embodiment, the data acquisition module 10 may be configured to:
acquiring a plurality of systems corresponding to target software; production log data of the target software is obtained from each system.
The various modules in the test data processing apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing test data processing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a test data processing method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 10 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring production log data of target software; the production log data represents data generated by the target software in the use process of the production environment;
updating production log data of the target software to obtain initial test data; the initial test data represents data that matches the test environment;
and generating test data of the target software according to the initial test data and the test requirement parameters of the test environment.
In one embodiment, when the processor executes logic in the computer program to update the production log data of the target software to obtain the initial test data, the following steps may be implemented:
carrying out standard format processing on the production log data to obtain standardized production log data; standardized production log data includes key value pairs for each operation metadata; performing key value integration on the standardized production log data to obtain production log data in a key value pair format; and updating the security data in the production log data in the key value pair format to obtain initial test data.
In one embodiment, when the processor executes logic in the computer program for performing key-value integration on the standardized production log data to obtain the production log data in the key-value pair format, the following steps may be implemented:
redundant information in standardized production log data is acquired; performing duplicate removal processing on redundant information in standardized production log data; and performing key value integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in a key value pair format.
In one embodiment, when the processor executes logic in the computer program to update the security data in the production log data in the key pair format to obtain the initial test data, the following steps may be implemented:
for any one security data, acquiring a security key and a corresponding security value of the security data according to a key value pair of the security data; the security key represents an attribute corresponding to the security data; the security value represents the content to which the security data corresponds; updating each character in the security value of the security data to obtain updated data of the security data; and obtaining initial test data according to the update data of each security data in the production log data in the key value pair format.
In one embodiment, when the processor executes logic in the computer program for updating each character in the security value of the security data to obtain updated data of the security data, the following steps may be implemented:
acquiring updated characters of each character in the security value of the security data; the updated character represents any character in the same format as each security character; and replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
In one embodiment, when the processor executes logic in the computer program for generating test data of the target software according to the initial test data and the test requirement parameters of the test environment, the following steps may be implemented:
acquiring a production characteristic key and a corresponding production characteristic value in initial test data; the production characteristic key represents an attribute corresponding to the production environment identifier in the initial test data; the production characteristic value represents the content corresponding to the production environment identifier in the initial test data; replacing the production characteristic value with the test demand parameter to obtain target test data; and taking the target test data as the test data of the target software.
In one embodiment, when the processor executes logic in the computer program to obtain production log data of the target software, the following steps may be implemented:
Acquiring a plurality of systems corresponding to target software; production log data of the target software is obtained from each system.
The principles and processes of implementing the above-mentioned embodiments of the computer device may be referred to the description of the embodiments of the test data processing method in the foregoing embodiments, which are not repeated herein.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring production log data of target software; the production log data represents data generated by the target software in the use process of the production environment;
updating production log data of the target software to obtain initial test data; the initial test data represents data that matches the test environment;
and generating test data of the target software according to the initial test data and the test requirement parameters of the test environment.
In one embodiment, the following steps may be implemented when the logic for updating the production log data of the target software in the computer program to obtain the initial test data is executed by the processor:
carrying out standard format processing on the production log data to obtain standardized production log data; standardized production log data includes key value pairs for each operation metadata; performing key value integration on the standardized production log data to obtain production log data in a key value pair format; and updating the security data in the production log data in the key value pair format to obtain initial test data.
In one embodiment, the following steps may be implemented when the logic in the computer program for performing key-value integration on the standardized production log data to obtain the production log data in the key-value pair format is executed by the processor:
redundant information in standardized production log data is acquired; performing duplicate removal processing on redundant information in standardized production log data; and performing key value integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in a key value pair format.
In one embodiment, the updating of the security data in the production log data in the key pair format in the computer program, when the logic for obtaining the initial test data is executed by the processor, may implement the following steps:
for any one security data, acquiring a security key and a corresponding security value of the security data according to a key value pair of the security data; the security key represents an attribute corresponding to the security data; the security value represents the content to which the security data corresponds; updating each character in the security value of the security data to obtain updated data of the security data; and obtaining initial test data according to the update data of each security data in the production log data in the key value pair format.
In one embodiment, the logic for updating each character in the security value of the security data in the computer program to obtain the updated data of the security data may implement the following steps when executed by the processor:
acquiring updated characters of each character in the security value of the security data; the updated character represents any character in the same format as each security character; and replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
In one embodiment, the logic for generating test data of the target software according to the initial test data and the test requirement parameters of the test environment in the computer program may implement the following steps when executed by the processor:
acquiring a production characteristic key and a corresponding production characteristic value in initial test data; the production characteristic key represents an attribute corresponding to the production environment identifier in the initial test data; the production characteristic value represents the content corresponding to the production environment identifier in the initial test data; replacing the production characteristic value with the test demand parameter to obtain target test data; and taking the target test data as the test data of the target software.
In one embodiment, the logic for obtaining production log data of the target software in the computer program, when executed by the processor, may implement the steps of:
acquiring a plurality of systems corresponding to target software; production log data of the target software is obtained from each system.
The principles and processes of implementing the foregoing embodiments of the computer readable storage medium may be referred to in the foregoing embodiments of the test data processing method embodiment, which are not described herein.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring production log data of target software; the production log data represents data generated by the target software in the use process of the production environment;
updating production log data of the target software to obtain initial test data; the initial test data represents data that matches the test environment;
and generating test data of the target software according to the initial test data and the test requirement parameters of the test environment.
In one embodiment, the following steps may be implemented when the logic for updating the production log data of the target software in the computer program to obtain the initial test data is executed by the processor:
Carrying out standard format processing on the production log data to obtain standardized production log data; standardized production log data includes key value pairs for each operation metadata; performing key value integration on the standardized production log data to obtain production log data in a key value pair format; and updating the security data in the production log data in the key value pair format to obtain initial test data.
In one embodiment, the following steps may be implemented when the logic in the computer program for performing key-value integration on the standardized production log data to obtain the production log data in the key-value pair format is executed by the processor:
redundant information in standardized production log data is acquired; performing duplicate removal processing on redundant information in standardized production log data; and performing key value integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in a key value pair format.
In one embodiment, the updating of the security data in the production log data in the key pair format in the computer program, when the logic for obtaining the initial test data is executed by the processor, may implement the following steps:
for any one security data, acquiring a security key and a corresponding security value of the security data according to a key value pair of the security data; the security key represents an attribute corresponding to the security data; the security value represents the content to which the security data corresponds; updating each character in the security value of the security data to obtain updated data of the security data; and obtaining initial test data according to the update data of each security data in the production log data in the key value pair format.
In one embodiment, the logic for updating each character in the security value of the security data in the computer program to obtain the updated data of the security data may implement the following steps when executed by the processor:
acquiring updated characters of each character in the security value of the security data; the updated character represents any character in the same format as each security character; and replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
In one embodiment, the logic for generating test data of the target software according to the initial test data and the test requirement parameters of the test environment in the computer program may implement the following steps when executed by the processor:
acquiring a production characteristic key and a corresponding production characteristic value in initial test data; the production characteristic key represents an attribute corresponding to the production environment identifier in the initial test data; the production characteristic value represents the content corresponding to the production environment identifier in the initial test data; replacing the production characteristic value with the test demand parameter to obtain target test data; and taking the target test data as the test data of the target software.
In one embodiment, the logic for obtaining production log data of the target software in the computer program, when executed by the processor, may implement the steps of:
acquiring a plurality of systems corresponding to target software; production log data of the target software is obtained from each system.
The data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application is information and data that is authorized or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above 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.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (11)

1. A method of testing data processing, the method comprising:
acquiring production log data of target software; the production log data represents data generated by the target software in the use process of the production environment;
updating the production log data of the target software to obtain initial test data; the initial test data represents data matched with a test environment;
And generating test data of the target software according to the initial test data and the test requirement parameters of the test environment.
2. The method of claim 1, wherein updating the production log data of the target software to obtain initial test data comprises:
carrying out standard format processing on the production log data to obtain standardized production log data; the standardized production log data includes a key value pair for each operation metadata;
performing key value integration on the standardized production log data to obtain production log data in a key value pair format;
and updating the security data in the production log data in the key value pair format to obtain the initial test data.
3. The method of claim 2, wherein the performing key-value integration on the standardized production log data to obtain production log data in a key-value pair format comprises:
redundant information in the standardized production log data is acquired;
performing de-duplication processing on redundant information in the standardized production log data;
and carrying out key value pair integration on the standardized production log data subjected to the duplication removal processing to obtain the production log data in the key value pair format.
4. The method of claim 2, wherein updating the security data in the production log data in the key pair format to obtain the initial test data comprises:
for any one security data, acquiring a security key and a corresponding security value of the security data according to a key value pair of the security data; the security key represents an attribute corresponding to the security data; the security value represents content corresponding to the security data;
updating each character in the security value of the security data to obtain updated data of the security data;
and obtaining the initial test data according to the update data of the security data in the production log data in the key value pair format.
5. The method of claim 4, wherein updating each character in the security value of the security data to obtain updated data of the security data comprises:
acquiring updated characters of each character in the security value of the security data; the updated character represents any character in the same format as each of the security characters;
And replacing the security characters in the corresponding security values with the updated characters to obtain updated data of the security data.
6. The method according to any one of claims 1-5, wherein generating test data of the target software according to the initial test data and the test requirement parameters of the test environment comprises:
acquiring a production characteristic key and a corresponding production characteristic value in the initial test data; the production characteristic key represents an attribute corresponding to a production environment identifier in the initial test data; the production characteristic value represents content corresponding to the production environment identifier in the initial test data;
replacing the production characteristic value with the test demand parameter to obtain target test data;
and taking the target test data as the test data of the target software.
7. The method of any of claims 1-5, wherein the obtaining production log data for the target software comprises:
acquiring a plurality of systems corresponding to the target software;
and acquiring production log data of the target software from each system.
8. A test data processing apparatus, the apparatus comprising:
The data acquisition module is used for acquiring production log data of the target software; the production log data represents data generated by the target software in the use process of the production environment;
the data updating module is used for updating the production log data of the target software to obtain initial test data; the initial test data represents data matched with a test environment;
and the data generation module is used for generating the test data of the target software according to the initial test data and the test requirement parameters of the test environment.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310790683.4A 2023-06-29 2023-06-29 Test data processing method, apparatus, device, storage medium and program product Pending CN117033172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310790683.4A CN117033172A (en) 2023-06-29 2023-06-29 Test data processing method, apparatus, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310790683.4A CN117033172A (en) 2023-06-29 2023-06-29 Test data processing method, apparatus, device, storage medium and program product

Publications (1)

Publication Number Publication Date
CN117033172A true CN117033172A (en) 2023-11-10

Family

ID=88630654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310790683.4A Pending CN117033172A (en) 2023-06-29 2023-06-29 Test data processing method, apparatus, device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN117033172A (en)

Similar Documents

Publication Publication Date Title
CN116561003A (en) Test data generation method, device, computer equipment and storage medium
CN117033172A (en) Test data processing method, apparatus, device, storage medium and program product
CN115827691A (en) Batch processing result verification method and device, computer equipment and storage medium
CN117349131A (en) System error information display method and device and computer equipment
CN115695173A (en) Network security exception access method, apparatus, device, medium and program product
CN117951135A (en) Data processing method, device, computer equipment and storage medium
CN117453561A (en) Test script calling method, device, computer equipment and storage medium
CN117278625A (en) Message conversion method, device, computer equipment and storage medium
CN118113595A (en) Test case generation method, device, computer equipment and storage medium
CN116880927A (en) Rule management method, device, computer equipment and storage medium
CN117389605A (en) Service interface configuration method, device, equipment, storage medium and program product
CN117290350A (en) Data synchronization method, apparatus, computer device, storage medium, and program product
CN117202113A (en) Message material auditing method, device, equipment, storage medium and program product
CN115934521A (en) Method and device for acquiring standing book information of business application and computer equipment
CN115438605A (en) Data processing method, data processing device, computer equipment and storage medium
CN117395180A (en) Network state determining method, device, computer equipment and storage medium
CN116975072A (en) Data processing method, device, computer equipment and storage medium
CN118283099A (en) Micro-service verification method, apparatus, device, storage medium and program product
CN117436889A (en) Resource processing method, device, computer equipment and storage medium
CN116069991A (en) Server data acquisition method, device, computer equipment and storage medium
CN116566720A (en) Firewall policy translation method, device, computer equipment and storage medium
CN115629958A (en) Universal field level automatic checking method and device for different service interfaces
CN117389960A (en) File parsing method, apparatus, device, storage medium and program product
CN117395175A (en) Network application software testing method, device, equipment, medium and program product
CN115842804A (en) Domain name detection method and device, computer 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