CN117114611A - Test data construction method, device, equipment and storage medium - Google Patents

Test data construction method, device, equipment and storage medium Download PDF

Info

Publication number
CN117114611A
CN117114611A CN202311074207.9A CN202311074207A CN117114611A CN 117114611 A CN117114611 A CN 117114611A CN 202311074207 A CN202311074207 A CN 202311074207A CN 117114611 A CN117114611 A CN 117114611A
Authority
CN
China
Prior art keywords
test
data
approval
test data
construction
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
CN202311074207.9A
Other languages
Chinese (zh)
Inventor
孟祥镖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Bank Co Ltd
Original Assignee
China Merchants Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Bank Co Ltd filed Critical China Merchants Bank Co Ltd
Priority to CN202311074207.9A priority Critical patent/CN117114611A/en
Publication of CN117114611A publication Critical patent/CN117114611A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Tourism & Hospitality (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention belongs to the technical field of testing, and discloses a method, a device, equipment and a storage medium for constructing test data. The method comprises the following steps: when a test data construction instruction is received, determining a test approval name and a test starting node according to the test data construction instruction; selecting upper jump approval data from a target construction database according to a test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle; and constructing data according to the jumping approval data and the test approval name, and determining flow test data. By the method, the problem of multi-stage data dependence is solved by utilizing the target construction database, the preparation compatibility of test data and test data under a complex scene can be rapidly prepared when the test data construction is carried out, the flexibility and the working efficiency of data preparation when the test data construction is carried out are greatly improved, and the accuracy of the test data construction is improved.

Description

Test data construction method, device, equipment and storage medium
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for constructing test data.
Background
The existing test count method mainly comprises the steps of manually splitting a case into a plurality of stages, then realizing automation of each stage, and then realizing that all stages are tested in an automation mode by configuring an automation script of each stage.
The existing method can only solve the problem that all scenes can be tested and verified in an automatic mode, and if scenes which cannot be verified by automation exist in the service scenes, the method cannot be applied. In addition, the existing scheme needs to be compatible with automation of all scenes under the condition that the test scenes are very many and complex, so that the quantity of automation cases is very large, and the management and maintenance costs are very high.
Disclosure of Invention
The invention mainly aims to provide a test data construction method, a device, equipment and a storage medium, which aim to solve the technical problems of how to improve the preparation efficiency of test data and the incompatibility of test data preparation in complex scenes.
In order to achieve the above object, the present invention provides a test data construction method, comprising:
when a test data construction instruction is received, determining a test approval name and a test starting node according to the test data construction instruction;
selecting upper jump approval data from a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle;
and constructing data according to the jumping approval data and the test approval name, and determining flow test data.
Optionally, the selecting, according to the test initiation node, the skip approval data in a target construction database, where before the target construction database is constructed by the test data of each stage in the service life cycle, the method further includes:
acquiring a preset data prefix and sample period data;
constructing data according to the preset data prefix, the sample period data and the sample construction time, and generating test data of each stage in a service life period;
and generating a target construction database according to the test data of each stage in the service life cycle.
Optionally, the selecting, according to the test initiation node, the skip approval data in a target construction database, where the target construction database is constructed by test data of each stage in a service life cycle, includes:
determining a test stage according to the test starting node;
determining a jumping approval stage of the test stage according to the test stage and the service life cycle;
data extraction is carried out in a target construction database according to the jumping approval stage, and primary screening flow data is determined;
and determining the skip approval data according to the primary screening flow data.
Optionally, the determining the skip approval data according to the preliminary screening flow data includes:
detecting the approval state of the upper jump approval stage in the primary screening flow data;
and when the approval state of the upper jump approval stage is a preset completion state, taking the primary screening flow data as upper jump approval data.
Optionally, the constructing data according to the skip approval data and the test approval name, and determining flow test data includes:
when the examination and approval test type is the first test type, generating current test data according to the jump-up examination and approval data and the test examination and approval name;
and determining flow test data according to the current test data.
Optionally, the constructing data according to the skip approval data and the test approval name, and determining flow test data includes:
when the approval test type is the second test type, determining a test data type;
generating target test data according to the jump-up approval data, the test data type and the test approval name;
and determining flow test data according to the target test data.
Optionally, the step of constructing data according to the skip approval data and the test approval name, after determining the flow test data, further includes:
determining a test cut-off node;
determining an approval test flow according to the test cut-off node and the test starting node;
and carrying out flow test on the approval test flow according to the flow test data.
In addition, in order to achieve the above object, the present invention also proposes a test data construction apparatus including:
the determining module is used for determining a test approval name and a test starting node according to the test data construction instruction when the test data construction instruction is received;
the selecting module is used for selecting the jump approval data in a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle;
and the construction module is used for constructing data according to the jumping approval data and the test approval name and determining flow test data.
In addition, in order to achieve the above object, the present invention also proposes a test data construction apparatus including: a memory, a processor, and a test data construction program stored on the memory and executable on the processor, the test data construction program configured to implement the test data construction method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a test data construction program which, when executed by a processor, implements the test data construction method as described above.
When a test data construction instruction is received, determining a test approval name and a test starting node according to the test data construction instruction; selecting upper jump approval data from a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle; and constructing data according to the jumping approval data and the test approval name, and determining flow test data. By the method, the uplink approval data is selected from the target construction database according to the determined test starting node, the data construction is carried out according to the uplink approval data and the test approval name, the flow test data is finally determined, the problem of multi-stage data dependence is solved by utilizing the target construction database, the quick preparation of the test data and the preparation compatibility of the test data in a complex scene during the test data construction are realized, the flexibility and the working efficiency of data preparation during the test data construction are greatly improved, and the accuracy and the test efficiency of the follow-up flow test are improved.
Drawings
FIG. 1 is a schematic diagram of a test data construction apparatus of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a test data construction method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a service life cycle of an embodiment of a test data construction method according to the present invention;
FIG. 4 is a schematic diagram of a contract approval process according to an embodiment of the test data construction method of the present invention;
FIG. 5 is a flowchart of a test data construction method according to a second embodiment of the present invention;
FIG. 6 is a block diagram of a first embodiment of the test data construction apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a test data construction device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the test data construction apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in FIG. 1 is not limiting of the test data construction apparatus and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a test data constructing program may be included in the memory 1005 as one type of storage medium.
In the test data construction apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the test data construction apparatus of the present invention may be provided in a test data construction apparatus which calls a test data construction program stored in the memory 1005 through the processor 1001 and performs the test data construction method provided by the embodiment of the present invention.
An embodiment of the present invention provides a test data construction method, referring to fig. 2, fig. 2 is a flow chart of a first embodiment of the test data construction method of the present invention.
The test data construction method comprises the following steps:
step S10: when a test data construction instruction is received, determining a test approval name and a test starting node according to the test data construction instruction.
It should be noted that, the execution body terminal device of the present embodiment is provided with the test data construction system, and the terminal device may be an intelligent terminal such as a computer, a mobile phone or a tablet, which is not limited in this embodiment.
It will be understood that the test data construction instruction refers to an instruction sent by a user or a tester to generate data corresponding to a certain stage in a service life cycle, and in this embodiment, as shown in fig. 3, the service life cycle is divided into a plurality of stages: customer management, project management, release management, non-renting management, renting management and finishing management, and a complete approval process exists in each stage, and the approval process in the contract stage is shown in fig. 4. In the service life cycle, the process of the later stage is initiated based on the data of the process of the approval completion of the previous stage, for example, the approval of the project process must be completed first by the initiation of the contract, the approval of the finished contract must be based on the initiation of the delivery, and the approval of the finished contract must be based on the approval of the delivery.
In a specific implementation, the test approval name refers to an approval record name of a stage corresponding to data to be generated when the test data is constructed, and the test starting node refers to a starting node for performing flow test by using the generated data. For example, if a process from contract review to contract XX1 completion needs to be performed, the test approval name is contract, the test start node is contract review, and process test data needs to be generated for testing of the contract review node.
Step S20: and selecting the skip approval data from a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle.
It should be noted that, since the testing of the process must be performed based on the data of the process of which the approval of the previous stage is completed, if the approval of the previous stage is not completed, the subsequent process testing is affected, so in this embodiment, in order to ensure the normal performance of the subsequent process testing, the up-jump approval data is selected from the target configuration data according to the test starting node, where the up-jump approval data is the data corresponding to the process of which the approval of the previous stage of the test starting node is completed, and the target configuration database refers to a database containing a large number of test data of each stage in the service life cycle.
It may be appreciated that, to ensure the accuracy of generating the target construction database, further, the selecting, according to the test initiation node, the skip approval data in the target construction database, where before the target construction database is constructed by the test data of each stage in the service life cycle, the method further includes: acquiring a preset data prefix and sample period data; and constructing data according to the preset data prefix, the sample period data and the sample construction time, and automatically drafting and approving the data in the later stage according to the test data approved in the previous stage, so as to ensure that each stage has automatic data with various scene types approved, finally obtaining the test data in each stage, and generating a target construction database according to the test data in each stage in the service life period.
In a specific implementation, in order to solve the problems of multi-stage data dependence and automatic test data and manual data differentiated management, a preset data prefix and sample period data are prepared through a test data management tool (Test Data Manager, TDM) or database management data, different preset data prefixes are corresponding to different scenes corresponding to each stage in a service life cycle, the sample period data refer to sample approval data of each stage in a large number of service life cycles, sample construction time refers to generation time of a preset target construction database, and in order to ensure real-time performance of the target construction database, the target construction database needs to be updated in real time according to the sample construction time.
The data of the sample period data is marked by using a preset data prefix according to the sample construction time, so that test data of each stage is generated, and a target construction database is formed according to the test stages of each stage. For example, when the sample construction time is daily, the automated script generates test data of each stage according to the preset data prefix and the sample period data by daily running, and the preset data prefix of the project management stage includes, but is not limited to, an automated common financing lease project, an automated aviation management lease project, other prefixes and the like.
It may be appreciated that, to ensure accuracy of the skip approval data, further, the selecting the skip approval data from the target construction database according to the test initiation node, where the target construction database is constructed by test data of each stage in the service life cycle includes: determining a test stage according to the test starting node; determining a jumping approval stage of the test stage according to the test stage and the service life cycle; data extraction is carried out in a target construction database according to the jumping approval stage, and primary screening flow data is determined; and determining the skip approval data according to the primary screening flow data.
In a specific implementation, determining a stage in which the test starting node is located according to the test starting node, wherein the stage in which the test starting node is located is a test stage, searching a stage which is positioned in the last stage of the test stage in a service life cycle, wherein the stage which is positioned in the last stage of the test stage is a skip approval stage, searching test data corresponding to the skip approval stage in a target construction database, and the test data corresponding to the skip approval stage is primary screening flow data.
It should be noted that, in order to obtain accurate skip approval data according to the primary screening flow data, further, the determining skip approval data according to the primary screening flow data includes: detecting the approval state of the upper jump approval stage in the primary screening flow data; and when the approval state of the upper jump approval stage is a preset completion state, taking the primary screening flow data as upper jump approval data.
It can be understood that, detecting the approval state of each flow node in the up-jump approval stage in the initial flow data, and when the approval state of each flow node in the up-jump approval stage is the preset completion state, taking the primary screening flow data as the up-jump approval data.
Step S30: and constructing data according to the jumping approval data and the test approval name, and determining flow test data.
It should be noted that, the flow test data refers to the generated data for flow test, and the data is constructed according to the skip approval data and the test approval name, so as to generate corresponding flow test data. For example, a process from contract review to contract XX1 completion needs to be tested, the test approval name is contract, the test start node is contract review, and the contract with contract number XX1 needs to be drafted according to the skip approval data for subsequent process test.
It should be appreciated that based on the test data for each stage, if a data record of the next stage's run draft node (the first node of the approval process) needs to be created, fastpi provides a service for each process run draft creation, such as an interface for project draft, an entry option for a corresponding scene may be selected to create a draft-state project record according to the type of project to be created, since project draft is based on an existing customer, a fixed customer name may be specified, and if no customer name is entered, the interface automatically captures a customer record from the target construction database to create a draft initiation for the project according to the keyword "automated customer".
It may be appreciated that, in order to ensure accurate execution of the flow test based on the flow test data, further, the data construction is performed according to the skip approval data and the test approval name, and after determining the flow test data, the method further includes: determining a test cut-off node; determining an approval test flow according to the test cut-off node and the test starting node; and carrying out flow test on the approval test flow according to the flow test data.
In a specific implementation, the test cut-off node refers to a termination node for performing flow test by using the generated data, determines an approval test flow according to the test cut-off node and the test start node, and tests the approval test flow according to the flow test data. For example, when the test start node is a contract review node and the test end node is a president review node, the process test data is approved to the last node of the contract review, and then the test of the approval test process is started from the contract review node.
It should be noted that, in a specific scenario, the flow test data is submitted to the designated node a, after the tester completes the test of the node a, the test personnel continues to approve and submit to the flow node B, and then completes the test of the node B manually. The fastpi interface service provides the function of automatic approval of the appointed node, and if the appointed node is required to be examined and approved by the name and the cut-off node, the flow is automatically approved to the appointed node, and if the flow is required to be completely approved, the cut-off node selects 'END'. In addition, if the record is currently submitted to the node a in the approval process, the record needs to be submitted to some approval node B behind the node a, and this interface also supports automatic approval from the intermediate node in the process to any node in the process behind the designated node.
When receiving a test data construction instruction, the embodiment determines a test approval name and a test starting node according to the test data construction instruction; selecting upper jump approval data from a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle; and constructing data according to the jumping approval data and the test approval name, and determining flow test data. By the method, the uplink approval data is selected from the target construction database according to the determined test starting node, the data construction is carried out according to the uplink approval data and the test approval name, the flow test data is finally determined, the problem of multi-stage data dependence is solved by utilizing the target construction database, the quick preparation of the test data and the preparation compatibility of the test data in a complex scene during the test data construction are realized, the flexibility and the working efficiency of data preparation during the test data construction are greatly improved, and the accuracy and the test efficiency of the follow-up flow test are improved.
Referring to fig. 5, fig. 5 is a flowchart of a second embodiment of a test data constructing method according to the present invention.
Based on the first embodiment, the step S30 in the test data construction method of the present embodiment includes:
step S31: and when the approval test type is the first test type, generating current test data according to the jump-up approval data and the test approval name.
It should be noted that the first test type refers to testing a flow of a specified node without a specific requirement in a certain stage or completing a run of a certain stage. And when the approval test type is the first test type, generating current test data according to the jumping approval data and the test approval name. For example, the test starting node is a contract review, the test approval name is a contract XX1, at this time, a data drafting contract is required to be constructed according to test data corresponding to a project management stage, the drafted contract number is XX1, and the contract with the number XX1 is the current test data. For another example, a manager draft in the launch draft stage needs to be generated, the skip approval data corresponding to the approved contract record needs to be obtained, and the current test data corresponding to the launch draft is generated based on the skip approval data and the launch draft.
Step S32: and determining flow test data according to the current test data.
It should be noted that, the current test data is used as the flow test data.
It may be appreciated that, to ensure accurate generation of the flow test data under the second test type, further, the data constructing according to the skip-up approval data and the test approval name, determining the flow test data includes: when the approval test type is the second test type, determining a test data type; generating target test data according to the jump-up approval data, the test data type and the test approval name; and determining flow test data according to the target test data.
In a specific implementation, the second test type refers to testing a flow of a specified node having a specific requirement at a certain stage. When the examination and approval test type is the second test type, the test data type corresponding to the specific requirement is required to be determined, target test data is generated according to the test data type, the upper jump examination and approval data and the test examination and approval name, and the target test data is used as flow test data. For example, the test data type is financing direct renting, the upper jump approval data is the test data corresponding to the project management stage, the test approval name is a contract, at this time, a contract with the contract type of financing direct renting needs to be created by drafting according to the upper jump approval data, and the contract with the contract type of financing direct renting is used as flow test data.
In this embodiment, when the examination and approval test type is the first test type, current test data is generated according to the skip-up examination and approval data and the test examination and approval name; and determining flow test data according to the current test data. By the method, under the first test type, the current test data is generated according to the jumping approval data and the test approval name, so that the accuracy of flow test data generation is ensured.
In addition, referring to fig. 6, an embodiment of the present invention further proposes a test data construction apparatus, including:
the determining module 10 is configured to determine a test approval name and a test start node according to the test data construction instruction when the test data construction instruction is received.
And the selecting module 20 is configured to select the skip approval data from a target construction database according to the test initiation node, where the target construction database is constructed by test data of each stage in the service life cycle.
And the construction module 30 is configured to perform data construction according to the skip approval data and the test approval name, and determine flow test data.
When receiving a test data construction instruction, the embodiment determines a test approval name and a test starting node according to the test data construction instruction; selecting upper jump approval data from a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle; and constructing data according to the jumping approval data and the test approval name, and determining flow test data. By the method, the uplink approval data is selected from the target construction database according to the determined test starting node, the data construction is carried out according to the uplink approval data and the test approval name, the flow test data is finally determined, the problem of multi-stage data dependence is solved by utilizing the target construction database, the quick preparation of the test data and the preparation compatibility of the test data in a complex scene during the test data construction are realized, the flexibility and the working efficiency of data preparation during the test data construction are greatly improved, and the accuracy and the test efficiency of the follow-up flow test are improved.
In an embodiment, the selecting module 20 is further configured to obtain a preset data prefix and sample period data;
constructing data according to the preset data prefix, the sample period data and the sample construction time, and generating test data of each stage in a service life period;
and generating a target construction database according to the test data of each stage in the service life cycle.
In an embodiment, the selecting module 20 is further configured to determine a testing stage according to the testing start node;
determining a jumping approval stage of the test stage according to the test stage and the service life cycle;
data extraction is carried out in a target construction database according to the jumping approval stage, and primary screening flow data is determined;
and determining the skip approval data according to the primary screening flow data.
In an embodiment, the selecting module 20 is further configured to detect an approval status of the skip-up approval stage in the primary screening process data;
and when the approval state of the upper jump approval stage is a preset completion state, taking the primary screening flow data as upper jump approval data.
In an embodiment, the construction module 30 is further configured to generate current test data according to the skip-up approval data and the test approval name when the approval test type is the first test type;
and determining flow test data according to the current test data.
In an embodiment, the constructing module 30 is further configured to determine a test data type when the approval test type is the second test type;
generating target test data according to the jump-up approval data, the test data type and the test approval name;
and determining flow test data according to the target test data.
In an embodiment, the constructing module 30 is further configured to determine a test cutoff node;
determining an approval test flow according to the test cut-off node and the test starting node;
and carrying out flow test on the approval test flow according to the flow test data.
Because the device adopts all the technical schemes of all the embodiments, the device at least has all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a test data construction program, and the test data construction program realizes the steps of the test data construction method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details that are not described in detail in this embodiment may refer to the test data construction method provided in any embodiment of the present invention, and are not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. 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 system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of embodiments, it will be clear to a person skilled in the art that the above embodiment method may be implemented by means of software plus a necessary general hardware platform, but may of course also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk) and comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A test data construction method, characterized in that the test data construction method comprises:
when a test data construction instruction is received, determining a test approval name and a test starting node according to the test data construction instruction;
selecting upper jump approval data from a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle;
and constructing data according to the jumping approval data and the test approval name, and determining flow test data.
2. The method for constructing test data according to claim 1, wherein said selecting the skip approval data from a target construction database according to the test initiation node, the target construction database being constructed from test data of each stage in a service life cycle, further comprising:
acquiring a preset data prefix and sample period data;
constructing data according to the preset data prefix, the sample period data and the sample construction time, and generating test data of each stage in a service life period;
and generating a target construction database according to the test data of each stage in the service life cycle.
3. The test data construction method according to claim 1, wherein the selecting the skip approval data from the target construction database according to the test initiation node, the target construction database being constructed from test data of each stage in a service life cycle, comprises:
determining a test stage according to the test starting node;
determining a jumping approval stage of the test stage according to the test stage and the service life cycle;
data extraction is carried out in a target construction database according to the jumping approval stage, and primary screening flow data is determined;
and determining the skip approval data according to the primary screening flow data.
4. The test data construction method of claim 3, wherein said determining the skip approval data based on the preliminary screening process data comprises:
detecting the approval state of the upper jump approval stage in the primary screening flow data;
and when the approval state of the upper jump approval stage is a preset completion state, taking the primary screening flow data as upper jump approval data.
5. The method for constructing test data according to claim 1, wherein said constructing data based on said skip-up approval data and said test approval name, determining flow test data, comprises:
when the examination and approval test type is the first test type, generating current test data according to the jump-up examination and approval data and the test examination and approval name;
and determining flow test data according to the current test data.
6. The method for constructing test data according to claim 1, wherein said constructing data based on said skip-up approval data and said test approval name, determining flow test data, comprises:
when the approval test type is the second test type, determining a test data type;
generating target test data according to the jump-up approval data, the test data type and the test approval name;
and determining flow test data according to the target test data.
7. The method for constructing test data according to any one of claims 1 to 6, wherein the step of constructing data according to the skip-up approval data and the test approval name, after determining flow test data, further comprises:
determining a test cut-off node;
determining an approval test flow according to the test cut-off node and the test starting node;
and carrying out flow test on the approval test flow according to the flow test data.
8. A test data construction apparatus, the test data construction apparatus comprising:
the determining module is used for determining a test approval name and a test starting node according to the test data construction instruction when the test data construction instruction is received;
the selecting module is used for selecting the jump approval data in a target construction database according to the test starting node, wherein the target construction database is constructed by test data of each stage in a service life cycle;
and the construction module is used for constructing data according to the jumping approval data and the test approval name and determining flow test data.
9. A test data construction apparatus, the apparatus comprising: a memory, a processor and a test data construction program stored on the memory and executable on the processor, the test data construction program being configured to implement the test data construction method of any one of claims 1 to 7.
10. A storage medium having stored thereon a test data construction program which, when executed by a processor, implements the test data construction method according to any one of claims 1 to 7.
CN202311074207.9A 2023-08-24 2023-08-24 Test data construction method, device, equipment and storage medium Pending CN117114611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311074207.9A CN117114611A (en) 2023-08-24 2023-08-24 Test data construction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311074207.9A CN117114611A (en) 2023-08-24 2023-08-24 Test data construction method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117114611A true CN117114611A (en) 2023-11-24

Family

ID=88810554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311074207.9A Pending CN117114611A (en) 2023-08-24 2023-08-24 Test data construction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117114611A (en)

Similar Documents

Publication Publication Date Title
CN111159049B (en) Automatic interface testing method and system
CN108509344B (en) Daily cutting batch test method, equipment and readable storage medium
CN110109829B (en) Intelligent dialogue automatic checking method and storage medium
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN113138927B (en) Software function test method and device
CN110059003B (en) Automatic test method, device, electronic equipment and readable storage medium
CN109977012B (en) Joint debugging test method, device, equipment and computer readable storage medium of system
CN110659870A (en) Business audit test method, device, equipment and storage medium
CN106375140A (en) Pressure testing method and device
CN112561690B (en) Method, system, equipment and storage medium for testing credit card staged service interface
CN111563037B (en) Test optimization method and device based on test questions, storage medium and terminal
CN116431522A (en) Automatic test method and system for low-code object storage gateway
CN117114611A (en) Test data construction method, device, equipment and storage medium
CN108629699B (en) Data uploading method, data uploading equipment, storage medium and device
CN114691529B (en) gPC interface performance test method and device
CN113868031A (en) Method, device and system for testing performance consistency of hard disk
CN113868116A (en) Test dependent data generation method and device, server and storage medium
CN109902004B (en) Method and device for testing application program link channel
CN113704123A (en) Interface test method, device, equipment and storage medium
CN114840407A (en) Mock testing method and related equipment
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN112835803B (en) Tool generation method, test data construction method, device, equipment and medium
CN111488283B (en) Task generation method and device, electronic equipment and storage medium
CN114201388A (en) Python function-based dynamic baffle testing method and related device
CN115687103A (en) Full-process system testing method and device

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