CN114860537A - Real-time system monitoring method and device applied to system testing - Google Patents

Real-time system monitoring method and device applied to system testing Download PDF

Info

Publication number
CN114860537A
CN114860537A CN202210455538.6A CN202210455538A CN114860537A CN 114860537 A CN114860537 A CN 114860537A CN 202210455538 A CN202210455538 A CN 202210455538A CN 114860537 A CN114860537 A CN 114860537A
Authority
CN
China
Prior art keywords
test
tested
response result
monitoring component
warning
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
Application number
CN202210455538.6A
Other languages
Chinese (zh)
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.)
Wuhan Wind Gather Intelligence Technology Co ltd
Original Assignee
Wuhan Wind Gather Intelligence 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 Wuhan Wind Gather Intelligence Technology Co ltd filed Critical Wuhan Wind Gather Intelligence Technology Co ltd
Priority to CN202210455538.6A priority Critical patent/CN114860537A/en
Publication of CN114860537A publication Critical patent/CN114860537A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display

Abstract

The application provides a real-time system monitoring method and a real-time system monitoring device applied to system testing, which are used for implanting a system monitoring component into a tested system through a testing device, automatically completing related configuration work at the tested system end, thus greatly avoiding the required user configuration work in the prior art, and then obtaining the response result of the tested system more quickly and accurately from the inside of the tested system, thereby realizing faster testing efficiency and better testing quality. The method comprises the following steps: the test equipment triggers a system test task aiming at the tested system, wherein the system test task is a system performance test task aiming at the tested system; the test equipment initiates a test request corresponding to a system test task to the tested system; the test equipment detects and records the response result of the tested system to the test request through a system monitoring component implanted into the system environment of the tested system; and the test equipment generates a system performance test result of the tested system according to the response result.

Description

Real-time system monitoring method and device applied to system testing
Technical Field
The present application relates to the field of testing, and in particular, to a real-time system monitoring method and apparatus for system testing.
Background
The system performance test service can be used for detecting whether the system has normal working capacity or not, and can also be used for monitoring whether the system has defects or not.
When the system performance test is executed, the system performance test is performed through related test tools, and specific test strategies are built in the test tools, so that the system performance can be tested under different test standards.
In the existing research process of the related art, the inventor finds that the current test tools such as loadrunner on the market have the problem of tedious configuration work for users, and obviously influences the test efficiency to a certain degree.
Disclosure of Invention
The application provides a real-time system monitoring method and device applied to system testing, which are used for implanting a system monitoring component into a tested system through a testing tool, automatically completing related configuration work at the tested system end, so that the required user configuration work in the prior art is greatly avoided, and then the response result of the tested system can be obtained more quickly and accurately from the inside of the tested system, so that the faster testing efficiency and the better testing quality are realized.
In a first aspect, the present application provides a real-time system monitoring method applied to system testing, the method including:
the test equipment triggers a system test task aiming at the tested system, wherein the system test task is a system performance test task aiming at the tested system;
the test equipment initiates a test request corresponding to a system test task to the tested system;
the test equipment detects and records the response result of the tested system to the test request through a system monitoring component implanted into the system environment of the tested system;
and the test equipment generates a system performance test result of the tested system according to the response result.
With reference to the first aspect of the present application, in a first possible implementation manner of the first aspect of the present application, before the testing device detects and records a response result of the tested system to the test request through a system monitoring component implanted in a system environment of the tested system, the method further includes:
the testing equipment detects whether a system monitoring component which is implanted in advance exists in the tested system;
if not, the test equipment calls a configuration program of a system monitoring component in the test tool;
and implanting a system monitoring component into the system environment of the tested system by the testing equipment based on the configuration program.
With reference to the first aspect of the present application, in a second possible implementation manner of the first aspect of the present application, in response results recorded by the system monitoring component, besides response content of the tested system to the test request, system indexes of the tested system in the test process and state content of system resources are also included.
With reference to the first aspect of the present application, in a third possible implementation manner of the first aspect of the present application, the recording, by the testing device, a response result of the system under test to the test request through the system monitoring component includes:
the test equipment captures a response result from the system monitoring component to the local through an HTTP (hyper text transport protocol);
the test equipment periodically pulls a response result from statically configured targets or service-discovered targets;
and when the data volume of the pulled response result is larger than the capacity of the memory cache region, the test equipment persists the pulled response result to the hard disk.
With reference to the first aspect of the present application, in a fourth possible implementation manner of the first aspect of the present application, the method further includes:
the test equipment judges whether the data content in the response result meets the warning condition according to a preset warning strategy;
if yes, the test equipment pushes the corresponding warning event to the warning management system, and the warning management system outputs the warning.
In a second aspect, the present application provides a real-time system monitoring apparatus for system testing, the apparatus comprising:
the trigger unit is used for triggering a system test task aiming at the tested system, and the system test task is a system performance test task aiming at the tested system;
the initiating unit is used for initiating a test request corresponding to a system test task to the tested system;
the acquisition unit is used for detecting and recording the response result of the tested system to the test request through a system monitoring component implanted into the system environment of the tested system;
and the generating unit is used for generating a system performance test result of the tested system according to the response result.
With reference to the second aspect of the present application, in a first possible implementation manner of the second aspect of the present application, the apparatus further includes an implantation unit configured to:
detecting whether a system monitoring component which is implanted in advance exists in a tested system;
if not, calling a configuration program of a system monitoring component in the test tool;
and implanting a system monitoring component into the system environment of the tested system based on the configuration program.
With reference to the second aspect of the present application, in a second possible implementation manner of the second aspect of the present application, in response results recorded by the system monitoring component, besides response contents of the tested system to the test request, system indexes of the tested system in a test process and state contents of system resources are also included.
With reference to the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the obtaining unit is specifically configured to:
capturing a response result from the system monitoring component to the local through an HTTP (hyper text transport protocol);
regularly pulling response results from statically configured targets or service discovered targets;
and when the data volume of the pulled response result is larger than the capacity of the memory cache region, the pulled response result is persisted to the hard disk.
With reference to the second aspect of the present application, in a fourth possible implementation manner of the second aspect of the present application, the apparatus further includes a warning unit, configured to:
judging whether the data content in the response result meets the warning condition or not according to a preset warning strategy;
if yes, pushing the corresponding warning event to a warning management system, and enabling the warning management system to carry out warning output.
In a third aspect, the present application provides a testing device, including a processor and a memory, where the memory stores a computer program, and the processor executes the method provided in the first aspect of the present application or any one of the possible implementation manners of the first aspect of the present application when calling the computer program in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method provided in the first aspect of the present application or any one of the possible implementations of the first aspect of the present application.
From the above, the present application has the following advantageous effects:
aiming at a system test task, in the test process, a response result of a tested system to a test request is detected and recorded through a system monitoring component implanted into a system environment of the tested system, a system performance test result of the tested system is generated according to the response result, and under the test mechanism, the system monitoring component is implanted into the tested system through test equipment, so that the related configuration work can be automatically completed at the tested system end, the required user configuration work in the prior art is greatly avoided, and the response result of the tested system can be obtained more quickly and accurately from the inside of the tested system, so that the quick test efficiency and the better test quality are realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a real-time system monitoring method applied to system testing according to the present application;
FIG. 2 is a schematic interface diagram of the present application applied to a real-time system monitoring method for system testing;
FIG. 3 is a schematic diagram of another interface of the present application for a real-time system monitoring method for system testing;
FIG. 4 is a schematic diagram of a real-time system monitoring apparatus for system testing according to the present application;
fig. 5 is a schematic structural diagram of the testing apparatus of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps appearing in the present application does not mean that the steps in the method flow have to be executed in the chronological/logical order indicated by the naming or numbering, and the named or numbered process steps may be executed in a modified order depending on the technical purpose to be achieved, as long as the same or similar technical effects are achieved.
The division of the modules presented in this application is a logical division, and in practical applications, there may be another division, for example, multiple modules may be combined or integrated into another system, or some features may be omitted, or not executed, and in addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, and the indirect coupling or communication connection between the modules may be in an electrical or other similar form, which is not limited in this application. The modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present disclosure.
Before describing the real-time system monitoring method applied to system testing provided by the present application, first, the background related to the present application is described.
The real-time system monitoring method, the real-time system monitoring device and the computer readable storage medium applied to the system testing can be applied to testing equipment and used for implanting a system monitoring component into a tested system through the testing equipment and automatically completing related configuration work at the tested system end, so that the user configuration work required in the prior art is greatly avoided, and then the response result of the tested system can be obtained more quickly and accurately from the inside of the tested system, so that the faster testing efficiency and the better testing quality are realized.
In the real-time system monitoring method applied to system testing, an execution main body may be a real-time system monitoring device applied to system testing, or different types of testing Equipment such as a server, a physical host, and even User Equipment (UE) integrated with the real-time system monitoring device applied to system testing. The real-time system monitoring device applied to the system testing may be implemented in a hardware or software manner, the UE may specifically be a terminal device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or a Personal Digital Assistant (PDA), and the test device may be set in a device cluster manner.
Next, a real-time system monitoring method applied to system testing provided by the present application is described.
First, referring to fig. 1, fig. 1 shows a schematic flow chart of the real-time system monitoring method applied to system testing according to the present application, and the real-time system monitoring method applied to system testing according to the present application may specifically include the following steps S101 to S104:
step S101, a test device triggers a system test task aiming at a tested system, wherein the system test task is a system performance test task aiming at the tested system;
it can be understood that, in a specific application, the system under test related to the present application may be a system in any scene, which may be a local system, or a remote, cloud system.
Meanwhile, the system test task may specifically be a test task specified under different test standards such as TPC-E, TPC-H, and certainly, the test content specified in the task may also be configured by the user, and specifically may be adjusted according to actual needs, and is not limited specifically herein.
Generally, the system test is mainly dominated by a test tool configured on a test device, and the test device or the test tool may be triggered manually by a user or automatically by a system to determine and trigger a system test task for the system under test.
Step S102, the test equipment initiates a test request corresponding to a system test task to a tested system;
in a specific system test process, the test equipment needs to initiate corresponding test requests to the system under test, and it is easy to understand that these test requests are related to the test content, that is, these test requests are specially configured to test the performance of the system, and they may include not only the processing requests involved in the system during normal operation, but also the processing requests that the system may involve in some extreme cases and special cases, so as to comprehensively test the response performance of the system.
The test requests may be configured in advance, or may be configured in real time for the current test task.
Step S103, the test equipment detects and records the response result of the tested system to the test request through a system monitoring component implanted into the system environment of the tested system;
it is noted that the present application is implemented by a system monitoring component implanted in a system environment of the system under test when obtaining a response result of the system under test to the received test request.
In the prior art, the response result is monitored outside the system to be tested, the performance monitoring service of the server side can be started only by acquiring the system permission, the system local policy of the server needs to be changed, the ip address of the server and the account password of the server side need to be configured, reconfiguration is needed when different server sides are tested, obviously, the related configuration work is complicated, and the acquisition of the response result from the outside of the system is difficult and has low acquisition precision.
According to the method, the system monitoring component is directly implanted into the system to be tested, and corresponding configuration work, such as automatic configuration of ip addresses and account passwords, can be conveniently and automatically completed in the system due to the fact that the system monitoring component is implanted, and a large amount of user configuration work required in the prior art is directly omitted.
In addition, relevant response results are also conveniently called from the interior of the system, and efficient and high-precision response monitoring is completed.
And step S104, the test equipment generates a system performance test result of the tested system according to the response result.
After the response result of the tested system to the test request is obtained, the test equipment can convert the preset data processing strategy, the data conversion strategy, the data output strategy and other preset requirements into a system performance test result based on the preset data processing strategy, the preset data conversion strategy, the preset data output strategy and other preset requirements, and complete the analysis of the test task for outputting the test result.
As can be seen from the embodiment shown in fig. 1, for a system test task, in the test process, the system monitoring component of the system environment of the system under test is implanted, the response result of the system under test to the test request is detected and recorded, and then the system performance test result of the system under test is generated according to the response result.
The steps of the embodiment shown in fig. 1 and the possible implementation manner thereof in practical application will be described in detail.
From the above, it can be seen that the higher efficiency and higher quality test achieved by the present application is achieved by a system monitoring component implanted in the system environment of the system under test, and in a specific application, the system monitoring component may be implemented by a testing device or a testing tool to perform its corresponding implantation work.
As a practical implementation, before detecting and recording the response result of the system under test to the test request by the system monitoring component implanted in the system environment of the system under test, the test device may further include the following:
the testing equipment detects whether a system monitoring component which is implanted in advance exists in the tested system;
if not, the test equipment calls a configuration program of a system monitoring component in the test tool;
and implanting a system monitoring component into the system environment of the tested system by the testing equipment based on the configuration program.
It can be understood that, for a system which has not been subjected to the system performance test proposed by the present application before, it is obvious that the system monitoring component related to the present application has not been implanted before in the system environment, so that when the present application performs the current system performance test, it may be detected first whether the system monitoring component exists in the system to be tested this time, and if not, it may be implanted, and if so, it may be directly called.
Of course, there is also a case that the system monitoring component implanted in the system environment of the system to be tested can be unloaded after the system performance test is completed each time, so that the system monitoring component is implanted subsequently when a new round of system performance test is performed.
In addition, in the setting, the updating of the system monitoring component can be involved, and if the system monitoring component which is implanted into the tested system is not the system monitoring component carried by the current testing equipment, the new system monitoring component can be implanted, so that the purpose of updating the component is achieved.
Further, in order to improve the system test effect, the system test depth is further improved. Specifically, as another practical implementation manner, the response result recorded by the system monitoring component includes, in addition to the content of the response of the system under test to the test request, the system index of the system under test during the test process and the status content of the system resource.
That is, when obtaining the response result, in addition to monitoring the response of the underlying system under test to the test request, the system status of the system under test in response is also monitored, which can be reflected in terms of system index, status of system resources, and the like.
The system index may be a network index, such as network fluctuation and network outage.
The system resource may specifically be a system resource occupancy rate, such as a CPU occupancy rate, a memory occupancy rate, and other indicators.
After the response result includes the system index of the tested system in the testing process and the state content of the system resource, the influence of the abnormal state on the testing result can be ignored based on the state content, and the over-testing or invalid strategy is prevented.
That is, whether the system to be tested is in a normal working state can be judged according to the state contents in combination with the state contents corresponding to the preset normal working range, if the system to be tested is out of the normal working state, the relevant response contents can be ignored, so that the system performance of the subsequent test result in the normal working of the system to be tested can be guaranteed, and the purpose of further improving the test precision can be achieved.
On the other hand, it can be understood that, in practical applications, the specific acquisition of the response result may involve related transmission protocols or policies, and as another practical implementation manner, in the process of recording the response result of the tested system to the test request by the test device through the system monitoring component, the following scheme may also be implemented:
the test equipment captures a response result from the system monitoring component to the local through an HTTP (hyper text transport protocol);
the test equipment periodically pulls a response result from statically configured targets or service-discovered targets;
and when the data volume of the pulled response result is larger than the capacity of the memory cache region, the test equipment persists the pulled response result to the hard disk.
It can be understood that the setting provides a specific implementation scheme for capturing the response result, and the local test equipment can be implemented based on two software-level capture strategies, target or target, and the setting of cache to persistence is introduced in consideration of the cache problem, so that more flexible and efficient data acquisition processing is realized through a cache and persistence storage cooperation mechanism.
Furthermore, an early warning mechanism can be introduced, so that a timely early warning effect can be achieved in the system testing process and after the system is tested.
Specifically, as another practical implementation manner, the test device may further determine whether the data content in the response result satisfies the warning condition according to a preset warning policy;
if yes, the test equipment pushes the corresponding warning event to the warning management system, and the warning management system outputs the warning.
The warning policy may be understood to describe system states corresponding to different warning conditions (events), so that the test device may compare data contents of current response results with the data contents, and when a matching warning condition (event) occurs, it may determine that a corresponding warning of the warning condition (event) needs to be issued.
The warning management system is a system which is specially configured for the test equipment or the system to which the test equipment belongs and is used for outputting warning to relevant equipment or users, and is provided with the processing and storage functions of warning information.
For example, in practical applications, rules may be configured, then data is queried periodically, when a condition is triggered, alert is pushed to a configured warning management system, and when the warning management system receives a warning, the warning may be aggregated, deduplicated, denoised, and finally sent according to the configuration.
Further, the system performance test that this application was done, its test procedure and test result still can carry out the presentation of user's side through visual analytical tool, with the visual show of relevant data to in time inform, so, through visual instrument, the user can look over test progress, test result (like system resource occupation condition), system warning etc. in real time, realize more vivid, abundant bandwagon effect to local test task, thereby the user can know this test task's relevant condition more directly perceivedly.
Specifically, as an example, during the working process of the test task, the following contents may be included:
1. starting a test task;
2. clicking a 'hardware monitoring' button of a left menu bar operation module, and referring to fig. 2, a schematic interface diagram of the real-time system monitoring method applied to system testing according to the present application is shown;
3. after loading, clicking a "Windows system monitoring" or "Linux system monitoring" button in the interface, as shown in fig. 3, another interface diagram of the real-time system monitoring method applied to system testing according to the present application, and then displaying real-time testing details (including monitoring results).
The above is a description of the real-time system monitoring method applied to system testing provided by the present application, and in order to better implement the real-time system monitoring method applied to system testing provided by the present application, the present application further provides a real-time system monitoring device applied to system testing from the perspective of a functional module.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a real-time system monitoring apparatus for system testing according to the present invention, in which the real-time system monitoring apparatus 400 for system testing may specifically include the following structure:
the trigger unit 401 is configured to trigger a system test task for the system under test, where the system test task is a system performance test task for the system under test;
an initiating unit 402, configured to initiate a test request corresponding to a system test task to a system under test;
an obtaining unit 403, configured to detect and record a response result of the system under test to the test request through a system monitoring component implanted in a system environment of the system under test;
and a generating unit 404, configured to generate a system performance test result of the system under test according to the response result.
With reference to the second aspect of the present application, in a first possible implementation manner of the second aspect of the present application, the apparatus further includes an implantation unit 405 for:
detecting whether a system monitoring component which is implanted in advance exists in a tested system;
if not, calling a configuration program of a system monitoring component in the test tool;
and implanting a system monitoring component into the system environment of the tested system based on the configuration program.
With reference to the second aspect of the present application, in a second possible implementation manner of the second aspect of the present application, in response results recorded by the system monitoring component, besides response contents of the tested system to the test request, system indexes of the tested system in a test process and state contents of system resources are also included.
With reference to the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the obtaining unit 403 is specifically configured to:
capturing a response result from the system monitoring component to the local through an HTTP (hyper text transport protocol);
regularly pulling response results from statically configured targets or service discovered targets;
and when the data volume of the pulled response result is larger than the capacity of the memory cache region, the pulled response result is persisted to the hard disk.
In yet another exemplary implementation, the apparatus further comprises a warning unit 406 for:
judging whether the data content in the response result meets the warning condition or not according to a preset warning strategy;
if yes, pushing the corresponding warning event to a warning management system, and enabling the warning management system to carry out warning output.
The present application further provides a testing device from a hardware structure perspective, referring to fig. 5, fig. 5 shows a schematic structural diagram of the testing device of the present application, specifically, the testing device of the present application may include a processor 501, a memory 502, and an input/output device 503, where when the processor 501 is used to execute a computer program stored in the memory 502, each step of the real-time system monitoring method applied to the system test in the corresponding embodiment of fig. 1 is implemented; alternatively, the processor 501 is configured to implement the functions of the units in the embodiment corresponding to fig. 4 when executing the computer program stored in the memory 502, and the memory 502 is configured to store the computer program required by the processor 501 to execute the real-time system monitoring method applied to the system test in the embodiment corresponding to fig. 1.
Illustratively, a computer program may be partitioned into one or more modules/units, which are stored in memory 502 and executed by processor 501 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of a computer program in a computer device.
The test equipment may include, but is not limited to, a processor 501, a memory 502, and input-output devices 503. It will be appreciated by those skilled in the art that the illustration is merely an example of a test device and does not constitute a limitation of a test device and may include more or less components than those illustrated, or some components may be combined, or different components, e.g. the test device may also include a network access device, a bus, etc. through which the processor 501, the memory 502, the input output device 503, etc. are connected.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the test equipment and connecting the various parts of the overall equipment using various interfaces and lines.
The memory 502 may be used to store computer programs and/or modules, and the processor 501 may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 502, as well as invoking data stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the test equipment, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The processor 501, when executing the computer program stored in the memory 502, may specifically implement the following functions:
triggering a system test task aiming at a tested system, wherein the system test task is a system performance test task aiming at the tested system;
initiating a test request corresponding to a system test task to a tested system;
detecting and recording a response result of the tested system to the test request through a system monitoring component implanted into the system environment of the tested system;
and generating a system performance test result of the tested system according to the response result.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the above-described specific working processes of the real-time system monitoring apparatus and the test device applied to the system test and the corresponding units thereof may refer to the description of the real-time system monitoring method applied to the system test in the embodiment corresponding to fig. 1, and are not described herein again in detail.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
For this reason, the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of the real-time system monitoring method applied to the system test in the embodiment corresponding to fig. 1 in the present application, and specific operations may refer to the description of the real-time system monitoring method applied to the system test in the embodiment corresponding to fig. 1, which is not repeated herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps of the real-time system monitoring method applied to the system test in the embodiment corresponding to fig. 1, the beneficial effects that can be achieved by the real-time system monitoring method applied to the system test in the embodiment corresponding to fig. 1 can be achieved, for details, see the foregoing description, and are not repeated herein.
The method, the device, the test equipment and the computer-readable storage medium for monitoring the real-time system applied to the system test provided by the application are introduced in detail, and a specific example is applied in the description to explain the principle and the implementation mode of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A real-time system monitoring method applied to system testing is characterized by comprising the following steps:
the method comprises the steps that a test device triggers a system test task aiming at a tested system, wherein the system test task is a system performance test task aiming at the tested system;
the test equipment initiates a test request corresponding to the system test task to the tested system;
the test equipment detects and records the response result of the tested system to the test request through a system monitoring component implanted into the system environment of the tested system;
and the test equipment generates a system performance test result of the tested system according to the response result.
2. The method of claim 1, wherein before the testing device detects and records the response result of the system under test to the test request through a system monitoring component implanted in the system environment of the system under test, the method further comprises:
the test equipment detects whether the system monitoring component is implanted in advance in the tested system;
if not, the test equipment calls a configuration program of the system monitoring component in the test tool;
and implanting the system monitoring component into the system environment of the tested system by the testing equipment based on the configuration program.
3. The method according to claim 1, wherein the response result recorded by the system monitoring component includes, in addition to the response content of the system under test to the test request, a system index of the system under test during the test and a status content of a system resource.
4. The method of claim 1, wherein the test equipment records, by the system monitoring component, a response result of the system under test to the test request, and comprises:
the test equipment grabs the response result from the system monitoring component to the local through an HTTP (hyper text transport protocol);
the test equipment periodically pulls the response result from statically configured targets or service discovered targets;
and when the data volume of the pulled response result is larger than the capacity of a memory cache region, the test equipment persists the pulled response result to the hard disk.
5. The method of claim 1, further comprising:
the test equipment judges whether the data content in the response result meets the warning condition according to a preset warning strategy;
if yes, the test equipment pushes the corresponding warning event to a warning management system, and the warning management system outputs a warning.
6. A real-time system monitoring apparatus for system testing, the apparatus comprising:
the system comprises a triggering unit, a processing unit and a processing unit, wherein the triggering unit is used for triggering a system test task aiming at a tested system, and the system test task is a system performance test task aiming at the tested system;
the initiating unit is used for initiating a test request corresponding to the system test task to the tested system;
the acquisition unit is used for detecting and recording a response result of the tested system to the test request through a system monitoring component implanted into the system environment of the tested system;
and the generating unit is used for generating a system performance test result of the tested system according to the response result.
7. The apparatus according to claim 6, further comprising an implantation unit for:
detecting whether the system to be tested has the system monitoring component implanted in advance;
if not, calling a configuration program of the system monitoring component in the test tool;
and implanting the system monitoring component into the system environment of the tested system based on the configuration program.
8. The apparatus according to claim 6, wherein the response result recorded by the system monitoring component includes, in addition to the content of the response of the system under test to the test request, a system index of the system under test during the test and a status content of a system resource.
9. The apparatus according to claim 6, wherein the obtaining unit is specifically configured to:
capturing the response result from the system monitoring component to the local through an HTTP (hyper text transport protocol);
periodically pulling the response result from statically configured targets or service-discovered targets;
and when the data volume of the pulled response result is larger than the capacity of a memory cache region, the pulled response result is persisted to a hard disk.
10. The apparatus of claim 6, further comprising a warning unit for:
judging whether the data content in the response result meets the warning condition or not according to a preset warning strategy;
and if so, pushing the corresponding warning event to a warning management system, and enabling the warning management system to output a warning.
CN202210455538.6A 2022-04-24 2022-04-24 Real-time system monitoring method and device applied to system testing Pending CN114860537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210455538.6A CN114860537A (en) 2022-04-24 2022-04-24 Real-time system monitoring method and device applied to system testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210455538.6A CN114860537A (en) 2022-04-24 2022-04-24 Real-time system monitoring method and device applied to system testing

Publications (1)

Publication Number Publication Date
CN114860537A true CN114860537A (en) 2022-08-05

Family

ID=82632858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210455538.6A Pending CN114860537A (en) 2022-04-24 2022-04-24 Real-time system monitoring method and device applied to system testing

Country Status (1)

Country Link
CN (1) CN114860537A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10417113B1 (en) * 2016-03-10 2019-09-17 Amdocs Development Limited System, method, and computer program for web testing and automation offline storage and analysis
CN110704300A (en) * 2019-08-27 2020-01-17 武汉迎风聚智科技有限公司 TPC-DS automatic test method and TPC-DS test system
CN113133039A (en) * 2021-05-11 2021-07-16 武汉迎风聚智科技有限公司 Method and device for testing performance of gateway system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10417113B1 (en) * 2016-03-10 2019-09-17 Amdocs Development Limited System, method, and computer program for web testing and automation offline storage and analysis
CN110704300A (en) * 2019-08-27 2020-01-17 武汉迎风聚智科技有限公司 TPC-DS automatic test method and TPC-DS test system
CN113133039A (en) * 2021-05-11 2021-07-16 武汉迎风聚智科技有限公司 Method and device for testing performance of gateway system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FLORACHY: ""[windows 10]Prometheus监控平台安装以及配置windows Exporter探针"", 《HTTPS://BLOG.CSDN.NET/FLORACHY/ARTICLE/DETAILS/124142696》 *

Similar Documents

Publication Publication Date Title
CN110245078B (en) Software pressure testing method and device, storage medium and server
US20180365085A1 (en) Method and apparatus for monitoring client applications
CN105607986A (en) Acquisition method and device of user behavior log data
CN112835792B (en) Pressure testing system and method
WO2017215557A1 (en) Method and device for collecting performance monitor unit (pmu) events
CN114564446B (en) File storage method, device, system and storage medium
CN112783725A (en) Index acquisition method and device
CN113407383A (en) Main/standby system switching method and device, server and main/standby system
CN110069406B (en) Automatic triggering TPC-DS test method and system
CN109918221B (en) Hard disk error reporting analysis method, system, terminal and storage medium
CN114595038A (en) Data processing method, computing device and computer storage medium
CN114860537A (en) Real-time system monitoring method and device applied to system testing
CN110825603A (en) Page first loading time determining method and device, electronic equipment and storage medium
CN113905092B (en) Method, device, terminal and storage medium for determining reusable agent queue
CN112764990B (en) Target process monitoring method and device and computer equipment
CN112052125A (en) Dump processing method and device for operating system kernel and electronic equipment
CN110704370B (en) File system performance monitoring method, device, equipment and readable storage medium
US20140298354A1 (en) Information processing apparatus, information processing method, and storage medium
US10311032B2 (en) Recording medium, log management method, and log management apparatus
CN114676067B (en) Parameterization processing method and device for test script
CN114741325B (en) Recording method and device of test script for application system test
CN113590047B (en) Database screening method and device, electronic equipment and storage medium
CN114116291B (en) Log detection method, log detection device, computer device and storage medium
CN109697144B (en) Hard disk detection method of electronic equipment and electronic equipment
CN113419851A (en) Pointer object deleting method and device, electronic equipment and readable storage medium

Legal Events

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