CN111338958A - Parameter generation method and device of test case and terminal equipment - Google Patents

Parameter generation method and device of test case and terminal equipment Download PDF

Info

Publication number
CN111338958A
CN111338958A CN202010127419.9A CN202010127419A CN111338958A CN 111338958 A CN111338958 A CN 111338958A CN 202010127419 A CN202010127419 A CN 202010127419A CN 111338958 A CN111338958 A CN 111338958A
Authority
CN
China
Prior art keywords
variable
assigned
parameter value
test
test case
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.)
Granted
Application number
CN202010127419.9A
Other languages
Chinese (zh)
Other versions
CN111338958B (en
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202010127419.9A priority Critical patent/CN111338958B/en
Publication of CN111338958A publication Critical patent/CN111338958A/en
Application granted granted Critical
Publication of CN111338958B publication Critical patent/CN111338958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3664Environments for testing or debugging software
    • 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)
  • Stored Programmes (AREA)

Abstract

The application provides a parameter generation method, a parameter generation device and terminal equipment of a test case, which are applicable to the technical field of software testing, and the method comprises the following steps: in the test case execution process, if a variable to be assigned is detected, identifying the variable type of the variable to be assigned; if the variable to be assigned belongs to the first class of variables, acquiring a first parameter value corresponding to the variable to be assigned, and assigning the first parameter value to the variable to be assigned; if the variable to be assigned belongs to the second type of variable, obtaining an assignment strategy corresponding to the variable to be assigned, obtaining a second parameter value corresponding to the variable to be assigned according to the assignment strategy, and assigning the second parameter value to the variable to be assigned. In the execution process of each test case, the embodiment of the application can adaptively select or set the parameter value of the variable so as to ensure the normal operation of the test under the current software version and the test environment, does not need manual initialization every time, and has stronger compatibility and higher test efficiency for different software versions and different test environments.

Description

Parameter generation method and device of test case and terminal equipment
Technical Field
The application belongs to the technical field of software testing, and particularly relates to a parameter generation method of a test case and terminal equipment.
Background
With the fast iterative updating of software products, parallel testing of multiple software versions and multiple test environments, which imply uncertainty in test parameters, becomes very common.
In order to ensure the accuracy of the test, the related technology directly performs parameter value initialization setting on variables related to the test case before the test case is executed each time, so that the normal operation of the current test process can be ensured, but the parameter values of the variables cannot be changed in the test case execution process once the parameter values are initialized before the test case is executed, and when the same test case needs to be executed under different conditions, the parameter values of all the variables need to be manually changed, so that the compatibility of the test case to different software versions and different test environments is extremely poor, and the test efficiency is greatly reduced.
Disclosure of Invention
In view of this, embodiments of the present application provide a method for generating parameters of a test case and a terminal device, which can solve the problem that the test case has poor compatibility with different software versions and different test environments.
A first aspect of the embodiments of the present application provides a method for generating parameters of a test case, including:
in the test case execution process, if a variable to be assigned is detected, identifying the variable type of the variable to be assigned;
if the variable to be assigned belongs to a first class of variables, acquiring a first parameter value corresponding to the variable to be assigned, and assigning the first parameter value to the variable to be assigned;
if the variable to be assigned belongs to the second type of variable, obtaining an assignment strategy corresponding to the variable to be assigned, obtaining a second parameter value corresponding to the variable to be assigned according to the assignment strategy, and assigning the second parameter value to the variable to be assigned.
In a first possible implementation manner of the first aspect, the obtaining an assignment policy corresponding to the variable to be assigned includes:
and acquiring a first mapping table corresponding to the test case, and acquiring the assignment strategy corresponding to the variable to be assigned according to the first mapping table, wherein the first mapping table records the variable to be assigned belonging to a second class of variables and the mapping relation between the variable to be assigned and the assignment strategy.
On the basis of the first possible implementation manner, in a second possible implementation manner of the first aspect, the obtaining the first mapping table corresponding to the test case includes:
identifying the environment type of the test environment where the test case is located, and acquiring version information of a test object of the test case;
and screening the first mapping table from a mapping table library according to the environment type and the version information, wherein the mapping table library comprises a plurality of mapping tables.
On the basis of the first possible implementation manner and the second possible implementation manner, in a third possible implementation manner of the first aspect, the obtaining, according to the assignment policy, a second parameter value corresponding to the variable to be assigned includes:
if the assignment strategy corresponding to the variable to be assigned is a first strategy, identifying the environment type of the test environment where the test case is located;
and acquiring a third parameter value corresponding to the environment type, and taking the third parameter value as the second parameter value.
On the basis of the first possible implementation manner and the second possible implementation manner, in a fourth possible implementation manner of the first aspect, the obtaining, according to the assignment policy, a second parameter value corresponding to the variable to be assigned includes:
if the assignment strategy corresponding to the variable to be assigned is a second strategy, positioning an associated variable corresponding to the variable to be assigned, and acquiring a fourth parameter value of the associated variable;
and processing the fourth parameter value to obtain a fifth parameter value, and taking the fifth parameter value as the second parameter value.
On the basis of the first possible implementation manner and the second possible implementation manner, in a fourth possible implementation manner of the fifth aspect, the obtaining, according to the assignment policy, a second parameter value corresponding to the variable to be assigned includes:
and if the assignment strategy corresponding to the variable to be assigned is a third strategy, acquiring a sixth parameter value corresponding to the variable to be assigned, and taking the sixth parameter value as the second parameter value.
On the basis of the fourth possible implementation manner, in a sixth possible implementation manner of the fifth aspect, the processing the fourth parameter value to obtain a fifth parameter value includes:
calculating the sum of the fourth parameter value and the first difference value, and taking the obtained sum as the fifth parameter value;
on the basis of the fourth possible implementation manner, in a seventh possible implementation manner of the fifth aspect, the processing the fourth parameter value to obtain a fifth parameter value includes:
and acquiring a first parameter value range corresponding to the fourth parameter value, selecting one parameter value from the first parameter value range, and taking the selected parameter value as the fifth parameter value.
A second aspect of the embodiments of the present application provides a device for generating parameters of a test case, including:
the variable type identification module is used for identifying the variable type of the variable to be assigned if the variable to be assigned is detected in the test case execution process;
the first assignment module is used for acquiring a first parameter value corresponding to the variable to be assigned if the variable to be assigned belongs to a first class of variable, and assigning the first parameter value to the variable to be assigned;
and the second assignment module is used for acquiring an assignment strategy corresponding to the variable to be assigned if the variable to be assigned belongs to a second class of variables, acquiring a second parameter value corresponding to the variable to be assigned according to the assignment strategy, and assigning the second parameter value to the variable to be assigned.
A third aspect of the embodiments of the present application provides a terminal device, where the terminal device includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor implements the steps of the method for generating parameters of test cases according to any one of the first aspect when executing the computer program.
A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, including: a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method for generating parameters for test cases according to any one of the first aspect.
A fifth aspect of the embodiments of the present application provides a computer program product, which, when running on a terminal device, enables the terminal device to execute the parameter generation method for a test case according to any one of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps of classifying variables according to the attributes of the variables, dividing the variables which can be solidified in advance into first-class variables, presetting corresponding solidified parameter values, dividing the variables which are possible to change parameter values in different tests into second-class variables, presetting corresponding parameter values, namely assignment strategies according to the characteristics of each second-class variable, in the test case execution process, when the variables which need to be assigned are met, directly assigning the first-class variables according to the prestored solidified parameter values, and processing the second-class variables according to the assignment strategies to obtain the corresponding parameter values for carrying out variable assignment, so that in each test case execution process, the parameter values of the variables can be selected or set in a self-adaptive mode to guarantee the normal operation of the tests under the current software version and the test environment without manual initialization of a user each time, the compatibility is stronger and the test efficiency is higher.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for generating parameters of a test case according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a method for generating parameters of a test case according to a second embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a method for generating parameters of a test case according to a third embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of a method for generating parameters of a test case according to a fourth embodiment of the present application;
fig. 5 is a schematic flow chart illustrating an implementation of a method for generating parameters of a test case according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a parameter generation apparatus for a test case according to a sixth embodiment of the present application;
fig. 7 is a schematic diagram of a terminal device provided in the seventh embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
In order to facilitate understanding of the present application, the embodiments of the present application are briefly described herein, and since a test case may involve a large number of variables during execution, and whether the parameter values of the variables are set accurately and usable is a basis for ensuring normal execution of the test case, in order to ensure smooth execution of the test case each time and ensure accuracy of the test, the related art is to manually assign values to all variables possibly involved during execution of the test case one by one before the test case is executed, so as to initialize all the parameter values of the variables, so that although normal execution of the current software test process can be ensured, under the condition of multiple software versions and multiple test environments, if the same test case is required to be used for software testing, the parameter values of each variable need to be manually modified one by one before each test application is executed, the workload is large, the testing efficiency is low, the compatibility testing of different software versions and different testing environments cannot be realized, and the compatibility is extremely poor.
Considering that not all variables need to be changed according to different software versions and different testing environments, for example, in some test cases, software testing under different software versions and different testing environments, "login attempt times" may all use the same value, and correspondingly, some variables need to be changed according to actual software versions, testing environment conditions, and actual test case execution conditions, for example, when software throughput testing is performed under different testing environments, corresponding maximum request times need to be determined according to the conditions of the actual testing environments to ensure accuracy and reliability of the throughput testing, and for example, after a software version is updated, testing of maximum resource occupancy rate is performed on the updated software, at this time, the maximum concurrent task number needs to be determined according to the actual software version, the method can ensure that the occupation of the software on the resources reaches the maximum value, and the parameter values of the variables are possible to change in different software testing processes.
Based on the above principle, in order to improve the compatibility of the test case to different software versions and different test environments and improve the test efficiency, the embodiment of the application firstly classifies variables according to the attributes of the variables, divides the variables which can be cured in advance without changing according to different software versions, different test environments and the like into first-class variables, sets corresponding curing parameter values according to actual requirements in advance, divides the variables which can change parameter values in different software tests into second-class variables, and presets corresponding assignment strategies according to the parameter change characteristics of each second-class variable, in the execution process of the test case, when encountering the variables which need to be assigned, firstly identifies the types of the variables, directly assigns the first-class variables according to the prestored parameter values, and for the second-class variables, processes the variables according to the assignment strategies to obtain the corresponding parameter values, therefore, in the execution process of different test cases, the variable parameter values can be generated in a self-adaptive manner, so that normal test under the current software version and the test environment is ensured, manual initialization of a user is not needed each time, and the compatibility and the test efficiency are higher when the test under different software versions and different test environments is faced.
Some terms that may be referred to in the embodiments of the present application are described below:
the assignment strategy refers to an assignment scheme for each variable to be assigned in the second class of variables, so that the assigned variables can meet the requirements of the current software version, the current test environment and the actual test case execution, and the normal execution of the test case is guaranteed. The specific assignment policy content can be set by a technician according to the requirement relationship between each variable in the actual second class of variables and the software version, the test environment, and the actual test case execution, which is not limited herein, and reference may also be made to the third to fifth embodiments and other related embodiments of the present application.
The mapping table is used for recording mapping relations between the variables to be assigned and the assignment policies in the second class of variables, and according to different actual assignment policies, in some embodiments, the mapping table may also record some data such as names of other variables related to the to-be-assigned, for example, parameters of embodiments three to five and other related embodiments of the present application.
Meanwhile, the execution main body of the parameter generation method of the test case in the embodiment of the present application is the terminal device that can run the test case and execute the assignment policy in the embodiment of the present application to perform variable assignment, wherein the specific type of the terminal device is not limited here and can be selected or set by a technician according to actual requirements, including but not limited to, for example, a server, a computer, and the like.
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance. It will also be understood that, although the terms first, second, etc. may be used herein to describe various elements in some embodiments of the application, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first table may be named a second table, and similarly, a second table may be named a first table, without departing from the scope of various described embodiments. The first table and the second table are both tables, but they are not the same table.
The method for generating the parameters of the test case in the embodiment of the application is detailed as follows:
fig. 1 shows a flowchart of an implementation of a method for generating parameters of a test case according to an embodiment of the present application, which is detailed as follows:
s101, in the test case executing process, if the variable to be assigned is detected, the variable type of the variable to be assigned is identified.
In the embodiment of the application, the variable to be assigned refers to a variable to be assigned, wherein a certain difference also exists between the specific number of the corresponding variable to be assigned and the corresponding variable name according to the different designs of the actual test cases, and the specific difference is determined by the actual test case conditions.
As can be seen from the above description, in the embodiment of the present application, the variables are classified in advance according to the relationships between the variables and the actual test software version, the test environment, and the test case execution, so after the variables that need to be assigned are detected, the embodiment of the present application first identifies the corresponding variable types according to the variable names of the variables to be assigned.
S102, if the variable to be assigned belongs to the first class of variables, acquiring a first parameter value corresponding to the variable to be assigned, and assigning the first parameter value to the variable to be assigned.
When the variable to be assigned belongs to the first class of variables, the variable to be assigned can be directly assigned with the solidified parameter value, so that the embodiment of the application can directly read the first parameter value corresponding to the variable to be assigned and carry out assignment operation.
It should be noted that, the types of the same variable may differ for different test cases, for example, "login attempt times", in some test cases, only for testing whether the software can normally log in, at which time the size of the "login attempt times" itself is not important, so in these test cases, the "login attempt times" may be a first type variable, and in other test cases, the "login attempt times" may also be for testing whether the account security verification mechanism can be normally triggered in the case of multiple login failures, at which time the numerical requirement of the "login attempt times" may also differ somewhat depending on the software version and the test environment, for example, in some test environments with higher risk, the "login attempt times" may need to be set relatively smaller, the test cases can be set to be larger in a test environment with smaller risk, so that the number of login attempts in the test cases belongs to the second type of variables, and the specific classification of the types of the variables needs to be set by technicians according to the actual conditions of the test cases.
S103, if the to-be-assigned variable belongs to the second type of variable, obtaining an assignment strategy corresponding to the to-be-assigned variable, obtaining a second parameter value corresponding to the to-be-assigned variable according to the assignment strategy, and assigning the second parameter value to the to-be-assigned variable.
When the variable to be assigned belongs to the second class of variables, it is described that the parameter value of the variable to be assigned needs to be determined according to the actual test software version, test environment and test case execution condition, so that in the embodiment of the present application, the assignment policy corresponding to the variable to be assigned is queried according to the variable name of the variable to be assigned, and operation is performed according to the specific assignment policy, so as to obtain the second parameter value corresponding to the variable to be assigned, thereby implementing final variable assignment.
As an optional embodiment of the present application, in order to facilitate fast positioning of an assignment policy corresponding to a variable to be assigned, a query operation on the assignment policy includes:
and acquiring a first mapping table corresponding to the test case, and acquiring an assignment strategy corresponding to the variable to be assigned according to the first mapping table, wherein the first mapping table records the variable to be assigned belonging to the second type of variable and the mapping relation between the variable to be assigned and the assignment strategy.
In the embodiment of the application, each variable to be assigned and the corresponding assignment policy are stored in the same mapping table in advance, and the corresponding mapping relationship is set, so that when the assignment policy is queried in S103, only the corresponding assignment policy needs to be queried from the first mapping table according to the name of the variable to be assigned.
As a specific implementation manner for obtaining the first mapping table in the embodiment of the present application, considering that value requirements of parameter values corresponding to variables to be assigned may have a certain difference under different software versions and test environments, that is, corresponding assignment policies may have a certain difference, for example, when performing software throughput testing under different test environments in the above example, it is necessary to determine a corresponding maximum number of requests according to a situation of an actual test environment to ensure accuracy and reliability of the throughput testing, so as to meet requirements of variables to be assigned under the actual software version and the test environment to ensure normal execution of test cases under a current software version and the test environment, as shown in fig. 2, an operation selected for the first mapping table in the second embodiment of the present application includes:
s201, identifying the environment type of the test environment where the test case is located, and acquiring the version information of the test object of the test case.
In the embodiment of the application, various testing environments and software versions which a test case may face are predetermined, combinations of environment types and version information are performed to realize analysis of various possible scenarios, corresponding assignment strategies are set according to parameter value requirements of variables to be assigned actually under each combination of the environment types and the version information, the variables to be assigned and the corresponding assignment strategies under each combination are stored as one mapping table respectively, and then a plurality of mapping tables which can adapt to combination requirements of different environment types and version information are obtained.
On the basis of the above operation, the embodiment of the present application may first identify the environment type of the test environment and the version information of the test object software, wherein in the actual test case execution process, the information of the environment type is transmitted as a global parameter, so that only the global parameter needs to be obtained here, different global parameters correspond to different environment types, and meanwhile, the version information may be directly obtained from the software information of the test object software, which is not described in detail here.
S202, screening a first mapping table from a mapping table library according to the environment type and the version information, wherein the mapping table library comprises a plurality of mapping tables.
After the actual environment type and version information are obtained, matching is carried out on the mapping table base based on the actual environment type and version information, and then the required first mapping table can be screened out.
In order to improve the compatibility of the test case to different software versions and different test environments and improve the test efficiency, the embodiment of the application firstly classifies variables according to the attribute of the variable, namely whether the variable parameter value needs to be changed along with the execution conditions of the test software version, the test environment and the actual test case, divides the variables which can be solidified in advance into first-class variables which do not need to be changed according to different software versions, different test environments and the like, sets the corresponding solidified parameter value according to the actual requirement in advance, divides the variables which are possibly changed in different software tests into second-class variables, presets the corresponding assignment strategy according to the parameter change characteristic of each second-class variable, firstly identifies the type of the variable when meeting the variable which needs to be assigned in the test case execution process, and directly assigns the first-class variable according to the prestored parameter value, and for the second type of variable, the variable is processed according to the assignment strategy to obtain a corresponding parameter value, so that the parameter value of the variable can be generated in a self-adaptive manner in the execution process of different test cases, normal test under the current software version and the test environment is ensured, manual initialization by a user is not needed each time, and the compatibility and the test efficiency are higher when testing under different software versions and different test environments.
As a specific implementation manner of obtaining the second parameter value corresponding to the variable to be assigned according to the assignment policy in the first embodiment of the present application, as shown in fig. 3, the specific operation of obtaining the second parameter value in the third embodiment of the present application includes:
s301, if the assignment strategy corresponding to the variable to be assigned is the first strategy, identifying the environment type of the test environment where the test case is located.
In consideration of the fact that in practical application, some variables to be assigned may only be related to a test environment but not to version information of test object software, in order to ensure effective assignment of parameter values of the variables to be assigned, in the embodiment of the present application, corresponding parameter values are set according to actual requirements for the variables to be assigned under different environment types, so as to implement accurate assignment of the variables to be assigned.
For example, if the purpose of software testing is to test whether the software can normally trigger the account security verification mechanism under the condition of multiple login failures, and meanwhile, the trigger mechanisms of different software versions for account security verification in actual design are the same, at this time, the "login attempt times" are variables to be assigned which are only related to the environment type, for example, when the testing environment is an environment type with higher risk such as a public development network, the account security verification mechanism can be punished by using smaller "login attempt times", and when the testing environment is an environment type with lower risk such as a private encryption network, the account security verification mechanism can be punished by using larger "login attempt times", therefore, different "login attempt times" parameter values can be set in advance for the environment types with different risk levels, and when the assignment strategy corresponding to the variables to be assigned is the first strategy, and directly identifying the environment type of the current test environment for subsequent assignment.
S302, a third parameter value corresponding to the environment type is obtained, and the third parameter value is used as a second parameter value.
After the third parameter value corresponding to the environment type is obtained, the third parameter value is directly used as the second parameter value in the embodiment of the application, so that accurate assignment of the variable to be assigned is ensured.
As another specific implementation manner of obtaining the second parameter value corresponding to the variable to be assigned according to the assignment policy in the first embodiment of the present application, as shown in fig. 4, the specific operation of obtaining the second parameter value in the fourth embodiment of the present application includes:
s401, if the assignment strategy corresponding to the variable to be assigned is a fourth strategy, identifying the version information of the test case test object.
Corresponding to the third embodiment of the present application, in consideration of that in practical applications, some variables to be assigned may only be related to the version of the test object software and are not related to the test environment, so in order to ensure effective assignment of parameter values of the variables to be assigned, in the third embodiment of the present application, corresponding parameter values are set according to actual requirements for the variables to be assigned under different software versions, and thus accurate assignment of the variables to be assigned is achieved.
For example, when the software is subjected to a comprehensive function test, the specific "total number of functions" to be tested needs to be determined according to the version of the current test software and is not related to the environment type, so that the corresponding "total number of functions" parameter value can be set for each version information in advance, and when the assignment policy corresponding to the variable to be assigned is the fourth policy, the version information of the current test object software is directly identified for subsequent assignment.
S402, acquiring a seventh parameter value corresponding to the version information, and taking the seventh parameter value as a second parameter value.
After the version information is determined, the corresponding seventh parameter value can be found out based on the version information, and the seventh parameter value can be directly used as the second parameter value in the embodiment of the application, so that accurate assignment of the variable to be assigned is ensured.
As another specific implementation manner for obtaining the second parameter value corresponding to the variable to be assigned according to the assignment policy in the first embodiment of the present application, it is considered that some variables to be assigned may be influenced by other variables in the actual test case execution process besides the test environment and the software version in the test case execution process, for example, if a login user number load test needs to be performed on the software client, at this time, "login user number" is a variable influenced by the software version, meanwhile, in order to ensure that when generating the simulation users, there is a certain difference between the simulation users, attributes such as user names and ages of the simulation users need to be generated, at this time, in order to ensure the difference between the ages of the simulation users, the larger the number of the login user "is, the larger the application setting of the age selection interval corresponding to the larger number of the login user is, therefore, the value range of the age is a variable to be assigned, which is influenced by the number of login users. In order to ensure the assignment accuracy of the variables to be assigned, which are affected by other variables in the execution process of other actual test cases, on the basis of the foregoing embodiments of the present application, as shown in fig. 5, a specific operation of acquiring a second parameter value in a fifth embodiment of the present application includes:
s501, if the assignment strategy corresponding to the variable to be assigned is the second strategy, locating the associated variable corresponding to the variable to be assigned, and acquiring a fourth parameter value of the associated variable.
In the embodiment of the application, the variables to be assigned, which may be affected by the other variables, are analyzed in advance, the associated variables corresponding to the variables to be assigned (i.e., the variables that may affect the variables to be assigned) are determined and stored, when the assignment policy is the second policy, the associated variables actually corresponding to the variables to be assigned are first found out, then the associated variables are located from the variables generated in the test case execution process, and the actual fourth parameter values of the associated variables are obtained.
As a specific embodiment of the present application, in order to locate the associated variable and obtain the fourth parameter value of the associated variable, in the embodiment of the present application, each step of the test case has a unique identifier, and information that needs to be recorded in each step is set as a data attribute of the unique identifier. For example, the query database step is uniquely identified as 1, and the result is returned as the data attribute uniquely identified as 1. The data attribute format of each step may be well defined in advance, for example, the http request step may have the following attributes: url (request address), header (request header), body (request body), method (request method), data (response returned by request). The database operation may have the following attributes: execsql (execution statement), data (execution result).
On this basis, in order to realize the positioning of the associated variable and the acquisition of the fourth parameter value, the step where the associated variable is located can be positioned by querying the data attribute content corresponding to the unique identifier, and then the data attribute content of the step is analyzed, so that the corresponding fourth parameter value can be obtained.
And S502, processing the fourth parameter value to obtain a fifth parameter value, and taking the fifth parameter value as a second parameter value.
After the fourth parameter value of the associated variable is obtained, the fourth parameter value is processed according to a preset processing method of the parameter value of the variable to be assigned, so that a corresponding fifth parameter value can be obtained, and further, the subsequent accurate assignment operation is realized. The specific processing method for the fourth parameter value is not limited here, and a technician may select or set the fourth parameter value according to the actual relationship between the variable to be assigned and the associated variable.
As a specific implementation manner of processing the fourth parameter value in the fifth embodiment of the present application, it is found in practical application that there may be a direct numerical association or an indirect numerical association between a variable to be assigned and an associated variable, for example, in the above example, when simulated users are generated, if each simulated user needs to be numbered sequentially, at this time, each new simulated user is generated, the number is obtained by performing numerical addition and subtraction operations on the basis of the number of the previous simulated user, at this time, "user numbers" between different simulated users are directly associated, and in the above example, the value range of "age" is affected by the number of "logged users," age "of the simulated users must be selected from the value range of" age ", and therefore, at this time," age "of each simulated user and" logged user number "have an indirect numerical association, therefore, in order to effectively deal with the two numerical association situations, the embodiment of the present application performs two operations on the fourth parameter value processing, including:
and calculating the sum of the fourth parameter value and the first difference value, and taking the obtained sum as a fifth parameter value.
In the embodiment of the application, the corresponding first difference value is set according to the actual association condition aiming at the variable to be assigned and the associated variable with direct numerical association in advance, and the difference value of the fourth parameter value is summed on the basis of the first difference value, so as to obtain the final fifth parameter value. The first difference value may be a positive number or a negative number, and the specific size of the first difference value is not limited herein and can be set by a technician according to the actual condition of the variable to be assigned.
And acquiring a first parameter value range corresponding to the fourth parameter value, selecting one parameter value in the first parameter value range, and taking the selected parameter value as a fifth parameter value.
Similarly, in the embodiment of the present application, for a variable to be assigned and an associated variable having indirect numerical association, a corresponding parameter value range is set according to an actual association condition, a corresponding first parameter value range is selected according to an actual fourth parameter value condition, and a value of a fifth parameter value is taken within the first parameter value range. The specific corresponding relationship between the fourth parameter value and the first parameter value range, and the value taking method within the first parameter value range are not limited herein, and may be set by a technician according to actual needs, for example, may be set as random selection. When the embodiment of the present application is applied to the above example, "number of registered users" in the embodiment of the present application, different "age value ranges" are set for different "number of registered users" in advance, then the "age value range" is selected according to the actual "number of registered users", and one age value is randomly selected from the "age value range" to serve as the "age" of the simulated user.
As an embodiment of the present application, in order to meet the requirement for generating parameter values of variables to be assigned of the same associated variable under different parameter values, in order to ensure accurate assignment of the variables to be assigned, in the embodiment of the present application, two operations for processing a fourth parameter value include:
and if the fourth parameter value is larger than the first parameter threshold value, calculating the sum of the fourth parameter value and the first difference value, and taking the obtained sum as a fifth parameter value.
And if the fourth parameter value is smaller than or equal to the first parameter threshold value, selecting one parameter value in the first parameter value range, and taking the selected parameter value as a fifth parameter value.
The first difference value, the setting mode of the first parameter value range, the selection mode of the parameter value, and the like may refer to the description of the previous embodiment, which is not repeated herein, and meanwhile, the embodiment of the present application does not limit the specific size of the first parameter threshold, and may be set by a technician according to the association relationship between the actual associated variable and the variable to be assigned.
As another specific implementation manner of obtaining the second parameter value corresponding to the variable to be assigned according to the assignment policy in the first embodiment of the present application, considering that in practical applications, for some variables to be assigned, it may be known that the variables are not the first type of variable, but a user cannot determine the relationship between the variables and the test environment or the test version for a while, or cannot determine whether there is a corresponding associated variable, in order to ensure normal execution of the test case under such a condition, the operation of obtaining the second parameter in the first embodiment of the present application includes:
and if the assignment strategy corresponding to the variable to be assigned is the third strategy, acquiring a sixth parameter value corresponding to the variable to be assigned, and taking the sixth parameter value as the second parameter value.
In the embodiment of the application, for the to-be-assigned variables which are not related to the first type of variables but are not related to the test environment and the test version, the assignment policy is set as the third policy, that is, a fixed first parameter value is directly set for the to-be-assigned variables, and when the third policy is executed, the sixth parameter value corresponding to the to-be-assigned variable is directly used as the second parameter value for assignment.
In the embodiment of the application, by setting specific parameter value mapping, on one hand, normal running of a test case can be ensured, and on the other hand, a user can perform operations such as debugging on some variables to be assigned, and meanwhile, considering that the user may mistakenly set the variables to be assigned, which are originally the first type of variables, to the second type of variables, so that the situation that variable data storage is mistaken and normal testing cannot be performed is caused.
Fig. 6 shows a block diagram of a parameter generation apparatus for a test case provided in the embodiment of the present application, which corresponds to the method in the foregoing embodiment. The parameter generation apparatus for a test case illustrated in fig. 6 may be an execution subject of the parameter generation method for a test case provided in the first embodiment.
Referring to fig. 6, the parameter generation apparatus for a test case includes:
and the variable type identification module 61 is configured to identify a variable type of the variable to be assigned if the variable to be assigned is detected in the test case execution process.
The first assignment module 62 is configured to, if the variable to be assigned belongs to a first class of variable, obtain a first parameter value corresponding to the variable to be assigned, and assign the first parameter value to the variable to be assigned.
And a second assignment module 63, configured to, if the variable to be assigned belongs to a second class of variables, obtain an assignment policy corresponding to the variable to be assigned, obtain a second parameter value corresponding to the variable to be assigned according to the assignment policy, and assign the second parameter value to the variable to be assigned.
Further, the second assigning module 63 includes:
the table obtaining module is configured to obtain a first mapping table corresponding to the test case, and obtain the assignment policy corresponding to the variable to be assigned according to the first mapping table, where the first mapping table records a variable to be assigned belonging to a second class of variables and a mapping relationship between the variable to be assigned and the assignment policy.
Further, the table acquisition module includes:
and the parameter acquisition module is used for identifying the environment type of the test environment where the test case is located and acquiring the version information of the test object of the test case.
And the table screening module is used for screening the first mapping table from a mapping table library according to the environment type and the version information, wherein the mapping table library comprises a plurality of mapping tables.
Further, the second assigning module 63 further includes:
and the environment type identification module is used for identifying the environment type of the test environment where the test case is located if the assignment strategy corresponding to the variable to be assigned is the first strategy.
And the first parameter acquisition module is used for acquiring a third parameter value corresponding to the environment type and taking the third parameter value as the second parameter value.
Further, the second assigning module 63 further includes:
and the second parameter obtaining module is used for positioning the associated variable corresponding to the variable to be assigned and obtaining a fourth parameter value of the associated variable if the assignment strategy corresponding to the variable to be assigned is a second strategy.
And the third parameter acquisition module is used for processing the fourth parameter value to obtain a fifth parameter value, and taking the fifth parameter value as the second parameter value.
Further, the third parameter obtaining module includes:
and the parameter calculation module is used for calculating the sum of the fourth parameter value and the first difference value, and taking the obtained sum as the fifth parameter value.
Further, the third parameter obtaining module further includes:
and the parameter selection module is used for acquiring a first parameter value range corresponding to the fourth parameter value, selecting one parameter value in the first parameter value range, and taking the selected parameter value as the fifth parameter value.
Further, the second assigning module 63 further includes:
and the fourth parameter obtaining module is configured to obtain a sixth parameter value corresponding to the variable to be assigned, if the assignment policy corresponding to the variable to be assigned is the third policy, and use the sixth parameter value as the second parameter value.
Further, the second assigning module 63 further includes:
and the version acquisition module is used for identifying the version information of the test case test object if the assignment strategy corresponding to the variable to be assigned is a fourth strategy.
And the fifth parameter acquisition module is used for acquiring a seventh parameter value corresponding to the version information and taking the seventh parameter value as the second parameter value.
The process of implementing each function by each module in the parameter generation device for a test case provided in the embodiment of the present application may specifically refer to the description of the first embodiment shown in fig. 1, and is not described herein again.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The parameter generation method of the test case provided in the embodiment of the present application may be applied to a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and other terminal devices, and the embodiment of the present application does not set any limit to a specific type of the terminal device.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 7, the terminal device 7 of this embodiment includes: at least one processor 70 (only one shown in fig. 7), a memory 71, said memory 71 having stored therein a computer program 72 executable on said processor 70. The processor 70, when executing the computer program 72, implements the steps in the above-described embodiments of the parameter generation method for each test case, such as the steps 101 to 106 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 61 to 64 shown in fig. 6.
The terminal device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a terminal device 7 and does not constitute a limitation of the terminal device 7 and may comprise more or less components than shown, or some components may be combined, or different components, e.g. the terminal device may further comprise an input transmitting device, a network access device, a bus, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may in some embodiments be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 71 may also be used to temporarily store data that has been transmitted or is to be transmitted.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application, and are intended to be included within the scope of the present application.

Claims (10)

1. A method for generating parameters of a test case is characterized by comprising the following steps:
in the test case execution process, if a variable to be assigned is detected, identifying the variable type of the variable to be assigned;
if the variable to be assigned belongs to a first class of variables, acquiring a first parameter value corresponding to the variable to be assigned, and assigning the first parameter value to the variable to be assigned;
if the variable to be assigned belongs to the second type of variable, obtaining an assignment strategy corresponding to the variable to be assigned, obtaining a second parameter value corresponding to the variable to be assigned according to the assignment strategy, and assigning the second parameter value to the variable to be assigned.
2. The method for generating parameters of test cases according to claim 1, wherein the obtaining of the assignment policy corresponding to the variable to be assigned includes:
and acquiring a first mapping table corresponding to the test case, and acquiring the assignment strategy corresponding to the variable to be assigned according to the first mapping table, wherein the first mapping table records the variable to be assigned belonging to a second class of variables and the mapping relation between the variable to be assigned and the assignment strategy.
3. The method for generating parameters of test cases according to claim 2, wherein the obtaining of the first mapping table corresponding to the test case includes:
identifying the environment type of the test environment where the test case is located, and acquiring version information of a test object of the test case;
and screening the first mapping table from a mapping table library according to the environment type and the version information, wherein the mapping table library comprises a plurality of mapping tables.
4. The method for generating parameters of test cases according to any one of claims 1 to 3, wherein the obtaining a second parameter value corresponding to the variable to be assigned according to the assignment policy includes:
if the assignment strategy corresponding to the variable to be assigned is a first strategy, identifying the environment type of the test environment where the test case is located;
and acquiring a third parameter value corresponding to the environment type, and taking the third parameter value as the second parameter value.
5. The method for generating parameters of test cases according to any one of claims 1 to 3, wherein the obtaining a second parameter value corresponding to the variable to be assigned according to the assignment policy includes:
if the assignment strategy corresponding to the variable to be assigned is a second strategy, positioning an associated variable corresponding to the variable to be assigned, and acquiring a fourth parameter value of the associated variable;
and processing the fourth parameter value to obtain a fifth parameter value, and taking the fifth parameter value as the second parameter value.
6. The method for generating parameters of a test case according to claim 5, wherein the processing the fourth parameter value to obtain a fifth parameter value includes:
and calculating the sum of the fourth parameter value and the first difference value, and taking the obtained sum as the fifth parameter value.
7. The method for generating parameters of a test case according to claim 5, wherein the processing the fourth parameter value to obtain a fifth parameter value includes:
and acquiring a first parameter value range corresponding to the fourth parameter value, selecting one parameter value from the first parameter value range, and taking the selected parameter value as the fifth parameter value.
8. A parameter generation device for a test case is characterized by comprising:
the variable type identification module is used for identifying the variable type of the variable to be assigned if the variable to be assigned is detected in the test case execution process;
the first assignment module is used for acquiring a first parameter value corresponding to the variable to be assigned if the variable to be assigned belongs to a first class of variable, and assigning the first parameter value to the variable to be assigned;
and the second assignment module is used for acquiring an assignment strategy corresponding to the variable to be assigned if the variable to be assigned belongs to a second class of variables, acquiring a second parameter value corresponding to the variable to be assigned according to the assignment strategy, and assigning the second parameter value to the variable to be assigned.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor, a computer program being stored on the memory and being executable on the processor, the processor implementing the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010127419.9A 2020-02-28 2020-02-28 Parameter generation method and device for test cases and terminal equipment Active CN111338958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010127419.9A CN111338958B (en) 2020-02-28 2020-02-28 Parameter generation method and device for test cases and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010127419.9A CN111338958B (en) 2020-02-28 2020-02-28 Parameter generation method and device for test cases and terminal equipment

Publications (2)

Publication Number Publication Date
CN111338958A true CN111338958A (en) 2020-06-26
CN111338958B CN111338958B (en) 2024-09-13

Family

ID=71185575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010127419.9A Active CN111338958B (en) 2020-02-28 2020-02-28 Parameter generation method and device for test cases and terminal equipment

Country Status (1)

Country Link
CN (1) CN111338958B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782558A (en) * 2020-07-03 2020-10-16 中车青岛四方车辆研究所有限公司 Variable memory mapping processing method
CN112860542A (en) * 2021-01-20 2021-05-28 北京神州数字科技有限公司 UI automation test method
CN115328797A (en) * 2022-08-29 2022-11-11 中国电信股份有限公司 Test parameter generation method, system, equipment, medium and software test method
CN116561857A (en) * 2023-05-09 2023-08-08 中设数字技术有限公司 Assignment method and device for BIM model component parameters

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110055818A1 (en) * 2009-08-26 2011-03-03 Kabushiki Kaisha Toshiba Source code analyzing system and source code analyzing method
CN104899149A (en) * 2015-06-29 2015-09-09 上海瀚银信息技术有限公司 Automatic testing management method
CN106294150A (en) * 2016-08-09 2017-01-04 北京神州绿盟信息安全科技股份有限公司 A kind of test loading method and device
US9612940B1 (en) * 2013-05-31 2017-04-04 The Mathworks, Inc. Combination and reuse of parameters in an automated test environment
CN107908543A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Applied program testing method, device, computer equipment and storage medium
CN108563539A (en) * 2018-03-21 2018-09-21 广州视源电子科技股份有限公司 Interface testing method, server, readable storage medium and system
CN108664398A (en) * 2018-05-09 2018-10-16 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN108829587A (en) * 2018-05-29 2018-11-16 平安普惠企业管理有限公司 Test case parameter replacing method, device, computer equipment and storage medium
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium
CN109597754A (en) * 2018-10-22 2019-04-09 中国平安财产保险股份有限公司 Operation flow interface test method, device, computer equipment and storage medium
CN110058998A (en) * 2019-03-12 2019-07-26 平安普惠企业管理有限公司 Method for testing software and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110055818A1 (en) * 2009-08-26 2011-03-03 Kabushiki Kaisha Toshiba Source code analyzing system and source code analyzing method
US9612940B1 (en) * 2013-05-31 2017-04-04 The Mathworks, Inc. Combination and reuse of parameters in an automated test environment
CN104899149A (en) * 2015-06-29 2015-09-09 上海瀚银信息技术有限公司 Automatic testing management method
CN106294150A (en) * 2016-08-09 2017-01-04 北京神州绿盟信息安全科技股份有限公司 A kind of test loading method and device
CN107908543A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Applied program testing method, device, computer equipment and storage medium
CN108563539A (en) * 2018-03-21 2018-09-21 广州视源电子科技股份有限公司 Interface testing method, server, readable storage medium and system
CN108664398A (en) * 2018-05-09 2018-10-16 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN108829587A (en) * 2018-05-29 2018-11-16 平安普惠企业管理有限公司 Test case parameter replacing method, device, computer equipment and storage medium
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium
CN109597754A (en) * 2018-10-22 2019-04-09 中国平安财产保险股份有限公司 Operation flow interface test method, device, computer equipment and storage medium
CN110058998A (en) * 2019-03-12 2019-07-26 平安普惠企业管理有限公司 Method for testing software and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782558A (en) * 2020-07-03 2020-10-16 中车青岛四方车辆研究所有限公司 Variable memory mapping processing method
CN111782558B (en) * 2020-07-03 2024-01-23 中车青岛四方车辆研究所有限公司 Variable memory mapping processing method
CN112860542A (en) * 2021-01-20 2021-05-28 北京神州数字科技有限公司 UI automation test method
CN115328797A (en) * 2022-08-29 2022-11-11 中国电信股份有限公司 Test parameter generation method, system, equipment, medium and software test method
CN116561857A (en) * 2023-05-09 2023-08-08 中设数字技术有限公司 Assignment method and device for BIM model component parameters

Also Published As

Publication number Publication date
CN111338958B (en) 2024-09-13

Similar Documents

Publication Publication Date Title
CN108073519B (en) Test case generation method and device
CN111338958B (en) Parameter generation method and device for test cases and terminal equipment
CN108984389B (en) Application program testing method and terminal equipment
CN107729227B (en) Application program test range determining method, system, server and storage medium
CN107329894B (en) Application program system testing method and device and electronic equipment
CN111163072B (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN110474900B (en) Game protocol testing method and device
CN111742309A (en) Automated database query load assessment and adaptive processing
CN110750433A (en) Interface test method and device
CN112989313A (en) Identification registration method and device, electronic equipment and storage medium
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN112433936A (en) Test method, test device and storage medium
CN111046393B (en) Vulnerability information uploading method and device, terminal equipment and storage medium
CN115809466B (en) Security requirement generation method and device based on STRIDE model, electronic equipment and medium
CN115022201B (en) Data processing function test method, device, equipment and storage medium
CN114338846B (en) Message testing method and device
US11023226B2 (en) Dynamic data ingestion
CN116471131B (en) Processing method and processing device for logical link information asset
CN113836012B (en) Algorithm testing method and device, electronic equipment and storage medium
US20220245050A1 (en) Prioritizing software bug mitigation for software on multiple systems
CN117880139A (en) Performance test method, device, equipment and storage medium
CN114490538A (en) Test machine data storage method, platform, equipment and storage medium
CN113032284A (en) System integration test method and device, electronic equipment and storage medium
CN117707951A (en) Method, device, equipment and medium for improving coverage rate of test cases
CN116668117A (en) Multi-level fingerprint identification method and device, electronic equipment and storage medium

Legal Events

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