CN114676060A - Method for automatically testing performance of host machine before and after virtual machine observation keyword execution - Google Patents
Method for automatically testing performance of host machine before and after virtual machine observation keyword execution Download PDFInfo
- Publication number
- CN114676060A CN114676060A CN202210340069.3A CN202210340069A CN114676060A CN 114676060 A CN114676060 A CN 114676060A CN 202210340069 A CN202210340069 A CN 202210340069A CN 114676060 A CN114676060 A CN 114676060A
- Authority
- CN
- China
- Prior art keywords
- performance
- virtual machine
- keyword
- automatic test
- keywords
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
Abstract
The invention relates to the technical field of application of automatic test virtual machines, and discloses a method for observing the performance of a host machine before and after execution of keywords by an automatic test virtual machine. When the automatic test virtual machine executes the keywords, the configuration switch is analyzed, and the performance observation of the host machine is directly achieved. Only the line specified in the keyword script is needed to open the configuration switch, so that the time and labor cost are saved. And the host machine performance detection control of the keyword line level of the keyword script is realized by combining with the automatic virtual machine testing technology.
Description
Technical Field
The invention relates to the technical field of application of automatic test virtual machines, in particular to a method for observing the performance of a host machine before and after execution of keywords by an automatic test virtual machine.
Background
The automatic test is used as an important component of software test, a solid guarantee is provided for the quality of software products, when the performance of a host machine needs to be observed in the conventional automatic test script based on keywords, extra operation needs to be appointed in the keyword script, an external tool is used for performance detection, and the current method has the following defects: 1, script level, no keyword level is made; 2, extra operations need to be added to the script; 3, an additional performance detection tool needs to be used, so that a method for automatically testing the performance of the host machine before and after the virtual machine observes the execution of the keywords is provided.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a method for automatically testing the performance of a host machine before and after a virtual machine observes the execution of keywords, which has the advantages of saving time and labor cost and solves the problems that in the existing automatic test script based on the keywords, when the performance of the host machine needs to be observed, extra operation needs to be appointed in the keyword script, and a plurality of defects exist in performance detection by using an external tool.
(II) technical scheme
In order to achieve the purpose, the invention provides the following technical scheme: a method for observing the performance of a host machine before and after execution of keywords by an automatic test virtual machine comprises the automatic test virtual machine, an actuator, a test script, a performance detector and an object to be tested.
Preferably, the method for automatically testing the performance of the host machine before and after the virtual machine observes the execution of the keyword according to claim 1 includes the following specific operation steps:
step 1: in the keyword script, a line-level switch is added for the keyword line needing performance detection to control whether a performance detector is started.
Step 2: and when the keyword line is executed in the automatic test virtual machine, checking the performance detection switch, and determining whether to call a performance detection module of the automatic test virtual machine according to the configuration.
And step 3: and if the performance detection switch is turned on, starting a performance detector to record performance data including a CPU, a Memory and a Network before the automatic test virtual machine starts to execute the keywords.
And 4, step 4: and automatically testing the normal execution keywords of the virtual machine.
And 5: and after the automatic test virtual machine executes the keywords, closing the performance detection module, and simultaneously reading and returning the whole recording result.
Preferably, the number of the actuators is two, the test script is connected with the left actuator in a one-way mode, and the object to be tested is connected with the right actuator in a two-way mode.
Preferably, both actuators are connected in both directions, and the right actuator is connected in both directions with the performance detector.
Compared with the prior art, the invention provides a method for automatically testing the performance of a host machine before and after the virtual machine observes the execution of keywords, which has the following beneficial effects:
1. according to the method for automatically testing the performance of the host machine before and after the virtual machine observes the execution of the keywords, a switch acting on the level of a keyword line is added in the keyword script aiming at the keyword line of which the performance needs to be detected, and the switch is used for controlling whether the performance detection is started or not.
2. The method for observing the performance of the host machine before and after the execution of the keywords by the automatic test virtual machine comprises the steps of checking a performance detection switch when a keyword line is executed in the automatic test virtual machine, determining whether to call a performance detection module of the automatic test virtual machine according to configuration, starting the performance detector to record performance data before the automatic test virtual machine starts to execute the keywords if the performance detection switch is in an open state, wherein the performance detector comprises a CPU (central processing unit), a Memory and a Network, the automatic test virtual machine normally executes the keywords, closing the performance detection module after the automatic test virtual machine finishes executing the keywords, and simultaneously reading the whole recording result and returning. When the keyword script is executed, the performance of the host machine is directly observed without using other performance detection tools.
3. According to the method for observing the performance of the host machine before and after the execution of the keywords by the automatic test virtual machine, when the automatic test virtual machine executes the keywords, the configuration switch is analyzed, and the performance of the host machine is directly observed. The tester only needs to open the configuration switch in the specified row in the keyword script, so that the time and the labor cost are saved.
Drawings
FIG. 1 is a schematic view of the operation of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for observing the performance of a host machine before and after execution of a keyword by an automatic test virtual machine includes the automatic test virtual machine, an actuator, a test script, a performance detector, and an object to be tested.
Specifically, according to the method for automatically testing the performance of the host machine before and after the virtual machine observes the execution of the keyword as claimed in claim 1, the method comprises the following specific operation steps:
step 1: in the keyword script, a line-level switch is added for a keyword line needing performance detection to control whether a performance detector is started.
Step 2: and when the keyword line is executed in the automatic test virtual machine, checking a performance detection switch, and determining whether to call a performance detector of the automatic test virtual machine according to the configuration.
And step 3: and if the performance detection switch is turned on, starting a performance detector to record performance data including a CPU, a Memory and a Network before the automatic test virtual machine starts to execute the keywords.
And 4, step 4: and automatically testing the normal execution keywords of the virtual machine.
And 5: and after the automatic testing virtual machine executes the keywords, closing the performance detector, and simultaneously reading and returning the whole recording result.
Specifically, the number of the actuators is two, the test script is connected with the left actuator in a one-way mode, and the object to be tested is connected with the right actuator in a two-way mode.
Specifically, the two actuators are connected in both directions, and the right actuator is connected in both directions with the performance detector.
The working principle is as follows: the method for observing the performance of the host machine before and after the execution of the keywords by the automatic test virtual machine comprises the steps of adding a line-level switch aiming at a keyword line of which the performance needs to be detected in a keyword script and used for controlling whether a performance detector is started or not, checking the performance detection switch when the keyword line is executed in the automatic test virtual machine, determining whether the performance detector of the automatic test virtual machine is called or not according to configuration, starting the performance detector to start recording performance data before the automatic test virtual machine starts to execute the keywords if the performance detection switch is started, wherein the performance detector comprises a CPU (central processing unit), a Memory and a Network, the automatic test virtual machine normally executes the keywords, closing the performance detector after the automatic test virtual machine finishes executing the keywords, simultaneously reading the whole recording result and returning, and realizing the performance observation of the host machine at the keyword level when the keyword script is executed, the method has the advantages that the performance detection function provided by the automatic test virtual machine is utilized, the configuration switch is directly added when the key word level is executed, when the automatic test virtual machine executes the key word, the configuration switch is analyzed, the performance observation of the host machine is directly achieved, only the configuration switch needs to be opened on the appointed line in the key word script, the time and the labor cost are saved, and the method is combined with the automatic test virtual machine technology to achieve the performance detection control of the host machine at the key word line level of the key word script.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (4)
1. A method for automatically testing the performance of a host machine before and after a virtual machine observes keyword execution is characterized in that: the system comprises an automatic test virtual machine, an executor, a test script, a performance detector and an object to be tested.
2. The method for automatically testing the performance of the host machine before and after the virtual machine observes the execution of the keywords according to claim 1, comprising the following specific operation steps:
step 1: in the keyword script, a line-level switch is added for a keyword line needing performance detection to control whether performance detection is started or not.
Step 2: when the keyword line is executed in the automatic test virtual machine, the performance detection switch is checked, and whether a performance detection module of the automatic test virtual machine is called or not is determined according to the configuration.
And step 3: and if the performance detection switch is in an open state, starting a performance detector to record performance data including a CPU, a Memory and a Network before the automatic test virtual machine starts to execute the keywords.
And 4, step 4: and automatically testing the normal execution keywords of the virtual machine.
And 5: and after the automatic test virtual machine executes the keywords, closing the performance detection module, and simultaneously reading and returning the whole recording result.
3. The method of claim 1, wherein the method for automatically testing the performance of the host machine before and after the virtual machine observes the keyword execution comprises: the system comprises a test script, an executor on the left side and an executor on the right side, wherein the number of the executor and the number of the automatic test virtual machines are two, the test script is connected with the executor on the left side in a one-way mode, and the object to be tested is connected with the executor on the right side in a two-way mode.
4. The method of claim 3, wherein the method for automatically testing the performance of the host machine before and after the virtual machine observes the keyword execution comprises: and the two actuators are connected in two directions, and the right actuator is connected with the performance detector in two directions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210340069.3A CN114676060A (en) | 2022-03-31 | 2022-03-31 | Method for automatically testing performance of host machine before and after virtual machine observation keyword execution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210340069.3A CN114676060A (en) | 2022-03-31 | 2022-03-31 | Method for automatically testing performance of host machine before and after virtual machine observation keyword execution |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114676060A true CN114676060A (en) | 2022-06-28 |
Family
ID=82076253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210340069.3A Pending CN114676060A (en) | 2022-03-31 | 2022-03-31 | Method for automatically testing performance of host machine before and after virtual machine observation keyword execution |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114676060A (en) |
-
2022
- 2022-03-31 CN CN202210340069.3A patent/CN114676060A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2012144563A (en) | CONTROL-COMPUTER SYSTEM, METHOD OF CONTROL OF THE CONTROL-COMPUTER SYSTEM, AND ALSO APPLICATION OF THE CONTROL-COMPUTER SYSTEM | |
US20100131798A1 (en) | Self-Adaptive Solution for Determining the Waiting Time on Page Loading | |
CN105223889A (en) | A kind of method being applicable to the automatic monitoring PMC RAID card daily record of producing line | |
US8510611B2 (en) | Computer apparatus | |
CN113315675B (en) | White box switch U-Boot automatic testing method, system and storage medium | |
CN108594051B (en) | Automatic detection method and system for electrical equipment fault | |
CN112100048B (en) | Self-adaptive inspection method and device for server | |
JPH04229340A (en) | Debug system of common-memory multiprocessor computer | |
CN114676060A (en) | Method for automatically testing performance of host machine before and after virtual machine observation keyword execution | |
KR20080045241A (en) | Testing device, testing method, analyzing device, and program | |
JP5721655B2 (en) | Man-machine device for plant monitoring | |
US10922023B2 (en) | Method for accessing code SRAM and electronic device | |
US8249728B2 (en) | Method for operating a management system of function modules | |
US8090991B2 (en) | Information processing apparatus, method, and computer program product for self-diagnosis for utilizing multiple diagnostic devices, each having exclusive access to a resource | |
US10140476B2 (en) | Tracing processing activity | |
CN110659150A (en) | Method for detecting memory of micro control unit and related device | |
CN113094221B (en) | Fault injection method, device, computer equipment and readable storage medium | |
CN110993015B (en) | Hard disk differential signal quality detection method, hard disk differential signal quality detection device, main control and medium | |
CN114546094B (en) | Method, system, device and storage medium for detecting abnormal power failure of SSD device | |
CN114706702A (en) | FADEC operating system-based fault rapid positioning method | |
KR0121094B1 (en) | The method of memory system | |
JP2572386B2 (en) | Fault diagnosis device | |
JPH07248810A (en) | Numerical controller | |
CN113312236A (en) | Database monitoring method and device | |
CN114328228A (en) | Software error verification method, device and system based on test case extension |
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 |