CN112732556B - Automatic testing method, device, equipment and storage medium of distributed system - Google Patents

Automatic testing method, device, equipment and storage medium of distributed system Download PDF

Info

Publication number
CN112732556B
CN112732556B CN202011601571.2A CN202011601571A CN112732556B CN 112732556 B CN112732556 B CN 112732556B CN 202011601571 A CN202011601571 A CN 202011601571A CN 112732556 B CN112732556 B CN 112732556B
Authority
CN
China
Prior art keywords
test
test case
cases
case group
test 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.)
Active
Application number
CN202011601571.2A
Other languages
Chinese (zh)
Other versions
CN112732556A (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.)
Zhengzhou Inspur Data Technology Co Ltd
Original Assignee
Zhengzhou Inspur Data Technology 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 Zhengzhou Inspur Data Technology Co Ltd filed Critical Zhengzhou Inspur Data Technology Co Ltd
Priority to CN202011601571.2A priority Critical patent/CN112732556B/en
Publication of CN112732556A publication Critical patent/CN112732556A/en
Application granted granted Critical
Publication of CN112732556B publication Critical patent/CN112732556B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/3688Test management for test execution, e.g. scheduling of test suites
    • 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

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

After test cases of a system to be tested and test setting parameters of the test cases are obtained, the execution relation among the test cases is determined according to the test setting parameters of the test cases, so that the test cases are divided into test case groups according to the execution relation, one test case group comprises one or more test cases, the test cases in the test case group are test cases capable of being executed simultaneously, and then the test case groups are executed in sequence to test the system to be tested, thereby fully utilizing the resources of the system to be tested, saving the whole test time and greatly improving the automatic test efficiency of the distributed system compared with the mode of executing the test cases singly in the prior art. The invention also discloses an automatic testing device, equipment and storage medium of the distributed system, which have the beneficial effects.

Description

Automatic testing method, device, equipment and storage medium of distributed system
Technical Field
The present invention relates to the field of distributed systems, and in particular, to an automated testing method, apparatus, device, and storage medium for a distributed system.
Background
As social informatization continues to go deep, software systems become increasingly complex. The test difficulty of the software system is also continuously increased, and the number of test case cases is increased. Currently, when an automation test is performed on a distributed system, a single execution mode is adopted to execute each test case in sequence. With the increasing number of test cases, automated testing is increasingly time consuming.
Disclosure of Invention
The invention aims to provide an automatic testing method, device and equipment of a distributed system and a storage medium, which are used for improving the efficiency of the automatic testing of the distributed system.
In order to solve the technical problems, the invention provides an automatic testing method of a distributed system, which comprises the following steps:
acquiring test cases of a system to be tested and test setting parameters of the test cases;
determining the execution relation among the test cases according to the test setting parameters of the test cases;
dividing each test case into test case groups according to the execution relationship;
Sequentially executing each test case group to test the system to be tested;
The test case group comprises one or more test cases, and each test case in the test case group is a test case which can be executed simultaneously.
Optionally, the method includes obtaining test setting parameters of each test case, specifically:
obtaining labels of all the test cases;
Correspondingly, the determining the execution relationship between the test cases according to the test setting parameters of the test cases specifically includes:
and determining the execution relationship among the test cases according to the preset execution relationship among the labels.
Optionally, the method includes obtaining test setting parameters of each test case, specifically:
And receiving the input test setting parameters of each test case.
Optionally, the method includes obtaining test setting parameters of each test case, specifically:
And identifying the information of the preset position of the test case to obtain the test setting parameters of the test case.
Optionally, the dividing each test case into test case groups according to the execution relationship specifically includes:
dividing all the test cases into an initial test case group;
according to the execution relation, from the first test case, removing the test case which cannot be executed simultaneously with the test case from the initial test case group until processing of all the test cases in the initial test case group is completed, and generating one test case group from the rest test cases in the initial test case group;
And after the test cases removed from the initial test case group are recombined into the initial test case group, entering the step of removing the test cases which cannot be executed simultaneously with the test cases from the initial test case group from the first test case according to the execution relation until all the test cases are divided.
Optionally, the generating the test case group from the test cases remaining in the initial test case group specifically includes:
Determining system resources of the system to be tested, which are divided into test tasks;
If the resources occupied by the rest of the test cases in the initial test case group exceed the system resources, removing the excess test cases from the initial test case group, and generating one test case group by the rest of the test cases in the initial test case group;
and if the resources occupied by the rest of the test cases in the initial test case group do not exceed the system resources, generating one test case group by using the rest of the test cases in the initial test case group.
Optionally, the sequentially executing each test case group to test the system to be tested specifically includes:
Outputting information of each test case group;
when an adjustment command for the test case group is received, adjusting the corresponding test case group according to the adjustment command;
And after receiving the test command, sequentially executing each test case group to test the system to be tested.
In order to solve the technical problem, the invention also provides an automatic testing device of the distributed system, which comprises:
The system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring test cases of a system to be tested and test setting parameters of the test cases;
a determining unit, configured to determine an execution relationship between the test cases according to the test setting parameters of the test cases;
the grouping unit is used for dividing each test case into test case groups according to the execution relationship;
The test unit is used for sequentially executing each test case group so as to test the system to be tested;
The test case group comprises one or more test cases, and each test case in the test case group is a test case which can be executed simultaneously.
In order to solve the technical problem, the present invention further provides an automated testing device of a distributed system, including:
a memory for storing instructions comprising the steps of the automated test method of a distributed system of any of the above;
and the processor is used for executing the instructions.
To solve the above technical problem, the present invention further provides a storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the automated test method of a distributed system according to any one of the above.
According to the automatic test method for the distributed system, after the test cases of the system to be tested and the test setting parameters of the test cases are obtained, the execution relation among the test cases is determined according to the test setting parameters of the test cases, so that the test cases are divided into test case groups according to the execution relation, one test case group comprises one or more test cases, the test cases in the test case group are test cases which can be executed simultaneously, and then the test case groups are executed in sequence to test the system to be tested, so that compared with the mode of executing the test cases singly in the prior art, the resources of the system to be tested are fully utilized, the whole test time is saved, and the automatic test efficiency of the distributed system is greatly improved.
The invention also provides an automatic testing device, equipment and storage medium of the distributed system, which have the beneficial effects and are not repeated here.
Drawings
For a clearer description of embodiments of the invention or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an automated testing method for a distributed system according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an automated testing apparatus for a distributed system according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of an automated testing apparatus for a distributed system according to an embodiment of the present invention.
Detailed Description
The invention provides an automatic testing method, device and equipment of a distributed system and a storage medium, which are used for improving the efficiency of the automatic testing of the distributed system.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of an automated testing method for a distributed system according to an embodiment of the present invention.
As shown in fig. 1, the method for automatically testing a distributed system according to the embodiment of the present invention includes:
s101: and acquiring test cases of the system to be tested and test setting parameters of each test case.
S102: and determining the execution relation among the test cases according to the test setting parameters of the test cases.
S103: and dividing each test case into test case groups according to the execution relationship.
S104: and executing each test case group in sequence so as to test the system to be tested.
The test case group comprises one or more test cases, and each test case in the test case group is a test case which can be executed simultaneously.
In a specific implementation, for step S101, a test case for the system under test is obtained from the test host to the specified address, or a test case uploaded by a tester is received. And then determining the test setting parameters of each test case. The method specifically can receive the input test setting parameters of each test case or the information of the preset position of the test case to obtain the test setting parameters of the test case. The test setting parameters herein may include the type of operation performed by the test case, the number of nodes that need to be occupied, the type of nodes that need to be occupied, and the like.
In step S102, the execution relationship between the test cases is determined according to the test setting parameters of the test cases by using the pre-written determination script. For example, if the test case 1 includes an instruction of "query node" and the test case 2 includes an instruction of "shutdown node", then the test case 1 and the test case 2 cannot be executed simultaneously; test case 3 and test case 4 are the same type of test case, but they both need to be executed by a particular node, and test case 3 and test case 4 cannot be executed at the same time. According to the method, each test case is analyzed, and the execution relation between each test case and the other test cases is obtained, for example, the test case 1 and the test case 2 can not be executed at the same time, the test case 1 and the test case 3 can be executed at the same time, and the like.
For step S103, according to the execution relationship among the test cases, the test cases are divided into test case groups, and the test cases in one test case group are test cases that can be executed simultaneously, so that the test case group contains multiple test cases as much as possible, thereby saving the total test time. Step S103 may specifically include:
Dividing all test cases into an initial test case group;
According to the execution relation, from the first test case, the test cases which cannot be executed simultaneously with the test cases are removed from the initial test case group until the processing of all the test cases in the initial test case group is completed, and the rest test cases in the initial test case group are generated into a test case group;
After the test cases removed from the initial test case group are recombined into the initial test case group, entering a step of removing the test cases which cannot be executed simultaneously with the test cases from the initial test case group from the first test case according to the execution relation until all the test cases are divided.
By using the specific implementation manner, the test cases which cannot be executed simultaneously can be ensured not to be divided into the same test case group. However, because the resources provided by the system to be tested for automatic testing are limited, even if the test setting parameters indicate the test cases which can be executed simultaneously, the test cases are too many and exceed the resource conditions of the system to be tested, so that the conditions of the simultaneous execution cannot be executed. Therefore, the generating a test case group from the rest test cases in the initial test case group specifically includes:
determining system resources of a system to be tested, which are divided into test tasks;
if the resources occupied by the rest of the test cases in the initial test case group exceed the system resources, removing the excess test cases from the initial test case group, and generating a test case group by the rest of the test cases in the initial test case group;
if the resources occupied by the rest of the test cases in the initial test case group do not exceed the system resources, generating a test case group by the rest of the test cases in the initial test case group.
In step S104, after the test case groups are divided, each test case group is executed one by one, that is, only one test case in the test case group is executed at the same time.
It should be noted that, whether the test case group is divided in step S103 or executed in step S104, the problem of execution time is involved. Step S103 and step S104 can randomly process each test case and randomly execute each test case group; the step S103 may process each test case according to the priority order of the test cases, so as to divide the test cases with high priority into the preceding test case groups, and then the step S104 may execute each test case group according to the generation order of the test case groups; the processing sequence of the test cases can be determined according to the bearing relation among the test items of the test cases, so that the bearing commands among the test case groups are reduced, and the test efficiency of the system to be tested is further improved.
Because the execution relationship between the test cases is very complex, the pre-written judgment script is likely to be unable to be accurately identified, so step S104 may specifically include:
Outputting information of each test case group;
When an adjustment command for the test case group is received, adjusting the corresponding test case group according to the adjustment command;
and after receiving the test command, sequentially executing each test case group to test the system to be tested.
And (3) checking the test case group obtained in the step (S103) by a tester, determining whether the test can be performed according to the current divided test case group according to the checking result, adjusting an improper dividing result, and finally issuing a test command to ensure the execution effectiveness of the test case group.
According to the automatic test method for the distributed system, after the test cases of the system to be tested and the test setting parameters of the test cases are obtained, the execution relation among the test cases is determined according to the test setting parameters of the test cases, so that the test cases are divided into test case groups according to the execution relation, one test case group comprises one or more test cases, the test cases in the test case group are test cases capable of being executed simultaneously, and then the test case groups are executed in sequence to test the system to be tested, so that compared with the mode of executing the test cases singly in the prior art, the resources of the system to be tested are fully utilized, the overall test time is saved, and the automatic test efficiency of the distributed system is greatly improved.
Based on the foregoing embodiments, in the method for automatically testing a distributed system according to the embodiment of the present invention, in step S101, test setting parameters of each test case are obtained, which specifically includes:
and obtaining the labels of the test cases.
Accordingly, step S102: determining the execution relation among the test cases according to the test setting parameters of the test cases, wherein the execution relation is specifically as follows:
and determining the execution relationship among the test cases according to the preset execution relationship among the labels.
In a specific implementation, the automatic test method for the distributed system provided by the embodiment of the invention designs the corresponding labels according to the test setting parameters of each test case in advance, each test case can have a plurality of corresponding labels, one label can also correspond to a plurality of test case types, and the execution relationship before each label is set, so that the complexity of judging the execution relationship among the test cases in the step S102 can be reduced, and the efficiency of determining the execution relationship among the test cases is improved. The labels of the test cases can be stored in the appointed address in an associated mode according to the types of the test cases, and can be input by a tester. With the increase of test items, the types of test cases are increased, the types of labels are also increased, and correspondingly, the execution relationship between labels is also increased, so that a characteristic relationship library of the execution relationship between a label library and the labels is established for calling during testing.
In the embodiment of the invention, a storage system is exemplified according to the division of functional modules, and four test cases are assumed, and the labels of the test cases are shown in table 1:
table 1 test case label example table in one-time automated test
Test case labels Label (Label)
Test case 1 Node management and query node
Test case 2 Node management and newly added nodes
Test case 3 Performance queries
Test case 4 Node management and shutdown node
The corresponding feature relation library stores the execution relation among the labels as follows:
1. The query node label and the newly added node label and the shutdown node label cannot be executed at the same time;
2. The performance query label and the shutdown node label can not be executed at the same time;
3. the "new node" tag and the "shutdown node" tag may not be executed at the same time.
It can be determined that test case 1 and test case 2 cannot be executed simultaneously, test case 1 and test case 3 cannot be executed simultaneously, test case 1 and test case 4 cannot be executed simultaneously, test case 2 and test case 2 cannot be executed simultaneously, test case 2 and test case 4 cannot be executed simultaneously, and test case 3 and test case 4 cannot be executed simultaneously.
When each test case is divided into test case groups according to the execution relationship in step S103, all test cases enter an initial test case group by default, from test case 1, test case 2 and test case 4 which cannot be executed simultaneously with test case 1 are moved out of the initial test case group, and the remaining test case 1 and test case 3 generate test case group one; taking test case 2 and test case 4 as initial test case groups, starting from test case 2, removing test case 4 which cannot be executed simultaneously with test case 2 from the initial test case group, and taking the left test case 2 as test case group II; and taking the test case 4 as an initial test case group, entering the test case group III by the test case 4, and completing the processing of all the test cases.
The invention further discloses an automatic testing device, equipment and storage medium of the distributed system corresponding to the method.
Fig. 2 is a schematic structural diagram of an automated testing apparatus for a distributed system according to an embodiment of the present invention.
As shown in fig. 2, an automated testing apparatus for a distributed system according to an embodiment of the present invention includes:
an obtaining unit 201, configured to obtain test cases for a system to be tested and test setting parameters of each test case;
a determining unit 202, configured to determine an execution relationship between the test cases according to the test setting parameters of the test cases;
A grouping unit 203, configured to divide each test case into test case groups according to an execution relationship;
the test unit 204 is configured to sequentially execute each test case group to test the system to be tested;
The test case group comprises one or more test cases, and each test case in the test case group is a test case which can be executed simultaneously.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Fig. 3 is a schematic structural diagram of an automated testing apparatus for a distributed system according to an embodiment of the present invention.
As shown in fig. 3, an automated test apparatus for a distributed system according to an embodiment of the present invention includes:
a memory 310 for storing instructions comprising the steps of the automated testing method of a distributed system according to any of the embodiments described above;
And a processor 320 for executing the instructions.
Processor 320 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 320 may be implemented in at least one hardware form of a digital signal Processing DSP (DIGITAL SIGNAL Processing), a Field-Programmable gate array FPGA (Field-Programmable GATE ARRAY), and a Programmable logic array PLA (Programmable Logic Array). Processor 320 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a central processor CPU (Central Processing Unit), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 320 may be integrated with an image processor GPU (Graphics Processing Unit), a GPU for use in responsible for rendering and rendering of the content that is to be displayed by the display screen. In some embodiments, the processor 320 may also include an artificial intelligence AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 310 may include one or more storage media, which may be non-transitory. Memory 310 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 310 is at least used for storing a computer program 311, where the computer program 311, after being loaded and executed by the processor 320, can implement relevant steps in the automated testing method of the distributed system disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 310 may further include an operating system 312, data 313, and the like, where the storage may be transient storage or permanent storage. The operating system 312 may be Windows. The data 313 may include, but is not limited to, data related to the above-described method.
In some embodiments, the automated test equipment of the distributed system may further comprise a display 330, a power supply 340, a communication interface 350, an input-output interface 360, a sensor 370, and a communication bus 380.
Those skilled in the art will appreciate that the architecture shown in fig. 3 does not constitute a limitation of the automated test equipment of the distributed system and may include more or fewer components than illustrated.
The automatic test equipment of the distributed system provided by the embodiment of the application comprises the memory and the processor, wherein the processor can realize the automatic test method of the distributed system when executing the program stored in the memory, and the effects are the same as the above.
It should be noted that the apparatus and device embodiments described above are merely exemplary, and for example, the division of modules is merely a logic function division, and there may be other division manners in actual implementation, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms. The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules may be stored in a storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present invention.
To this end, an embodiment of the present invention further provides a storage medium having a computer program stored thereon, which when executed by a processor implements steps of an automated test method, such as a distributed system.
The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory RAM (Random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer program included in the storage medium provided in this embodiment can implement the steps of the automated testing method of the distributed system described above when executed by the processor, and the effects are the same as above.
The method, the device, the equipment and the storage medium for automatically testing the distributed system provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. The apparatus, device and storage medium disclosed in the embodiments are relatively simple to describe, and the relevant parts refer to the description of the method section since they correspond to the methods disclosed in the embodiments. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (7)

1. An automated testing method for a distributed system, comprising:
acquiring test cases of a system to be tested and test setting parameters of the test cases;
determining the execution relation among the test cases according to the test setting parameters of the test cases;
dividing each test case into test case groups according to the execution relationship;
Sequentially executing each test case group to test the system to be tested;
Wherein, one test case group comprises one or more test cases, and each test case in the test case group is a test case which can be executed simultaneously;
The test setting parameters of each test case are obtained, specifically: obtaining labels of all the test cases; correspondingly, the determining the execution relationship between the test cases according to the test setting parameters of the test cases specifically includes: determining the execution relationship among the test cases according to the preset execution relationship among the labels; the labels are corresponding labels designed in advance according to the test setting parameters of the test cases and the execution relation among the labels;
the test setting parameters comprise the operation type executed by the test case, the number of nodes required to be occupied and the type of the nodes required to be occupied;
dividing each test case into test case groups according to the execution relationship, wherein the method specifically comprises the following steps:
dividing all the test cases into an initial test case group;
according to the execution relation, from the first test case, removing the test case which cannot be executed simultaneously with the test case from the initial test case group until processing of all the test cases in the initial test case group is completed, and generating one test case group from the rest test cases in the initial test case group;
The step of moving out the test cases which cannot be executed simultaneously with the test cases from the initial test case group from the first test case according to the execution relation after the test cases which are moved out from the initial test case group are recombined into the initial test case group, until all the test cases are divided;
The generating the test case group from the test cases remaining in the initial test case group specifically includes:
Determining system resources of the system to be tested, which are divided into test tasks;
If the resources occupied by the rest of the test cases in the initial test case group exceed the system resources, removing the excess test cases from the initial test case group, and generating one test case group by the rest of the test cases in the initial test case group;
and if the resources occupied by the rest of the test cases in the initial test case group do not exceed the system resources, generating one test case group by using the rest of the test cases in the initial test case group.
2. The automated testing method of claim 1, wherein the obtaining the test setup parameters of each test case is specifically:
And receiving the input test setting parameters of each test case.
3. The automated testing method of claim 1, wherein the obtaining the test setup parameters of each test case is specifically:
And identifying the information of the preset position of the test case to obtain the test setting parameters of the test case.
4. The automated testing method of claim 1, wherein the sequentially executing each of the test case groups to test the system under test comprises:
Outputting information of each test case group;
when an adjustment command for the test case group is received, adjusting the corresponding test case group according to the adjustment command;
And after receiving the test command, sequentially executing each test case group to test the system to be tested.
5. An automated testing apparatus for a distributed system, comprising:
The system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring test cases of a system to be tested and test setting parameters of the test cases;
a determining unit, configured to determine an execution relationship between the test cases according to the test setting parameters of the test cases;
the grouping unit is used for dividing each test case into test case groups according to the execution relationship;
The test unit is used for sequentially executing each test case group so as to test the system to be tested;
Wherein, one test case group comprises one or more test cases, and each test case in the test case group is a test case which can be executed simultaneously;
The test setting parameters of each test case are obtained, specifically: obtaining labels of all the test cases; correspondingly, the determining the execution relationship between the test cases according to the test setting parameters of the test cases specifically includes: determining the execution relationship among the test cases according to the preset execution relationship among the labels; the labels are corresponding labels designed in advance according to the test setting parameters of the test cases and the execution relation among the labels;
the test setting parameters comprise the operation type executed by the test case, the number of nodes required to be occupied and the type of the nodes required to be occupied;
dividing each test case into test case groups according to the execution relationship, wherein the method specifically comprises the following steps:
dividing all the test cases into an initial test case group;
according to the execution relation, from the first test case, removing the test case which cannot be executed simultaneously with the test case from the initial test case group until processing of all the test cases in the initial test case group is completed, and generating one test case group from the rest test cases in the initial test case group;
The step of moving out the test cases which cannot be executed simultaneously with the test cases from the initial test case group from the first test case according to the execution relation after the test cases which are moved out from the initial test case group are recombined into the initial test case group, until all the test cases are divided;
The generating the test case group from the test cases remaining in the initial test case group specifically includes:
Determining system resources of the system to be tested, which are divided into test tasks;
If the resources occupied by the rest of the test cases in the initial test case group exceed the system resources, removing the excess test cases from the initial test case group, and generating one test case group by the rest of the test cases in the initial test case group;
and if the resources occupied by the rest of the test cases in the initial test case group do not exceed the system resources, generating one test case group by using the rest of the test cases in the initial test case group.
6. An automated testing apparatus for a distributed system, comprising:
A memory for storing instructions comprising the steps of the automated test method of a distributed system of any one of claims 1 to 4;
and the processor is used for executing the instructions.
7. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the automated testing method of a distributed system according to any of claims 1 to 4.
CN202011601571.2A 2020-12-29 2020-12-29 Automatic testing method, device, equipment and storage medium of distributed system Active CN112732556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011601571.2A CN112732556B (en) 2020-12-29 2020-12-29 Automatic testing method, device, equipment and storage medium of distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011601571.2A CN112732556B (en) 2020-12-29 2020-12-29 Automatic testing method, device, equipment and storage medium of distributed system

Publications (2)

Publication Number Publication Date
CN112732556A CN112732556A (en) 2021-04-30
CN112732556B true CN112732556B (en) 2024-06-18

Family

ID=75610014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011601571.2A Active CN112732556B (en) 2020-12-29 2020-12-29 Automatic testing method, device, equipment and storage medium of distributed system

Country Status (1)

Country Link
CN (1) CN112732556B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116449B (en) * 2021-10-25 2024-05-07 合众新能源汽车股份有限公司 Parameterization method and device for automatic test case and electronic equipment
CN114637691A (en) * 2022-05-17 2022-06-17 云账户技术(天津)有限公司 Test case management method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933734A (en) * 2015-12-30 2017-07-07 中兴通讯股份有限公司 A kind of physical layer software automated testing method and device
CN105975397A (en) * 2016-07-18 2016-09-28 浪潮(北京)电子信息产业有限公司 Integration testing method and system based on TestNG
CN109726093B (en) * 2017-10-27 2022-03-22 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for executing test cases
CN110362469A (en) * 2019-05-28 2019-10-22 中国平安人寿保险股份有限公司 Based on modular testing use-case control method, device, terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system

Also Published As

Publication number Publication date
CN112732556A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN102214139B (en) Automatic test performance control and debugging method facing distributed system
CN112732556B (en) Automatic testing method, device, equipment and storage medium of distributed system
CN109522228B (en) Interface automation test data construction method, device, platform and storage medium
CN108170602B (en) Test case generation method and device, terminal and computer readable medium
CN110515641A (en) The update method of server firmware, apparatus and system
CN112433944A (en) Service testing method, device, computer equipment and storage medium
EP3413149B1 (en) Field device commissioning system and field device commissioning method
CN112631919A (en) Comparison test method and device, computer equipment and storage medium
CN103049374B (en) Automatic testing method and device
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN114003451B (en) Interface testing method, device, system and medium
US10305740B2 (en) System and method for performing mass renaming of list of items at run-time with variable differentiation factor
CN115756996B (en) Chip testing method, device and equipment and readable storage medium
CN105095072B (en) Application testing method and device and terminal
CN116009889A (en) Deep learning model deployment method and device, electronic equipment and storage medium
CN115145634A (en) System management software self-adaption method, device and medium
CN111027196B (en) Simulation analysis task processing method and device for power equipment and storage medium
CN114143235A (en) NFV automatic test method, device, equipment and storage medium
CN115081233B (en) Flow simulation method and electronic equipment
CN111240920B (en) Performance test method, device, server and storage medium
CN116136813B (en) Method, device and storage medium for simulating adaptive multi-model avionics signals
CN110990475B (en) Batch task inserting method and device, computer equipment and storage medium
CN110968412B (en) Task execution method, system and storage medium
CN117240351A (en) Power consumption load pulling method and device, computer equipment and storage medium
CN116594981A (en) Database system parameter optimization method and device and electronic equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20240521

Address after: Room 1801, 18th Floor, Jiyun Investment Building, No. 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province, 450047

Applicant after: Zhengzhou Inspur Data Technology Co.,Ltd.

Country or region after: China

Address before: 100085 5 / F, building C, No.2, Shangdi Information Road, Haidian District, Beijing

Applicant before: Beijing Inspur Data Technology Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant