Test data generation method, apparatus and device

By releasing multiple data generation tools and parsing their associated data generation plans, test data is generated based on data generation type and rules. This solves the problems of low test data generation efficiency and low reusability in existing technologies, and achieves efficient and diversified test data generation.

CN116204430BActive Publication Date: 2026-03-27MASHANG CONSUMER FINANCE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing technologies suffer from low efficiency in generating test data, are prone to errors in programming, have low reusability of discrete tools, and are unable to meet diverse needs.

Method used

By releasing multiple data generation tools, identifying the target data generation tool, analyzing its associated data generation plan, and performing data generation processing according to the data generation type and rules, test data is generated.

Benefits of technology

It improved the efficiency of test data generation, increased the reusability of data generation tools, and enabled the generation of diverse test data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116204430B_ABST
    Figure CN116204430B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a test data generation method, device and equipment, wherein the method comprises: determining a target number generation tool to be executed from a plurality of number generation tools published; each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system; analyzing a first number generation plan associated with the target number generation tool to obtain a number generation type; performing number generation processing according to a target number generation rule corresponding to the number generation type to obtain test data; and the test data is used to test and process the corresponding service providing system based on a target test environment associated with the target number generation tool. Through the embodiments of the present application, the generation efficiency of test data and the multiplexing degree of number generation tools are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and particularly relates to a test data generation method, device and equipment. BACKGROUND

[0002] A new product will usually be tested before being formally put into use. For example, an application will be tested before being formally released for use. Test data is an essential element of testing, and current test data is mainly obtained by test personnel manually writing or by test personnel developing discrete tools (such as scripts) and generating test data through the discrete tools. However, manually writing test data has problems such as low generation efficiency of test data and prone to writing errors. When generating test data through discrete tools, the discrete tools usually generate test data in a single fixed manner, which is difficult to meet diversified test data generation requirements. Furthermore, when different test personnel have the same test requirements, multiple discrete tools are usually developed, and the reuse rate of the discrete tools is low. SUMMARY

[0003] The present application provides a test data generation method, device and equipment to improve the generation efficiency of test data and the reuse rate of data generation tools.

[0004] In a first aspect, an embodiment of the present application provides a test data generation method, comprising:

[0005] From a plurality of data generation tools published, a target data generation tool to be executed is determined; each data generation tool is associated with a data generation plan and a test environment, and each test environment corresponds to a service providing system;

[0006] A first data generation plan associated with the target data generation tool is parsed to obtain a data generation type;

[0007] According to a target data generation rule corresponding to the data generation type, data generation processing is performed to obtain test data; the test data is used to test the corresponding service providing system based on a target test environment associated with the target data generation tool.

[0008] It can be seen that in the embodiments of the present application, a plurality of number generation tools are published, and a target number generation tool to be currently executed is determined; a first number generation plan associated with the target number generation tool is analyzed to obtain a number type; and test data for testing a corresponding service providing system based on a target test environment associated with the target number generation tool is obtained by performing number generation processing according to a target number generation rule corresponding to the number type. In this process, since the number generation processing is performed based on the published number generation tools, compared with manually writing test data and discrete tool generating test data, the generation efficiency of test data is greatly improved; and since each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system, different testers who have the same test requirements for the service providing system corresponding to a certain number generation tool can generate test data using the number generation tool, avoiding multiple development of the same number generation tool, and improving the reusability of the number generation tool; in addition, since the number generation processing is performed according to the target number generation rule corresponding to the number type, that is, the present application provides a plurality of number generation methods, so that diversified number generation is realized, and different number generation requirements can be met.

[0009] In a second aspect, the embodiments of the present application provide a test data generation device, comprising:

[0010] A determination module is configured to determine a target number generation tool to be currently executed from a plurality of published number generation tools; each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system;

[0011] An analysis module is configured to analyze a first number generation plan associated with the target number generation tool to obtain a number type;

[0012] A processing module is configured to perform number generation processing according to a target number generation rule corresponding to the number type to obtain test data; and the test data is used for testing a corresponding service providing system based on a target test environment associated with the target number generation tool.

[0013] In a third aspect, the embodiments of the present application provide an electronic device, comprising:

[0014] A processor; and a memory arranged to store computer executable instructions, the executable instructions being configured to be executed by the processor, and the executable instructions comprising steps for executing the test data generation method provided in the first aspect.

[0015] In a fourth aspect, the embodiments of the present application provide a storage medium, the storage medium being used for storing computer executable instructions, and the executable instructions causing a computer to execute steps in the test data generation method provided in the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the one or more embodiments of the present application or the prior art, the accompanying drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced. Obviously, the accompanying drawings in the following description only represent some embodiments of the present application, and for those skilled in the art, other drawings can be obtained from these drawings without any creative effort.

[0017] Figure 1 An architecture diagram of a number building platform provided by the embodiments of the present application;

[0018] Figure 2 A first flowchart of a test data generation method provided by the embodiments of the present application;

[0019] Figure 3 A second flowchart of a test data generation method provided by the embodiments of the present application;

[0020] Figure 4 A third flowchart of a test data generation method provided by the embodiments of the present application;

[0021] Figure 5 A module composition diagram of a test data generation device provided by the embodiments of the present application;

[0022] Figure 6 A structure diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION

[0023] In order to make the personnel in the technical field better understand the technical solutions in the one or more embodiments of the present application, the technical solutions in the one or more embodiments of the present application will be clearly and completely described in the following with reference to the accompanying drawings of the one or more embodiments of the present application. Obviously, the described embodiments only represent some embodiments of the present application, rather than all the embodiments. Based on the one or more embodiments of the present application, all the other embodiments obtained by those skilled in the art without any creative effort should belong to the protection scope of the present document.

[0024] The embodiment of the present application provides a test data generation method, device and equipment. Considering the existing test data generation mode, one generation mode is that a test personnel manually writes test data, for example, manually fills in related files to realize test data writing, or manually uses a computer to calculate test data. Another generation mode is that a test personnel develops a discrete tool, for example, a script, and generates test data through the discrete tool. However, manual test data writing inevitably has writing errors, so that there are problems of low test data generation efficiency and prone to writing errors. When test data is generated through a discrete tool, the discrete tool usually generates test data in a single fixed mode, and it is difficult to meet diversified test data generation requirements. Furthermore, when different test personnel have the same test requirements, the discrete tool is usually developed for multiple times, and the reuse rate of the discrete tool is low. Based on this, the embodiment of the present application provides a test data generation method, a plurality of number generation tools are published, and a target number generation tool to be executed is determined; and a first number generation plan associated with the target number generation tool is analyzed to obtain a number type; the number type is processed according to a target number generation rule corresponding to the number type to obtain test data used for testing a corresponding service providing system based on a target test environment associated with the target number generation tool. In the process, the test data is generated based on the published number generation tool, compared with manual test data writing and discrete tool test data generation, the test data generation efficiency is greatly improved; and since each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system, different test personnel having the same test requirements for a service providing system corresponding to a number generation tool can generate test data using the number generation tool, avoiding multiple development of the same number generation tool, improving the reuse degree of the number generation tool; in addition, the number is processed according to the target number generation rule corresponding to the number type, that is, the present application provides a plurality of number generation modes, so that diversified number generation is realized, and different number generation requirements can be met.

[0025] Specifically, in order to improve the test data generation efficiency and the reuse degree of the number generation tool, the embodiment of the present application provides a number generation platform, and the number generation tool is published, each test environment is managed, and the number is processed based on the published number generation tool through the number generation platform. The architecture diagram of the number generation platform is as shown in Figure 1 The architecture diagram of the number generation platform is as shown in

[0026] The dependency layer can include a service providing system to be tested, a test environment corresponding to the service providing system to be tested, a test database, a target database, and the like. The service providing system to be tested can be a service providing system of any service, such as a payment system providing a payment service, an order system providing an order service, and the like. The test environment includes a domain name of the test environment, an API corresponding to the service providing system, a connected database, and the like. The test database is used to store test data obtained through data processing, and the like. The target database is used to store service providing data generated by the service providing system, and the like.

[0027] The access adaptation layer includes an adapter, a Fake-api, a Mock-api, and the like. The adapter includes a database adapter, a data warehouse adapter, a message bus adapter, an interface adapter, and the like. It can be understood that each part in the dependency layer does not belong to the data processing platform, but accesses the data processing platform through the adapter. The Fake-api refers to that the service providing system does not provide the data processing platform, but encapsulates the service providing system into a Fake-api interface and provides the data processing platform with the Fake-api interface. The Mock-api refers to that the service providing system provides the data processing platform, but does not directly call the service providing system due to complex internal logic or long time consumption, and simulates the calling of the service providing system by calling the Mock-api interface.

[0028] The data processing layer includes a data processing plan, a data processing task, a storage task, a verification task, an interface data processing, a formula data processing, a template data processing, and an execution scheduler, and the like. The data processing plan is generated by the data processing platform based on the configuration operation of the user. The data processing plan includes a data processing type, a data processing arrangement, a data processing object, and the like. The data processing, storage, and verification functions are realized by executing the data processing plan. The data processing type includes a template data processing type, a formula data processing type, and an interface data processing type, and the like. The data processing arrangement refers to the arrangement of the execution of the data processing task, the storage task, and the verification task in the data processing plan, so that the data processing task, the storage task, and the verification task are executed in parallel or in series. The execution scheduler is used to schedule the data processing task, the storage task, and the verification task according to the data processing arrangement. The specific operations performed by the data processing task, the storage task, and the verification task, and the specific data processing process corresponding to the template data processing type, the formula data processing type, and the interface data processing type can be referred to the related description in the following.

[0029] The tool layer includes a tool market, an environment configuration module, and a permission configuration module, and the like. The tool market includes a plurality of data processing tools published therein. The environment configuration module is used to configure each test environment. The permission configuration module is used to configure the user operation permission of each user using the data processing platform. The following describes in detail the test data generation method based on the data processing platform.

[0030] Specifically, Figure 2A flowchart of a test data generation method provided for one or more embodiments of the present application, Figure 2 The method in the method can be executed by the aforementioned number generation platform, which can be arranged in a terminal device or a server. The terminal device can be a mobile phone, a tablet computer, a desktop computer, a portable notebook computer, etc. The server can be a standalone server or a server cluster composed of multiple servers. As shown in Figure 2 The method includes the following steps:

[0031] Step S102, determining a target number generation tool to be executed from the published multiple number generation tools; each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system;

[0032] It can be understood that since each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system, each service providing system provides a service, therefore, each test environment corresponds to a service, and each number generation tool corresponds to a service and a service providing system that provides the service. That is, by executing each number generation tool, test data for testing the corresponding service providing system can be generated. The service can be any type of service, such as order placement service, payment service, account opening service, credit service, etc. Correspondingly, the service providing system can be a service providing system that provides any type of service, such as an order placement system that provides order placement service, a payment system that provides payment service, an account opening system that provides account opening service, a credit system that provides credit service, etc. The service providing system in this specification can be a standalone system (such as a payment system, etc.), or a subsystem of a certain standalone system (such as an identity verification subsystem in a credit system, etc.).

[0033] It should be noted that different services of the same service type correspond to different service providing systems, i.e. different number generation tools, such as payment discount service that provides discount vouchers for payment, payment product recommendation service that provides product recommendations in a pop-up window during payment, both of which can be payment service type, but correspond to different service providing systems, i.e. different number generation tools.

[0034] Step S104, parsing the first number generation plan associated with the target number generation tool to obtain a number generation type;

[0035] In order to meet different number generation requirements and achieve the diversity of number generation, the embodiment of the application provides a plurality of number generation types such as a template number generation type, a formula number generation type and an interface number generation type, and different number generation types correspond to different number generation rules. The number generation type can be set in the number generation plan. When the number generation platform determines the target number generation tool to be executed currently, the first number generation plan associated with the target number generation tool is analyzed to obtain the number generation type corresponding to the target number generation tool.

[0036] In step S106, the number generation processing is performed according to the target number generation rule corresponding to the number generation type, and test data is obtained. The test data is used for test processing of the corresponding service providing system based on the target test environment associated with the target number generation tool.

[0037] In one or more embodiments of the application, a plurality of number generation tools are published, and the target number generation tool to be executed currently is determined. The first number generation plan associated with the target number generation tool is analyzed to obtain the number generation type. The number generation processing is performed according to the target number generation rule corresponding to the number generation type, and test data is obtained. The test data is used for test processing of the corresponding service providing system based on the target test environment associated with the target number generation tool. In this process, since the number generation processing is performed based on the published number generation tools, compared with manually writing test data and discrete tool generating test data, the generation efficiency of test data is greatly improved. Since each number generation tool published is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system, different testers who have the same test requirements for the service providing system corresponding to a number generation tool can use the number generation tool to generate test data, avoiding multiple development of the same number generation tool and improving the reusability of the number generation tool. In addition, since the number generation processing is performed according to the target number generation rule corresponding to the number generation type, that is, a plurality of number generation methods are provided, the diversified number generation is achieved, and different number generation requirements can be met.

[0038] In order to meet the number generation requirements and the automatic test requirements, in one or more embodiments of the application, the user can operate the number generation platform to configure the number generation plan and the test environment. Specifically, the method can further include the following steps A2 and A4:

[0039] In step A2, in response to the configuration operation of the target object by the user, it is determined whether the user has the configuration permission of the target object. The target object includes any one of the number generation plan, the test environment and the user operation permission.

[0040] Specifically, an administrator of the number building platform can pre-operate the number building platform to open user operation permissions for a primary user (e.g., a head of a test department, etc.) of the number building platform, and the primary user can operate the number building platform to configure user operation permissions for other users (e.g., testers of the test department, etc.). When a user (e.g., the head of the test department, a tester, etc.) wants to build a number to obtain test data, the user can log in to the number building platform to view currently published number building tools, and if it is determined that there is no number building tool meeting the user's own needs in the currently published number building tools, the user can operate a number building plan configuration control of the number building platform to configure a new number building plan. The number building platform responds to the operation of the number building plan configuration control by the user, acquires operation permission information of the user according to login information of the user, and determines whether the user has a configuration permission of the number building plan according to the acquired operation permission information. If yes, a number building plan configuration interface is displayed, and configuration information submitted by the user based on the number building plan configuration interface is acquired. The configuration information can include a number building type, a number building arrangement, a number building object used for number building processing, etc. Optionally, the configuration information can also include execution time, etc. The number building object is different with different number building types, and specific descriptions can be referred to the following descriptions.

[0041] Further, the process of configuring a test environment and configuring user operation permissions is similar to the process of configuring a number building plan, and the repeated descriptions are not repeated here. It should be noted that when the test environment is configured, the configuration information can include a domain name of the test environment, a connected database, an API of a service providing system corresponding to the test environment, a service type of a service corresponding to the test environment, etc. The API of the service providing system can include but is not limited to the Fake-api and the Mock-api. When the user operation permissions are configured, the configuration information can include permission information.

[0042] Step A4, if yes, the target object is configured and processed according to the acquired configuration information.

[0043] When the target object is a test environment, the number building platform can further establish an association relationship between an environment identifier of the test environment and a service type of a service corresponding to the test environment after the test environment is configured and processed according to the acquired configuration information.

[0044] Therefore, the number building platform provides a configuration function, so that when it is determined that there is no number building tool meeting the user's own needs in the published number building tools, the user can perform a configuration operation according to the user's own needs, and thus different needs of different users can be met.

[0045] Further, when the user determines that there is no number tool that meets his own needs in the published number tools, and has configured the number plan according to his own needs, in order to make other users with the same needs not to repeat the configuration operation, in one or more embodiments of the present application, the method further includes the following steps B2 and B4:

[0046] Step B2, in response to the tool publishing operation of the user, determining the second number plan associated with the number tool to be published and the service type corresponding to the number tool to be published;

[0047] Specifically, after the user completes the configuration of the number plan, the user can operate the tool publishing control of the number platform. The number platform responds to the operation of the user on the tool publishing control, determines whether the user has the tool publishing permission according to the obtained operation permission information of the user, if the determination result is yes, the tool publishing interface is displayed, and the tool publishing information submitted by the user based on the tool publishing interface is obtained. The plan identifier is obtained from the tool publishing information, and the number plan corresponding to the obtained plan identifier is determined as the second number plan associated with the number tool to be published, and the obtained service type is determined as the service type corresponding to the number tool to be published.

[0048] Step B4, binding the second number plan and each test environment corresponding to the service type, and publishing the corresponding number tool based on each bound second number plan and test environment.

[0049] Considering that the service providing data of different services of the same service type often has the same field, for example, the payment deduction service and the payment product recommendation service are different services of the same service type, and both have the payment serial number field, the payment account field, and the collection account field. Therefore, when testing the service providing system of different services of the same service type, the number processing can be performed based on the same number plan. Based on this, in order to reduce user operation and improve the publishing efficiency of the tool, in one or more embodiments of the present application, the number platform binds the second number plan and each test environment corresponding to the service type, and publishes the corresponding multiple number tools. That is, step B4 can include: according to the service type, obtaining the associated environment identifiers from the association relationship between the service type and the environment identifier of the test environment; associating the plan identifier of the second number plan with each environment identifier, to realize the binding of the second number plan and the test environment corresponding to each environment identifier; and publishing the corresponding number tool based on each bound second number plan and test environment, to establish the association between the tool identifier of the number tool and the plan identifier of the second number plan and the environment identifier of the test environment.

[0050] For example, according to the environment identification obtained according to the service type, there are three, respectively corresponding to test environment 1, test environment 3 and test environment 6, then based on the second number plan and test environment 1, the corresponding number tool 1 is released, the tool identification of the number tool 1 is associated with the plan identification of the second number plan and the environment identification of the test environment 1; based on the second number plan and test environment 3, the corresponding number tool 2 is released, the tool identification of the number tool 2 is associated with the plan identification of the second number plan and the environment identification of the test environment 3; based on the second number plan and test environment 6, the corresponding number tool 3 is released, the tool identification of the number tool 3 is associated with the plan identification of the second number plan and the environment identification of the test environment 6.

[0051] Therefore, the number platform automatically binds the second number plan with each test environment corresponding to the service type and publishes it into a tool, on the one hand, without the need for the user to manually bind the second number plan with the test environment, the binding efficiency is improved; on the other hand, the second number plan is bound with each test environment, the reuse rate of the second number plan is improved; on the other hand, by binding the second number plan with the test environment and publishing it into a number tool, different users with the same test requirements can use the number tool, and the reuse rate of the number tool is improved.

[0052] After the number tool is released, the number processing can be performed based on the released number tool. Considering that in actual application, the test requirements of different users are often different, for some users, they hope to operate the number platform for number processing by themselves. Based on this, in one or more embodiments of the present application, the number platform can determine the target number tool to be executed based on the number confirmation operation of the user; specifically, step S102 can include the following step S102-2:

[0053] Step S102-2, in response to the number confirmation operation of the user, obtaining the number information; the number tool corresponding to the tool identification included in the number information is determined as the target number tool to be executed.

[0054] Specifically, when the user has a test requirement, the user can select a target number generation tool in the operation interface of the number generation platform and then operate (e.g., click or double-click, etc.) a confirmation control. In response to the number generation confirmation operation of the user, the number generation platform obtains the number generation information submitted by the user. The tool identifier is extracted from the obtained number generation information, and the number generation tool corresponding to the tool identifier is determined as the target number generation tool to be executed currently. It should be noted that before operating the confirmation control, the user can also edit some number generation information in the operation interface, such as the target number of test data. That is, the number generation information includes the information edited by the user for number generation processing, for example, the number generation information can also include the target number of test data, and the specific content of the number generation information can be set as needed in actual application. Thus, the number generation platform determines the target number generation tool to be executed based on the number generation confirmation operation of the user and performs subsequent number generation processing, which can meet the self-operation requirements of some users.

[0055] It is considered that in actual application, for other users, they hope that the number generation platform can automatically perform number generation processing.

[0056] Based on this, in one or more embodiments of the present application, step S102 can include the following step S102-4:

[0057] Step S102-4: traversing each number generation tool published, determining whether the execution time of the candidate number generation tool is reached according to the number generation plan associated with the candidate number generation tool; if yes, determining the candidate number generation tool as the target number generation tool to be executed currently; wherein the candidate number generation tool is the number generation tool currently traversed.

[0058] Specifically, the execution time information can be included in the number generation plan. The number generation platform can traverse each number generation tool in the tool market according to a preset time interval, determine the number generation tool currently traversed as the candidate number generation tool, obtain the execution time information from the number generation plan associated with the candidate number generation tool, and compare the execution time information with the current time information. If the comparison result is consistent, it is determined that the execution time of the candidate tool is reached, and the candidate tool is determined as the target number generation tool to be executed currently. The preset time interval is, for example, 30 seconds, 60 seconds, etc. Thus, the number generation tool automatically traverses each number generation tool published to determine the target number generation tool to be executed currently and perform subsequent number generation processing, which can meet the automatic number generation requirements of some users.

[0059] In one or more embodiments of the present application, in order to meet different number generation requirements of different users at the same time, the above step S102-2 and step S02-4 can also be executed at the same time.

[0060] After the target number generation tool currently to be executed is determined, the number generation processing can be performed based on the target number generation tool. In order to make the test data obtained by the number generation processing meet the test requirements of the user, as described above, the number generation plan further includes a number generation object, and accordingly, as shown in Figure 3 Step S104 can include the following step S104-2.

[0061] Step S104-2: parsing the first number generation plan associated with the target number generation tool to obtain a number generation object and a number generation type.

[0062] Corresponding to step S104-2, as shown in Figure 3 Step S106 can include the following step S106-2.

[0063] Step S106-2: performing the number generation processing according to the target number generation rule corresponding to the number generation object and the number generation type to obtain test data; the test data is used for performing the test processing on the corresponding service providing system based on the target test environment associated with the target number generation tool.

[0064] In one or more embodiments of the present application, a number generation manner based on a number generation template is provided. That is, the number generation type can include a template number generation type, and accordingly, the number generation object includes a number generation template; in step S106-2, the number generation processing according to the target number generation rule corresponding to the number generation object and the number generation type to obtain test data can include the following steps S106-2-2 and S106-2-4.

[0065] Step S106-2-2: determining a field value of a target field according to the target number generation rule for each target field in the number generation template.

[0066] Specifically, the target field is determined according to the field type of each field in the number generation template; the target field includes a first field and a second field; the target field is divided into a first field set and a second field set, each second field in the second field set references at least one first field in the first field set; for each first field in the first field set, a first field value of the first field is generated according to the field definition of the first field included in the number generation template; for each second field in the second field set, a second field value of the second field is generated according to the first field value of the first field referenced by the second field. The number generation template can include at least one table and / or at least one document, and each table and each document can include a plurality of fields.

[0067] More specifically, a first field set and a second field set are created as empty; fields in the data generation template are traversed, and a field currently traversed is determined as a candidate field, a field type of the candidate field is read from the data generation template; if it is determined that the read field type is a variable type, the candidate field is determined as a first field in the target field, and the first field is added to the first field set; if it is determined that the read field type is a reference variable type, the candidate field is determined as a second field in the target field, and the second field is added to the second field set; and for each first field in the first field set, a field definition of the first field is obtained from the data generation template, and a first field value of the first field is generated according to the obtained field definition; for each second field in the second field set, a field definition of the second field is obtained from the data generation template, and a second field value of the second field is generated according to the obtained field definition and the first field value of the first field referenced by the second field.

[0068] In view of the fact that multiple test data are usually required in the test processing, in one or more embodiments of the present application, when a user wishes to operate the data generation platform for data generation processing, the user can operate the data generation platform to edit a target quantity of test data, or the user can configure a target quantity of test data in the data generation plan to include the target quantity in the data generation plan. When the user wishes the data generation platform to automatically perform data generation processing, the user can configure the execution time and the target quantity of test data in the data generation plan. Correspondingly, before step S106-2-2, the following step can also be included: obtaining the target quantity of test data, i.e., obtaining the target quantity of test data input by the user or obtaining the target quantity of test data from the data generation plan. Correspondingly, the aforementioned generation of the first field value of the first field can include: generation of the first field value of the target quantity of first fields; and the aforementioned generation of the second field value of the second field according to the first field value of the first field referenced by the second field can include: generation of the second field value of the second field according to each first field value of the first field referenced by the second field, to obtain the target quantity of second field values.

[0069] It can be understood that when the second field references a first field, the second field value of the second field can be generated according to each first field value of the first field referenced by the second field, to obtain the target quantity of second field values.

[0070] For example, the target quantity is 100, and for ease of description, the first field values are sequentially denoted as first field value 1, first field value 2, …, and first field value 100. Then, the second field value 1 is generated according to the first field value 1 of the first field referenced by the second field, the second field value 2 is generated according to the first field value 2 of the first field referenced by the second field, …, and the second field value 100 is generated according to the first field value 100 of the first field referenced by the second field, to obtain the 100 second field values of the second field.

[0071] Further, when the second field references multiple first fields, in order to ensure that each first field value of the referenced multiple first fields participates in the generation process of the second field value, and since the target number of test data is usually large, in one or more embodiments of the present application, the aforementioned generating the second field value of the second field according to each first field value of the first field referenced by the second field, to obtain the target number of second field values, can include: determining the first field value of each first field referenced by the second field as a first field value set respectively; according to the generation order of each first field value in each first field value set, traversing each first field value set simultaneously, and generating the second field value of the second field according to the first field value in each first field value set currently traversed. It can be understood that after generating the second field value of the second field according to the last first field value in each first field value set currently traversed, the target number of second field values is obtained.

[0072] For example, the target number is 100, for the convenience of description, according to the generation order of the first field value, the first field value is sequentially recorded as first field value 1, first field value 2…first field value 100; the second field 1 references the first field 2 and the first field 5, then the first field value 1 to the first field value 100 of the first field 2 is determined as the first field value set 1, and the first field value 1 to the first field value 100 of the first field 5 is determined as the first field value set 2; according to the generation order of each first field value in the first field value set 1 and the first field value set 2, traverse the first field value set 1 and the first field value set 2; according to the first field value 1 in the first field value set 1 and the first field value 1 in the first field value set 2 currently traversed, generate the second field value 1 of the second field 1; according to the first field value 2 in the first field value set 1 and the first field value 2 in the first field value set 2 currently traversed, generate the second field value 2 of the second field 1…according to the first field value 100 in the first field value set 1 and the first field value 100 in the first field value set 2 currently traversed, generate the second field value 100 of the second field 1, to obtain 100 second field values of the second field 1.

[0073] It should be pointed out that the number generation template in the number generation plan can include: the number generation template selected by the user from the plurality of number generation templates provided by the number generation platform when the user configures the number generation plan in the number generation platform, and / or the new number generation template edited by the user when the user configures the number generation plan in the number generation platform. When the number generation platform determines that the number generation template in the number generation plan includes the new number generation template edited by the user, the new number generation template can also be saved to the number generation template library.

[0074] Step S106-2-4, generating test data according to the determined field values.

[0075] Specifically, the test data is generated according to the first field values and the second field values. More specifically, it is determined whether the constant field is included in the number generation template. If yes, the first field values, the second field values and the third field value of the constant field are spliced according to the arrangement order of the fields included in the number generation template to obtain the test data. If no, the first field values and the second field values are spliced according to the arrangement order of the fields included in the number generation template to obtain the test data.

[0076] Thus, when the number generation type is the template number generation type, the number generation processing is performed according to the number generation template included in the number generation plan and the corresponding target number generation rule, template number generation is realized, and the template number generation demand of the user can be met.

[0077] In one or more embodiments of the present application, a number generation mode based on a number generation formula is also provided. That is, the number generation type can include a formula number generation type, and correspondingly, the number generation object includes a number generation formula set, the number generation formula set includes a plurality of number generation formulas; and the number generation processing according to the target number generation rule corresponding to the number generation object and the number generation type in step S106-2 to obtain the test data can include the following steps S106-2-6 to S106-2-12:

[0078] In step S106-2-6, the processing order of the number generation formulas in the number generation formula set is determined.

[0079] Specifically, when the number generation formula set includes a plurality of number generation formulas, any one number generation formula in the number generation formula set has at least one associated number generation formula in the number generation formula set, and correspondingly, step S106-2-6 can include: determining the processing order of the number generation formulas according to the association relationship between the number generation formulas in the number generation formula set.

[0080] As an example, the number generation formula set includes a number generation formula 1 “y1=0.2a+b”, a number generation formula 2 “y2=5c”, a number generation formula 3 “y3=6*y1-0.2*y4”, and a number generation formula 4 “y4=0.4d+y2”; where a, b, c, and d are variable factors, which means an unknown number in a certain number generation formula with respect to the target data to be calculated (i.e., the left side of the equal sign); the association relationship includes that the number generation formula 1 is associated with the number generation formula 3, the number generation formula 2 is associated with the number generation formula 4, the number generation formula 3 is associated with the number generation formula 1 and the number generation formula 4, and the number generation formula 4 is associated with the number generation formula 2; according to the association relationship, the processing order can be determined as the number generation formula 1, the number generation formula 2, the number generation formula 4, and the number generation formula 3 in turn, where the processing order of the number generation formula 1 and the number generation formula 2 can be interchanged, and they can also be processed simultaneously. Further, taking y2 as an example, it can be understood that y2 is the target data to be calculated for the number generation formula 2, and y2 is a variable factor for the number generation formula 4.

[0081] It should be noted that each of the number of formulae in the number of formulae set can include: a number of formulae selected by the user from a plurality of number of formulae provided by the number of platform when the user configures the number of plan by operating the number of platform, and / or a new number of formulae edited by the user when the user configures the number of plan by operating the number of platform. When the number of platform determines that the number of formulae set includes a new number of formulae edited by the user, the new number of formulae edited by the user can also be saved to the number of formulae library; and it is determined whether the user defines the value range of the factor value of the variable factor in the new number of formulae, if yes, the variable factor in the new number of formulae defined by the user, the generation mode of the factor value of the variable factor and the value range of the factor value of the variable factor are associated and saved to the factor library; if not, the variable factor in the new number of formulae defined by the user and the generation mode of the factor value of the variable factor are associated and saved to the factor library. In an embodiment, the generation mode of the factor value can be defined by using an SQL statement.

[0082] Step S106-2-8, according to the determined processing sequence, determining the target number of formulae to be processed currently, and determining the factor value of each variable factor in the target number of formulae according to the target number of rules;

[0083] In which, according to the target number of rules to determine the factor value of each variable factor in the target number of formulae, can include: according to the target number of rules to analyze the target number of formulae, get at least one variable factor of the target number of formulae; for each variable factor, determine the acquisition mode of the variable factor; if it is determined that the acquisition mode is the first acquisition mode, the generation mode of the factor value of the variable factor is obtained from the variable factor library; according to the obtained generation mode, the factor value of the variable factor is generated; if it is determined that the acquisition mode is the second acquisition mode, the factor value of the variable factor is obtained from the current obtained calculation result.

[0084] Continuing the above example, if it is determined that the target number of formulae to be processed currently is the number of formulae 4, according to the target number of rules to analyze the target number of formulae, get the variable factors d and y2 of the target number of formulae, determine the acquisition mode of the variable factor d to be the first acquisition mode, and get the generation mode and the value range of the factor value of the variable factor d from the variable factor library; according to the obtained generation mode, the factor value of the variable factor d in the value range is generated; for the variable factor y2, it is determined that the acquisition mode is the second acquisition mode, and then the factor value of the variable factor y2 is obtained from the current obtained calculation results y1 and y2.

[0085] Step S106-2-10, calculating according to the factor value and the target number of formulae, and obtaining the calculation result;

[0086] Continuing the above example, according to the factor value of the variable factor d, the factor value of the variable factor y2, and the number formula 4, the calculation result of y4 is obtained through calculation processing.

[0087] In step S106-2-12, if it is determined that the target number formula is the last number formula in the processing order, the calculation result is determined as the test data.

[0088] Specifically, it is determined whether the target number formula is the last number formula in the processing order. If yes, the calculation result of the target number formula is determined as the test data. If no, the step S106-2-8 is returned.

[0089] Continuing the above example, it is determined that the number formula 4 is not the last number formula in the processing order, and the step S106-2-8 is returned. In the step S106-2-8, the number formula 3 is determined as the target number formula to be processed according to the processing order.

[0090] Further, when the target number of the test data is obtained by the number platform, in the step S106-2-8, the factor value of the target number of each variable factor in the target number formula can be determined according to the target number rule, in the step S106-2-10, the calculation result of the target number is obtained through calculation processing according to the factor value of the target number and the target number formula, and in the step S106-2-12, if it is determined that the target number formula is the last number formula in the processing order, the calculation result of the target number is determined as the test data of the target number. The process of obtaining the target number of the test data can refer to the related description in the foregoing, and the repeated parts will not be described here.

[0091] It can be understood that when the number formula set includes a number formula, the number tool can be directly determined as the target number formula to be processed, the factor value of each variable factor in the target number formula can be determined according to the target number rule, and the test data can be obtained through calculation processing according to the factor value and the target number formula.

[0092] Therefore, when the number type is the formula number type, the number processing is performed according to the number formula set included in the number plan and the corresponding target number rule, the formula number is realized, and the formula number demand of the user can be met.

[0093] In one or more embodiments of the present application, an interface-based number method is also provided. That is, the number type can include an interface number type, and correspondingly, the number object includes a number interface. In the step S106-2, the test data is obtained through the number processing according to the target number rule corresponding to the number object and the number type, which can include the following step S106-2-14:

[0094] Step S106-2-14, according to the target number generation rule, calling the number generation interface in the number generation plan to generate the test data.

[0095] The number generation interface can include, but is not limited to, the aforementioned Fake-api and Mock-api. The specific number generation interface can be set by itself according to the actual application needs.

[0096] Further, when the number generation platform obtains the target number of test data, the number generation interface in the number generation plan is called the same number of times as the target number to obtain the target number of test data. For example, the target number is 50, and the number generation interface in the number generation plan can be called 50 times to obtain 50 test data.

[0097] Therefore, when the number generation type is the interface number generation type, the number generation processing is performed according to the number generation interface included in the number generation plan and the corresponding target number generation rule, the interface number generation is realized, and the interface number generation demand of the user can be met.

[0098] As can be seen from the above description, the present specification provides a plurality of number generation methods. In the number generation process, the number generation type needs to be obtained from the number generation plan, and the number generation processing is performed according to the target number generation rule corresponding to the number generation type. The diversified number generation is realized, and the diversified number generation demand can be met.

[0099] Further, in order to improve the test efficiency, in one or more embodiments of the present specification, the number generation platform can also test the effectiveness of the corresponding service providing system according to the obtained test data. Specifically, as shown in Figure 4 The step S106 can further include the following steps S108 and S110.

[0100] Step S108, saving the test data to a specified storage area;

[0101] The specified storage area can be any one of a database, a data warehouse, a message bus, etc. Since the storage area is used to store the test data obtained by the number generation processing, it can also be called a test database.

[0102] Step S110, based on the target test environment associated with the target number generation tool and the test data stored in the specified storage area, testing the service providing system corresponding to the target test environment.

[0103] Specifically, the related interface of the service providing system included in the target test environment associated with the target number generation tool is called to generate service providing data through the service providing system; the service providing data is compared with the test data in the specified storage area, if the comparison result is consistent, it is determined that the test is passed, and a test result representing the test passing is generated; if the comparison result is inconsistent, it is determined that the test is failed, and a test result representing the test failing is generated.

[0104] Further, when the number generation platform is based on user operation for number generation processing, after the test result is generated, it can further include: displaying the generated test result. When the number generation platform is automatically for number generation processing, after the test result is generated, it can further include: saving the generated test result, and when the user's viewing information is obtained, displaying the saved test result.

[0105] Therefore, after the number generation platform obtains the test data through number generation processing, the corresponding service providing system is automatically tested according to the test data, which not only reduces the user operation, but also realizes the automatic test, greatly improves the test efficiency.

[0106] Considering that in actual application, the number of test data can be more, in order to improve the storage efficiency of test data and test efficiency, in one or more embodiments of the present application, the number generation plan can further include number generation arrangement, so as to reasonably schedule each task based on the number generation arrangement. Specifically, before step S106, it can further include:

[0107] parsing the first number generation plan to obtain the number generation arrangement;

[0108] According to the number generation arrangement, the number generation task, the storage task and the test task are scheduled and processed, so that the number generation task, the storage task and the test task are executed in parallel or in series; wherein the number generation task is used for number generation processing according to the target number generation rule corresponding to the number generation type; the storage task is used for saving the test data to the specified storage area; the test task is used for testing the service providing system corresponding to the target test environment based on the test environment associated with the target number generation tool and the test data stored in the specified storage area.

[0109] Specifically, after determining the target number generation tool to be executed, the number generation platform parses the first number generation plan associated with the target number generation tool to obtain number generation arrangement, number generation type and number generation object; starts the corresponding number generation task, storage task and test task according to the number generation arrangement, and schedules the number generation task, storage task and test task for parallel or serial execution; and performs number generation processing on the number generation task according to the target number generation rule corresponding to the number generation object and the number generation type to obtain test data; stores the test data to the specified storage area through the storage task; and performs test processing on the service providing system corresponding to the target test environment based on the test environment associated with the target number generation tool and the test data stored in the specified storage area through the test task.

[0110] It can be understood that when the target number of test data is large, performing number generation processing, storage processing and test processing at the same time can greatly reduce the time consumption and improve the overall efficiency compared to performing storage processing and test processing after the number generation processing obtains the target number of test data. Therefore, scheduling each task according to the number generation arrangement to make each task execute in parallel or in series can ensure the orderly performance of number generation processing, storage processing and test processing, and improve the overall processing efficiency.

[0111] Further, considering that some number generation tools may no longer be used as the product is continuously upgraded, in order to avoid a large number of useless number generation tools, in one or more embodiments of the present specification, the method can further include: determining whether there is a number generation tool that has not been used within a preset time length; if yes, deleting the number generation tool that has not been used from the tool market.

[0112] In one or more embodiments of the present application, a plurality of number generation tools are published, and a target number generation tool to be currently executed is determined; a first number generation plan associated with the target number generation tool is parsed to obtain a number generation type; and number generation processing is performed according to a target number generation rule corresponding to the number generation type to obtain test data for testing a corresponding service providing system based on a target test environment associated with the target number generation tool. In this process, since the number generation processing is performed based on the published number generation tools, compared with manually writing test data and discrete tool generating test data, the generation efficiency of test data is greatly improved; and since each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system, different testers who have the same test requirements for a service providing system corresponding to a number generation tool can generate test data using the number generation tool, avoiding multiple developments of the same number generation tool, and improving the reusability of the number generation tool; in addition, since the number generation processing is performed according to the target number generation rule corresponding to the number generation type, that is, the present application provides a plurality of number generation methods, and therefore diversified number generation is realized, which can meet different number generation requirements.

[0113] Corresponding to the test data generation method described above, based on the same technical concept, one or more embodiments of the present application also provide a test data generation device. Figure 5 A module composition schematic diagram of a test data generation device provided for one or more embodiments of the present application is shown in Figure 5 The device comprises:

[0114] A determination module 201 is configured to determine a target number generation tool to be currently executed from a plurality of published number generation tools; each number generation tool is associated with a number generation plan and a test environment, and each test environment corresponds to a service providing system;

[0115] A parsing module 202 is configured to parse a first number generation plan associated with the target number generation tool to obtain a number generation type;

[0116] A processing module 203 is configured to perform number generation processing according to a target number generation rule corresponding to the number generation type to obtain test data; the test data is used for testing a corresponding service providing system based on a target test environment associated with the target number generation tool.

[0117] The test data generation apparatus provided in this application releases multiple data generation tools and determines the target data generation tool to be executed; it then parses the first data generation plan associated with the target data generation tool to obtain the data generation type; and performs data generation processing according to the target data generation rules corresponding to the data generation type to obtain test data for testing the corresponding service providing system based on the target test environment associated with the target data generation tool. In this process, since the data generation processing is based on the released data generation tools, the efficiency of test data generation is greatly improved compared to manually writing test data and generating test data using discrete tools. Furthermore, since each released data generation tool is associated with a data generation plan and a test environment, and each test environment corresponds to a service providing system, different testers with the same testing needs for the service providing system corresponding to a certain data generation tool can use the same data generation tool to generate test data, avoiding multiple developments of the same data generation tool and improving the reusability of the data generation tool. In addition, since the data generation processing is based on the target data generation rules corresponding to the data generation type, this application provides multiple data generation methods, thus achieving diversified data generation and meeting different data generation needs.

[0118] It should be noted that the embodiments of the test data generation device in this application and the embodiments of the test data generation method in this application are based on the same inventive concept. Therefore, the specific implementation of this embodiment can be referred to the implementation of the corresponding test data generation method mentioned above, and the repeated parts will not be described again.

[0119] Furthermore, corresponding to the test data generation method described above, based on the same technical concept, one or more embodiments of this application also provide an electronic device for performing the above-described test data generation method. Figure 6 This is a schematic diagram of the structure of an electronic device provided for one or more embodiments of this application.

[0120] like Figure 6 As shown, electronic devices can vary considerably due to differences in configuration or performance. They may include one or more processors 301 and memories 302. Memories 302 may store one or more application programs or data. Memories 302 may be temporary or persistent storage. Application programs stored in memories 302 may include one or more modules (not shown), each module including a series of computer-executable instructions within the electronic device. Furthermore, processors 301 may be configured to communicate with memories 302 and execute the series of computer-executable instructions stored in memories 302 on the electronic device. The electronic device may also include one or more power supplies 303, one or more wired or wireless network interfaces 304, one or more input / output interfaces 305, one or more keyboards 306, etc.

[0121] In one specific embodiment, the electronic device includes a memory and one or more programs, wherein one or more programs are stored in the memory and the one or more programs can include one or more modules, and each module can include a series of computer-executable instructions in the electronic device and is configured to be executed by one or more processors to perform the following computer-executable instructions:

[0122] From the published multiple number generation tools, determine the target number generation tool to be executed currently; each of the number generation tools is associated with a number generation plan and a test environment, and each of the test environments corresponds to a service providing system;

[0123] Parse the first number generation plan associated with the target number generation tool to obtain a number generation type;

[0124] According to the target number generation rule corresponding to the number generation type, perform number generation processing to obtain test data; the test data is used for test processing of the corresponding service providing system based on the target test environment associated with the target number generation tool.

[0125] The electronic device provided by the embodiments of the present application publishes multiple number generation tools and determines the target number generation tool to be executed currently; parses the first number generation plan associated with the target number generation tool to obtain a number generation type; and according to the target number generation rule corresponding to the number generation type, performs number generation processing to obtain test data for test processing of the corresponding service providing system based on the target test environment associated with the target number generation tool. In this process, since the number generation processing is performed based on the published number generation tools, compared with manually writing test data and discrete tool generating test data, the generation efficiency of test data is greatly improved; and since each of the published number generation tools is associated with a number generation plan and a test environment, and each of the test environments corresponds to a service providing system, different testers who have the same test requirements for the service providing system corresponding to a certain number generation tool can generate test data using the number generation tool, avoiding multiple development of the same number generation tool and improving the reuse degree of the number generation tool; in addition, since the number generation processing is performed according to the target number generation rule corresponding to the number generation type, that is, the present application provides multiple number generation methods, so that diversified number generation is realized, which can meet different number generation requirements.

[0126] It should be noted that the embodiments of the electronic device in the present application and the embodiments of the test data generation method in the present application are based on the same inventive concept, so the specific implementation of the embodiments can be referred to the corresponding test data generation method implementation described above, and the repeated parts will not be described herein.

[0127] Further, corresponding to the above-described test data generation method, based on the same technical concept, one or more embodiments of the present application also provide a storage medium for storing computer executable instructions, in a specific embodiment, the storage medium can be a U disk, an optical disk, a hard disk, etc., and the computer executable instructions stored in the storage medium can realize the following process when executed by a processor:

[0128] From the published multiple number generation tools, determine the target number generation tool to be executed currently; each of the number generation tools is associated with a number generation plan and a test environment, and each of the test environments corresponds to a service providing system;

[0129] Parse the first number generation plan associated with the target number generation tool to obtain a number generation type;

[0130] According to the target number generation rule corresponding to the number generation type, perform number generation processing to obtain test data; the test data is used to perform test processing on the corresponding service providing system based on the target test environment associated with the target number generation tool.

[0131] The storage medium provided by one or more embodiments of the present application stores computer executable instructions which, when executed by a processor, can realize the following process by publishing multiple number generation tools and determining the target number generation tool to be executed currently; and parsing the first number generation plan associated with the target number generation tool to obtain a number generation type; and performing number generation processing according to the target number generation rule corresponding to the number generation type to obtain test data for performing test processing on the corresponding service providing system based on the target test environment associated with the target number generation tool. In this process, since the number generation processing is performed based on the published number generation tools, compared with manually writing test data and discrete tool generating test data, the generation efficiency of test data is greatly improved; and since each of the published number generation tools is associated with a number generation plan and a test environment, and each of the test environments corresponds to a service providing system, different testers who have the same test requirements for the service providing system corresponding to a number generation tool can use the number generation tool to generate test data, avoiding multiple development of the same number generation tool and improving the reuse degree of the number generation tool; in addition, since the number generation processing is performed according to the target number generation rule corresponding to the number generation type, that is, the present application provides multiple number generation methods, so that diversified number generation is realized, which can meet different number generation requirements.

[0132] It should be noted that the embodiments of the storage medium in the present application and the embodiments of the test data generation method in the present application are based on the same inventive concept, so the specific implementation of this embodiment can be referred to the foregoing corresponding test data generation method implementation, and the repeated parts will not be described herein.

[0133] The above described specific embodiments of the application. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Additionally, the process depicted in the figures does not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing can be advantageous.

[0134] In the 1990s, it was relatively easy to distinguish whether an improvement in a technology was a hardware improvement (e.g., an improvement in the circuit structure of a diode, transistor, switch, etc.) or a software improvement (an improvement in a method flow). However, as technology has evolved, many improvements in method flows today can be considered as direct improvements in hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structures by programming the improved method flows into hardware circuits. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using hardware entity modules. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. A digital system is "integrated" on a PLD by the designer programming the PLD, rather than by ordering a chip manufacturer to design and fabricate a custom integrated circuit chip. Moreover, instead of manually fabricating integrated circuit chips, this programming is now mostly implemented using "logic compiler" software, which is similar to software compilers used in program development, and the original code to be compiled is written in a specific programming language, which is called a hardware description language (HDL), and there are many such languages, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., and the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should be aware that, as long as the method flow is logically programmed in the above-mentioned hardware description languages and programmed into an integrated circuit, a hardware circuit implementing the logical method flow can be easily obtained.

[0135] The controller can be implemented in any suitable way, e.g. the controller can take the form of a microprocessor or processor and a computer readable medium storing computer readable program code, e.g. software or firmware, executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller and an embedded microcontroller, examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to being implemented in pure computer readable program code form, the controller can perfectly well be implemented to perform the same functions using logic gates, switches, an application specific integrated circuit, a programmable logic controller and an embedded microcontroller, etc. by means of a logical programming of the method steps. The controller can thus be considered a hardware component, and the means comprised therein for performing the various functions can be considered structures within the hardware component. Alternatively, or even, the means for performing the various functions can be considered both a software module implementing the method and a structure within the hardware component.

[0136] The systems, apparatuses, modules or units illustrated by the above embodiments can be implemented by computer chips or entities, or products with certain functions. A typical implementation device is a computer. Specifically, the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0137] For the sake of description, the above apparatuses are described in various units by functions respectively. Of course, the functions of each unit can be implemented in the same or multiple software and / or hardware in the implementation of the embodiments of the present application.

[0138] Those skilled in the art will appreciate that one or more embodiments of the application can provide a method, a system or a computer program product. Accordingly, one or more embodiments of the application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the application can take the form of a computer program product on one or more computer readable storage media (including, but not limited to, disk memory, CD-ROMs, optical storage media such as DVDs, etc.) having computer usable program code embodied therein.

[0139] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0140] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0141] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0142] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0143] The memory can include non-persistent memory and / or persistent memory, such as flash memory, read-only memory (ROM), and / or volatile or non-volatile random access memory (RAM), among others. The memory is an example of computer readable media.

[0144] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0145] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0146] One or more embodiments of the application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like, that perform particular tasks or implement particular abstract data types. One or more embodiments of the application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including memory storage devices.

[0147] Various embodiments in the present application are described in progressive manner, and the same or similar parts between various embodiments can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0148] The above merely provides the example of the present document and is not intended to limit the present document. For those skilled in the art, the present document can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present document shall be included in the scope of claims of the present document.

Claims

1. A test data generation method, characterized by, The method comprises the following steps: determining a target number generation tool to be executed from a plurality of number generation tools published, each of the number generation tools being associated with a number generation plan and a test environment, and each of the test environments corresponding to a service providing system; parsing a first number generation plan associated with the target number generation tool to obtain a number generation type; performing number generation processing according to a target number generation rule corresponding to the number generation type to obtain test data, wherein the test data is used for test processing of a corresponding service providing system based on a target test environment associated with the target number generation tool.

2. The method of claim 1, wherein, Before the number generation processing according to the target number generation rule corresponding to the number generation type, the method comprises the following steps: parsing the first number generation plan to obtain a number generation object; the number generation processing according to the target number generation rule corresponding to the number generation type to obtain test data comprises the following steps: performing number generation processing according to the target number generation rule corresponding to the number generation object and the number generation type to obtain test data.

3. The method of claim 2, wherein the number generation type comprises a template number generation type, and the number generation object comprises a number generation template; and the number generation processing according to the target number generation rule corresponding to the number generation object and the number generation type to obtain test data comprises the following steps: determining a field value of each target field in the number generation template according to the target number generation rule; generating test data according to the field values.

4. The method of claim 3, wherein, The determination of the field value of each target field in the number generation template according to the target number generation rule comprises the following steps: determining a target field according to a field type of each field in the number generation template, wherein the target field comprises a first field and a second field; dividing the target field into a first field set and a second field set, wherein each second field in the second field set references at least one first field in the first field set; generating a first field value of each first field in the first field set according to a field definition of the first field included in the number generation template; generating a second field value of each second field in the second field set according to the first field value of the first field referenced by the second field; The generation of test data according to the field values comprises the following steps: generating test data according to the first field values and the second field values.

5. The method of claim 2, wherein the number generation type comprises a formula number generation type, the number generation object comprises a number generation formula set, and the number generation formula set comprises a plurality of number generation formulas; and the number generation processing according to the target number generation rule corresponding to the number generation object and the number generation type to obtain test data comprises the following steps: determining a processing order of each number generation formula included in the number generation formula set; determining a target number generation formula to be processed according to the processing order, and determining a factor value of each variable factor in the target number generation formula according to the target number generation rule; performing calculation processing according to the factor value and the target number generation formula to obtain a calculation result; and generating test data according to the calculation result. If it is determined that the target number formula is the last number formula corresponding to the processing sequence, the calculation result is determined as test data.

6. The method of claim 5, wherein, The method further includes: According to the target number rule, the factor value of each variable factor in the target number formula is determined. According to the target number rule, the target number formula is parsed to obtain at least one variable factor of the target number formula. For each variable factor, the acquisition method of the variable factor is determined. If the acquisition method is the first acquisition method, the generation method of the factor value of the variable factor is obtained from the variable factor library; and the factor value of the variable factor is generated according to the generation method.

7. The method of claim 2, wherein, If the acquisition method is the second acquisition method, the factor value of the variable factor is obtained from the currently obtained calculation result. The number type includes an interface number type, and the number object includes a number interface; and the number processing according to the target number rule corresponding to the number object and the number type to obtain test data includes:

8. The method of claim 1, wherein, According to the target number rule, the number interface is called to generate test data. The method further includes: In response to a number confirmation operation of a user, number information is obtained; a number tool corresponding to a tool identifier included in the number information is determined as a target number tool to be executed currently; and / or, 9. The method of claim 1, wherein, Each number tool published is traversed, and whether the execution time of a candidate number tool is reached is determined according to a number plan associated with the candidate number tool, the candidate number tool being a number tool currently traversed; if yes, the candidate number tool is determined as the target number tool to be executed currently; and the candidate number tool is the number tool currently traversed. The method further includes: In response to a tool publishing operation of a user, a second number plan associated with a number tool to be published and a service type corresponding to the number tool to be published are determined; 10. The method of claim 1, wherein, Each test environment corresponding to the second number plan and the service type is bound, and a corresponding number tool is published based on each bound second number plan and test environment. After the test data is obtained, the method further includes: The test data is saved to a specified storage area; 11. The method of claim 10, wherein, A service providing system corresponding to a target test environment associated with the target number tool is tested based on the test data stored in the storage area and the target test environment. Before the number processing according to the target number rule corresponding to the number type, the method further includes: The first number plan is parsed to obtain number arrangement; 12. The method of claim 1, wherein, The number task, the storage task and the test task are scheduled according to the number arrangement; the number task is used for number processing according to the target number rule corresponding to the number type; the storage task is used for saving the test data to a specified storage area; and the test task is used for testing a service providing system corresponding to a target test environment associated with the target number tool based on the test data stored in the storage area and the target test environment. The method further includes: In response to a configuration operation of a target object by a user, it is determined whether the user has a configuration right of the target object; the target object includes any one of a number generation plan, a test environment, and a user operation right; If yes, the target object is configured according to the obtained configuration information.

13. A test data generation apparatus characterized by comprising: Comprise: A determination module is configured to determine a target number generation tool to be executed from a plurality of published number generation tools; each of the number generation tools is associated with a number generation plan and a test environment, and each of the test environments corresponds to a service providing system; An analysis module is configured to analyze a first number generation plan associated with the target number generation tool to obtain a number generation type; A processing module is configured to perform number generation processing according to a target number generation rule corresponding to the number generation type to obtain test data; the test data is used to test and process a corresponding service providing system based on a target test environment associated with the target number generation tool.

14. An electronic device, comprising: Comprise: A processor; And, A memory arranged to store computer executable instructions, the executable instructions being configured to be executed by the processor, the executable instructions comprising steps for executing the steps of the test data generation method according to any one of claims 1-12.

15. A storage medium, characterized by The storage medium is used to store computer executable instructions, and the executable instructions enable a computer to execute the test data generation method according to any one of claims 1-12.

Citation Information

Patent Citations

  • Test data generation method and device, storage medium and intelligent equipment

    CN111221726A

  • Test script generation method, device, computer equipment and storage medium

    CN111813680A

  • Security test method and device of target application, electronic equipment and storage medium

    CN114676066A