A test data recommendation method, system, electronic device and storage medium
By acquiring and analyzing user historical operation data and generating targeted test data, the problem of low manual generation of test data in the existing technology is solved, the efficiency and success rate of test data generation are improved, and automated recommendations are realized.
Patent Information
- Application Number
- CN202110487512.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-04-30
AI Technical Summary
In the prior art, software testing engineers need to manually generate test data, resulting in high time costs, low success rate and availability rate, and mechanized logic operations, which cannot meet the needs of large-scale testing.
By obtaining user historical operation data, determining whether its frequency reaches the threshold, generating targeted test data push instructions, and generating multiple related test data based on information characteristics, improving the efficiency of the test data generation.
This reduces the workload of software testing engineers in the generation of test data, improves the efficiency and success rate of test data generation, and realizes the automated recommendation of targeted test data.
Smart Images

Figure CN113051183B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet communication technology, and in particular to a test data recommendation method, system, electronic device and storage medium. Background Art
[0002] With the development of automated testing technology, software test engineers usually manually create test data according to test requirements, which not only takes up part of the working time of software test engineers, but also when the demand for test data is large, the manual method of generating test data no longer meets the demand. At present, in order to solve the problem of high data usage cost in software testing work, through statistical analysis of users' historical behaviors, conclusions on data generation requirements are formed and targeted recommendations are made. The mainstream technology mainly generates data for business automation, which has high time cost, low success rate and availability, and relatively mechanical logical operations. Summary of the invention
[0003] In order to solve the technical problems existing in the above-mentioned prior art, the present disclosure provides a test data recommendation method, system, electronic device and storage medium, which overcomes the defects of manual generation of test data in the prior art, generates test data in a targeted manner according to user operation behavior, and improves the efficiency of automatic generation of test data.
[0004] A first aspect of the present disclosure provides a method for recommending test data, comprising: obtaining historical operation data of a user; determining whether the historical operation data meets a preset condition, wherein the preset condition characterizes the degree of frequency of the user's operation behavior; and when the historical operation data meets the preset condition, generating a push instruction for obtaining test data related to the user's historical operation data.
[0005] Furthermore, the determination of whether the historical operation data meets preset conditions includes: obtaining data generated by the user's corresponding operation behavior within a preset time period; judging whether the data accumulation is greater than a threshold; if yes, generating a push instruction for obtaining relevant test data of the user's historical operation data.
[0006] Furthermore, when the historical operation data meets the preset condition, after generating a push instruction for obtaining relevant test data of the user's historical operation data, the method further includes: confirming the push instruction and generating a plurality of relevant test data according to the user's historical operation data.
[0007] Furthermore, the generating a plurality of related test data according to the user's historical operation data includes: obtaining the user's historical operation data according to the method; extracting information features of the historical operation data; and generating a plurality of test data based on rules generated from the information features.
[0008] Furthermore, determining whether the historical operation data meets preset conditions includes: obtaining data generated by corresponding operation behaviors of multiple users within a preset time period; based on the data generated by the operations of the multiple users, judging whether the data accumulation is greater than a threshold; if yes, generating a push instruction for obtaining relevant test data of the user's historical operation data.
[0009] Furthermore, the user's historical operation data is data input by the user when performing a test operation in the application environment.
[0010] The second aspect of the present disclosure provides a test data recommendation system, including: a data acquisition module, used to acquire a user's historical operation data; a data determination module, used to determine whether the historical operation data meets a preset condition, wherein the preset condition characterizes the degree of frequency of the user's operation behavior; a push instruction generation module, used to generate a push instruction for acquiring relevant test data of the user's historical operation data when the historical operation data meets the preset condition.
[0011] Furthermore, the data determination module is used to determine whether the historical operation data meets preset conditions, including: obtaining data generated by the user's corresponding operation behavior within a preset time period; judging whether the data accumulation is greater than a threshold; if yes, generating a push instruction for obtaining relevant test data for the user's historical operation data.
[0012] Furthermore, the push instruction generation module is used to generate a push instruction for obtaining relevant test data of the user's historical operation data when the historical operation data meets the preset conditions. The system also includes: a test data generation module, used to confirm the push instruction and generate multiple related test data based on the user's historical operation data.
[0013] Furthermore, the test data generation module is used to generate multiple related test data according to the user's historical operation data, including: obtaining the user's historical operation data; extracting information features of the historical operation data; and generating multiple test data based on rules generated by the information features.
[0014] Furthermore, the data determination module is used to determine whether the historical operation data meets preset conditions, including: obtaining data generated by corresponding operation behaviors of multiple users within a preset time period; based on the data generated by the operations of the multiple users, judging whether the data accumulation is greater than a threshold; if yes, generating a push instruction for obtaining relevant test data for the user's historical operation data.
[0015] Furthermore, the user's historical operation data is data input by the user when performing a test operation in the application environment.
[0016] The third aspect of the present disclosure provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the test data recommendation method provided by the first aspect of the present disclosure is implemented.
[0017] A fourth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for recommending test data provided by the first aspect of the present disclosure is implemented.
[0018] The present invention discloses a test data recommendation method, system, electronic device and storage medium, which overcome the defects of manual generation of existing test data in the prior art. Based on the method and system, various types of targeted business test data can be generated according to user operation behavior, thereby improving the test data generation efficiency, reducing the workload of software test engineers in test data generation, and improving the work efficiency of software test engineers. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] For a more complete understanding of the present disclosure and its advantages, reference will now be made to the following description taken in conjunction with the accompanying drawings, in which:
[0020] Figure 1 The application scenario of the test data recommendation method according to the embodiment of the present disclosure is schematically shown;
[0021] Figure 2 A flowchart schematically shows a method for recommending test data according to an embodiment of the present disclosure;
[0022] Figure 3 A flowchart for determining whether historical operation data meets a preset condition according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 4 Schematically shows a flow chart of determining whether historical operation data meets a preset condition according to another embodiment of the present disclosure;
[0024] Figure 5 A flowchart of a method for recommending test data according to another embodiment of the present disclosure is schematically shown;
[0025] Figure 6 A flowchart of generating multiple related test data according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 7 A flowchart schematically shows a method for generating test data according to an embodiment of the present disclosure;
[0027] Figure 8 A block diagram of a test data recommendation system according to an embodiment of the present disclosure is schematically shown;
[0028] Fig. 9 A block diagram of a test data recommendation system according to another embodiment of the present disclosure is schematically shown;
[0029] Fig.10 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0030] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0031] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0032] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0033] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0034] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some boxes or combinations thereof in the block diagrams and / or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions can create a device for implementing the functions / operations described in these block diagrams and / or flow charts when executed by the processor. The technology of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or used in conjunction with an instruction execution system.
[0035] The present invention discloses a test data recommendation method, system, electronic device and storage medium, which overcome the defects of manual generation of existing test data in the prior art. Based on the method and system, various types of targeted business test data can be generated according to user operation behavior, thereby improving the test data generation efficiency, reducing the workload of software test engineers in test data generation, and improving the work efficiency of software test engineers.
[0036] Figure 1 The exemplary system architecture 100 of the recommendation method that can be applied to test data according to an embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0037] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0038] Users (such as developers) can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as various software programming systems, software testing systems, web browser applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0039] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0040] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for applications used by users using the terminal devices 101, 102, and 103. The background management server may analyze and process received user requests, and feed back processing results (such as obtaining test case files, information, or data according to user requests) to the terminal device.
[0041] It should be noted that the test data recommendation method provided in the embodiment of the present disclosure can be executed by the server 105. Accordingly, the test data recommendation system provided in the embodiment of the present disclosure can be deployed in the server 105. The test data recommendation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the test data recommendation system provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Of course, in some embodiments, the test data recommendation system provided in the embodiment of the present disclosure can also be deployed in a user terminal device, that is, the method can also be executed by a user terminal device.
[0042] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0043] Figure 2 The flowchart of the method for recommending test data according to an embodiment of the present disclosure is schematically shown.
[0044] like Figure 2 As shown, the recommended method for testing data includes:
[0045] In operation S201, historical operation data of a user is obtained.
[0046] In operation S202, it is determined whether the historical operation data meets a preset condition, wherein the preset condition represents the degree of frequency of the user's operation behavior.
[0047] In operation S203, when the historical operation data meets a preset condition, a push instruction for acquiring relevant test data of the user's historical operation data is generated.
[0048] In the embodiment of the present disclosure, the user refers to a software test engineer, and the user's historical operation data may be data input by the software test engineer when performing test operations in an application environment, such as data input for transaction testing when testing various transaction functions in a business system, etc. The application environment refers to a software development or testing environment during actual use.
[0049] In the specific implementation process, the method disclosed in the present invention can be specifically applied to devices such as smart phones, computers, servers, etc., and can also be applied to other electronic devices that need to analyze the historical operation behavior of software test engineers, such as personal software test engineers can send test data recommendation information to them through, for example, client devices, and company software test engineers can initiate test data recommendation information to multiple software test engineers through server devices. Examples are not given one by one here. In the embodiments of the present disclosure, the method in the embodiments of the present application will be described in detail by taking the application of the method to a user terminal device as an example.
[0050] When the method in the embodiment of the present application is used for information processing, step S201 is first executed, that is, obtaining the user's historical operation data. In the specific implementation process, following the above example, when a software test engineer uses a user terminal device (such as a desktop, laptop, mobile phone, etc.) to perform business function testing, he will input test data and operate the application interface according to the test case. At this time, the user terminal device will record the software test engineer's operation behavior in real time, track and record each operation behavior of the software test engineer in real time, and generate a corresponding record file.
[0051] After step S201 is executed, the method in the embodiment of the present disclosure executes step S202, that is, determining whether the user's historical operation data meets a preset condition, wherein the preset condition represents the degree of frequency of the user's operation behavior. In the specific implementation process, there are many specific implementation methods of step S202. In the embodiment of the present disclosure, the following two implementation methods are mainly used for explanation.
[0052] like Figure 3 As shown, the specific implementation of step S202 includes:
[0053] In operation S301, data generated by a corresponding operation behavior of a user within a preset time period is obtained.
[0054] In operation S302, it is determined whether the data accumulation is greater than a threshold.
[0055] In operation S303, when the answer is yes, a push instruction for acquiring relevant test data of the user's historical operation data is generated.
[0056] In the specific implementation process, using the above example, after the user terminal device obtains the data generated by the corresponding operation behavior of the software testing engineer within the preset time, the user terminal device calculates the cumulative number of times each data is used within the preset time, and determines whether the cumulative number of times the data is greater than a preset threshold. If it is determined to be greater than the threshold, it can be concluded based on the judgment result whether the test data corresponding to the user operation behavior is greater or more important to the user's needs. If so, the corresponding recommendation instructions are generated according to the subsequent steps.
[0057] like Figure 4 As shown, another specific implementation of step S202 includes:
[0058] In operation S401, data generated by corresponding operation behaviors of multiple users within a preset time period is obtained.
[0059] In operation S402, based on data generated by multiple user operations, it is determined whether the data accumulation is greater than a threshold.
[0060] In operation S403, when the answer is yes, a push instruction for acquiring relevant test data of the user's historical operation data is generated.
[0061] In the specific implementation process, following the above example, when there are multiple software testing engineers using user terminal devices to perform test operations at the same time, the method provided by the present disclosure in this case is generally executed by the server 105, and the server 105 communicates with each user terminal device over the network. The server 105 records the operation behaviors of the multiple software testing engineers one by one, and determines whether the cumulative number of each type of test data corresponding to the operation behaviors of the multiple software testing engineers exceeds a preset threshold. When it is determined that the cumulative number of each type of test data exceeds the threshold, it is determined based on the judgment result whether the test data corresponding to the user operation behavior is larger or more important to the user demand. If so, the corresponding recommended instructions are generated according to the subsequent steps.
[0062] After step S202 is executed, the method in the embodiment of the present disclosure executes step S203, that is, when the answer is yes, a push instruction for obtaining relevant test data of the user's historical operation data is generated.
[0063] In the embodiment of the present disclosure, the above example is used. For example, if the number of times a software test engineer creates a certain transaction data exceeds 20 times within 6 hours, if it exceeds 20 times, a push instruction for obtaining the relevant test data of the corresponding operation data of the software test engineer is generated, that is, an instruction on whether to generate relevant test data is sent to the software test engineer. It should be noted that the above threshold time of 6 hours and the threshold value of 20 times are only exemplary descriptions and do not constitute a limitation of the embodiment of the present disclosure.
[0064] According to the embodiments of the present disclosure, Figure 5 As shown, after executing step S203, the method in the embodiment of the present disclosure further includes:
[0065] In operation S204, the push instruction is confirmed, and a plurality of related test data are generated according to the user's historical operation data.
[0066] The software test engineer chooses whether to confirm or reject the push instruction sent by the user terminal device according to the needs. If confirmed, multiple related test data are generated according to the user's historical operation data. In the embodiment of the present disclosure, the multiple related test data generated according to the user's historical operation data are test data of the same type as the user's operation behavior, and each test data is different.
[0067] According to the embodiments of the present disclosure, Figure 6 As shown, multiple relevant test data are generated based on the user's historical operation data, including:
[0068] In operation S601, historical operation data of a user is obtained.
[0069] In operation S602, information features of the historical operation data are extracted.
[0070] In operation S603, a plurality of relevant test data are generated based on the rule generated by the information feature.
[0071] In the specific implementation process, after the software test engineer determines the push instruction, the relevant test data is automatically generated according to his / her will. According to the record file generated by the historical operation behavior of the software test engineer, the information features in the record file are extracted, and the information features refer to the information features of the test data input about the operation behavior, and then according to the rules preset by the information features, the corresponding multiple test data are generated. The rules for generating these multiple test data are consistent with the data rules for the historical operation behavior input of the software test engineer. For example, when generating transaction data, the input transfer data is floating point data, and when generating the corresponding test data, the corresponding transfer data is also floating point data.
[0072] The test data generation in the method of the present disclosure is described in detail below in conjunction with a specific implementation.
[0073] like Figure 7As shown, taking the test of customer account opening transaction as an example, when the software test engineer performs the corresponding customer account opening transaction function test in the tested system, he will perform the corresponding test data one by one operation test according to the test case. In the embodiment of the present disclosure, a transaction model is formed through the data analysis and statistics corresponding to the software test engineer's operation behavior, each transaction corresponds to a transaction model, and the field corresponding to the data input in each operation behavior is used as a variable. The software test engineer quantifies the data generated by the operation of the tested system and abstracts the characteristics of the data, such as the A1 field is a sequence number, which is an increasing primary key; the A2 field is the user's name, which can be generated at will, and it can meet the Chinese character combination or the English name rule; the A3 field is the user's ID number, which needs to meet the combination of 18 or 15 digits or 17 digits and only the last digit is a capital letter.
[0074] For an account opening transaction, the data corresponding to the operation behavior of the software test engineer generally involves three database tables A, B, and C. When the user operates the account opening transaction again, the new data generated will also correspond to the three database tables A, B, and C. That is, the generated related test data will also involve the three database tables A, B, and C. The data in each database table is generally divided into the following four categories of data:
[0075] The first category: non-repeatable data, such as primary keys, which are automatically incremented according to the database logic and cannot be repeated, such as A123456788, A123456789, ..., with such logical increment.
[0076] The second category: fixed business data, such as account opening types including: account type A, account type B, account type C, etc., which are generated according to certain business rules. Most of them are mapped to 1, 2, 3 to represent different account types based on the data dictionary. The values are within a certain range. For example, account type A is mapped to 1, account type B is mapped to 2, account type C is mapped to 3, etc.
[0077] The third category: fixed field type data, such as input box, string type, which can be a string of random data within a fixed length according to the field type, such as balance, which can be a Double data type, etc. When generating test data corresponding to this type of data, you only need to take a random amount within the value range of the Double data type.
[0078] The fourth category: basic characteristic data, such as timestamp, which is consistent with the operation time. In the method disclosed in the present invention, the timestamp is a very important setting basis. For example, if the data created within 2 hours is counted and the threshold value of 10 is exceeded, the data recommendation logic is triggered and the corresponding data recommendation instruction is generated.
[0079] Taking the above-mentioned account opening transaction as an example, the method provided by the present disclosure first records the data in the database corresponding to the above-mentioned account opening transaction, that is, the three database statements in the three database tables A, B, and C corresponding to the account opening transaction, and determines that the fields to be inserted into each table are X, Y, and Z, respectively. Then, the number of fields in the three database tables corresponding to the three database tables A, B, and C is XYZ, where X, Y, and Z can be understood as the field data in the three database tables A, B, and C, respectively, containing columns X, Y, and Z.
[0080] For example, if database table A is the main table, then statistics are collected for each field in column X of table A. If the first field in database table A is A1, the second field is A2, and so on, the frequency of operations performed by the software test engineer is counted. If the number of rows of each field created within 2 hours exceeds 20, which is greater than a threshold preset by the system, it is considered necessary to send a push instruction to the software test engineer on whether to automatically increase the relevant test data.
[0081] After the software test engineer confirms the instruction to push the relevant test data, the information feature analysis of the operation data is performed on the 20 groups of data generated by the at least 20 transactions. For example, one account opening transaction corresponds to three database tables A, B, and C. The A1 field of the at least 20 groups of data is compared and analyzed to confirm whether the field is default data, data type, data length, etc. Based on the rules generated by the information features, multiple relevant test data of the account opening transaction are formed, that is, the data model corresponding to multiple account opening transactions.
[0082] In the data model corresponding to multiple account opening transactions, the first, third, and fourth types of data are incremented, and the second type of data can be selected by the user and reassembled into the latest repeated statement. For example, if the software test engineer needs to generate 20 accounts of account type B, the field for generating account type B in the database table can be changed to 2 (corresponding to the above-mentioned account type B mapping as 2), and the number of times this step is repeated is set to 20, and the data is created according to the model iteration. In the embodiment of the present disclosure, the data generated by repeating this step 20 times are all different test data generated according to the rules generated by information features, which are used for function and / or performance testing of the system to be tested under different data scenarios.
[0083] After the required multiple test data are automatically generated based on the method provided by the present disclosure, the software test engineer can call the test data according to the test requirements to test whether the implementation of each function of the system to be tested is accurate. The present disclosure does not limit the way in which the subsequent software test engineer uses the test data. In addition, based on the use and feedback of the test data generated by the present method by the subsequent software test engineer, the model of the generated data can be evaluated for the accuracy and usability of the recommended content of the model, and the model can be corrected from the erroneous data, and the optimization can be continuously iterated and corrected.
[0084] It should be noted that the above embodiments are only exemplary descriptions, and do not mean that the method of the present disclosure is only applicable to the automatic generation of relevant test data for account opening transactions. It can also be used to generate test data corresponding to the functions to be detected in any other system under test. The present disclosure does not limit the type of test data.
[0085] In the disclosed embodiment, the format of the test data file finally generated is not limited, and it can be a file in any format that can be saved on a storage device, such as a database table.
[0086] The present invention provides a test data recommendation method that overcomes the defects of the existing manual generation of test data in the prior art. Based on the method of the present invention, various types of targeted business test data can be generated according to user operation behaviors, thereby improving the efficiency of test data generation, reducing the workload of software test engineers in test data generation, and further improving the work efficiency of software test engineers. In addition, starting from another dimension of user data, the inherent correlation of data can be analyzed, relevant predictions and judgments can be made, and efficient data mining can be achieved.
[0087] It should be noted that the parameters such as preset conditions and preset duration in the above embodiments can be set according to actual application requirements, and the above specific values do not constitute limitations of the method of the embodiments of the present disclosure.
[0088] Figure 8 The block diagram of a test data recommendation system according to an embodiment of the present disclosure is schematically shown.
[0089] like Figure 8 As shown, the test data recommendation system 800 includes: a data acquisition module 810 , a data determination module 820 and a push instruction generation module 830 .
[0090] The data acquisition module 810 is used to acquire the user's historical operation data. The user's historical operation data is the data input by the user when performing a test operation in the application environment. According to an embodiment of the present disclosure, the data acquisition module 810 can be used to perform the above reference Figure 2 The described step S201 will not be repeated here.
[0091] The data determination module 820 is used to determine whether the historical operation data meets a preset condition, wherein the preset condition represents the degree of frequency of the user's operation behavior. According to an embodiment of the present disclosure, the data determination module 820 can be used to perform the above reference Figure 2 The described step S202 will not be repeated here.
[0092] The push instruction generation module 830 is used to generate a push instruction for obtaining relevant test data of the user's historical operation data when the historical operation data meets the preset condition. According to an embodiment of the present disclosure, the push instruction generation module 830 can be used to execute the above reference Figure 2 The described step S203 will not be repeated here.
[0093] Specifically, the data determination module 820 is used to determine whether the historical operation data meets preset conditions, including: obtaining data generated by the user's corresponding operation behavior within a preset time period; judging whether the data accumulation is greater than a threshold; if yes, generating a push instruction for obtaining relevant test data for the user's historical operation data.
[0094] Specifically, the data determination module 820 is used to determine whether the historical operation data meets preset conditions, including: obtaining data generated by corresponding operation behaviors of multiple users within a preset time period; based on the data generated by multiple user operations, judging whether the data accumulation is greater than a threshold; if yes, generating a push instruction for obtaining relevant test data for user historical operation data.
[0095] like Fig. 9 As shown, the test data recommendation system 800 also includes:
[0096] The test data generation module 840 is used to confirm the push instruction and generate multiple related test data according to the user's historical operation data. According to an embodiment of the present disclosure, the test data generation module 840 can be used to execute the above reference Figure 5 The described step S204 will not be repeated here.
[0097] Specifically, the test data generation module 840 is used to generate multiple related test data according to the user's historical operation data, including: obtaining the user's historical operation data; extracting information features of the historical operation data; and generating multiple test data based on rules generated by the information features.
[0098] It should be noted that any one or more of the modules, submodules, units, and subunits according to the embodiments of the present disclosure, or at least part of the functions of any one of them, can be implemented in one module. Any one or more of the modules, submodules, units, and subunits according to the embodiments of the present disclosure can be split into multiple modules for implementation. Any one or more of the modules, submodules, units, and subunits according to the embodiments of the present disclosure can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, one or more of the modules, submodules, units, and subunits according to the embodiments of the present disclosure can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.
[0099] For example, any multiple of the data acquisition module 810, the data determination module 820, the push instruction generation module 830, and the test data generation module 840 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the data acquisition module 810, the data determination module 820, the push instruction generation module 830, and the test data generation module 840 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the data acquisition module 810 , the data determination module 820 , the push instruction generation module 830 , and the test data generation module 840 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.
[0100] The test data recommendation method and system provided in the present disclosure can be used in the financial field or other fields. It should be noted that the test data recommendation method and system provided in the present disclosure can be used in the financial field, such as the generation of test data for various business systems of banks in the financial field, and can also be used in any field except the financial field. The application field of the test data recommendation method and system provided in the present disclosure is not limited.
[0101] Fig.10 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0102] like Fig.10 As shown, the electronic device 1000 described in this embodiment includes: a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 to a random access memory (RAM) 1003. The processor 1001 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 1001 may also include an onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0103] In RAM 1003, various programs and data required for the operation of system 1000 are stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other through bus 1004. Processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1002 and / or RAM 1003. It should be noted that the program can also be stored in one or more memories other than ROM 1002 and RAM 1003. Processor 1001 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0104] According to an embodiment of the present disclosure, the electronic device 1000 may further include an input / output (I / O) interface 1005, which is also connected to the bus 1004. The system 1000 may further include one or more of the following components connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0105] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the processor 1001, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0106] The embodiment of the present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the test data recommendation method according to the embodiment of the present disclosure is implemented.
[0107] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1002 and / or RAM 1003 described above and / or one or more memories other than ROM 1002 and RAM 1003.
[0108] It should be noted that the functional modules in the various embodiments of the present invention can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product.
[0109] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0110] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0111] Although the present disclosure has been shown and described with reference to specific exemplary embodiments of the present disclosure, it should be understood by those skilled in the art that various changes in form and details may be made to the present disclosure without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.
Claims
1. A method for recommending test data, characterized in that: include: Get the user's historical operation data; Determining whether the historical operation data meets a preset condition, wherein the preset condition represents the degree of frequency of the user's operation behavior; When the historical operation data meets the preset condition, a push instruction for obtaining relevant test data of the user's historical operation data is generated, wherein: After generating a push instruction for acquiring relevant test data of the user's historical operation data when the historical operation data meets the preset condition, the method further includes: Confirm the push instruction, generate multiple related test data according to the user's historical operation data, The generating of multiple pieces of relevant test data according to the user's historical operation data includes: Acquire the user's historical operation data according to the above; Extracting information features of the historical operation data; Based on the rules generated by the information features, multiple test data are generated.
2. The test data recommendation method according to claim 1, characterized in that: The determining whether the historical operation data meets a preset condition includes: Obtain the data generated by the user's corresponding operation behavior within the preset time; Determine whether the data accumulation is greater than a threshold; When the answer is yes, a push instruction for obtaining relevant test data of the user's historical operation data is generated.
3. The test data recommendation method according to claim 1, characterized in that: The determining whether the historical operation data meets a preset condition includes: Obtain data generated by corresponding operation behaviors of multiple users within a preset time period; Based on the data generated by the multiple user operations, determining whether the data accumulation is greater than a threshold; When the answer is yes, a push instruction for obtaining relevant test data of the user's historical operation data is generated.
4. The test data recommendation method according to claim 1, characterized in that: The user's historical operation data is data input by the user when performing a test operation in the application environment.
5. A test data recommendation system, characterized in that: include: Data acquisition module, used to obtain historical operation data of users; A data determination module, used to determine whether the historical operation data meets a preset condition, wherein the preset condition represents the degree of frequency of the user's operation behavior; A push instruction generation module is used to generate a push instruction for obtaining relevant test data of the user's historical operation data when the historical operation data meets the preset condition, wherein the push instruction generation module is used to generate a push instruction for obtaining relevant test data of the user's historical operation data when the historical operation data meets the preset condition, and the system further includes: A test data generation module is used to confirm the push instruction and generate multiple related test data according to the user's historical operation data. The test data generation module is used to generate a plurality of related test data according to the user historical operation data, including: Acquire the user's historical operation data according to the above; Extracting information features of the historical operation data; Based on the rules generated by the information features, multiple test data are generated.
6. The test data recommendation system according to claim 5, characterized in that: The data determination module is used to determine whether the historical operation data meets a preset condition, including: Obtain the data generated by the user's corresponding operation behavior within the preset time; Determine whether the data accumulation is greater than a threshold; When the answer is yes, a push instruction for obtaining relevant test data of the user's historical operation data is generated.
7. The test data recommendation system according to claim 5, characterized in that: The data determination module is used to determine whether the historical operation data meets a preset condition, including: Obtain data generated by corresponding operation behaviors of multiple users within a preset time period; Based on the data generated by the multiple user operations, determining whether the data accumulation is greater than a threshold; When the answer is yes, a push instruction for obtaining relevant test data of the user's historical operation data is generated.
8. The test data recommendation system according to claim 5, characterized in that: The user's historical operation data is data input by the user when performing a test operation in the application environment.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the test data recommendation method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the test data recommendation method according to any one of claims 1 to 4 is implemented.
