CN114116449A - Automatic test case parameterization method and device and electronic equipment - Google Patents

Automatic test case parameterization method and device and electronic equipment Download PDF

Info

Publication number
CN114116449A
CN114116449A CN202111240411.4A CN202111240411A CN114116449A CN 114116449 A CN114116449 A CN 114116449A CN 202111240411 A CN202111240411 A CN 202111240411A CN 114116449 A CN114116449 A CN 114116449A
Authority
CN
China
Prior art keywords
test
test case
parameter
template
cases
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
CN202111240411.4A
Other languages
Chinese (zh)
Other versions
CN114116449B (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.)
Hozon New Energy Automobile Co Ltd
Original Assignee
Hozon New Energy Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hozon New Energy Automobile Co Ltd filed Critical Hozon New Energy Automobile Co Ltd
Priority to CN202111240411.4A priority Critical patent/CN114116449B/en
Publication of CN114116449A publication Critical patent/CN114116449A/en
Application granted granted Critical
Publication of CN114116449B publication Critical patent/CN114116449B/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/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 invention discloses a parameterization method, a parameterization device and electronic equipment of an automatic test case, wherein the parameterization method comprises the steps of obtaining all existing test cases, grouping all the test cases based on the similarity among the test cases to obtain all test case groups; extracting an automatic test template from each test case group, determining input parameters needing to be filled in the automatic test template, and constructing an input parameter list according to the input parameters; defining different test parameters based on the input parameters, perfecting an input parameter list according to each test parameter to obtain a parameter test case; and importing the parameter test case into an automatic test template to obtain a complete test case. The invention realizes that when a similar new test case needs to be compiled, the new test case can be generated quickly and efficiently according to the complete test case.

Description

Automatic test case parameterization method and device and electronic equipment
Technical Field
The application relates to the technical field of automatic testing, in particular to a parameterization method and device of an automatic test case and electronic equipment.
Background
When a traditional automated test case is used for writing a similar automated test case (for example, only partial parameters are modified), a test case needs to be copied again, and a worker manually adjusts the parameters of the copied test case. If the parameter change interval to be tested is large, a worker may be required to perform a lot of repeated labor, which wastes time and labor.
Disclosure of Invention
In order to solve the above problem, embodiments of the present application provide a parameterization method and apparatus for an automated test case, and an electronic device.
In a first aspect, an embodiment of the present application provides a method for parameterizing an automatic test case, where the method includes:
acquiring all existing test cases, and grouping all the test cases based on the similarity between the test cases to obtain each test case group;
extracting an automatic test template from each test case group, determining input parameters needing to be filled in the automatic test template, and constructing an input parameter list according to the input parameters;
defining different test parameters based on the input parameters, perfecting the input parameter list according to each test parameter to obtain a parameter test case;
and importing the parameter test case into the automatic test template to obtain a complete test case.
Preferably, the grouping all the test cases based on the similarity between the test cases to obtain each test case group includes:
acquiring a functional module of the test case, wherein the functional module comprises a precondition, an execution action and a post-processing;
comparing every two test cases, and determining that at least one of the two test cases with the same functional module is similar to the other test case;
and dividing the test cases with the similarity into a group to obtain each test case group.
Preferably, the automatic test template can switch and execute different preconditions, execution actions and post-processing according to different input parameters.
Preferably, the method further comprises:
acquiring the code complexity of each functional module;
and adjusting the arrangement sequence of each input parameter in the parameter test case according to the sequence of the code complexity from simple to complex.
Preferably, the method further comprises:
receiving a test case changing instruction, and determining a changing type corresponding to the test case changing instruction;
when the change type is a parameter threshold value, changing the parameter test case;
and when the change type is a functional requirement, changing the automatic test template.
Preferably, the method further comprises:
when a manual test case is detected, determining the test case group with similarity to the manual test case;
and adding the manual test case to the test case group, re-perfecting the input parameter list and updating the parameter test case.
In a second aspect, an embodiment of the present application provides an apparatus for parameterizing an automated test case, where the apparatus includes:
the acquisition module is used for acquiring all existing test cases and grouping all the test cases based on the similarity among the test cases to obtain each test case group;
the extraction module is used for extracting an automatic test template from each test case group, determining input parameters needing to be filled in the automatic test template, and constructing an input parameter list according to the input parameters;
the perfecting module is used for defining different test parameters based on the input parameters, perfecting the input parameter list according to each test parameter and obtaining a parameter test case;
and the import module is used for importing the parameter test case into the automatic test template to obtain a complete test case.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method as provided in the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as provided in the first aspect or any one of the possible implementations of the first aspect.
The invention has the beneficial effects that: the method comprises the steps of constructing an input parameter list through an existing test case, carrying out detailed design on an automatic test case by defining different parameters for the input parameter list to obtain the parameter test case, further combining the parameter test case with an automatic test template to form a complete test case, and when a similar new test case needs to be compiled, generating the new test case quickly and efficiently according to the complete test case. And because the functional module and the parameters are maintained separately, if the required function is changed, only the main body of the test case needs to be changed, and if the threshold value of the required parameter is changed, only the parameter table needs to be changed, the compiling cost of different types of test cases is lower, and the compiling 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 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 without creative efforts.
Fig. 1 is a schematic flowchart of a method for parameterizing an automated test case according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an apparatus for parameterizing an automated test case according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the present application, where different embodiments may be substituted or combined, and thus the present application is intended to include all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for parameterizing an automated test case according to an embodiment of the present application. In an embodiment of the present application, the method includes:
s101, all existing test cases are obtained, all the test cases are grouped based on the similarity between the test cases, and each test case group is obtained.
The execution main body of the application can be a cloud server.
The test case in the embodiment of the present application may be understood as description of a test task performed on a specific software product, and embodies a test scheme, a method, a technique, and a policy. The contents of the test object, the test environment, the input data, the test steps, the expected results, the test scripts and the like are included, and finally, a document is formed. Simply considered, a test case is a set of test inputs, execution conditions, and expected results tailored for a particular purpose to verify whether a particular software requirement is met.
In the embodiment of the application, the cloud server acquires the test cases existing in the server, and because the test cases are a set of overall processes of input, execution conditions and expected results compiled for a target, different test cases may have similarity, that is, a certain middle step is the same, but subsequent processing is different according to different processing results. Therefore, all the existing test cases are grouped according to the similarity among the test cases, and the test cases with the similarity are divided into one group to obtain each test case group.
In one possible embodiment, step S101 includes:
acquiring a functional module of the test case, wherein the functional module comprises a precondition, an execution action and a post-processing;
comparing every two test cases, and determining that at least one of the two test cases with the same functional module is similar to the other test case;
and dividing the test cases with the similarity into a group to obtain each test case group.
In the embodiment of the application, each test case is composed of a plurality of functional modules, and specifically, the test case can be divided into three types, namely, a precondition, an execution action, and a post-processing. It can be seen that different test cases may have similarity, that is, for example, the determination process of the preconditions is the same, but the result of the determination is different due to the difference of the input parameters, which in turn causes the subsequent execution action to be different. Therefore, the functional modules of the test cases need to be compared, and as long as at least one of the preconditions, the execution actions and the post-processing in the functional modules are the same, the two test cases are considered to have similarity.
S102, extracting an automatic test template from each test case group, determining input parameters needing to be filled in the automatic test template, and constructing an input parameter list according to the input parameters.
In the embodiment of the present application, as can be known from the foregoing analysis, each test case corresponds to a specific parameter for testing the test case, and each functional module performs the whole testing process by processing the specific parameter. After the test case groups are divided according to the similarity, an automatic test template can be extracted from each group by excluding specific parameters, for example, judging the parameters in a precondition, executing an action of A when the judgment result is A, executing an action of B when the judgment result is B, and the like. According to the extracted automatic test template, input parameters needing to be filled in the template can be determined, and an input parameter list can be constructed according to the input parameters needing to be filled.
In one possible implementation, the automatic test template can switch to execute different preconditions, execution actions and post-processing according to different input parameters.
S103, defining different test parameters based on the input parameters, perfecting the input parameter list according to the test parameters, and obtaining a parameter test case.
In the embodiment of the application, the input parameters are determined according to the automatic test template and the corresponding test case group, that is, the determined input parameters are all some specific parameter values, and all parameter ranges applicable to the automatic test template cannot be represented. Therefore, different test parameters need to be defined according to the input parameters to perfect the input parameter list, and finally the perfect input parameter list is used as a parameter test case.
And S104, importing the parameter test case into the automatic test template to obtain a complete test case.
In the embodiment of the application, after the parameter test case is obtained perfectly, the parameter test case is imported into the automatic test template again, and then the complete test case can be obtained. In the subsequent new test case editing process, a worker can quickly and conveniently construct a test case required by the worker only by adjusting and inputting corresponding input parameters based on the complete test case and simulate the test to obtain a test result.
In one embodiment, the method further comprises:
acquiring the code complexity of each functional module;
and adjusting the arrangement sequence of each input parameter in the parameter test case according to the sequence of the code complexity from simple to complex.
In the embodiment of the present application, codes of different functional modules have different complexity levels according to different functions to be implemented by each functional module, and the code complexity level may specifically be determined according to the number of lines of the codes and the number of references before the codes. Through the code complexity, the input parameters corresponding to the parameter test cases can be reordered according to a simple to complex sequence. In the subsequent testing process, if the staff only needs to test the function module such as the precondition and does not care about the subsequent processing process, the input parameters with low code complexity can be preferentially selected for testing through the sorting of the complexity degree, and the testing efficiency is ensured.
In one embodiment, the method further comprises:
receiving a test case changing instruction, and determining a changing type corresponding to the test case changing instruction;
when the change type is a parameter threshold value, changing the parameter test case;
and when the change type is a functional requirement, changing the automatic test template.
In the embodiment of the present application, as can be seen from the foregoing process, the application splits the complete test case, which should be taken as a whole, into two parts, namely, the automated test template and the parametric test case, to be processed and constructed separately, that is, the functional module and the parameter are maintained separately. Therefore, when a complete test case needs to be changed based on the requirement of a certain test, the server firstly confirms the specific type expected to be changed by the staff based on the test case change instruction sent by the staff, and changes the parameter test case or the automatic test template corresponding to the change type without any influence on the object of the other type, so that the whole change process is more flexible and efficient.
In one embodiment, the method further comprises:
when a manual test case is detected, determining the test case group with similarity to the manual test case;
and adding the manual test case to the test case group, re-perfecting the input parameter list and updating the parameter test case.
The manual test case can be understood as a new test case manually compiled by a worker in the embodiment of the application.
In the embodiment of the application, the test cases are automatically determined and generated according to the input parameters input by the staff for testing, and besides, the staff can completely rewrite a new test case, namely a manual test case. And after the server detects the manual test case, the server judges the similarity of the manual test case and the divided test case group, adds the manual test case into the test case group with the similarity, and perfects the input parameter list according to the manual test case again so as to realize the updating of the parameter test case.
The following describes in detail the parameterization device for automated test cases provided in the embodiment of the present application with reference to fig. 2. It should be noted that, the parameterization apparatus for automation test cases shown in fig. 2 is used for executing the method of the embodiment shown in fig. 1 of the present application, and for convenience of description, only the parts related to the embodiment of the present application are shown, and details of the specific technology are not disclosed, please refer to the embodiment shown in fig. 1 of the present application.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an apparatus for parameterizing an automatic test case according to an embodiment of the present disclosure. As shown in fig. 2, the apparatus includes:
an obtaining module 201, configured to obtain all existing test cases, and group all the test cases based on similarity between the test cases to obtain each test case group;
an extracting module 202, configured to extract an automated test template from each test case group, determine input parameters to be filled in the automated test template, and construct an input parameter list according to each input parameter;
the perfecting module 203 is configured to define different test parameters based on the input parameters, and perfect the input parameter list according to each test parameter to obtain a parameter test case;
and the importing module 204 is configured to import the parametric test case into the automated test template to obtain a complete test case.
In one implementation, the obtaining module 201 includes:
the functional module acquisition unit is used for acquiring a functional module of the test case, and the functional module comprises a precondition, an execution action and a post-processing;
the comparison unit is used for comparing the test cases pairwise and determining that at least one of the two test cases with the same item in the functional modules has similarity;
and the dividing unit is used for dividing the test cases with the similarity into a group to obtain each test case group.
In one embodiment, the apparatus further comprises:
the complexity obtaining module is used for obtaining the code complexity of each functional module;
and the sequencing module is used for adjusting the arrangement sequence of each input parameter in the parameter test case according to the sequence from simple code complexity to complex code complexity.
In one embodiment, the apparatus further comprises:
the receiving module is used for receiving a test case changing instruction and determining a changing type corresponding to the test case changing instruction;
the first changing module is used for changing the parameter test case when the changing type is a parameter threshold value;
and the second changing module is used for changing the automatic test template when the changing type is the function requirement.
In one embodiment, the apparatus further comprises:
the similarity determining module is used for determining the test case group with similarity to the manual test case when the manual test case is detected;
and the adding module is used for adding the manual test case to the test case group, re-perfecting the input parameter list and updating the parameter test case.
It is clear to a person skilled in the art that the solution according to the embodiments of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, a Field-Programmable Gate Array (FPGA), an Integrated Circuit (IC), or the like.
Each processing unit and/or module in the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
Referring to fig. 3, a schematic structural diagram of an electronic device according to an embodiment of the present application is shown, where the electronic device may be used to implement the method in the embodiment shown in fig. 1. As shown in fig. 3, the electronic device 300 may include: at least one central processor 301, at least one network interface 304, a user interface 303, a memory 305, at least one communication bus 302.
Wherein a communication bus 302 is used to enable the connection communication between these components.
The user interface 303 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 303 may further include a standard wired interface and a wireless interface.
The network interface 304 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The central processor 301 may include one or more processing cores. The central processor 301 connects various parts within the entire electronic device 300 using various interfaces and lines, and performs various functions of the terminal 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 305 and calling data stored in the memory 305. Alternatively, the central Processing unit 301 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The CPU 301 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the cpu 301, but may be implemented by a single chip.
The Memory 305 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable medium. The memory 305 may be used to store instructions, programs, code sets, or instruction sets. The memory 305 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 305 may alternatively be at least one storage device located remotely from the central processor 301. As shown in fig. 3, memory 305, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.
In the electronic device 300 shown in fig. 3, the user interface 303 is mainly used for providing an input interface for a user to obtain data input by the user; the central processor 301 may be configured to call a parameterized application of the automated test case stored in the memory 305, and specifically perform the following operations:
acquiring all existing test cases, and grouping all the test cases based on the similarity between the test cases to obtain each test case group;
extracting an automatic test template from each test case group, determining input parameters needing to be filled in the automatic test template, and constructing an input parameter list according to the input parameters;
defining different test parameters based on the input parameters, perfecting the input parameter list according to each test parameter to obtain a parameter test case;
and importing the parameter test case into the automatic test template to obtain a complete test case.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical or other form.
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.
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 integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (9)

1. A parameterization method for an automatic test case is characterized by comprising the following steps:
acquiring all existing test cases, and grouping all the test cases based on the similarity between the test cases to obtain each test case group;
extracting an automatic test template from each test case group, determining input parameters needing to be filled in the automatic test template, and constructing an input parameter list according to the input parameters;
defining different test parameters based on the input parameters, perfecting the input parameter list according to each test parameter to obtain a parameter test case;
and importing the parameter test case into the automatic test template to obtain a complete test case.
2. The method of claim 1, wherein the grouping all the test cases based on the similarity between the test cases to obtain each test case group comprises:
acquiring a functional module of the test case, wherein the functional module comprises a precondition, an execution action and a post-processing;
comparing every two test cases, and determining that at least one of the two test cases with the same functional module is similar to the other test case;
and dividing the test cases with the similarity into a group to obtain each test case group.
3. The method of claim 2, wherein the automated test template is capable of performing different pre-conditioning, performing actions, and post-processing according to different input parameters.
4. The method of claim 2, further comprising:
acquiring the code complexity of each functional module;
and adjusting the arrangement sequence of each input parameter in the parameter test case according to the sequence of the code complexity from simple to complex.
5. The method of claim 1, further comprising:
receiving a test case changing instruction, and determining a changing type corresponding to the test case changing instruction;
when the change type is a parameter threshold value, changing the parameter test case;
and when the change type is a functional requirement, changing the automatic test template.
6. The method of claim 1, further comprising:
when a manual test case is detected, determining the test case group with similarity to the manual test case;
and adding the manual test case to the test case group, re-perfecting the input parameter list and updating the parameter test case.
7. An apparatus for automating parameterization of test cases, the apparatus comprising:
the acquisition module is used for acquiring all existing test cases and grouping all the test cases based on the similarity among the test cases to obtain each test case group;
the extraction module is used for extracting an automatic test template from each test case group, determining input parameters needing to be filled in the automatic test template, and constructing an input parameter list according to the input parameters;
the perfecting module is used for defining different test parameters based on the input parameters, perfecting the input parameter list according to each test parameter and obtaining a parameter test case;
and the import module is used for importing the parameter test case into the automatic test template to obtain a complete test case.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-6 are implemented when the computer program is executed by the processor.
9. A computer-readable storage medium, on 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 6.
CN202111240411.4A 2021-10-25 2021-10-25 Parameterization method and device for automatic test case and electronic equipment Active CN114116449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111240411.4A CN114116449B (en) 2021-10-25 2021-10-25 Parameterization method and device for automatic test case and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111240411.4A CN114116449B (en) 2021-10-25 2021-10-25 Parameterization method and device for automatic test case and electronic equipment

Publications (2)

Publication Number Publication Date
CN114116449A true CN114116449A (en) 2022-03-01
CN114116449B CN114116449B (en) 2024-05-07

Family

ID=80377097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111240411.4A Active CN114116449B (en) 2021-10-25 2021-10-25 Parameterization method and device for automatic test case and electronic equipment

Country Status (1)

Country Link
CN (1) CN114116449B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555813A (en) * 2024-01-11 2024-02-13 天津异乡好居网络科技股份有限公司 Method, device, equipment and medium for determining common test case

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115114A1 (en) * 2006-11-10 2008-05-15 Sashank Palaparthi Automated software unit testing
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
US20140181590A1 (en) * 2012-12-20 2014-06-26 Sap Ag Automated end-to-end testing via multiple test tools
CN106528395A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Test case generation method and apparatus
CN109933531A (en) * 2019-03-19 2019-06-25 湖南国科微电子股份有限公司 Automatic testing method, device and electronic equipment
CN112241360A (en) * 2019-07-19 2021-01-19 腾讯科技(深圳)有限公司 Test case generation method, device, equipment and storage medium
CN112732556A (en) * 2020-12-29 2021-04-30 北京浪潮数据技术有限公司 Automatic testing method, device, equipment and storage medium for distributed system
CN113434395A (en) * 2021-06-22 2021-09-24 中国平安人寿保险股份有限公司 Automatic generation method, device, equipment and medium of test case

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115114A1 (en) * 2006-11-10 2008-05-15 Sashank Palaparthi Automated software unit testing
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
US20140181590A1 (en) * 2012-12-20 2014-06-26 Sap Ag Automated end-to-end testing via multiple test tools
CN106528395A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Test case generation method and apparatus
CN109933531A (en) * 2019-03-19 2019-06-25 湖南国科微电子股份有限公司 Automatic testing method, device and electronic equipment
CN112241360A (en) * 2019-07-19 2021-01-19 腾讯科技(深圳)有限公司 Test case generation method, device, equipment and storage medium
CN112732556A (en) * 2020-12-29 2021-04-30 北京浪潮数据技术有限公司 Automatic testing method, device, equipment and storage medium for distributed system
CN113434395A (en) * 2021-06-22 2021-09-24 中国平安人寿保险股份有限公司 Automatic generation method, device, equipment and medium of test case

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555813A (en) * 2024-01-11 2024-02-13 天津异乡好居网络科技股份有限公司 Method, device, equipment and medium for determining common test case
CN117555813B (en) * 2024-01-11 2024-05-14 天津异乡好居网络科技股份有限公司 Method, device, equipment and medium for determining common test case

Also Published As

Publication number Publication date
CN114116449B (en) 2024-05-07

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
US8549478B2 (en) Graphical user interface input element identification
CN105045602B (en) Method and device for constructing Hadoop application development framework and electronic device
CN106776334B (en) Comment-based test case generation method and device
CN108170425B (en) Program code modification method and device and terminal equipment
CN111368497A (en) Circuit board schematic diagram design method and device, electronic equipment and storage medium
CN113342669B (en) Verification method and device for shortening convergence time of chip code coverage rate
CN114116449A (en) Automatic test case parameterization method and device and electronic equipment
CN114201346A (en) HIL (hardware-in-the-loop) testing method and device of CAN (controller area network) communication interface and electronic equipment
CN109710510B (en) Code submitting method, device, equipment and readable storage medium
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
JP5937245B1 (en) Operation procedure evaluation apparatus and operation procedure evaluation program
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN111401465A (en) Training sample optimization method, device, equipment and storage medium
CN107918584A (en) Information generating system, device, method and computer-readable recording medium
CN115687154A (en) Method and device for generating C program test case based on Csmith random generator
CN110544166A (en) Sample generation method, device and storage medium
CN110674628A (en) File template generation method and system
CN112819030A (en) Image recognition model training method and device, storage medium and terminal
CN111210279B (en) Target user prediction method and device and electronic equipment
CN111243058B (en) Object simulation image generation method and computer readable storage medium
CN112579144B (en) Data processing method and device
CN112286785B (en) Abnormality detection method and device for user interface
CN110309047B (en) Test point generation method, device and system
JP2017151594A (en) Supporting device, supporting method, and program

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
CB02 Change of applicant information

Address after: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Applicant after: United New Energy Automobile Co.,Ltd.

Address before: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Applicant before: Hozon New Energy Automobile Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant