CN112445708B - Pressure testing method and device and computing equipment - Google Patents

Pressure testing method and device and computing equipment Download PDF

Info

Publication number
CN112445708B
CN112445708B CN202011375447.9A CN202011375447A CN112445708B CN 112445708 B CN112445708 B CN 112445708B CN 202011375447 A CN202011375447 A CN 202011375447A CN 112445708 B CN112445708 B CN 112445708B
Authority
CN
China
Prior art keywords
test
test case
target
case
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
CN202011375447.9A
Other languages
Chinese (zh)
Other versions
CN112445708A (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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202011375447.9A priority Critical patent/CN112445708B/en
Publication of CN112445708A publication Critical patent/CN112445708A/en
Application granted granted Critical
Publication of CN112445708B publication Critical patent/CN112445708B/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/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 pressure testing method, which is suitable for being executed in a computing device, and comprises the following steps: determining the label of the test case according to the test purpose; selecting a test case corresponding to the determined label from the test case list as a target test case; acquiring the test parameters from a configuration file; loading the target test case; and executing the loaded target test case based on the test parameters. The method realizes the automatic configuration of the execution times of the test cases and the selection of the required test cases, does not need to skip the test cases which do not need to be executed through manual operation and does not need to manually control the execution times of the test cases, thereby improving the pressure test efficiency. The invention also discloses corresponding computing equipment.

Description

Pressure testing method and device and computing equipment
Technical Field
The present invention relates to the field of pressure testing technologies, and in particular, to a pressure testing method, a device, a computing device, and a storage medium.
Background
The pressure test is to build a test environment similar to the actual application environment, continuously pressurize the software to be tested in the same time or a certain period of time, force the software to run under the limit condition, test the working efficiency of the software under different pressures and observe the running state of the software, thereby finding out the performance defects. And then, carrying out targeted analysis on the test software, finding out the bottleneck influencing the software performance, and optimizing the bottleneck.
At present, most of the pressure test is performed on software based on a test framework, but in the process of performing the pressure test based on the existing pressure test framework, for example unittest test framework, because of strong dependence among test cases, the test cases which do not need to be executed cannot be automatically determined, when the number of the test cases of the test script is very large, the test cases which do not need to be executed need to be skipped through a plurality of code changes, and when a certain test case needs to be executed for a plurality of times, the code changes are also required to be performed for a plurality of times, and a tester is required to understand basic codes, so that the requirement on labor cost is high. Therefore, the pressure testing method is low in efficiency, and meanwhile, the workload of the testers is increased, and the requirement on labor cost is high.
For this reason, a new pressure test scheme is required to improve the efficiency of the pressure test.
Disclosure of Invention
To this end, the present invention provides a pressure testing method, computing device and storage medium in an effort to solve or at least alleviate the above-presented problems.
According to one aspect of the present invention, there is provided a stress testing method adapted to be executed in a computing device, wherein a test case list and a configuration file are stored in the computing device, the test case list includes a plurality of test cases, each test case is associated with a tag, the tag represents a function of a test object tested by the test case, and the configuration file includes test parameters, the method includes:
Determining the label of the test case according to the test purpose;
Selecting a test case corresponding to the determined label from the test case list as a target test case;
acquiring the test parameters from a configuration file;
Loading the target test case;
And executing the loaded target test case based on the test parameters.
Optionally, the label of the test case includes a test object name and a test function name of the test case, and each test case is further associated with a serial number, where the step of selecting, from the test case list, the test case corresponding to the determined label as the target test case includes:
Selecting a test case corresponding to the test object name from the test case list according to the test object name and the test function name as a target test case;
Determining a sequence number associated with the target test case;
the step of loading the target test case comprises the following steps:
And loading the target test case associated with the determined sequence number.
Optionally, the test parameters include the execution times of the target test case, and the step of loading the target test case based on the determined sequence number includes:
Loading the target test case into a test suite based on the determined sequence number;
the step of executing the loaded target test case based on the test parameters comprises the following steps:
And executing the target test case in the test suite based on the execution times of the test case.
Optionally, the test case list is preconfigured according to the test purpose and the test case.
Optionally, the test object includes a bluetooth module or a wifi module.
Optionally, the test function of the test object being a bluetooth module includes: connection, deletion connection, disconnection, bluetooth pairing, bluetooth search and deletion Bluetooth pairing, wherein the test function of the test object being a wifi module comprises: connection, connection deletion, connection disconnection, wifi switch closing and wifi switch opening.
Optionally, the method further comprises:
loading a test case report template;
and generating a test report based on the test case report template.
According to another aspect of the present invention, there is provided a pressure testing apparatus adapted to be executed in a computing device, wherein a test case list and a configuration file are stored in the computing device, the test case list includes a plurality of test cases, each test case is associated with a tag, the tag indicates a function of a test object tested by the test case, and the configuration file includes test parameters, the apparatus includes:
The configuration unit is suitable for determining the label of the test case according to the test purpose, and selecting the test case corresponding to the determined label from the test case list as a target test case;
the acquisition unit is suitable for acquiring the test parameters from the configuration file;
the loading unit is suitable for loading the target test case;
And the execution unit is suitable for executing the loaded target test case based on the test parameters.
According to another aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method as described above.
According to yet another aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method as described above.
The invention provides a pressure test method, which realizes automatic configuration of the execution times of test cases and selection of required test cases based on the method, and does not need to skip the test cases which do not need to be executed through manual operation or manually control the execution times of the test cases, thereby improving the pressure test efficiency. Specifically, according to the label of the determined test case of the test purpose, the test case corresponding to the determined label is selected from the test case list to serve as a target test case, the execution times of the target test case are configured in advance, the obtained target test case is loaded to the test case, and accordingly the loading of the test case is achieved under the condition that the label of the test case is not uniform, the target test case in the test case is executed based on the configured execution times, therefore the code is not required to be changed for many times in the execution process to achieve skipping of the non-executed test case, and the code is not required to be changed for many times to repeatedly execute the same test case, the automatic configuration test case execution times and the selection of the test case are achieved, the efficiency of pressure test is improved, meanwhile, the workload of test staff is greatly reduced, the capability requirement on the test staff is lowered, and the labor cost is reduced.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 illustrates a partial test case list interface screenshot in accordance with an embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200 in accordance with one embodiment of the invention;
FIG. 3 illustrates a flow chart of a pressure testing method 300 according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
At present, most of the pressure test is performed on software based on a test framework, but the existing pressure test framework, such as unittest test framework, can not automatically determine the test cases which do not need to be executed according to the names of the test cases because the labels of the test cases in the test case list are in a unified form, when the number of the test cases of the test script is large, the test cases which do not need to be executed need to be skipped through a plurality of changes of codes, and when a certain test case needs to be executed for a plurality of times, the code is also required to be changed for a plurality of times, so that the efficiency of the pressure test is low, the test personnel are required to understand basic codes, the requirement on the labor cost is high, and the workload of the test personnel is increased. Part of the test case labels of the existing test pressure list are illustrated by table 1.
TABLE 1
\script\stress\001.py
\script\stress\002.py
\script\stress\003.py
\script\stress\004.py
\script\stress\005.py
\script\stress\006.py
As shown in Table 1, the test cases are distinguished only by the sequence numbers, but the test functions of the test cases cannot be judged according to the test case labels, so that the automatic selection of the required test cases cannot be realized, and the test cases which do not need to be executed are skipped. In order to solve the technical problems, the invention provides a pressure test method, which needs to configure a test case list before pressure test is carried out, wherein the test case list comprises a plurality of test cases, each test case is associated with a label, and the labels represent functions of test objects tested by the test cases, so that the functions of the test objects and the tested test objects of each test case can be judged based on the test case labels, the test cases can be flexibly selected under the condition that the test case labels in the test case list are not uniform, and compared with the test case labels of the test case list in the existing pressure test frame, the method can realize the flexible selection of the test cases according to the test case labels.
The label of the test case includes a test object name and a test function name. The test object is an application program for performing pressure test, such as a wifi module or a bluetooth module, and may be other application programs for performing pressure test. If the test object is a wifi module or a bluetooth module, the test function of the test object for the bluetooth module includes: connection, deletion of connection, disconnection, bluetooth pairing, bluetooth search, deletion of bluetooth pairing, etc. The test function of the wifi module of test object includes: connection, connection deletion, connection disconnection, wifi switch closing, wifi switch opening and the like. The invention is not limited to the specific form of the test function, and all test functions are within the scope of the invention. In addition, each test case is also associated with a serial number, and the serial number of the test case is the serial number of the test case.
Fig. 1 shows a part of test case labels of a wifi module and a bluetooth module in a test case list, wifi, bluetooth in the label shown in fig. 1 respectively represents test object names of the test case, namely, pressure test is carried out on the wifi module and the bluetooth module, open (switch of wifi or bluetooth is opened), close (switch of wifi or bluetooth is closed), connect (connection of wifi or bluetooth), reconnect (connection of wifi or bluetooth is disconnected), deconnect (connection of wifi or bluetooth is deleted) and the like in the label represent test function names of the test case. And 001-010 in the label indicates the serial number associated with the test case.
According to the pressure test method provided by the invention, according to the label (including the test object name and the test function name) of the test case determined by the test purpose, the test case corresponding to the determined label is selected from the test case list to serve as the target test case, so that the automatic selection of the test case is realized, the test case which does not need to be executed can be automatically skipped, and the pressure test time is saved. The execution times of the target test cases are configured in advance, the acquired target test cases are loaded to the test suite, so that the loading of the test cases is realized under the condition that the labels of the test cases are not uniform, the target test cases loaded to the test suite are executed based on the configured execution times, the code is not required to be changed for many times in the execution process to skip the test cases which are not executed, and the code is not required to be changed for many times to repeatedly execute the same test case, the automatic configuration of the execution times of the test cases and the selection of the test cases are realized, the efficiency of pressure test is improved, the workload of test staff is greatly reduced, the capability requirement on the test staff is reduced, and the labor cost is reduced.
The pressure testing method of the present invention is performed in a computing device. Fig. 2 shows a block diagram of a computing device 200 according to an embodiment of the present invention, and it should be noted that the computing device 200 shown in fig. 2 is only an example, and in practice, the computing device for implementing the pressure test method of the present invention may be any type of device, and the hardware configuration of the computing device may be the same as the computing device 200 shown in fig. 2 or may be different from the computing device 200 shown in fig. 2. In practice, the computing device for implementing the load balancing method of the present invention may add or delete hardware components of the computing device 200 shown in fig. 2, and the present invention is not limited to the specific hardware configuration of the computing device.
As shown in FIG. 2, in a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing including, but not limited to: a microprocessor (μp), a microcontroller (μc), a digital information processor (DSP), or any combination thereof. Processor 204 may include one or more levels of cache, such as a first level cache 210 and a second level cache 212, a processor core 214, and registers 216. The example processor core 214 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations, the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. Physical memory in a computing device is often referred to as volatile memory, RAM, and data in disk needs to be loaded into physical memory in order to be read by processor 204. The system memory 206 may include an operating system 220, one or more applications 222, and program data 224. In some implementations, the application 222 may be arranged to execute instructions on an operating system by the one or more processors 204 using the program data 224. Operating system 220 may be, for example, linux, windows or the like, which includes program instructions for handling basic system services and performing hardware-dependent tasks. The application 222 includes program instructions for implementing various user desired functions, and the application 222 may be, for example, a browser, instant messaging software, a software development tool (e.g., integrated development environment IDE, compiler, etc.), or the like, but is not limited thereto. When an application 222 is installed into computing device 200, a driver module may be added to operating system 220.
When the computing device 200 is started up, the processor 204 reads and executes program instructions of the operating system 220 from the system memory 206. Applications 222 run on top of operating system 220, utilizing interfaces provided by operating system 220 and underlying hardware, to implement various user-desired functions. When a user launches the application 222, the application 222 is loaded into the system memory 206, and the processor 204 reads and executes the program instructions of the application 222 from the system memory 206.
Computing device 200 also includes a storage device 232, where storage device 232 includes removable storage 236 and non-removable storage 238, where removable storage 236 and non-removable storage 238 are each connected to storage interface bus 234.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to basic configuration 202 via bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. The example peripheral interface 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication via one or more I/O ports 258 and external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.). The example communication device 246 may include a network controller 260 that may be arranged to facilitate communication with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
The network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR) or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In a computing device 200 according to the invention, the application 222 comprises instructions for performing the method 300 of the invention, which instructions may instruct the processor 204 to perform the method 300 of the invention.
Before the pressure test is performed, test parameters are required to be configured in a configuration file, wherein the test parameters comprise the execution times of the test cases, the execution times of the test cases can be determined according to the test purpose, for example, the execution times of the test cases can be set to be 100. Wherein the test purpose includes the test object under test, and the function of the test object under test. After the test parameters are configured in the configuration file, the configuration file is stored in the storage device 232 of the computing device 200. Likewise, the test case list described above is also stored in the storage device 232 of the computing device 200.
After the configuration of the parameters of the configuration file and the test case list is completed, the pressure test method provided by the invention can be executed. FIG. 3 illustrates a flow chart of a pressure parameter method 300, suitable for execution in the computing device 200 shown in FIG. 2, in accordance with one embodiment of the present invention. The method 300 starts at step S310.
In step S310, the label of the test case is determined according to the test purpose. Taking the partial test case list shown in fig. 1 as an example, if the test object to be tested is the connection function of the wifi module, the test object name can be determined to be wifi based on the test object wifi module, and the test function name can be determined to be connection according to the test function being the connection function, then the label determined according to the connection test function of the tested test object wifi module is \script\stress\004_connection_wifi.
Next, in step S320, a test case corresponding to the determined tag is selected from the test case list as a target test case. Specifically, the test case corresponding to the test object name and the test function name is selected from the test case list and used as a target test case, so that the required test case can be automatically selected, the test case which is not executed can be skipped without changing codes, the unnecessary test case is removed when the test case is selected, and therefore, the automatic skipping of the unnecessary test case is realized, the workload of a tester is greatly reduced, and the test efficiency is improved.
Because the label is complex and inconvenient to call, a serial number is associated with each test case, the serial number associated with the target test case is determined, and the label is represented by the serial number, so that the target test case is simpler and more convenient to call. For example, according to the above determined test case label \script\stress\004_connect_wifi.py, the corresponding serial number of the label may be determined to be 004, so that the label \script\wifi\stress\004_connect_wifi.py may be represented by the serial number 004.
After the test case is selected, in step S330, test parameters are obtained from the configuration file. Specifically, the test parameters are obtained from the configuration file in the storage device 232 of the computing device 200, where the test parameters are the execution times of the test cases, and if the execution times of the test cases are set to 100, it is indicated that each test case needs to be executed 100 times. Therefore, the method and the device realize the execution of a certain test case for a plurality of times in an automatic mode, and do not need to be realized by manually changing codes by a tester, so that the workload of the tester is further reduced, the efficiency of pressure test is further improved, meanwhile, the tester does not need to understand basic codes, and the personnel cost is reduced.
After the test parameters are acquired, next in step S340, the target test case is loaded. In one embodiment of the invention, one or more target test cases associated with the determined sequence numbers are loaded into the test suite, so that the loading of the test cases is realized under the condition that the labels of the test cases are not uniform, and the execution of a plurality of test cases at one time is realized, and the efficiency of the pressure test is further improved. For example, based on the determined serial number 004, the test cases associated with the serial number 004 are loaded into the test suite. The test suite is a collection of test cases, and can organically combine a series of test cases with non-uniform labels, which serve the same test purpose or under the same running environment.
Finally, in step S350, the loaded target test case is executed based on the test parameters, specifically, the target test case in the test suite is executed based on the execution times of the test case. In the process of executing the test case, whether the test case is executed successfully or not is judged by the assertion of the test point (namely the test function), the test problem can be effectively intercepted by the assertion of the test point, the method for judging whether the test case is executed successfully or not is not limited, and the method for judging whether the test case is executed successfully or not in the prior art is within the protection scope of the invention. The assertions made above may be made by the decorator, or by other means known in the art, and the invention is not limited in this regard.
In the process of executing the target test case, a test report is generated, and in one embodiment of the invention, the process of generating the test report is as follows: first, a test case report template is loaded from a three-party library, and test results are written into the test case report template, so that a test report is obtained, and the test report is stored in the computing device 200 or a database coupled to the computing device. In one embodiment of the invention, the test report is generated through a three-party library, such as HTMLReport three-party library, and the invention is not limited to the three-party library for generating the test report, and the three-party library capable of generating the test report in the prior art is within the protection scope of the invention. The test report can be an htm file, a log file or a picture, and the form of the test report can be selected according to the requirement. In the invention, the test problem is intercepted by the assertion of the test point, so that a detailed test report can be output, thereby facilitating the tracking of the test problem. Of course, other functions of the three-party library, such as a function of automatically capturing a screenshot when a test case fails, may be utilized, which facilitates problem location and problem interception, thereby facilitating a tester to more efficiently find problems with the test function in the pressure test.
The whole process of realizing the pressure test by the pressure test method according to the invention is as follows: and determining the label according to the test purpose, for example, the purpose of the pressure test is to test the connect function of the wifi module, and then the determined label is \script\wifi\stress\004_connect_wifi. And selecting the test case corresponding to the determined label from the test case list as a target test case, obtaining a serial number associated with the target test case, namely serial number 004, and loading the test case associated with the determined serial number into the test suite. If the execution parameter is 100, automatically executing a test case corresponding to 100 order number 004 from the test suite, storing the test result in a test report template html file, after the test case is executed, enabling a developer to enter a test report interface by clicking the html file, analyzing the compression resistance of a test object wifi based on the test result, finding out defects of the connection function of the wifi of the test version, and optimizing the defects.
Based on the method provided by the invention, the execution times of the test cases are automatically configured and the needed test cases are selected, the test cases which do not need to be executed do not need to be skipped through manual operation, and the execution times of the test cases do not need to be controlled manually, so that the pressure test efficiency is improved while the test quality is ensured. Specifically, according to the label of the determined test case of the test purpose, the test case corresponding to the determined label is selected from the test case list to serve as a target test case, so that the automatic selection of the test case is realized, the test case which does not need to be executed can be automatically skipped, and the pressure test time is saved. The execution times of the target test cases are configured in advance, the acquired target test cases are loaded to the test suite, so that the loading of the test cases is realized under the condition that the labels of the test cases are not uniform, the target test cases loaded to the test suite are executed based on the configured execution times, the code is not required to be changed for many times in the execution process to skip the test cases which are not executed, and the code is not required to be changed for many times to repeatedly execute the same test case, the automatic configuration of the execution times of the test cases and the selection of the test cases are realized, the efficiency of pressure test is improved, the workload of test staff is greatly reduced, the capability requirement on the test staff is reduced, and the labor cost is reduced.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the stress test method of the invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with examples of the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (10)

1. A stress testing method, adapted to be executed in a computing device, where the computing device stores a test case list and a configuration file, the test case list includes a plurality of test cases, each test case is associated with a tag, the tag represents a function of a test object tested by the test case, and the configuration file includes test parameters, the method includes:
Determining the label of the test case according to the test purpose;
Selecting a test case corresponding to the determined label from the test case list as a target test case;
acquiring the test parameters from a configuration file, wherein the test parameters comprise the execution times of the target test cases;
Loading the target test case;
Executing the loaded target test case based on the test parameters, including:
Executing the target test cases loaded into the test suite based on the execution times of the test cases, and judging whether the test cases are successfully executed or not through assertion of test points;
the label of the test case comprises a test object name and a test function name of the test case, and the step of selecting the test case corresponding to the determined label from the test case list as a target test case comprises the following steps:
And selecting a test case corresponding to the test object name from the test case list according to the test object name and the test function name as a target test case.
2. The method of claim 1, wherein each test case is further associated with a sequence number,
The method further comprises the steps of:
Determining a sequence number associated with the target test case;
the step of loading the target test case comprises the following steps:
And loading the target test case associated with the determined sequence number.
3. The method of claim 2, wherein loading the target test case based on the determined sequence number comprises:
and loading the target test case into a test suite based on the determined sequence number.
4. The method of claim 1, wherein the list of test cases is preconfigured according to test purpose and test cases.
5. The method of claim 1, wherein the test object comprises a bluetooth module or a wifi module.
6. The method of claim 5, wherein the test object is a test function of a bluetooth module comprises: connection, deletion connection, disconnection, bluetooth pairing, bluetooth search and deletion Bluetooth pairing, wherein the test function of the test object being a wifi module comprises: connection, connection deletion, connection disconnection, wifi switch closing and wifi switch opening.
7. The method of claim 1, further comprising:
loading a test case report template;
and generating a test report based on the test case report template.
8. A pressure testing apparatus adapted to be executed in a computing device, wherein the computing device has a test case list and a configuration file stored therein, the test case list including a plurality of test cases, each test case being associated with a tag, the tag representing a function of a test object to be tested by the test case, the configuration file including test parameters, the apparatus comprising:
The configuration unit is suitable for determining the label of the test case according to the test purpose, and selecting the test case corresponding to the determined label from the test case list as a target test case;
the label of the test case comprises a test object name and a test function name of the test case, and the configuration unit is further adapted to: selecting a test case corresponding to the test object name from the test case list according to the test object name and the test function name as a target test case;
The acquisition unit is suitable for acquiring the test parameters from the configuration file, wherein the test parameters comprise the execution times of the target test cases;
the loading unit is suitable for loading the target test case;
An execution unit adapted to execute the loaded target test case based on the test parameters, comprising:
And executing the target test case loaded into the test suite based on the execution times of the test case, and judging whether the test case is successfully executed or not through the assertion of the test point.
9. A computing device, comprising:
At least one processor; and
A memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-7.
10. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-7.
CN202011375447.9A 2020-11-30 2020-11-30 Pressure testing method and device and computing equipment Active CN112445708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011375447.9A CN112445708B (en) 2020-11-30 2020-11-30 Pressure testing method and device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011375447.9A CN112445708B (en) 2020-11-30 2020-11-30 Pressure testing method and device and computing equipment

Publications (2)

Publication Number Publication Date
CN112445708A CN112445708A (en) 2021-03-05
CN112445708B true CN112445708B (en) 2024-06-14

Family

ID=74738831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011375447.9A Active CN112445708B (en) 2020-11-30 2020-11-30 Pressure testing method and device and computing equipment

Country Status (1)

Country Link
CN (1) CN112445708B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079240A (en) * 2021-03-24 2021-07-06 深圳市亿道数码技术有限公司 Performance pressure testing method and system for intelligent equipment
CN115328816B (en) * 2022-10-17 2023-05-16 统信软件技术有限公司 Test case management method, device, computing equipment and storage medium
CN115617686A (en) * 2022-10-31 2023-01-17 北京志凌海纳科技有限公司 Super-fusion cluster testing method and device, computer equipment and storage medium
CN117234950B (en) * 2023-11-13 2024-03-19 广州品唯软件有限公司 Test case recording method and device, storage medium and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108469998A (en) * 2018-01-18 2018-08-31 苏州沈苏自动化技术开发有限公司 Universal software automation test framework system
CN110941547A (en) * 2019-10-12 2020-03-31 平安普惠企业管理有限公司 Automatic test case library management method, device, medium and electronic equipment
CN111198811A (en) * 2018-11-19 2020-05-26 中移(苏州)软件技术有限公司 Page automatic test method and device, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984416B (en) * 2010-11-02 2014-12-10 中兴通讯股份有限公司 Method and device for generating test case
CN105512033B (en) * 2015-12-02 2019-02-15 厦门美图移动科技有限公司 A kind of automated testing method of mobile terminal, device and mobile terminal
CN108170594A (en) * 2017-12-25 2018-06-15 郑州云海信息技术有限公司 A kind of test method of neural network model, device and equipment
CN109240928A (en) * 2018-09-13 2019-01-18 广东小天才科技有限公司 A kind of test method, device, equipment and storage medium
CN111198809A (en) * 2018-11-16 2020-05-26 北京奇虎科技有限公司 Interface automation test method and device
CN110287115A (en) * 2019-06-26 2019-09-27 北京金山云网络技术有限公司 Generation method, device and the server of test report
CN110765018B (en) * 2019-10-25 2023-06-13 上海中通吉网络技术有限公司 Automatic interface testing method and equipment
CN111966601B (en) * 2020-09-04 2022-09-20 苏州浪潮智能科技有限公司 Automatic test case execution method based on label

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108469998A (en) * 2018-01-18 2018-08-31 苏州沈苏自动化技术开发有限公司 Universal software automation test framework system
CN111198811A (en) * 2018-11-19 2020-05-26 中移(苏州)软件技术有限公司 Page automatic test method and device, electronic equipment and storage medium
CN110941547A (en) * 2019-10-12 2020-03-31 平安普惠企业管理有限公司 Automatic test case library management method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN112445708A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN112445708B (en) Pressure testing method and device and computing equipment
CN109302522B (en) Test method, test device, computer system, and computer medium
CN110413506B (en) Test case recommendation method, device, equipment and storage medium
WO2018010552A1 (en) Test method and device
CN112765023B (en) Test case generation method and device
US20140165040A1 (en) Test script generation for application image validation
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
US9176851B2 (en) Utilizing intelligent automated scripts to test software applications
US9645911B2 (en) System and method for debugging firmware/software by generating trace data
CN110196809B (en) Interface testing method and device
CN104375914A (en) Automatic testing method for internal pressure changes of server
CN108197024B (en) Embedded browser debugging method, debugging terminal and computer readable storage medium
WO2019148657A1 (en) Method for testing associated environments, electronic device and computer readable storage medium
CN116166525A (en) Method and device for generating test script
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN114625448A (en) Flow generation method and device combining RPA and AI, electronic equipment and storage medium
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN112131111A (en) Method, device and storage medium for automatically testing page
CN113485712B (en) Kernel clipping method and computing device
US9710360B2 (en) Optimizing error parsing in an integrated development environment
CN113778834B (en) System performance testing method and device of application software and computing equipment
KR20180118606A (en) Application programs User interface automation Test methods, electronic devices, systems and storage media
CN115705187A (en) Item dependency relationship display method and device, terminal equipment and storage medium
CN114328273B (en) Debugging method and device for application program control and computing equipment
US20110191395A1 (en) Reducing Image Footprints

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