CN116204430A - Test data generation method, device and equipment - Google Patents

Test data generation method, device and equipment Download PDF

Info

Publication number
CN116204430A
CN116204430A CN202310179425.2A CN202310179425A CN116204430A CN 116204430 A CN116204430 A CN 116204430A CN 202310179425 A CN202310179425 A CN 202310179425A CN 116204430 A CN116204430 A CN 116204430A
Authority
CN
China
Prior art keywords
count
target
tool
test data
field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310179425.2A
Other languages
Chinese (zh)
Inventor
汪南
刘明峰
于少龙
阎智文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mashang Xiaofei Finance Co Ltd
Original Assignee
Mashang Xiaofei Finance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mashang Xiaofei Finance Co Ltd filed Critical Mashang Xiaofei Finance Co Ltd
Priority to CN202310179425.2A priority Critical patent/CN116204430A/en
Publication of CN116204430A publication Critical patent/CN116204430A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a test data generation method, device and equipment, wherein the method comprises the following steps: determining a target counting tool to be executed currently from a plurality of counting tools issued; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system; analyzing a first count plan associated with the target count tool to obtain a count type; performing count processing according to a target count rule corresponding to the count type to obtain test data; the test data is used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool. By the embodiment of the application, the generation efficiency of the test data and the multiplexing degree of the counting tool are improved.

Description

Test data generation method, device and equipment
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a device for generating test data.
Background
A new product is typically tested before being put into service. For example, a certain application program may perform a test process before being officially released for use. Test data is an essential element of the test process, and the current test data obtaining mode is mainly written manually by a tester or a discrete tool (such as a script) is developed by the tester and the test data is generated through the discrete tool. However, the test data is manually written, and the problems of low test data generation efficiency, easiness in writing errors and the like exist. When test data is generated by a discrete tool, the discrete tool often generates the test data in a single fixed mode, and the requirement of generating diversified test data is difficult to meet; moreover, when different testers have the same test requirements, development of discrete tools is often performed multiple times, and the multiplexing rate of the discrete tools is low.
Disclosure of Invention
The application provides a test data generation method, device and equipment, so as to improve the generation efficiency of test data and the multiplexing rate of a counting tool.
In a first aspect, an embodiment of the present application provides a test data generating method, including:
determining a target counting tool to be executed currently from a plurality of counting tools issued; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
analyzing a first count plan associated with the target count tool to obtain a count type;
performing count processing according to a target count rule corresponding to the count type to obtain test data; the test data are used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
It can be seen that in the embodiment of the present application, by issuing a plurality of number making tools, and determining the target number making tool to be currently executed; analyzing a first count plan associated with the target count tool to obtain a count type; and carrying out the count processing according to the target count rule corresponding to the count type to obtain test data for carrying out test processing on the corresponding service providing system based on the target test environment associated with the target count tool. In the process, because the counting processing is carried out based on the issued counting tool, compared with the process of manually writing test data and generating the test data by using a discrete tool, the generation efficiency of the test data is greatly improved; because each counting tool is distributed and is associated with one counting plan and one testing environment, and each testing environment corresponds to one service providing system, different testers with the same testing requirements on the service providing system corresponding to one counting tool can use the counting tool to generate testing data, multiple development of the same counting tool is avoided, and the multiplexing degree of the counting tool is improved; in addition, as the number making process is performed according to the target number making rule corresponding to the number making type, that is, the application provides a plurality of number making modes, the number making is diversified, and different number making requirements can be met.
In a second aspect, an embodiment of the present application provides a test data generating apparatus, including:
the determining module is used for determining a target number making tool to be executed currently from a plurality of issued number making tools; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
the analysis module is used for analyzing the first count plan associated with the target count tool to obtain a count type;
the processing module is used for carrying out the count processing according to the target count rule corresponding to the count type to obtain test data; the test data are used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a processor; and a memory arranged to store computer executable instructions configured to be executed by the processor, the executable instructions comprising steps for performing the test data generation method provided in the first aspect described above.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer-executable instructions for causing a computer to perform the steps in the test data generation method provided in the first aspect.
Drawings
In order to more clearly illustrate one or more embodiments of the present application or the prior art solutions, the following description will briefly describe the drawings used in the embodiments or the prior art descriptions, and it should be apparent that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person having ordinary skill in the art.
FIG. 1 is a block diagram of a counting platform according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a first method for generating test data according to an embodiment of the present application;
fig. 3 is a second flowchart of a test data generating method according to an embodiment of the present application;
fig. 4 is a third flow chart of a test data generating method according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a test data generating device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions in one or more embodiments of the present application, the following description will clearly and completely describe the technical solutions in one or more embodiments of the present application in conjunction with the accompanying drawings in one or more embodiments of the present application, and obviously, the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which may be made by one or more embodiments of the present application without the exercise of inventive faculty, are intended to be within the scope of protection of this document.
The embodiment of the application provides a test data generation method, device and equipment. In consideration of the existing generation modes of the test data, one generation mode is that test data is manually written by a tester, for example, related files are manually filled in to realize the writing of the test data, or a computer is manually used to calculate the test data, and the like. Another way of generating is for a tester to develop a discrete tool, such as a script or the like, and generate test data from the discrete tool. However, the test data is manually written, and writing errors are unavoidable, so that the problems of low test data generation efficiency, easiness in writing errors and the like exist. When the test data is generated by the discrete tool, the discrete tool often generates the test data in a single fixed mode, so that the requirement of generating the diversified test data is difficult to meet; moreover, when different testers have the same test requirements, development of discrete tools is often performed multiple times, and the multiplexing rate of the discrete tools is low. Based on the above, the embodiment of the application provides a test data generating method, which comprises the steps of issuing a plurality of counting tools and determining a target counting tool to be executed currently; analyzing a first count plan associated with the target count tool to obtain a count type; and carrying out the count processing according to the target count rule corresponding to the count type to obtain test data for carrying out test processing on the corresponding service providing system based on the target test environment associated with the target count tool. In the process, because the counting processing is carried out based on the issued counting tool, compared with the process of manually writing test data and generating the test data by using a discrete tool, the generation efficiency of the test data is greatly improved; because each counting tool is distributed and is associated with one counting plan and one testing environment, and each testing environment corresponds to one service providing system, different testers with the same testing requirements on the service providing system corresponding to one counting tool can use the counting tool to generate testing data, multiple development of the same counting tool is avoided, and the multiplexing degree of the counting tool is improved; in addition, as the number making process is performed according to the target number making rule corresponding to the number making type, that is, the application provides a plurality of number making modes, the number making is diversified, and different number making requirements can be met.
Specifically, in order to improve the efficiency of generating test data and the multiplexing degree of the count tool, the embodiment of the application provides a count platform, and issues the count tool through the count platform, manages each test environment, performs count processing based on the issued count tool, and the like. The architecture diagram of the build platform is shown in fig. 1, and includes a dependency layer, an access adaptation layer, a build layer, and a tool layer.
The dependency layer may 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 may be any service providing system, such as a payment system providing a payment service, an ordering system providing an ordering service, etc. The test environment includes a domain name of the test environment, an API of the corresponding service providing system, a connected database, and the like. The test database is used for storing test data obtained by the number of manufacture processing and the like. The target database is used for storing service providing data generated by the service providing system and the like.
The access adaptation layer comprises an adapter, a Fake-api, a Mock-api and the like. The adapter comprises a database adapter, a number bin adapter, a message bus adapter, an interface adapter and the like, and it is understood that all parts in the dependency layer do not belong to a number making platform, but are accessed to the number making platform through the adapter. Fake-api means that the service providing system is not provided to the accounting platform, but rather the service providing system is packaged into a Fake-api interface to be provided to the accounting platform; mock-api refers to a service providing system provided to a build platform, but because of its complex internal logic or time consuming, the service providing system is not directly invoked, but rather the service providing system is emulated by invoking the Mock-api interface.
The count layer comprises count plans, count tasks, storage tasks, verification tasks, interface count, formula count, template count, execution scheduler and the like. The count plan is generated by the count platform based on configuration operation of a user, and comprises count type, count arrangement, count object and the like, and functions of count, storage, verification and the like are realized by executing the count plan. The number of make type includes a template number of make type, a formula number of make type, an interface number of make type, and the like. The count schedule means that the count task, the storage task and the verification task are scheduled to be executed in parallel or in series in the count schedule. The execution scheduler is used for scheduling the count task, the storage task and the verification task according to the count arrangement. The specific operations performed by the number making task, the storage task and the verification task, and the specific number making process corresponding to the template number making type, the formula number making type and the interface number making type can be described in the following related description.
The tool layer comprises a tool bazaar, an environment configuration module, a permission configuration module and the like. The tool bazaar comprises a plurality of issued counting tools, an environment configuration module is used for configuring each test environment, and an authority configuration module is used for configuring user operation authorities of each user using the counting platform. The method for generating test data based on the number-of-manufacture platform is described in detail below.
Specifically, fig. 2 is a flow chart of a test data generating method according to one or more embodiments of the present application, where the method in fig. 2 can be executed by the foregoing counting platform, and the counting platform may be set in a terminal device or may be set in a server. The terminal equipment can be a mobile phone, a tablet computer, a desktop computer, a portable notebook computer and the like; the server may be an independent server or a server cluster composed of a plurality of servers. As shown in fig. 2, the method comprises the steps of:
step S102, determining a target number making tool to be executed currently from a plurality of issued number making tools; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
it will be appreciated that since each of the build tools is associated with a build plan and a test environment, and each of the test environments corresponds to a service providing system, each of the service providing systems provides a service, each of the test environments corresponds to a service, and each of the build tools corresponds to a service and the service providing system providing the service. That is, by executing each of the number making tools, test data for performing test processing on the corresponding service providing system can be generated. The service may be any type of service, such as an order service, a payment service, an account opening service, a credit service, etc.; accordingly, the service providing system may be a service providing system that provides any kind of service, for example, an order placing system that provides an order placing service, a payment system that provides a payment service, an account opening system that provides an account opening service, a trust system that provides a trust service, and the like. The service providing system in the present specification may be a separate system (for example, a payment system, etc.), or may be a subsystem of a separate system (for example, an authentication subsystem in a trust system, etc.).
It should be noted that different services of the same service type correspond to different service providing systems, i.e. to different number making tools, such as a payment exemption service for providing coupons for exemption during payment, a pay product recommendation service for product recommendation by popup during payment, both of which may be of the payment service type, but both correspond to different service providing systems, i.e. to different number making tools.
Step S104, analyzing a first count plan associated with the target count tool to obtain a count type;
in order to meet different manufacturing requirements and realize diversity of manufacturing, the embodiment of the application provides a plurality of manufacturing types such as template manufacturing types, formula manufacturing types, interface manufacturing types and the like, and different manufacturing types correspond to different manufacturing rules. The number making type can be set in the number making plan, and after the number making platform determines the target number making tool to be executed currently, the first number making plan associated with the target number making tool is analyzed to obtain the number making type corresponding to the target number making tool.
Step S106, carrying out count processing according to a target count rule corresponding to the count type to obtain test data; the test data is used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
In one or more embodiments of the present application, a plurality of make tools are issued, and a target make tool to be currently executed is determined; analyzing a first count plan associated with the target count tool to obtain a count type; and carrying out the count processing according to the target count rule corresponding to the count type to obtain test data for carrying out test processing on the corresponding service providing system based on the target test environment related to the target count tool. In the process, because the counting processing is carried out based on the issued counting tool, compared with the process of manually writing test data and generating the test data by using a discrete tool, the generation efficiency of the test data is greatly improved; because each counting tool is distributed and is associated with one counting plan and one testing environment, and each testing environment corresponds to one service providing system, different testers with the same testing requirements on the service providing system corresponding to one counting tool can use the counting tool to generate testing data, multiple development of the same counting tool is avoided, and the multiplexing degree of the counting tool is improved; in addition, as the number making process is performed according to the target number making rule corresponding to the number making type, that is, the application provides a plurality of number making modes, the number making is diversified, and different number making requirements can be met.
To meet the manufacturing requirements and the automated testing requirements, in one or more embodiments of the present application, a user may operate a manufacturing platform to perform configuration operations on manufacturing plans, testing environments, and the like. Specifically, the method may further include the following step A2 and step A4:
a2, determining whether the user has the configuration authority of the target object or not in response to the configuration operation of the user on the target object; the target object comprises any one of a counting plan, a testing environment and user operation authority;
specifically, an administrator of the count platform may operate the count platform in advance to open user operation rights for a main user (e.g., a responsible person of a test department, etc.) using the count platform, and the main user may operate the count platform to configure user operation rights of other users (e.g., each tester of the test department, etc.). When a user (such as a responsible person of a test department, a tester and the like) wants to make a number to obtain test data, the number making platform can be logged in to check each number making tool which is released currently, and if the number making tools which meet the self requirements are not determined in each number making tool which is released currently, a number making plan configuration control of the number making platform can be operated to configure a new number making plan. The system comprises a counting platform, a counting plan configuration interface and configuration information submitted by a user based on the counting plan configuration interface, wherein the counting platform responds to the operation of the user on the counting plan configuration control, acquires operation authority information of the user according to login information of the user, determines whether the user has the configuration authority of the counting plan according to the acquired operation authority information, and if yes, displays the counting plan configuration interface. Wherein, the liquid crystal display device comprises a liquid crystal display device, the configuration information may include a make type, make arrangement, a make object used for the make process, etc.; optionally, information such as execution time may be included. The number of occurrences object varies with the number of occurrences type, see in particular the relevant description below.
Further, the process of configuring the test environment and configuring the user operation authority is similar to the process of configuring the number of times plan, and reference is made to the above description, and the repetition is omitted here. It should be noted that, when configuring the test environment, the configuration information may include a domain name of the test environment, a database of connections, an API of a service providing system corresponding to the test environment, a service type of a service corresponding to the test environment, and the like; among them, APIs of the service providing system may include, but are not limited to, the foregoing Fake-API and Mock-API. When configuring user operation rights, the configuration information may include rights information.
And step A4, if yes, performing configuration processing on the target object according to the acquired configuration information.
When the target object is a test environment, the counting platform can also establish the association relation between the environment identification of the test environment and the service type of the service corresponding to the test environment after carrying out configuration processing on the test environment according to the acquired configuration information.
Therefore, the counting platform provides a configuration function, so that a user can perform configuration operation according to own needs when determining that the counting tools meeting own needs do not exist in all the issued counting tools, and different needs of different users can be met.
Further, when the user determines that there is no build tool satisfying the own demand among the published build tools, and the build plan has been configured according to the own demand, in order to make other users having the same demand do not need to repeatedly perform the configuration operation, in one or more embodiments of the present application, the method further includes the following steps B2 and B4:
step B2, responding to the tool release operation of the user, and determining a second account number plan associated with the account number tool to be released and a service type corresponding to the account number tool to be released;
specifically, after the configuration of the counting plan is completed, a user can operate a tool release control of the counting platform, the counting platform responds to the operation of the user on the tool release control, whether the user has tool release rights or not is determined according to the obtained operation rights information of the user, if yes, a tool release interface is displayed, and tool release information submitted by the user based on the tool release interface is obtained; and acquiring a plan identifier and a service type from the tool release information, determining a make plan corresponding to the acquired plan identifier as a second make plan associated with the make tool to be released, and determining the acquired service type as the service type corresponding to the make tool to be released.
And step B4, binding the second count plan with each test environment corresponding to the service type, and issuing a corresponding count tool based on the second count plan and the test environment of each binding.
Considering that the service providing data of different services of the same service type often have the same field, for example, the payment exemption service and the payment product recommendation service are different services of the same service type, and the payment data of the two services include a payment serial number field, a payment account field, a collection account field and the like. Therefore, when testing service providing systems of different services of the same service type, the number of times processing may be performed based on the same number of times plan. Based on this, in order to reduce user operations and improve the release efficiency of the tools, in one or more embodiments of the present application, the build platform binds the second build plan with each test environment corresponding to the service type and releases a plurality of corresponding build tools. I.e. step B4 may comprise: according to the service type, acquiring associated environment identifiers from the association relation between the service type and the environment identifiers of the test environment; associating a plan identifier of the second count plan with each environment identifier to realize the binding of the second count plan and the test environment corresponding to each environment identifier; and issuing a corresponding make tool based on each of the bound second make plan and test environment to associate a tool identification of the make tool with a plan identification of the second make plan and an environment identification of the test environment.
For example, three environment identifiers are obtained according to the service type and correspond to the test environment 1, the test environment 3 and the test environment 6 respectively, and then the tool identifier of the manufacturing tool 1 is associated with the plan identifier of the second manufacturing plan and the environment identifier of the test environment 1 based on the second manufacturing plan and the corresponding manufacturing tool 1 issued by the test environment 1; based on the second construction plan and the testing environment 3, issuing a corresponding construction tool 2, and associating the tool identification of the construction tool 2 with the plan identification of the second construction plan and the environment identification of the testing environment 3; based on the second construction plan and the test environment 6, the corresponding construction tool 3 is issued, and the tool identity of the construction tool 3 is associated with the plan identity of the second construction plan and the environment identity of the test environment 6.
Therefore, the counting platform automatically binds and publishes each testing environment corresponding to the second counting plan and the service type into a tool, and on one hand, the binding of the second counting plan and the testing environment is not required to be manually carried out by a user, so that the binding efficiency is improved; on the other hand, the second count plan is bound with each test environment, so that the multiplexing rate of the second count plan is improved; in yet another aspect, by binding the second count plan with the test environment and publishing it as a count tool, different users with the same test requirements can use the count tool, enhancing the reuse rate of the count tool.
After the count tool is released, the count process can be performed based on the released count tool. Considering that in practical application, the test requirements of different users often differ, for some users, it is desirable to operate the count platform by itself to perform count processing. Based on this, in one or more embodiments of the present application, the count platform may determine the target count tool to be currently executed based on a count confirmation operation by the user; specifically, step S102 may include the following step S102-2:
step S102-2, responding to the number making confirmation operation of the user, and acquiring number making information; and determining the number-making tool corresponding to the tool identification included in the number-making information as the target number-making tool to be executed currently.
Specifically, when the user has a test requirement, a target number making tool is selected in an operation interface of the number making platform, then a confirmation control is operated (such as a single click or a double click, etc.), and the number making platform responds to the number making confirmation operation of the user to acquire the number making information submitted by the user; and extracting a tool identifier from the acquired number of construction information, and determining a number of construction tool corresponding to the tool identifier as a target number of construction tool to be executed currently. It should be noted that the user may edit some of the number of times information, such as the target number of test data, or the like, in the operation interface before operating the confirmation control. That is, the count information includes information edited by the user for performing the count processing, for example, the count information may further include a target number of test data, etc., and the specific content of the count information may be set as required by the actual application. Therefore, the count platform determines a target count tool to be executed based on the count confirmation operation of the user and performs subsequent count processing, so that the self-operation requirements of some users can be met.
It is contemplated that in practice, it is desirable for other users that the count platform be capable of automatically performing count processing.
Based on this, in one or more embodiments of the present application, step S102 may include the following step S102-4:
step S102-4, traversing each issued number of manufacture tools, and determining whether the execution time of the candidate number of manufacture tools is reached according to the number of manufacture plans associated with the candidate number of manufacture tools; if yes, determining the candidate number-making tool as a target number-making tool to be executed currently; wherein the candidate construction tool is the construction tool currently traversed.
Specifically, the construction plan may include execution time information, and the construction platform may traverse each construction tool in the tool bazaar at a preset time interval, determine the currently traversed construction tool as a candidate construction tool, acquire the execution time information from the construction plan associated with the candidate construction tool, compare the execution time information with the current time information, and if the comparison result is consistent, determine the execution time reaching the candidate tool, and determine the candidate tool as a target construction tool to be executed currently. The preset time interval is, for example, 30 seconds, 60 seconds, or the like. Therefore, the counting tool automatically traverses each issued counting tool to determine the target counting tool to be executed currently and carry out subsequent counting processing, and the automatic counting requirement of some users can be met.
In one or more embodiments of the present application, the above step S102-2 and step S02-4 may also be performed simultaneously in order to meet different manufacturing requirements of different users at the same time.
After determining the target construction tool to be currently executed, construction processing may be performed based on the target construction tool. In order to enable the test data obtained by the count processing to meet the test requirement of the user, as described above, the count plan further includes a count object, and accordingly, as shown in fig. 3, step S104 may include the following steps S104-2:
step S104-2, analyzing a first count plan associated with the target count tool to obtain a count object and a count type;
corresponding to step S104-2, as shown in FIG. 3, step S106 may include the following step S106-2:
step S106-2, carrying out count processing according to a target count rule corresponding to the count object and the count type to obtain test data; the test data is used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
In one or more embodiments of the present application, a build mode based on a build template is provided. The immediate count type may include a template count type, and the count object includes a count template, accordingly; in step S106-2, the number of the objects and the number of the types of the objects are processed according to the number of the objects and the number of the types of the objects, so as to obtain test data, which may include the following steps S106-2-2 and S106-2-4:
Step S106-2-2, for each target field in the number of manufacture template, determining the field value of the target field according to the target number of manufacture rule;
specifically, determining a target field according to the field type of each field in the number-of-manufacture template; the target field includes a first field and a second field; dividing the target field into a first field set and a second field set, each second field in the second field set referencing at least one first field in the first field set; generating a first field value of the first field according to field definitions of the first field included in the number of manufacture template for each first field in the first field set; for each second field in the second set of fields, a second field value for the second field is generated from the first field value of the first field referenced by the second field. Wherein, the number making template can comprise at least one table and/or at least one document, and the like, and each table and each document can comprise a plurality of fields.
More specifically, creating a first field set and a second field set with empty contents; traversing the fields in the number-of-manufacture template, determining the currently traversed fields as candidate fields, and reading the field types of the candidate fields from the number-of-manufacture template; if the obtained field type is determined to be the variable type, determining the candidate field as a first field in the target field, and adding the first field into a first field set; if the acquired field type is determined to be the reference variable type, determining the candidate field as a second field in the target field, and adding the second field into a second field set; and for each first field in the first field set, acquiring a field definition of the first field from the count template, and generating a first field value of the first field according to the acquired field definition; for each second field in the second field set, acquiring a field definition of the second field from the count template, and generating a second field value of the second field according to the acquired field definition and the first field value of the first field referenced by the second field.
In one or more embodiments of the present application, when a user wishes to operate the build platform by himself to perform the build process, the build platform may be operated to edit a target amount of test data or the user may configure the target amount of test data to include the target amount in the build plan when configuring the build plan. When the user wishes the count platform to automatically perform the count process, the count plan may be configured while the execution time and the target number of test data are configured. Accordingly, the method may further comprise, before step S106-2-2: and acquiring the target quantity of the test data, namely acquiring the target quantity of the test data input by a user, or acquiring the target quantity of the test data from a count making plan. Correspondingly, the generating the first field value of the first field may include: generating a first field value of a first field target number; the generating the second field value of the second field according to the first field value of the first field referenced by the second field may include: and generating a second field value of the second field according to each first field value of the first fields referenced by the second field, and obtaining a second field value of the target number.
It will be appreciated that when the second field references one of the first fields, the second field value of the second field may be generated directly from each of the first field values of the first fields referenced by the second field, resulting in a target number of second field values.
For example, the target number is 100, and for convenience of description, the first field value is sequentially denoted as a first field value 1 and a first field value 2 …, and 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, so as to obtain 100 second field values of the second field.
Further, when the second field references a plurality of first fields, since the target number of test data is generally larger, in order to ensure that each first field value of the referenced plurality of first fields participates in the generation process of the second field value, in one or more embodiments of the present application, 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 second field value of the target number may 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 sequence of the first field values in each first field value set, traversing each first field value set at the same time, and according to the first field value in each first field value set traversed currently, generating a second field value of the second field. It can be appreciated that when the second field value of the second field is generated according to the last first field value in each traversed first field value set, the second field value of the target number is obtained.
For example, the target number is 100, and for convenience of description, the first field values are sequentially denoted as a first field value 1, a first field value 2, …, and a first field value 100 according to the generation order of the first field values; the second field 1 refers to the first field 2 and the first field 5, and then the first field value 1 to the first field value 100 of the first field 2 are determined as a first field value set 1, and the first field value 1 to the first field value 100 of the first field 5 are determined as a first field value set 2; traversing the first field value set 1 and the first field value set 2 according to the generation sequence of each first field value in the first field value set 1 and the first field value set 2; generating a second field value 1 of the second field 1 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 which are traversed currently; generating a second field value 2 … 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 which are traversed currently, and generating a second field value 100 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 which are traversed currently, so as to obtain 100 second field values of the second field 1.
It should be noted that the number making template in the number making plan may include: the user may select a make template from a plurality of make templates provided by the make platform when the make platform configures the make plan, and/or may edit a new make template when the make platform configures the make plan. When the count platform determines that the count templates in the count plan include new count templates edited by the user, the new count templates may also be saved to a count template library.
And step S106-2-4, generating test data according to the determined field values.
Specifically, test data is generated according to each first field value and each second field value. More specifically, determining whether a constant field is included in the count template, if so, performing splicing processing on each first field value, each second field value and a third field value of the constant field according to the arrangement sequence of each field included in the count template, so as to obtain test data; if not, splicing the first field values and the second field values according to the arrangement sequence of the fields included in the count template to obtain test data.
Therefore, when the model is the template model, the model is processed according to the model template included in the model plan and the corresponding target model rule, so that the model is realized, and the model requirement of a user can be met.
In one or more embodiments of the present application, a construction method based on a construction formula is also provided. The make-up type may include a formula make-up type, and the make-up object includes a make-up formula set including a plurality of make-up formulas; in step S106-2, the number of the objects and the number of the types of the objects are processed according to the number of the objects and the types of the objects, and the test data may include the following steps S106-2-6 to S106-2-12:
step S106-2-6, determining the processing sequence of each coefficient formula in the coefficient formula set;
specifically, when the set of the number-making formulas includes a plurality of number-making formulas, any one of the number-making formulas in the set of the number-making formulas has at least one associated number-making formula in the set of the number-making formulas, and the corresponding step S106-2-6 may include: and determining the processing sequence of each manufacturing formula according to the association relation among the manufacturing formulas in the manufacturing formula set.
As an example, the set of the number of formulas includes a number of formulas 1 "y1=0.2a+b", a number of formulas 2 "y2=5c", a number of formulas 3 "y3=6×y1-0.2×y4", a number of formulas 4 "y4=0.4d+y2"; wherein a, b, c, d is a variable factor, which means that in a certain coefficient formula, the variable factor is unknown with respect to the target data to be calculated (i.e., the left side of the equal sign); the association relation comprises an association of a number formula 1, a number formula 3, a number formula 2, a number formula 3, a number formula 1, a number formula 4 and a number formula 4, and a number formula 2; the processing sequence can be determined to be the number making formula 1, the number making formula 2, the number making formula 4 and the number making formula 3 according to the association relation, wherein the processing sequence of the number making formula 1 and the number making formula 2 can be exchanged or can be processed simultaneously. Further, taking y2 as an example, it is understood that y2 is the target data to be calculated for the number of manufacturing equation 2, and y2 is a variable factor for the number of manufacturing equation 4.
It should be noted that each of the set of coefficient formulas may include: when the user operates the number making platform to configure the number making plan, a number making formula selected from a plurality of number making formulas provided by the number making platform and/or a new number making formula which is self-edited when the user operates the number making platform to configure the number making plan. When the coefficient platform determines that the coefficient formula set comprises a new coefficient formula edited by a user, the new coefficient formula edited by the user can be stored in a coefficient formula library; and determining whether a user defines a value range of the factor value of the variable factor in the new construction formula, if so, storing the variable factor in the new construction formula defined by the user, a generation mode of the factor value of the variable factor and the value range of the factor value of the variable factor in a factor library in a correlation manner; if not, the variable factors and the generation modes of the factor values of the variable factors in the new coefficient formula defined by the user are stored in a factor library in a related manner. In one embodiment, the generation of the factor value may be defined using SQL statements.
Step S106-2-8, determining a current to-be-processed target building number formula according to the determined processing sequence, and determining a factor value of each variable factor in the target building number formula according to a target building number rule;
Wherein, determining the factor value of each variable factor in the target construction formula according to the target construction rule may include: analyzing the target number of manufacture formula according to the target number of manufacture rule to obtain at least one variable factor of the target number of manufacture formula; determining an acquisition mode of the variable factors aiming at each variable factor; if the acquisition mode is determined to be the first acquisition mode, acquiring a generation mode of a factor value of a variable factor from a variable factor library; generating a factor value of the variable factor according to the acquired generation mode; and if the acquisition mode is determined to be the second acquisition mode, acquiring a factor value of the variable factor from the currently obtained calculation result.
Continuing the above example, if it is determined that the current target number formula to be processed is the number formula 4, analyzing the target number formula according to the target number rule to obtain variable factors d and y2 of the target number formula, determining an acquisition mode for the variable factor d as a first acquisition mode, and acquiring a generation mode and a value range of a factor value of the variable factor d from a variable factor library; generating a factor value of the variable factor d in the value range according to the acquired generation mode; and determining that the acquisition mode is a second acquisition mode aiming at the variable factor y2, and acquiring the factor value of the variable factor y2 from the currently obtained calculation results y1 and y 2.
Step S106-2-10, performing calculation processing according to the factor value and the target number formula to obtain a calculation result;
continuing the above example, the calculation processing is performed according to the factor value of the variable factor d, the factor value of the variable factor y2, and the coefficient formula 4, so as to obtain the calculation result of y 4.
And step S106-2-12, if the target number of manufacture formula is the last number of manufacture formula corresponding to the processing sequence, determining the calculation result as test data.
Specifically, determining whether the target number of manufacture formula is the last number of manufacture formula corresponding to the processing sequence, if so, determining the calculation result of the target number of manufacture formula as test data; if not, returning to the step S106-2-8.
Continuing with the above example, if it is determined that the formula 4 is not the last formula corresponding to the processing order, the process returns to step S106-2-8, and in step S106-2-8, the formula 3 is determined as the target formula to be currently processed according to the processing order.
Further, when the number-of-manufacture platform obtains the target number of the test data, in step S106-2-8, the factor value of the target number of each variable factor in the target number-of-manufacture formula can be determined according to the target number-of-manufacture rule, and in step S106-2-10, calculation processing is performed according to the factor value of the target number and the target number-of-manufacture formula, so as to obtain the calculation result of the target number; and if it is determined in step S106-2-12 that the target number of formulas is the last number of formulas corresponding to the processing order, determining the calculation result of the target number as the test data of the target number. The process of obtaining the target number of the test data may refer to the foregoing related description, and will not be repeated here.
It can be understood that when one coefficient formula is included in the coefficient formula set, the coefficient tool can directly determine the current to-be-processed target coefficient formula, determine the factor value of each variable factor in the target coefficient formula according to the target coefficient rule, and perform calculation processing according to the factor value and the target coefficient formula to obtain the test data.
Therefore, when the number making type is the formula number making type, the number making processing is carried out according to the number making formula set included in the number making plan and the corresponding target number making rule, so that the formula number making is realized, and the formula number making requirement of a user can be met.
In one or more embodiments of the present application, an interface-based manner of manufacturing is also provided. The immediate count type may include an interface count type, and the count object includes an count interface, accordingly; in step S106-2, the number of the objects and the number of the types of the objects are processed according to the number of the objects and the number of the types of the objects, so as to obtain test data, which may include the following steps S106-2-14:
step S106-2-14, calling a number making interface in the number making plan to generate test data according to the target number making rule.
The count interfaces may include, but are not limited to, the Fake-api and the Mock-api described above. The specific counting interface can be set according to the needs in practical application.
Further, when the count platform obtains the target number of the test data, the count interfaces in the count plan are called for the same times as the target number, so as to obtain the test data of the target number. For example, if the target number is 50, then the make interface in the 50 make plan may be invoked to obtain 50 test data.
Therefore, when the number making type is the interface number making type, the number making processing is carried out according to the number making interface included in the number making plan and the corresponding target number making rule, so that the number making of the interface is realized, and the number making requirement of the interface of a user can be met.
As can be seen from the above description, in the embodiments of the present specification, a plurality of manufacturing methods are provided, in the manufacturing process, the manufacturing type needs to be obtained from the manufacturing plan, and the manufacturing process is performed according to the target manufacturing rule corresponding to the manufacturing type, which realizes the diversified manufacturing, and can meet the diversified manufacturing requirements.
Further, in order to improve the testing efficiency, in one or more embodiments of the present disclosure, the counting platform may further perform testing processing on the validity of the corresponding service providing system according to the obtained testing data. Specifically, as shown in fig. 4, step S106 may further include the following steps S108 and S110:
Step S108, saving the test data to a designated storage area;
the designated storage area may be any one of a database, a data warehouse, a message bus, and the like. The storage area is used for storing test data obtained by the number of manufacturing process, and therefore can also be called a test database.
Step S110, based on the target test environment associated with the target number-making tool and the test data stored in the designated storage area, test processing is performed on the service providing system corresponding to the target test environment.
Specifically, a relevant interface of a service providing system included in a target test environment associated with the target number making tool is called so as to generate service providing data through the service providing system; comparing the service providing data with the test data in the designated storage area, and if the comparison results are consistent, determining that the test is passed and generating a test result representing that the test is passed; if the comparison results are inconsistent, determining that the test fails, and generating a test result representing that the test fails.
Further, when the count platform performs count processing based on user operation, the method may further include, after generating the test result: and displaying the generated test result. When the count making platform automatically performs count making processing, the method can further comprise the following steps after the test result is generated: and storing the generated test result, and displaying the stored test result when the checking information of the user is obtained.
Therefore, after the count making platform obtains test data through count making processing, the corresponding service providing system is automatically tested according to the test data, so that user operation is reduced, automatic test is realized, and test efficiency is greatly improved.
Considering that the number of test data may be large in practical application, in order to improve the storage efficiency and the test efficiency of the test data, in one or more embodiments of the present application, the count schedule may further include count schedule, so as to reasonably schedule each task based on the count schedule. Specifically, before step S106, the method may further include:
analyzing the first count plan to obtain count arrangement;
scheduling the count task, the storage task and the test task according to count arrangement so as to enable the count task, the storage task and the test task to be executed in parallel or in series; the count task is used for performing count processing according to a target count rule corresponding to the count type; the storage task is used for storing the test data to a designated storage area; the test task is used for carrying out test processing on the service providing system corresponding to the target test environment based on the test environment related to the target number creating tool and the test data stored in the designated storage area.
Specifically, after determining a target number making tool to be executed currently, the number making platform analyzes a first number making plan associated with the target number making tool to obtain number making arrangement, number making type and number making objects; starting corresponding count tasks, storage tasks and test tasks according to count arrangement, and scheduling the count tasks, the storage tasks and the test tasks so as to enable the count tasks, the storage tasks and the test tasks to be executed in parallel or in series; performing count processing according to a count object and a target count rule corresponding to a count type through a count task to obtain test data; storing the test data to a designated storage area through a storage task; and performing test processing on the service providing system corresponding to the target test environment through the test task based on the test environment related to the target number creating tool and the test data stored in the designated storage area.
It can be understood that when the target number of the test data is large, the storage processing and the test processing are performed while the count making processing is performed, so that compared with the case that the count making processing is performed to obtain the target number of the test data, the time consumption can be greatly reduced and the overall efficiency can be improved after the storage processing and the test processing are performed. Therefore, each task is scheduled according to the count arrangement, so that each task is executed in parallel or in series, ordered execution of count processing, storage processing and test processing can be ensured, and overall processing efficiency is improved.
Further, in order to avoid the existence of a large number of unwanted manufacturing tools, in one or more embodiments of the present disclosure, the method may further comprise: determining whether unused count tools exist within a preset time period; if so, the unused build tool is deleted from the tool marketplace.
In one or more embodiments of the present application, a plurality of make tools are issued, and a target make tool to be currently executed is determined; analyzing a first count plan associated with the target count tool to obtain a count type; and carrying out the count processing according to the target count rule corresponding to the count type to obtain test data for carrying out test processing on the corresponding service providing system based on the target test environment related to the target count tool. In the process, because the counting processing is carried out based on the issued counting tool, compared with the process of manually writing test data and generating the test data by using a discrete tool, the generation efficiency of the test data is greatly improved; because each counting tool is distributed and is associated with one counting plan and one testing environment, and each testing environment corresponds to one service providing system, different testers with the same testing requirements on the service providing system corresponding to one counting tool can use the counting tool to generate testing data, multiple development of the same counting tool is avoided, and the multiplexing degree of the counting tool is improved; in addition, as the number making process is performed according to the target number making rule corresponding to the number making type, that is, the application provides a plurality of number making modes, the number making is diversified, and different number making requirements can be met.
Corresponding to the test data generating method described above, one or more embodiments of the present application further provide a test data generating device based on the same technical concept. Fig. 5 is a schematic block diagram of a test data generating device according to one or more embodiments of the present application, where, as shown in fig. 5, the device includes:
a determining module 201, configured to determine a target number-making tool to be currently executed from a plurality of issued number-making tools; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
a parsing module 202, configured to parse the first count plan associated with the target count tool to obtain a count type;
the processing module 203 is configured to perform a count process according to a target count rule corresponding to the count type, so as to obtain test data; the test data are used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
According to the test data generation device provided by the embodiment of the application, a plurality of counting tools are issued, and the current target counting tool to be executed is determined; analyzing a first count plan associated with the target count tool to obtain a count type; and carrying out the count processing according to the target count rule corresponding to the count type to obtain test data for carrying out test processing on the corresponding service providing system based on the target test environment related to the target count tool. In the process, because the counting processing is carried out based on the issued counting tool, compared with the process of manually writing test data and generating the test data by using a discrete tool, the generation efficiency of the test data is greatly improved; because each counting tool is distributed and is associated with one counting plan and one testing environment, and each testing environment corresponds to one service providing system, different testers with the same testing requirements on the service providing system corresponding to one counting tool can use the counting tool to generate testing data, multiple development of the same counting tool is avoided, and the multiplexing degree of the counting tool is improved; in addition, as the number making process is performed according to the target number making rule corresponding to the number making type, that is, the application provides a plurality of number making modes, the number making is diversified, and different number making requirements can be met.
It should be noted that, the embodiments of the test data generating device and the embodiments of the test data generating method in the present application are based on the same inventive concept, so that the specific implementation of the embodiments may refer to the implementation of the corresponding test data generating method, and the repetition is not repeated.
Further, according to the above-described test data generation method, based on the same technical concept, one or more embodiments of the present application further provide an electronic device, where the electronic device is configured to perform the above-described test data generation method, and fig. 6 is a schematic structural diagram of one or more embodiments of the present application.
As shown in fig. 6, the electronic device may have a relatively large difference due to different configurations or performances, and may include one or more processors 301 and a memory 302, where the memory 302 may store one or more storage applications or data. Wherein the memory 302 may be transient storage or persistent storage. The application programs stored in memory 302 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in the electronic device. Still further, the processor 301 may be arranged to communicate with the memory 302 and execute a series of computer executable instructions in the memory 302 on an 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, and the like.
In one particular embodiment, an electronic device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the electronic device, and execution of the one or more programs by one or more processors includes instructions for:
determining a target counting tool to be executed currently from a plurality of counting tools issued; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
analyzing a first count plan associated with the target count tool to obtain a count type;
performing count processing according to a target count rule corresponding to the count type to obtain test data; the test data are used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
The electronic equipment provided by the embodiment of the application is used for issuing a plurality of counting tools and determining the target counting tool to be executed currently; analyzing a first count plan associated with the target count tool to obtain a count type; and carrying out the count processing according to the target count rule corresponding to the count type to obtain test data for carrying out test processing on the corresponding service providing system based on the target test environment related to the target count tool. In the process, because the counting processing is carried out based on the issued counting tool, compared with the process of manually writing test data and generating the test data by using a discrete tool, the generation efficiency of the test data is greatly improved; because each counting tool is distributed and is associated with one counting plan and one testing environment, and each testing environment corresponds to one service providing system, different testers with the same testing requirements on the service providing system corresponding to one counting tool can use the counting tool to generate testing data, multiple development of the same counting tool is avoided, and the multiplexing degree of the counting tool is improved; in addition, as the number making process is performed according to the target number making rule corresponding to the number making type, that is, the application provides a plurality of number making modes, the number making is diversified, and different number making requirements can be met.
It should be noted that, the embodiments related to the electronic device and the embodiments related to the test data generating method in the present application are based on the same inventive concept, so the specific implementation of the embodiments may refer to the implementation of the corresponding test data generating method, and the repetition is not repeated.
Further, in accordance with the test data generating method described above, based on the same technical concept, one or more embodiments of the present application further provide a storage medium, which is used to store computer executable instructions, and in a specific embodiment, the storage medium may be a U disc, an optical disc, a hard disk, or the like, where the computer executable instructions stored in the storage medium can implement the following flow when executed by a processor:
determining a target counting tool to be executed currently from a plurality of counting tools issued; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
analyzing a first count plan associated with the target count tool to obtain a count type;
performing count processing according to a target count rule corresponding to the count type to obtain test data; the test data are used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
The storage medium provided by one or more embodiments of the present application stores computer-executable instructions that, when executed by a processor, by issuing a plurality of make tools and determining a target make tool to be currently executed; analyzing a first count plan associated with the target count tool to obtain a count type; and carrying out the count processing according to the target count rule corresponding to the count type to obtain test data for carrying out test processing on the corresponding service providing system based on the target test environment related to the target count tool. In the process, because the counting processing is carried out based on the issued counting tool, compared with the process of manually writing test data and generating the test data by using a discrete tool, the generation efficiency of the test data is greatly improved; because each counting tool is distributed and is associated with one counting plan and one testing environment, and each testing environment corresponds to one service providing system, different testers with the same testing requirements on the service providing system corresponding to one counting tool can use the counting tool to generate testing data, multiple development of the same counting tool is avoided, and the multiplexing degree of the counting tool is improved; in addition, as the number making process is performed according to the target number making rule corresponding to the number making type, that is, the application provides a plurality of number making modes, the number making is diversified, and different number making requirements can be met.
It should be noted that, the embodiments related to the storage medium and the embodiments related to the test data generating method in the present application are based on the same inventive concept, so the specific implementation of this embodiment may refer to the implementation of the corresponding test data generating method, and the repetition is not repeated.
The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, 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., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, 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, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, 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.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each unit may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present application.
One skilled in the art will appreciate that one or more embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may 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 instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may 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 flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
One or more embodiments of the present application may 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, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
All embodiments in the application are described in a progressive manner, and identical and similar parts of all embodiments are mutually referred, so that each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is by way of example only and is not intended to limit the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (15)

1. A test data generation method, comprising:
determining a target counting tool to be executed currently from a plurality of counting tools issued; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
analyzing a first count plan associated with the target count tool to obtain a count type;
performing count processing according to a target count rule corresponding to the count type to obtain test data; the test data are used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
2. The method according to claim 1, wherein before performing the count process according to the target count rule corresponding to the count type, the method comprises:
analyzing the first count plan to obtain a count object;
and performing the count processing according to the target count rule corresponding to the count type to obtain test data, wherein the test data comprises:
and carrying out the count processing according to the count object and the target count rule corresponding to the count type to obtain test data.
3. The method of claim 2, the nonce type comprising a template nonce type, the nonce object comprising a nonce template; and performing the count processing according to the count object and the target count rule corresponding to the count type to obtain test data, wherein the test data comprises:
for each target field in the make template, determining a field value of the target field according to the target make rule;
and generating test data according to each field value.
4. A method according to claim 3, wherein said determining, for each target field in said make template, a field value of said target field according to said target make rule comprises:
Determining a target field according to the field types of the fields in the number-making template; the target field includes a first field and a second field;
dividing the target field into a first field set and a second field set; each second field in the second set of fields references at least one first field in the first set of fields;
generating, for each first field in the first field set, a first field value of the first field according to a field definition of the first field included in the count template;
generating, for each second field in the second field set, a second field value for the second field from a first field value for a first field referenced by the second field;
the generating test data according to the field values comprises the following steps:
and generating test data according to each first field value and each second field value.
5. The method of claim 2, the cause type comprising a formula cause type, the cause object comprising a set of cause formulas comprising a plurality of cause formulas; and performing the count processing according to the count object and the target count rule corresponding to the count type to obtain test data, wherein the test data comprises:
Determining the processing sequence of each manufacturing formula included in the manufacturing formula set;
determining a current target construction number formula to be processed according to the processing sequence, and determining a factor value of each variable factor in the target construction number formula according to the target construction number rule;
calculating according to the factor value and the target number formula to obtain a calculation result;
and if the target number of manufacture formula is the last number of manufacture formula corresponding to the processing sequence, determining the calculation result as test data.
6. The method of claim 4, wherein determining the factor value for each variable factor in the target construction formula according to the target construction rule comprises:
analyzing the target number formula according to a target number rule to obtain at least one variable factor of the target number formula;
determining the acquisition mode of the variable factors aiming at each variable factor;
if the acquisition mode is a first acquisition mode, acquiring a generation mode of a factor value of the variable factor from a variable factor library; generating a factor value of the variable factor according to the generation mode;
and if the acquisition mode is a second acquisition mode, acquiring the factor value of the variable factor from the currently obtained calculation result.
7. The method of claim 1, wherein the nonce type comprises an interface nonce type and the nonce object comprises a nonce interface; and performing the count processing according to the count object and the target count rule corresponding to the count type to obtain test data, wherein the test data comprises:
and calling the number making interface to generate test data according to the target number making rule.
8. The method of claim 1, wherein the determining the current destination build tool to be executed from the published plurality of build tools comprises:
responding to the number making confirmation operation of the user, and acquiring number making information; determining a counting tool corresponding to the tool identifier included in the counting information as a target counting tool to be executed currently; and/or the number of the groups of groups,
traversing each published number-of-manufacture tool, and determining whether the execution time of the candidate number-of-manufacture tool is reached or not according to a number-of-manufacture plan associated with the candidate number-of-manufacture tool; if yes, the candidate number-making tool is determined to be the target number-making tool to be executed currently; the candidate construction tool is the construction tool currently traversed.
9. The method according to claim 1, wherein the method further comprises:
Responding to tool release operation of a user, and determining a second number making plan associated with a number making tool to be released and a service type corresponding to the number making tool to be released;
binding the second make plan with each test environment corresponding to the service type, and issuing a corresponding make tool based on each bound second make plan and test environment.
10. The method of claim 1, wherein after the obtaining the test data, the method further comprises:
storing the test data to a designated storage area;
and based on the target test environment related to the target number creating tool and the test data stored in the storage area, testing the service providing system corresponding to the target test environment.
11. The method of claim 10, wherein prior to performing the count process according to the target count rule corresponding to the count type, the method further comprises:
analyzing the first count plan to obtain count arrangement;
scheduling the count task, the storage task and the test task according to the count arrangement; the count task is used for performing count processing according to a target count rule corresponding to the count type; the storage task is used for storing the test data to a designated storage area; the test task is used for carrying out test processing on a service providing system corresponding to the target test environment based on the target test environment related to the target counting tool and the test data stored in the storage area.
12. The method according to claim 1, wherein the method further comprises:
responding to the configuration operation of a user on a target object, and determining whether the user has the configuration authority of the target object; the target object comprises any one of a counting plan, a testing environment and user operation authority;
if yes, carrying out configuration processing on the target object according to the acquired configuration information.
13. A test data generation apparatus, comprising:
the determining module is used for determining a target number making tool to be executed currently from a plurality of issued number making tools; each counting tool is associated with a counting plan and a testing environment, and each testing environment corresponds to a service providing system;
the analysis module is used for analyzing the first count plan associated with the target count tool to obtain a count type;
the processing module is used for carrying out the count processing according to the target count rule corresponding to the count type to obtain test data; the test data are used for carrying out test processing on the corresponding service providing system based on the target test environment related to the target number making tool.
14. An electronic device, comprising:
a processor; the method comprises the steps of,
a memory arranged to store computer executable instructions configured to be executed by the processor, the executable instructions comprising steps for performing the test data generation method of any of claims 1-12.
15. A storage medium storing computer-executable instructions for causing a computer to perform the test data generation method of any one of claims 1-12.
CN202310179425.2A 2023-02-27 2023-02-27 Test data generation method, device and equipment Pending CN116204430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310179425.2A CN116204430A (en) 2023-02-27 2023-02-27 Test data generation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310179425.2A CN116204430A (en) 2023-02-27 2023-02-27 Test data generation method, device and equipment

Publications (1)

Publication Number Publication Date
CN116204430A true CN116204430A (en) 2023-06-02

Family

ID=86510895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310179425.2A Pending CN116204430A (en) 2023-02-27 2023-02-27 Test data generation method, device and equipment

Country Status (1)

Country Link
CN (1) CN116204430A (en)

Similar Documents

Publication Publication Date Title
CN113688006B (en) Log data verification method and device
US11461860B2 (en) Signing methods, apparatuses and devices of electronic contract
CN107038042B (en) Service execution method and device
CN110134668B (en) Data migration method, device and equipment applied to blockchain
US10366112B2 (en) Compiling extract, transform, and load job test data cases
CN107545030A (en) Processing method, device and the equipment of data genetic connection
CN111782300B (en) Data processing method, device, equipment and system
CN111967849A (en) Task processing flow arrangement method and device and electronic equipment
CN107644286A (en) Workflow processing method and device
CN106886406A (en) The generation method and device of exploitation code or document
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
WO2015130755A1 (en) Diagnosis and optimization of cloud release pipelines
CN109241026A (en) The method, apparatus and system of data management
US11074386B2 (en) Method of parameter creation
CN113434063B (en) Information display method, device and equipment
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN109284222B (en) Software unit, project testing method, device and equipment in data processing system
CN111177562B (en) Recommendation ordering processing method and device for target object and server
CN113296740A (en) Service object processing method, device, equipment and machine readable medium
CN113220272B (en) Method, device and equipment for accessing open capability of service platform
CN116048525A (en) Management method, device and equipment of command line tool
CN116204430A (en) Test data generation method, device and equipment
CN110874322A (en) Test method and test server for application program
CN111967767A (en) Business risk identification method, device, equipment and medium
CN111967769A (en) Risk identification method, device, equipment and medium

Legal Events

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