CN113297056A - Test data setting method, test data application method, device and related equipment - Google Patents

Test data setting method, test data application method, device and related equipment Download PDF

Info

Publication number
CN113297056A
CN113297056A CN202010112595.5A CN202010112595A CN113297056A CN 113297056 A CN113297056 A CN 113297056A CN 202010112595 A CN202010112595 A CN 202010112595A CN 113297056 A CN113297056 A CN 113297056A
Authority
CN
China
Prior art keywords
test data
data
target
test
determining
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
CN202010112595.5A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010112595.5A priority Critical patent/CN113297056A/en
Publication of CN113297056A publication Critical patent/CN113297056A/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
    • 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/3688Test management for test execution, e.g. scheduling of test suites

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 invention provides a test data setting method, a test data application device and related equipment, wherein the test data setting method comprises the following steps: determining more than one case identification corresponding to a case which needs to be constructed based on original test data, and determining metadata of the original test data at least according to the case identification; associating the metadata with the original test data to obtain target test data; and storing the target test data, wherein the target test data is associated with the test requests and expected results required for constructing the corresponding use cases based on the use case identifications in the metadata. The embodiment of the invention can reduce the data redundancy and provide possibility for reducing the data conflict.

Description

Test data setting method, test data application method, device and related equipment
Technical Field
The embodiment of the invention relates to the technical field of testing, in particular to a test data setting method, a test data application device and related equipment.
Background
The test case is a description of a test task, mainly composed of one or more test data, a test request and an expected result, which is relied on by the test case, and has wide application in the fields of business test and the like.
Currently, a test case can be obtained by combining one or more test data, test requests and expected results; in the method, the test data is used as part of the content in the test case, and the test case and the test data are closely organized, so that a plurality of same test data possibly exist in different test cases, and the problem of high data redundancy exists; meanwhile, when the test cases are added or modified based on the mode, the test data in the added or modified test cases may have data conflict with the test data in other test cases, and the smooth proceeding of subsequent test tasks is influenced.
Therefore, how to provide a scheme for setting test data to reduce data redundancy and provide possibility for reducing data collision becomes a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of this, embodiments of the present invention provide a test data setting method, a test data application method, an apparatus, and related devices, so as to reduce data redundancy and provide possibility for reducing data collision.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a test data setting method, comprising:
determining more than one case identification corresponding to a case which needs to be constructed based on original test data, and determining metadata of the original test data at least according to the case identification;
associating the metadata with the original test data to obtain target test data;
and storing the target test data, wherein the target test data is associated with the test requests and expected results required for constructing the corresponding use cases based on the use case identifications in the metadata.
The embodiment of the present invention further provides a test data application method, which constructs a test case based on the target test data set by the test data setting method, including:
acquiring a test case construction request;
determining first test data based on the test case construction request;
determining metadata of the first test data, wherein the metadata at least comprises more than one case identification corresponding to the case which needs to be constructed based on the first test data;
associating the metadata with the first test data to obtain first target test data;
performing data conflict detection on the first target test data and the stored target test data;
and determining the construction result of the test case according to the data collision detection result.
The embodiment of the present invention further provides a test data application method, which executes a test task based on target test data set by the test data setting method, including:
determining a plurality of target cases for executing the test task;
determining target test data associated with the target use cases from the stored target test data;
and if the data attributes of the original test data in the determined target test data are all the data full preparation attributes, executing the plurality of target use cases in parallel.
The embodiment of the present invention further provides a test data application method, which performs data recommendation based on the target test data set by the test data setting method, and includes:
acquiring a data recommendation request, wherein the data recommendation request comprises recommendation conditions;
and scanning the stored target test data to determine recommended test data meeting the recommended conditions from the stored target test data.
An embodiment of the present invention further provides a test data setting apparatus, including:
a metadata determining module for determining more than one case identification corresponding to the case to be constructed based on the original test data, and determining the metadata of the original test data at least according to the case identification
The association module is used for associating the metadata with the original test data to obtain target test data;
and the data storage module is used for storing the target test data, wherein the target test data is associated with the test request and the expected result required by constructing the corresponding use case based on the use case identifier in the metadata.
An embodiment of the present invention further provides a test data application apparatus, including:
the request acquisition module is used for acquiring a test case construction request;
the first test data determining module is used for determining first test data based on the test case construction request;
the metadata determining module is used for determining metadata of the first test data, wherein the metadata at least comprises more than one use case identifier corresponding to the use case which needs to be constructed based on the first test data;
the association module is used for associating the metadata with the first test data to obtain first target test data;
the conflict detection module is used for carrying out data conflict detection on the first target test data and the stored target test data;
and the construction result determining module is used for determining the construction result of the test case according to the data conflict detection result.
An embodiment of the present invention further provides a test data application apparatus, including:
the target case determining module is used for determining a plurality of target cases for executing the test task;
the test data determining module is used for determining target test data associated with the target use cases from the stored target test data;
and the execution module is used for executing the plurality of target cases in parallel if the data attributes of the original test data in the determined target test data are all data full preparation attributes.
An embodiment of the present invention further provides a test data application apparatus, including:
the recommendation request acquisition module is used for acquiring a data recommendation request, wherein the data recommendation request comprises recommendation conditions;
and the scanning module is used for scanning the stored target test data so as to determine the recommended test data meeting the recommended condition from the stored target test data.
An embodiment of the present invention further provides a server, including:
at least one memory for storing one or more computer-executable instructions;
at least one processor configured to invoke the one or more computer-executable instructions to perform a test data setup method as described above, or a test data application method as described in any one of the above.
An embodiment of the present invention further provides a storage medium, where the storage medium stores one or more computer-executable instructions, where the one or more computer-executable instructions are configured to execute the test data setting method described above, or the test data application method described in any one of the above.
The test data setting method provided by the embodiment of the invention can determine more than one case identifier corresponding to a case which needs to be constructed based on original test data, so as to determine the metadata of the original test data at least according to the case identifiers; and then the original test data and the metadata of the original test data are associated to be target test data, when the target test data is stored, the target test data can be associated with a test request and an expected result required by constructing a corresponding case through a case identifier in the metadata, so that one target test data can be associated with a plurality of cases, namely different cases can reuse the same target test data, and the data redundancy is greatly reduced. Meanwhile, when data conflict detection is carried out, the embodiment of the invention can avoid carrying out data conflict detection on the basis of a use case, and can carry out data conflict detection on the original test data of each target test data on the basis of the target test data, so that the data conflict detection is easier to implement, and the possibility of reducing data conflict is provided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of a prior art use case;
FIG. 2 is a schematic diagram of test data setup provided by an embodiment of the present invention;
FIG. 3 is a flowchart of a test data setting method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating metadata provided by an embodiment of the present invention;
FIG. 5 is a diagram illustrating data attributes provided by an embodiment of the present invention;
FIG. 6 is a diagram illustrating a calling plug-in according to an embodiment of the present invention;
FIG. 7 is a flowchart of a test data application method provided by an embodiment of the present invention;
FIG. 8 is a diagram illustrating an example of a test case structure according to an embodiment of the present invention;
FIG. 9 is another flowchart of a method for applying test data according to an embodiment of the present invention;
FIG. 10 is a further flowchart of a method for applying test data according to an embodiment of the present invention;
FIG. 11 is a block diagram of a test data setup device according to an embodiment of the present invention;
FIG. 12 is a block diagram of a server provided by an embodiment of the invention;
FIG. 13 is a block diagram of a test data application apparatus according to an embodiment of the present invention;
FIG. 14 is another block diagram of a test data application apparatus according to an embodiment of the present invention;
fig. 15 is a further block diagram of a test data application apparatus according to an embodiment of the present invention.
Detailed Description
As shown in fig. 1, a schematic diagram of a test case (hereinafter referred to as a use case) may be composed of one or more test data, a test request and an expected result; based on the use case, the test task can be executed under the scenes of the function test of the service system, the defect test of the software and the like, so that the aims of verifying whether the function of the service system is abnormal, whether the software has defects and the like are fulfilled; taking the function of the service system as an example, based on a use case, a test request is input to the service system, and a function test process of the service system is executed based on information such as a test step indicated by test data, a test script and the like, so that a test result fed back by the service system is obtained, and then whether the test result is matched with an expected result is compared, so as to verify whether the function of the service system is normal.
The existing test data setting mode is that a use case is taken as a center, and test data is organized into partial content of the use case, which causes that a plurality of same test data exist in different use cases, as shown in fig. 1, the same test data 1 and 3 exist in the use case 1, the use case 2 and the use case 3, which undoubtedly has higher data redundancy; it should be noted that, in fig. 1, the use case 1 may be composed of the test data 1, 2 and 3 depended on by the use case 1, and the test request 1 and the expected result 1 of the use case 1, and the constitution of the use case 2 and the use case 3 is the same;
meanwhile, test data is set by taking a use case as a center, if the use case is subjected to operations such as addition or modification, the test data in the added or modified use case is likely to have data conflict with the test data in other use cases, the data conflict is not easy to detect, and if the test data in different use cases has the problem of data conflict, different use cases are affected with each other during execution, so that the test tasks cannot be performed sequentially. It should be noted that the test data may include a plurality of data records in the form of key/value, and a data collision means that there are data records with the same key and different values, and due to mutual exclusion of data, the efficiency and accuracy of case execution will be affected by the data collision in the test field.
To solve the above problems, embodiments of the present invention provide an improved test data setting scheme to reduce data redundancy and provide possibility for reducing data collision. The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In an alternative implementation, a test data setting schematic provided in the embodiment of the present invention may be as shown in fig. 2, with reference to fig. 2, where test data is stored in a form of target test data, and the target test data may include original test data and metadata of the original test data; different from the existing mode of setting test data by taking a use case as a center, the embodiment of the invention decouples the test data and the organization form of the use case, so that the use case design is carried out by taking target test data as the center, and different use cases can reuse the same target test data by associating the target test data with one or more use cases needing to be constructed, thereby achieving the purpose of reducing the data redundancy;
the original test data can be test data formed in the prior art, and can record information such as test steps, test scripts and the like; the embodiment of the invention can acquire the original test data formed in the prior art from heterogeneous data sources, such as tair (a service for data storage), mysql (a relational database management system) and the like, and the heterogeneous data sources can store the original test data formed in the prior art;
the metadata of the original test data is data describing the original test data, and because the test data and the organization form of the use case are considered to be decoupled, in the embodiment of the invention, the metadata at least comprises more than one use case identifier corresponding to the use case which needs to be constructed based on the original test data, generally speaking, one use case corresponds to one use case identifier; furthermore, the original test data and the metadata of the original test data are combined into target test data, and the target test data can be associated with a test request and an expected result required by constructing a corresponding case through case identifiers in the metadata, so that one target test data can be associated with a plurality of cases, different cases can reuse the same target test data, and data redundancy is reduced;
it should be noted that, in the embodiment of the present invention, the test data is decoupled from the organization form of the use case, and the target test data is set, so that the target test data associates the test request and the expected result of the use case through the use case identifier in the metadata; for example, in fig. 2, the target test data 1 includes original test data 1 and metadata 1, and if the use case identifier indicated by the metadata 1 is an identifier of a use case 1, 2, or 3, the target test data 1 may be associated with the test request and the expected result of the use case 1, 2, or 3 through the use case identifier indicated by the metadata 1, so as to realize the association of the target test data 1 with the use case 1, 2, or 3; FIG. 2 shows how any target test data and use case are related in the same way.
It should be noted that the target test data may be stored in a unified manner, for example, a data lake may be set in the embodiment of the present invention, and the target test data is stored in the data lake in a unified manner; a data lake may be understood to be a large warehouse that stores data that is accessible, processed, analyzed, and transmitted.
It can be seen that, in the embodiment of the present invention, the original test data and the metadata of the original test data are combined into the target test data, and the target test data is associated with the test request and the expected result of the use case through the use case identifier in the metadata, so that one target test data can be associated with a plurality of use cases, thereby greatly reducing the data redundancy. Meanwhile, when data conflict detection is carried out, the embodiment of the invention can carry out data conflict detection on the original test data of each target test data on the basis of the target test data, so that the data conflict detection is easier to implement, and the possibility of reducing data conflict is provided.
Based on the above description, in an optional implementation, fig. 3 shows an optional flow of the test data setting method provided in the embodiment of the present invention, based on which the embodiment of the present invention can reconstruct original test data into target test data and perform unified storage of the target test data; optionally, the method flow may be executed by a server, as shown in fig. 3, and the method flow may include:
step S100, determining more than one case identification corresponding to a case which needs to be constructed based on original test data, and determining metadata of the original test data at least according to the case identification.
Optionally, the original test data may be test data formed in the prior art, and the embodiment of the present invention may obtain the original test data from a data source such as tair and mysql that is heterogeneous. Optionally, the original test data may have a plurality of data records, and the data records may record information such as test procedures and test scripts, and optionally, the data records may be a structure of key/value information.
The embodiment of the invention can determine more than one case identifier corresponding to the case which needs to be constructed based on the original test data, and one case can correspond to one case identifier, so that the metadata of the original test data is determined at least according to the case identifiers; that is, the metadata of the original test data should include at least: more than one use case identification corresponding to the use case constructed based on the original test data is needed.
In an alternative implementation, embodiments of the present invention may automatically determine the metadata of the raw test data via a metadata processing plugin. The determined metadata should include at least: more than one use case identifier (for example, use case id) corresponding to the use case constructed based on the original test data is needed, and taking the original test data as d1, which is used by use cases 1, 2, and 3 as an example, the use case identifier recorded in the metadata of the original test data d1 may be the use case id of the use cases 1, 2, and 3.
It can be understood that, in the prior art, original test data is organized into partial contents of use cases, and by determining use case identifiers corresponding to use cases which need to be constructed based on the original test data and recording the use case identifiers in metadata of the original test data, subsequently, when target test data is constructed, use case association can be performed through the use case identifiers in the metadata, so that a basis is provided for decoupling the original test data and the use cases.
Of course, the metadata may include other description information describing the original test data besides the use case identifier, and the specific content of the metadata may be defined according to the actual situation, which is not limited in the embodiment of the present invention.
And step S110, associating the metadata with the original test data to obtain target test data.
After determining the metadata of the original test data, the metadata can be associated with the original test data to obtain target test data.
And step S120, storing the target test data, wherein the target test data is associated with the test request and the expected result required by constructing the corresponding use case based on the use case identifier in the metadata.
For any original test data, the embodiment of the invention can construct and obtain corresponding target test data in the above way, and the obtained target test data can be uniformly stored; in an alternative implementation, embodiments of the present invention may store target test data in a data lake.
According to the embodiment of the invention, the test data is decoupled from the organization content of the use case, so that the use case design is carried out by taking the target test data as the center, and therefore, aiming at the target test data which is uniformly stored, the embodiment of the invention relates the target test data with the test request and the expected result which are required by constructing the corresponding use case by using the use case identifier of the metadata in the target test data, so that the relation between the target test data and the use case is realized.
The test data setting method provided by the embodiment of the invention can determine more than one case identifier corresponding to a case which needs to be constructed based on original test data, so as to determine the metadata of the original test data at least according to the case identifiers; and then the original test data and the metadata of the original test data are associated to be target test data, when the target test data is stored, the target test data can be associated with a test request and an expected result required by constructing a corresponding case through a case identifier in the metadata, so that one target test data can be associated with a plurality of cases, namely different cases can reuse the same target test data, and the data redundancy is greatly reduced. Meanwhile, when data conflict detection is carried out, the embodiment of the invention can avoid carrying out data conflict detection on the basis of a use case, and can carry out data conflict detection on the original test data of each target test data on the basis of the target test data, so that the data conflict detection is easier to implement, and the possibility of reducing data conflict is provided.
In an alternative implementation, as shown in connection with FIG. 4, the metadata of the raw test data may include: service description information, data preparation information and case identification of original test data; correspondingly, in an optional implementation of step S100, on the basis of determining a case identifier corresponding to a case that needs to be constructed based on original test data, the embodiment of the present invention may further determine service description information and data preparation information of the original test data, so as to associate the service description information, the data preparation information, and the case identifier, and obtain metadata of the original test data.
The service description information is information describing a service of the original test data, optionally, the original test data may include a plurality of data records, and the service description information may indicate a data format type of the data record and an information use in the data record; for example, in a commodity recommendation scenario, the service description information of the original test data may describe that the data record of the original test data is in a tair format type, and is used for storing commodity information preferred by the user, and the like.
The data preparation information is execution information of a data preparation process of the original test data, and the data preparation process of the original test data can be understood as a process of updating the original test data; in a further alternative implementation, with continued reference to fig. 4, the data preparation information may include: the method comprises the steps of testing data attributes of original test data, calling plug-ins and storing position information of the data after data preparation; correspondingly, the embodiment of the invention can determine the data attribute of the original test data, call the plug-in and store the position information of the data after the data preparation, so as to determine the data preparation information of the original test data.
In an optional implementation, the data attribute may represent a type of data preparation of the original test data, and different types of data preparation of the original test data may correspond to different data attributes; alternatively, as shown in fig. 5, the data attributes may be divided into the following items: hot data attribute, restart load data attribute, data full preparation attribute, and data serial preparation attribute;
wherein the thermal data attribute represents: when data preparation is carried out on original test data, if the original test data changes, the system can be hot-loaded, namely the changed original test data takes effect in real time;
the load restart data attribute represents: when data preparation is carried out on original test data, if the original test data changes, the system needs to restart the process to enable the changed original test data to take effect;
data full provisioning attribute representation: the data preparation can be carried out on a plurality of data records in the original test data at one time, namely the data records can be prepared in batches, which is helpful for improving the data preparation efficiency;
data serial ready attribute representation: data records in original test data can only be prepared in series and cannot be prepared in batches;
an original test data may have one or more of the above mentioned non-conflicting data attributes, and embodiments of the present invention may indicate the data attributes the original test data has by data tags, one data tag indicating one data attribute, such that one or more data tags indicating the data attributes of the original test data may be combined into: data label combination of original test data; correspondingly, the embodiment of the invention can determine the data attribute of the original test data by determining the data label combination of the original test data; in a more specific implementation, an embodiment of the present invention may determine a data tag combination of the original test data, where the data tag combination includes one or more data tags, and the data tags are used to indicate at least one of the following data attributes of the original test data: hot data attribute, restart load data attribute, full data ready attribute, and serial data ready attribute.
In an alternative implementation, the calling plug-in may represent a plug-in that performs data preparation on the original test data, and optionally, as shown in fig. 6, the calling plug-in may include: preparing a single plug-in, preparing a full quantity plug-in, a data aggregation plug-in and a data standardization plug-in; wherein, an original test data can have at least one calling plug-in;
it should be noted that, a plug-in is prepared once, and is used for updating one data record of the original test data; for example, taking the original test data as the tair data as an example, which includes a plurality of data records in the form of key/value, the embodiment of the present invention may insert one data record of key/value into the tair data based on a single preparation plug-in, so as to update the data records of key/value one by one;
a full-preparation plug-in for updating a plurality of data records of the original test data in batch; for example, simultaneously inserting a plurality of key/value data records into the tair data in batch;
the data aggregation plug-in is used for aggregating similar data records in the original test data; for example, compared with 2 data records, value is only one space different, and the two data records are essentially the same and can be aggregated into one data record;
and the data standardization plug-in is used for determining the data elements of the data records in the original test data, and the data elements are basic units of data.
The storage location information of the data after data preparation indicates a location where the original test data is stored after data preparation, for example, a server or a data index to which tair data after data preparation points.
In further implementation, the target test data determined in the embodiment of the present invention may be uniformly stored in a data lake, that is, a plurality of target test data are stored in the data lake, and each target test data is respectively associated with the test request and the expected result of a use case through a use case identifier in the metadata; in the prior art, test data is used as organization content of a case, the test data is strongly bound with the case, and the same test data can exist in different cases; the embodiment of the invention takes the data lake as the center, the target test data in the data lake is associated with the test request and the expected result of the use case through the use case identifier, so that different use cases can multiplex the same target test data in the data lake, the data redundancy is reduced, meanwhile, the embodiment of the invention can carry out data collision detection on the basis of the target test data in the data lake, the data collision detection is easier to implement, the efficiency is higher, and the possibility is provided for reducing data collision.
The target test data provided by the embodiment of the invention can be applied to various application scenes and has corresponding application effect; for example, based on the target test data provided by the embodiment of the present invention, a test case may be constructed, a test task may be executed, data recommendation may be performed, and the like, and the following introduces application schemes in these application scenarios.
In an alternative implementation, fig. 7 shows an alternative flow of a test data application method provided by an embodiment of the present invention, and the method shown in fig. 7 may construct a test case based on target test data provided by the embodiment of the present invention; referring to fig. 7, the method flow may include:
and step S200, acquiring a test case construction request.
Constructing test cases such as modifying and adding test cases; a user (such as a tester) can send a test case construction request to the server through the terminal equipment of the user, so that the server can obtain the test case construction request.
Step S210, determining first test data based on the test case construction request.
After the server acquires the test case construction request, first test data can be determined based on the operation of modifying and increasing the test case by the user, namely the first test data can be regarded as the test data constructed by the user; the first test data may include a plurality of data records for recording information such as test procedures, test scripts, etc. corresponding to the first test data.
Step S220, determining metadata of the first test data, where the metadata at least includes one or more use case identifiers corresponding to use cases that need to be constructed based on the first test data.
After the first test data is determined, according to the format of the target test data provided in the embodiment of the present invention, the embodiment of the present invention needs to determine the metadata of the first test data, so as to associate the metadata of the first test data and the first test data as corresponding target test data.
For the details and determination of the metadata, reference may be made to the description of the corresponding parts, and further description is omitted here.
And step S230, associating the metadata with the first test data to obtain first target test data.
And target test data obtained by associating the first test data with the metadata of the first test data, which is called first target test data in the embodiment of the invention.
Step S240, performing data collision detection on the first target test data and the stored target test data.
The first target test data and the stored target test data (such as target test data stored in a data lake) should not have data conflict, and a test case can be constructed based on the first target test data, so that the embodiment of the present invention needs to perform data conflict detection on the first target test data and the stored target test data;
it is to be understood that the first target test data includes first test data and metadata of the first test data, any one of the stored target test data includes original test data and metadata of the original test data, each of the first test data and the original test data may include a plurality of data records, and each of the data records may be an information structure in the form of a key value;
the embodiment of the invention can compare the key value information of the first test data with the key value information of the original test data in the stored target test data; if the first test data and the original test data have data records with repeated key information but different value information, determining that the data conflict detection result is a data conflict; if the first test data and the original test data have no repeated key information or data records with repeated key information and the same value information, determining that the data collision detection result is data non-collision; that is, if there are data records with the same key information and different value information, there is a data collision problem, which may cause the data records with the same key but different values to overlap each other, affecting the efficiency and accuracy of use case execution.
And step S250, determining a construction result of the test case according to the data conflict detection result.
It can be understood that, if the data collision detection result is that the data does not collide, the embodiment of the present invention may determine that the test case is successfully constructed, so as to store the first target test data, for example, store the first target test data in a data lake in which the target test data is stored; optionally, in the embodiment of the present invention, the construction of the use case affected by the first target test data may be prompted according to the use case identifier of the metadata in the first target test data, so that the user can confirm whether to perform secondary use case construction.
In optional implementation, data format detection on the first target test data may also be added, and only when the data format detection of the first target test data passes and there is no data conflict, the test case is considered to be successfully constructed, otherwise, the test case is considered to have a conflict; in a specific implementation, before step S240 is executed, the embodiment of the present invention may detect whether a data format of the first target test data conforms to a preset format, and execute step S240 only after the detection is passed; whether the data format of the first target test data conforms to the preset format may be understood as follows: in the process of modifying the first test data, a user determines whether the written data format meets the format specification, for example, for json data, if the user does not meet the json specification to write data, the data format of the first target test data is considered not to meet the preset format.
In an optional implementation of determining the first test data, taking a modification test case as an example, in order to avoid rewriting test data by a user and reduce workload of the user, after the server obtains a request for modifying the test case, a plurality of target test data recommended to the user can be determined from stored target test data (for example, a plurality of target test data recommended to the user are determined from a data lake), and the recommended target test data may be, for example, template data of the target test data, the simplest stored target test data, the most complicated stored target test data, and the like; therefore, the user can select one target test data from the recommended plurality of target test data as second target test data, and the server can modify the second target test data based on the modification operation of the user on the second target test data to obtain the first test data;
of course, the server may also determine one piece of target test data recommended to the user from the stored target test data, and the recommended target test data may be directly used as the second target test, so that the server may modify the second target test data based on the modification operation of the user on the second target test data to obtain the first test data;
under the condition of modifying the test case, the embodiment of the invention can also support the user to directly select the second target test data from the stored target test data, for example, the user directly selects the second target test data from the data lake, so that the server can modify the second target test data based on the modification operation of the user on the second target test data to obtain the first test data.
In another optional implementation, taking the test case addition as an example, after the server obtains the request for adding the test case, the server may allow the user to newly create the null data, so that the server may obtain the newly created null data, and based on the modification operation of the null data by the user, the server may modify the null data, so as to obtain the first test data.
In an optional implementation of step S240, in the embodiment of the present invention, the key information of the first test data needs to be determined, for example, the key information of each data record in the first test data is determined, so that the key information of the first test data is compared with the key information of the original test data in the stored target test data, to determine whether there is a data record with repeated key information between the first test data and the original test data, if not, it is determined that there is no data collision, and if so, it is further detected whether the value information of the data record with repeated key information is the same; if the value information is the same, the data conflict is considered to be absent, and if the value information is different, the data conflict is considered to be present;
alternatively, in determining the key information of the first test data, there are several possible cases as follows:
the data record of the first test data has both key and value, and the key of the data record can be directly determined in the case;
the data record of the first test data has no key but has a value, and at the moment, if the value has a main key, the main key can be called to extract the plug-in, and the main key is extracted from the data record;
the data record of the first test data has no key but has a value, and if the value does not have a primary key, the md5 value of the value can be used as the primary key.
Based on a construction scene of a test case, fig. 8 shows an example diagram of an optional process of test case construction, after a user sends a test case construction request to a server, as shown in fig. 8, a data lake recommends target test data for the condition of modifying the test case, and the user modifies the recommended target test data to obtain first test data; aiming at the condition of adding test cases, a user creates null data and modifies the null data to obtain first test data; based on the first test data, the server determines metadata of the first test data, and associates the metadata and the first test data as first target test data; and performing data format detection and data conflict detection on the first target test data, if the first target test data passes the detection, storing the first target test data into a data lake, and if the first target test data does not pass the detection, prompting a user that a test case conflicts and prompting the user whether to continue constructing the test case.
Based on the target test data provided by the embodiment of the invention, the embodiment of the invention can construct the test case by taking the target test data as the center, so that different constructed test cases can reuse the same target test data, and the data redundancy is reduced.
In an optional implementation, fig. 9 illustrates another optional flow of the test data application method provided in the embodiment of the present invention, and the method illustrated in fig. 9 may execute a test task, for example, execute a regression test, based on the target test data provided in the embodiment of the present invention, where the regression test refers to executing multiple use cases at a time, so as to ensure that the original function of the service system is not affected by the function change of the service system; referring to fig. 9, the method flow may include:
and step S300, determining a plurality of target cases for executing the test task.
The embodiment of the invention can set a plurality of target cases for executing the test task, for example, in a regression test scene, all cases can be used as the target cases, and of course, the embodiment of the invention can also support the test task of non-regression test and set the target cases of the test task.
Step S310, determining target test data associated with the target use cases from the stored target test data.
The embodiment of the invention can determine the target test data associated with each target case from the stored target test data through the case identification of the target case, thereby determining the target test data associated with the target cases; for example, the metadata of the target test data records use case identifiers of use cases, and by matching the use case identifiers recorded by the metadata with the use case identifiers of the target use cases, the embodiment of the invention can determine the target test data associated with each target use case from the target test data stored in the data lake, so as to obtain the target test data associated with the target use cases.
Step S320, if the data attributes of the original test data in the determined target test data are all data full preparation attributes, executing the plurality of target cases in parallel.
After the target test data associated with the target use cases is determined, if the data attributes of the original test data in the determined target test data are all data full preparation attributes, the original test data in the determined target test data can be prepared in batches, so that the embodiment of the invention can execute the target use cases in parallel and improve the test efficiency.
The embodiment of the invention can perform test tasks such as regression test and the like based on the target test data stored in the data lake, and because the use case is designed to be a mode that the target test data is associated with the test request and the expected result of the use case, the target test data in the data lake can easily realize data conflict detection, can ensure that the test tasks such as regression test and the like are performed under the conditions of low data redundancy and no data conflict, and can greatly improve the test efficiency; meanwhile, when the data are not conflicted, under the same environment configuration, if all the data of the target test data associated with the target use case for executing the test task can be prepared by full data, the target use case can be executed in parallel, and the test efficiency is further improved.
In an alternative implementation, fig. 10 shows a further alternative flow of the test data application method provided by the embodiment of the present invention, and the method shown in fig. 10 may perform data recommendation, for example, data-level recommendation performed by taking test data as a target, based on the target test data provided by the embodiment of the present invention; referring to fig. 10, the method flow may include:
step S400, a data recommendation request is obtained, wherein the data recommendation request comprises recommendation conditions.
Step S410, scanning the stored target test data to determine recommended test data meeting the recommended condition from the stored target test data.
In a data recommendation scene, after the server acquires the data recommendation request, the server can scan target test data stored in the data lake, so that recommended test data meeting recommendation conditions are determined from the data lake, and data recommendation with the test data as an object is realized.
It can be understood that if a traditional test data setting mode taking use cases as centers is adopted, when data recommendation is performed, a common method is to perform one-time traversal on test data in all use cases and then screen out a test data set meeting recommendation conditions, which causes poor data recommendation efficiency and poor real-time performance when the number of use cases is large; based on the scheme of the embodiment of the invention which takes the target test data as the center, when data recommendation is carried out, the embodiment of the invention can directly scan the target test data stored in the data lake without concerning the number of use cases, so that the efficiency and the real-time property of obtaining the recommendation result can be improved, the recommendation request can be responded very quickly, the recommendation result can be fed back, and the use experience of data recommendation service can be improved.
While various embodiments of the present invention have been described above, various alternatives described in the various embodiments can be combined and cross-referenced without conflict to extend the variety of possible embodiments that can be considered disclosed and disclosed in connection with the embodiments of the present invention.
The following describes a test data setting device provided in an embodiment of the present invention, and the content of the test data setting device described below may be regarded as a functional module that needs to be set to implement the test data setting method provided in the embodiment of the present invention. The contents of the test data setting device described below may be referred to in correspondence with the above contents.
In an alternative implementation, fig. 11 shows an alternative block diagram of the test data setting apparatus provided in the embodiment of the present invention, and as shown in fig. 11, the test data setting apparatus may include:
a metadata determining module 100, configured to determine more than one use case identifier corresponding to a use case that needs to be constructed based on original test data, and determine metadata of the original test data at least according to the use case identifier;
an association module 110, configured to associate the metadata with the original test data to obtain target test data;
a data storage module 120, configured to store the target test data, where the target test data is associated with a test request and an expected result required for constructing a corresponding use case based on the use case identifier in the metadata.
Optionally, the metadata determining module 100 is configured to determine metadata of the original test data according to at least the use case identifier, and may specifically include:
determining service description information and data preparation information of the original test data;
and associating the service description information, the data preparation information and the case identifier to obtain metadata of the original test data.
Optionally, the metadata determining module 100 is configured to determine data preparation information of the original test data, and may specifically include:
determining the data attribute of the original test data, calling a plug-in and storing position information of the data after data preparation.
Optionally, the metadata determining module 100 is configured to determine a data attribute of the original test data, and may specifically include:
determining a data tag combination of the original test data, the data tag combination comprising one or more data tags; the data tag is used for indicating at least one of the following data attributes of the original test data: hot data attribute, restart load data attribute, full data ready attribute, and serial data ready attribute.
Optionally, the calling plug-in includes at least one of: preparing a single plug-in, preparing a full quantity plug-in, a data aggregation plug-in and a data standardization plug-in; the single-time preparation plug-in is used for updating a single data record of the original test data, the full-scale preparation plug-in is used for updating a plurality of data records of the original test data in batch, the data aggregation plug-in is used for aggregating similar data records in the original test data, and the data standardization plug-in is used for determining data elements of the data records in the original test data.
Optionally, the data storage module 120 is configured to store the target test data, and may specifically include:
storing the target test data in a data lake.
The embodiment of the invention also provides a server which can be loaded with the test data setting device. In an alternative implementation, the hardware structure of the server may be as shown in fig. 12, including: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
optionally, the communication interface 2 may be an interface of a communication module for performing network communication;
alternatively, the processor 1 may be a CPU (central Processing Unit), a GPU (Graphics Processing Unit), an NPU (embedded neural network processor), an FPGA (Field Programmable Gate Array), a TPU (tensor Processing Unit), an AI chip, an asic (application Specific Integrated circuit), or one or more Integrated circuits configured to implement the embodiments of the present invention.
The memory 3 may comprise a high-speed RAM memory and may also comprise a non-volatile memory, such as at least one disk memory.
The memory 3 stores one or more computer-executable instructions, and the processor 1 calls the one or more computer-executable instructions to execute the test data setting method provided by the embodiment of the invention.
The embodiment of the invention also provides a storage medium, wherein the storage medium can store one or more computer-executable instructions, and the one or more computer-executable instructions can be used for executing the test data setting method provided by the embodiment of the invention.
In an optional implementation, the embodiment of the present invention further provides a test data application apparatus, where the test data application apparatus may construct a test case based on the target test data provided in the embodiment of the present invention; optionally, fig. 13 shows an alternative block diagram of the test data application apparatus according to the embodiment of the present invention, and as shown in fig. 13, the test data application apparatus may include:
a request obtaining module 200, configured to obtain a test case construction request;
a first test data determining module 210, configured to determine first test data based on the test case constructing request;
a metadata determining module 220, configured to determine metadata of the first test data, where the metadata at least includes one or more use case identifiers corresponding to use cases that need to be constructed based on the first test data;
an associating module 230, configured to associate the metadata with the first test data to obtain first target test data;
a conflict detection module 240, configured to perform data conflict detection on the first target test data and the stored target test data;
and a construction result determining module 250, configured to determine a construction result of the test case according to the data collision detection result.
Optionally, the first test data determining module 210 is configured to determine the first test data based on the test case construction request, and specifically includes:
acquiring second target test data, and modifying the second target test data to obtain first test data; the second target test data is target test data recommended from stored target test data, or target test data directly selected from the stored target test data;
or acquiring newly-built empty data, and modifying the empty data to obtain first test data.
Optionally, the conflict detection module 240 is configured to perform data conflict detection on the first target test data and the stored target test data, and specifically includes:
comparing the key value information of the first test data with the key value information of the original test data in the stored target test data;
if the first test data and the original test data have data records with repeated key information but different value information, determining that the data conflict detection result is a data conflict; and if the first test data and the original test data have no repeated key information or data records with repeated key information and the same value information, determining that the data collision detection result is data non-collision.
Optionally, the construction result determining module 250 is configured to determine the construction result of the test case according to the data collision detection result, and specifically includes:
if the data conflict detection result is that the data do not conflict, storing the first target test data in a data lake for storing the target test data;
and if the data conflict detection result is the data conflict, prompting that the test case is in conflict and prompting a user whether to continue constructing the test case.
Optionally, the test data application apparatus provided in the embodiment of the present invention may further be configured to: and if the data conflict detection result is data conflict, prompting to construct a use case influenced by the first target test data according to the use case identifier in the metadata.
Optionally, before the conflict detection module performs data conflict detection on the first target test data and the stored target test data, the test data application apparatus provided in the embodiment of the present invention may further be configured to: detecting whether the data format of the first target test data conforms to a preset format; and if the data format of the first target test data conforms to a preset format, the conflict detection module performs data conflict detection on the first target test data and the stored target test data.
Optionally, an embodiment of the present invention further provides a server, where the server may load the test data application apparatus. In an alternative implementation, the hardware structure of the server may be as shown in fig. 12, including: at least one memory for storing one or more computer-executable instructions; and the at least one processor is used for calling the one or more computer-executable instructions to execute the test data application method for constructing the test case provided by the embodiment of the invention.
The embodiment of the invention also provides a storage medium, wherein the storage medium can store one or more computer-executable instructions, and the one or more computer-executable instructions can be used for executing the test data application method for constructing the test case provided by the embodiment of the invention.
In an optional implementation, an embodiment of the present invention further provides a test data application apparatus, where the test data application apparatus may execute a test task, such as executing a regression test, based on the target test data provided in the embodiment of the present invention; optionally, fig. 14 shows another optional block diagram of the test data application apparatus according to the embodiment of the present invention, and as shown in fig. 14, the test data application apparatus may include:
a target case determining module 300, configured to determine a plurality of target cases for executing the test task;
a test data determining module 310, configured to determine target test data associated with the multiple target use cases from stored target test data;
and the executing module 320 is configured to execute the multiple target use cases in parallel if the data attributes of the original test data in the determined target test data are all data full preparation attributes.
Optionally, an embodiment of the present invention further provides a server, where the server may load the test data application apparatus. In an alternative implementation, the hardware structure of the server may be as shown in fig. 12, including: at least one memory for storing one or more computer-executable instructions; at least one processor configured to invoke the one or more computer-executable instructions to perform the test data application method for performing the test task provided by the embodiment of the invention.
Embodiments of the present invention also provide a storage medium, where the storage medium may store one or more computer-executable instructions, and the one or more computer-executable instructions may be used to execute the test data application method for executing the test task provided in the embodiments of the present invention.
In an optional implementation, an embodiment of the present invention further provides a test data application apparatus, where the test data application apparatus may perform data recommendation, such as performing regression test, based on the target test data provided in the embodiment of the present invention; alternatively, fig. 15 shows a further alternative block diagram of the test data application apparatus according to the embodiment of the present invention, and as shown in fig. 15, the test data application apparatus may include:
a recommendation request obtaining module 400, configured to obtain a data recommendation request, where the data recommendation request includes a recommendation condition;
the scanning module 410 is configured to scan the stored target test data to determine, from the stored target test data, recommended test data meeting the recommended condition.
Optionally, an embodiment of the present invention further provides a server, where the server may load the test data application apparatus. In an alternative implementation, the hardware structure of the server may be as shown in fig. 12, including: at least one memory for storing one or more computer-executable instructions; and the at least one processor is used for calling the one or more computer-executable instructions to execute the test data application method for recommending data provided by the embodiment of the invention.
The embodiment of the invention also provides a storage medium, wherein the storage medium can store one or more computer-executable instructions, and the one or more computer-executable instructions can be used for executing the test data application method for recommending data provided by the embodiment of the invention.
Although the embodiments of the present invention have been disclosed, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (20)

1. A test data setting method, comprising:
determining more than one case identification corresponding to a case which needs to be constructed based on original test data, and determining metadata of the original test data at least according to the case identification;
associating the metadata with the original test data to obtain target test data;
and storing the target test data, wherein the target test data is associated with the test requests and expected results required for constructing the corresponding use cases based on the use case identifications in the metadata.
2. The test data setting method according to claim 1, wherein the determining metadata of the original test data at least according to the use case identification comprises:
determining service description information and data preparation information of the original test data;
and associating the service description information, the data preparation information and the case identifier to obtain metadata of the original test data.
3. The test data setting method of claim 2, the determining data preparation information of the original test data comprising:
determining the data attribute of the original test data, calling a plug-in and storing position information of the data after data preparation.
4. The test data setting method of claim 3, the determining data attributes of the original test data comprising:
determining a data tag combination of the original test data, the data tag combination comprising one or more data tags indicating at least one of the following data attributes of the original test data: hot data attribute, restart load data attribute, full data ready attribute, and serial data ready attribute.
5. The test data setting method of claim 3, the calling plug-in comprising at least one of: preparing a single plug-in, preparing a full quantity plug-in, a data aggregation plug-in and a data standardization plug-in; the single-time preparation plug-in is used for updating a single data record of the original test data, the full-scale preparation plug-in is used for updating a plurality of data records of the original test data in batch, the data aggregation plug-in is used for aggregating similar data records in the original test data, and the data standardization plug-in is used for determining data elements of the data records in the original test data.
6. The test data setting method according to any one of claims 1 to 5, the storing the target test data including:
storing the target test data in a data lake.
7. A test data application method for constructing a test case based on target test data set by the test data setting method according to any one of claims 1 to 6, comprising:
acquiring a test case construction request;
determining first test data based on the test case construction request;
determining metadata of the first test data, wherein the metadata at least comprises more than one case identification corresponding to the case which needs to be constructed based on the first test data;
associating the metadata with the first test data to obtain first target test data;
performing data conflict detection on the first target test data and the stored target test data;
and determining the construction result of the test case according to the data collision detection result.
8. The test data application method of claim 7, wherein determining first test data based on the test case construction request comprises:
acquiring second target test data, and modifying the second target test data to obtain first test data; the second target test data is target test data recommended from stored target test data, or target test data directly selected from the stored target test data;
or acquiring newly-built empty data, and modifying the empty data to obtain first test data.
9. The test data application method of claim 7 or 8, the performing data collision detection on the first target test data and the stored target test data comprising:
comparing the key value information of the first test data with the key value information of the original test data in the stored target test data;
if the first test data and the original test data have data records with repeated key information but different value information, determining that the data conflict detection result is a data conflict; and if the first test data and the original test data have no repeated key information or data records with repeated key information and the same value information, determining that the data collision detection result is data non-collision.
10. The test data application method of claim 1, wherein determining the construction result of the test case according to the data collision detection result comprises:
if the data conflict detection result is that the data do not conflict, storing the first target test data in a data lake for storing the target test data;
and if the data conflict detection result is the data conflict, prompting that the test case is in conflict and prompting a user whether to continue constructing the test case.
11. The test data application method of claim 10, the method further comprising:
and if the data conflict detection result is data conflict, prompting to construct a use case influenced by the first target test data according to the use case identifier in the metadata.
12. The test data application method of claim 7, prior to performing data collision detection of the first target test data with stored target test data, the method further comprising:
detecting whether the data format of the first target test data conforms to a preset format; and if the data format of the first target test data conforms to a preset format, performing data collision detection on the first target test data and the stored target test data.
13. A test data application method for executing a test task based on target test data set by the test data setting method according to any one of claims 1 to 6, comprising:
determining a plurality of target cases for executing the test task;
determining target test data associated with the target use cases from the stored target test data;
and if the data attributes of the original test data in the determined target test data are all the data full preparation attributes, executing the plurality of target use cases in parallel.
14. A test data application method for performing data recommendation based on target test data set by the test data setting method according to any one of claims 1 to 6, comprising:
acquiring a data recommendation request, wherein the data recommendation request comprises recommendation conditions;
and scanning the stored target test data to determine recommended test data meeting the recommended conditions from the stored target test data.
15. A test data setting apparatus comprising:
the metadata determining module is used for determining more than one case identifier corresponding to a case which needs to be constructed based on original test data, and determining the metadata of the original test data at least according to the case identifiers;
the association module is used for associating the metadata with the original test data to obtain target test data;
and the data storage module is used for storing the target test data, wherein the target test data is associated with the test request and the expected result required by constructing the corresponding use case based on the use case identifier in the metadata.
16. A test data application apparatus comprising:
the request acquisition module is used for acquiring a test case construction request;
the first test data determining module is used for determining first test data based on the test case construction request;
the metadata determining module is used for determining metadata of the first test data, wherein the metadata at least comprises more than one use case identifier corresponding to the use case which needs to be constructed based on the first test data;
the association module is used for associating the metadata with the first test data to obtain first target test data;
the conflict detection module is used for carrying out data conflict detection on the first target test data and the stored target test data;
and the construction result determining module is used for determining the construction result of the test case according to the data conflict detection result.
17. A test data application apparatus comprising:
the target case determining module is used for determining a plurality of target cases for executing the test task;
the test data determining module is used for determining target test data associated with the target use cases from the stored target test data;
and the execution module is used for executing the plurality of target cases in parallel if the data attributes of the original test data in the determined target test data are all data full preparation attributes.
18. A test data application apparatus comprising:
the recommendation request acquisition module is used for acquiring a data recommendation request, wherein the data recommendation request comprises recommendation conditions;
and the scanning module is used for scanning the stored target test data so as to determine the recommended test data meeting the recommended condition from the stored target test data.
19. A server, comprising:
at least one memory for storing one or more computer-executable instructions;
at least one processor configured to invoke the one or more computer-executable instructions to perform the test data setup method of any one of claims 1-6, or the test data application method of any one of claims 7-12, or the test data application method of claim 13, or the test data application method of claim 14.
20. A storage medium storing one or more computer-executable instructions for performing the test data setup method of any one of claims 1 to 6, or the test data application method of any one of claims 7 to 12, or the test data application method of claim 13, or the test data application method of claim 14.
CN202010112595.5A 2020-02-24 2020-02-24 Test data setting method, test data application method, device and related equipment Pending CN113297056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010112595.5A CN113297056A (en) 2020-02-24 2020-02-24 Test data setting method, test data application method, device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010112595.5A CN113297056A (en) 2020-02-24 2020-02-24 Test data setting method, test data application method, device and related equipment

Publications (1)

Publication Number Publication Date
CN113297056A true CN113297056A (en) 2021-08-24

Family

ID=77317715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010112595.5A Pending CN113297056A (en) 2020-02-24 2020-02-24 Test data setting method, test data application method, device and related equipment

Country Status (1)

Country Link
CN (1) CN113297056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114528214A (en) * 2022-02-18 2022-05-24 马上消费金融股份有限公司 Unit testing method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981947A (en) * 2011-09-07 2013-03-20 阿里巴巴集团控股有限公司 Data preparation method in test and system provided with the same
US20140172512A1 (en) * 2012-12-14 2014-06-19 International Business Machines Corporation Efficiently generating test cases
CN106528395A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Test case generation method and apparatus
CN106959920A (en) * 2016-01-12 2017-07-18 维布络有限公司 The method and system optimized to the protos test suite PROTOS comprising multiple test cases
CN107102941A (en) * 2017-03-30 2017-08-29 腾讯科技(深圳)有限公司 The generation method and device of a kind of test case
CN107729251A (en) * 2017-10-23 2018-02-23 中国联合网络通信集团有限公司 Testing case management and device
CN107844421A (en) * 2017-10-31 2018-03-27 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium
CN107908543A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Applied program testing method, device, computer equipment and storage medium
CN108038054A (en) * 2017-12-01 2018-05-15 大唐微电子技术有限公司 A kind of automated testing method and device, computer-readable recording medium
CN110399293A (en) * 2019-06-21 2019-11-01 平安科技(深圳)有限公司 System detection method, device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981947A (en) * 2011-09-07 2013-03-20 阿里巴巴集团控股有限公司 Data preparation method in test and system provided with the same
US20140172512A1 (en) * 2012-12-14 2014-06-19 International Business Machines Corporation Efficiently generating test cases
CN106528395A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Test case generation method and apparatus
CN106959920A (en) * 2016-01-12 2017-07-18 维布络有限公司 The method and system optimized to the protos test suite PROTOS comprising multiple test cases
CN107102941A (en) * 2017-03-30 2017-08-29 腾讯科技(深圳)有限公司 The generation method and device of a kind of test case
CN107908543A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Applied program testing method, device, computer equipment and storage medium
CN107729251A (en) * 2017-10-23 2018-02-23 中国联合网络通信集团有限公司 Testing case management and device
CN107844421A (en) * 2017-10-31 2018-03-27 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium
CN108038054A (en) * 2017-12-01 2018-05-15 大唐微电子技术有限公司 A kind of automated testing method and device, computer-readable recording medium
CN110399293A (en) * 2019-06-21 2019-11-01 平安科技(深圳)有限公司 System detection method, device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
S. ELBAUM 等: "Leveraging user-session data to support Web application testing", 《IEEE TRANSACTIONS ON SOFTWARE ENGINEERING 》, vol. 31, no. 3, 31 March 2005 (2005-03-31), pages 187, XP011130687, DOI: 10.1109/TSE.2005.36 *
彭顺顺: "基于数据驱动的软件组件测试框架的研究与设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, 15 September 2014 (2014-09-15), pages 138 - 100 *
曾皓: "数据驱动型测试平台设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, 15 August 2018 (2018-08-15), pages 138 - 217 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114528214A (en) * 2022-02-18 2022-05-24 马上消费金融股份有限公司 Unit testing method and device

Similar Documents

Publication Publication Date Title
CN112256558B (en) Test case generation method and device, computer equipment and storage medium
CN110781231B (en) Database-based batch import method, device, equipment and storage medium
CN108829584B (en) Service logic interface mock test method and system
CN110554958B (en) Graph database testing method, system, device and storage medium
CN108427613B (en) Abnormal interface positioning method and device, computer equipment and storage medium
CN112148509A (en) Data processing method, device, server and computer readable storage medium
CN107741903A (en) Application compatibility method of testing, device, computer equipment and storage medium
CN110956269A (en) Data model generation method, device, equipment and computer storage medium
WO2023108904A1 (en) Production test method and apparatus for base station product
CN111767350A (en) Data warehouse testing method and device, terminal equipment and storage medium
CN114116496A (en) Automatic testing method, device, equipment and medium
CN108664388A (en) Dynamic field data return to test system, method, electronic equipment and the readable storage medium storing program for executing of interface
CN112948233A (en) Interface testing method, device, terminal equipment and medium
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN113297056A (en) Test data setting method, test data application method, device and related equipment
CN114116801A (en) Data list checking method and device
CN113938412A (en) Protocol stack testing method and device, testing system and computer readable storage medium
CN113434405A (en) Method and device for determining test file, storage medium and electronic device
CN112463620A (en) Coverage rate testing method and device in android software integration test
CN111737351A (en) Transaction management method and device for distributed management system
CN116303320A (en) Real-time task management method, device, equipment and medium based on log file
CN114157662A (en) Cloud platform parameter adaptation method and device, terminal equipment and storage medium
CN113098961A (en) Component uploading method, device and system, computer equipment and readable storage medium
CN109240906B (en) Database configuration information adaptation method and device, computer equipment and storage medium
CN113297149A (en) Method and device for monitoring data processing request

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