CN114372003A - Test environment monitoring method and device and electronic equipment - Google Patents

Test environment monitoring method and device and electronic equipment Download PDF

Info

Publication number
CN114372003A
CN114372003A CN202210028456.3A CN202210028456A CN114372003A CN 114372003 A CN114372003 A CN 114372003A CN 202210028456 A CN202210028456 A CN 202210028456A CN 114372003 A CN114372003 A CN 114372003A
Authority
CN
China
Prior art keywords
test environment
abnormal
target
target service
service module
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
CN202210028456.3A
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.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information 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 Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202210028456.3A priority Critical patent/CN114372003A/en
Publication of CN114372003A publication Critical patent/CN114372003A/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/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • 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

Abstract

The disclosure provides a test environment monitoring method and device and electronic equipment. The test environment monitoring method comprises the following steps: acquiring multiple groups of operating parameters respectively corresponding to multiple target service modules of a target test environment, wherein each group of operating parameters comprises software operating parameters and hardware operating parameters; when a group of operation parameters meet preset conditions, marking a target service module corresponding to the operation parameters as abnormal; and displaying the monitoring states of the plurality of target service modules corresponding to the target test environment, and setting the target service modules marked as abnormal as a first display effect. The embodiment of the disclosure can visually represent the abnormal state of the test environment and improve the monitoring efficiency of the test environment.

Description

Test environment monitoring method and device and electronic equipment
Technical Field
The present disclosure relates to the field of information technology, and in particular, to a method and an apparatus for monitoring a test environment, and an electronic device.
Background
Software testing is crucial to the online of internet products. In software testing, a test script needs to be run in a test environment to test a related product. Therefore, the normal state of the software test environment is a key factor for guaranteeing the product test.
In the related art, it is generally required to determine whether a test environment is abnormal or not by regularly running test cases and according to a running result. When a plurality of test environments exist, the method is low in efficiency, if the test environments are abnormal in the normal test process, the test results are very easy to be abnormal, the problem of the test environments or the product cannot be distinguished at the moment, and the product needs to be tested after the test environments are tested, so that time and labor are wasted. Therefore, a method capable of efficiently determining whether the test environment is normal is needed, so that a tester can timely perform operation and maintenance on the test environment, and the test progress and the product on-line progress are guaranteed.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a method, an apparatus, and an electronic device for monitoring a test environment, which are used to overcome the problems of low monitoring efficiency of the test environment, inability to monitor in real time during a test process, and the like due to limitations and defects of related technologies at least to a certain extent.
According to a first aspect of the embodiments of the present disclosure, a method for monitoring a test environment is provided, including: acquiring multiple groups of operating parameters respectively corresponding to multiple target service modules of a target test environment, wherein each group of operating parameters comprises software operating parameters and hardware operating parameters; when a group of operation parameters meet preset conditions, marking a target service module corresponding to the operation parameters as abnormal; and displaying the monitoring states of the plurality of target service modules corresponding to the target test environment, and setting the target service modules marked as abnormal as a first display effect.
In an exemplary embodiment of the present disclosure, the software operation parameters include whether a service port number is in an occupied state, whether a service operation state is normal, whether a service process is normal, and whether a preset keyword exists, where the preset condition includes one of the following states: the service port number is in an occupied state, the service running state is not proper, the service process stops running, and the preset keyword does not exist.
In an exemplary embodiment of the present disclosure, the hardware operating parameter includes a cpu occupancy, a memory occupancy, and a network bandwidth occupancy, and the preset condition includes that any one of the cpu occupancy, the memory occupancy, and the network bandwidth occupancy exceeds a corresponding preset threshold.
In an exemplary embodiment of the present disclosure, when a set of the operation parameters meets a preset condition, marking a target service module corresponding to the operation parameters as abnormal includes: determining whether each operation parameter meets the preset condition, and marking the operation parameters which do not meet the preset condition as abnormal operation parameters; and marking the target service module as abnormal according to the type of the abnormal operation parameter.
In an exemplary embodiment of the present disclosure, the setting the target service module marked as abnormal to the first presentation effect includes: adjusting the first display effect according to the type of the abnormal operation parameter; and setting the target service module marked as abnormal as the adjusted first display effect.
In an exemplary embodiment of the present disclosure, the presenting the monitoring states of the plurality of target service modules corresponding to the target test environment includes: responding to an operation corresponding to a first control, and displaying a plurality of virtual objects, wherein the first control corresponds to the target test environment, and each virtual object corresponds to one target service module; and setting the virtual object corresponding to the target service module with the abnormal state as the first display effect, and setting the virtual object corresponding to the target service module without the abnormal state as the second display effect.
In an exemplary embodiment of the present disclosure, the presenting the monitoring states of the plurality of target service modules corresponding to the target test environment includes: and displaying a plurality of controls, wherein each control corresponds to a test environment, when a service module marked as abnormal exists in one test environment, the control corresponding to the test environment is set as a third display effect, and when the service module marked as abnormal does not exist in one test environment, the control corresponding to the test environment is set as a fourth display effect.
According to a second aspect of the embodiments of the present disclosure, there is provided a test environment monitoring apparatus including: the system comprises a parameter acquisition module, a parameter analysis module and a parameter analysis module, wherein the parameter acquisition module is used for acquiring a plurality of groups of operation parameters respectively corresponding to a plurality of target service modules of a target test environment, and each group of operation parameters comprises software operation parameters and hardware operation parameters; the state judgment module is set to mark the target service module corresponding to the operation parameter as abnormal when a group of operation parameters meet preset conditions; and the state display module is set to display the monitoring states of the plurality of target service modules corresponding to the target test environment, and sets the target service module marked as abnormal as a first display effect.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a memory; and a processor coupled to the memory, the processor configured to perform the method of any of the above based on instructions stored in the memory.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements a test environment monitoring method as recited in any one of the above.
According to the embodiment of the disclosure, the monitoring state of the test environment is displayed by acquiring the software operating parameters and the hardware operating parameters of the service module related to the test environment, and the abnormal operating parameters are displayed by using the first display effect, so that testers can intuitively master the health conditions of all test environments, and the monitoring efficiency of the normal state of the test environment is improved. In addition, whether the test environment is abnormal or not is determined by monitoring the operation parameters of the service module, so that the test environment can be monitored in real time in the test process without being influenced by the operation of test samples, and the monitoring efficiency of the test environment is effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 is a flow chart of a test environment monitoring method in an exemplary embodiment of the disclosure.
FIG. 2 is a diagram of a service module and a test environment in one embodiment of the disclosure.
FIG. 3 is a sub-flowchart of step S2 in one embodiment of the present disclosure.
FIG. 4 is a sub-flowchart of step S3 in one embodiment of the present disclosure.
FIG. 5 is a diagram illustrating monitoring states of a plurality of target service modules of a target test environment in one embodiment of the present disclosure.
FIG. 6 is a diagram illustrating a monitored state of a target test environment in one embodiment of the present disclosure.
Fig. 7 is a block diagram of a test environment monitoring apparatus in an exemplary embodiment of the present disclosure.
Fig. 8 is a block diagram of an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Further, the drawings are merely schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus, a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
FIG. 1 is a flow chart of a test environment monitoring method in an exemplary embodiment of the disclosure.
Referring to fig. 1, the test environment monitoring method 100 may include:
step S1, acquiring multiple sets of operating parameters respectively corresponding to multiple target service modules of a target test environment, wherein each set of operating parameters comprises software operating parameters and hardware operating parameters;
step S2, when a group of operation parameters meet preset conditions, marking the target service module corresponding to the operation parameters as abnormal;
step S3, displaying the monitoring states of the plurality of target service modules corresponding to the target test environment, and setting the target service module marked as abnormal as a first display effect.
According to the embodiment of the disclosure, the monitoring state of the test environment is displayed by acquiring the software operating parameters and the hardware operating parameters of the service module related to the test environment, and the abnormal operating parameters are displayed by using the first display effect, so that testers can intuitively master the health conditions of all test environments, and the monitoring efficiency of the normal state of the test environment is improved. In addition, whether the test environment is abnormal or not is determined by monitoring the operation parameters of the service module, so that the test environment can be monitored in real time in the test process without being influenced by the operation of test samples, and the monitoring efficiency of the test environment is effectively improved.
The steps of the testing environment monitoring method 100 will be described in detail below.
In step S1, multiple sets of operating parameters respectively corresponding to multiple target service modules of the target test environment are obtained, where each set of operating parameters includes software operating parameters and hardware operating parameters.
FIG. 2 is a diagram of a service module and a test environment in one embodiment of the disclosure.
Referring to fig. 2, the test environment 200 includes a plurality of service modules 21, each service module 21 includes an electronic device (e.g., a server) and a service (service) running on the electronic device, that is, the service module 21 includes two parts, namely software and hardware. In general, each service module 21 corresponds to only one test environment, but in some cases, one service module 21 may correspond to a plurality of test environments. The service runs on the electronic device, the service has a software running state, and the electronic device has a hardware running state, so the running parameters of the service module 21 include both software running parameters and hardware running parameters.
Each service module 21 may correspond to a set of operating parameters, and each set of operating parameters may include software operating parameters and hardware operating parameters. The software operation parameters include, but are not limited to, whether a service port number is in an occupied state, whether a service operation state is normal, whether a service process is normally operated, whether a preset keyword exists, and the like, and the hardware operation parameters include, but are not limited to, a cpu occupancy rate, a memory occupancy rate, a network bandwidth occupancy rate, and the like.
In one embodiment, the service health status monitoring command corresponding to the target test environment may be responded to, and the operating parameters of the plurality of target service modules corresponding to the target test environment may be acquired, so that the health status of each service may be updated according to the operating parameters. The service health monitoring commands may be saved in a database, automatically executed on a timed basis, automatically executed under certain conditions, or manually triggered by the user. When a service health state monitoring command is received, a health state monitoring code of a target service module corresponding to the service health state monitoring command can be inquired in a database, and then the health state monitoring code is executed on electronic equipment where the target service module is located, so that a group of operation parameters corresponding to the target service module can be obtained.
In step S2, when a set of the operation parameters meets a preset condition, the target service module corresponding to the operation parameters is marked as abnormal.
The preset condition may be set according to the kind of the operation parameter. When the software operation parameters include whether the service port number is in an occupied state, whether the service operation state is normal, whether the service process is normal, and whether the preset keyword exists, the preset condition includes one of the following states: the service port number is in an occupied state, the service running state is not proper, the service process stops running, the preset keyword does not exist, and the like. When the hardware operation parameter includes the cpu occupancy rate, the memory occupancy rate, and the network bandwidth occupancy rate, the preset condition may include that any one of the cpu occupancy rate, the memory occupancy rate, and the network bandwidth occupancy rate exceeds a corresponding preset threshold value.
Each operating parameter may have a corresponding criterion in the preset condition, and the criterion may be a preset threshold or a state value (e.g., yes or no).
In some embodiments, when it is determined that one of a set of operating parameters does not meet the determination standard, the set of operating parameters is determined to meet a preset condition, and a service module corresponding to the set of operating parameters is marked as abnormal.
In other embodiments, the criterion for determining whether a group of operation parameters meets the preset condition may also be set according to the type of the operation parameters, for example, only when the service process stops operating and the CPU occupancy is higher than a preset threshold, the group of operation parameters is determined to be abnormal, and if only the service process stops operating and the CPU occupancy is lower than the preset threshold, the service process may be restarted automatically. By automatically detecting each operation parameter and automatically restarting or automatically repairing when some operation parameters are found to be abnormal, small repairable problems can be repaired in time, the effectiveness of monitoring information is improved, and only the problems which cannot be automatically repaired are marked.
In some embodiments, the criterion for determining whether a set of operating parameters meets the preset condition may be set according to the type of the operating parameters, for example, only when a preset number of operating parameters in the set of operating parameters do not meet the criterion, the set of operating parameters is determined as meeting the preset condition.
The method for determining whether a group of operating parameters meets the preset conditions may be various, and may be a combination of any one of the above, and those skilled in the art may set the method according to the actual situation, and the disclosure does not make any particular limitation thereto.
FIG. 3 is a sub-flowchart of step S2 in one embodiment of the present disclosure.
Referring to fig. 3, in one embodiment, step S2 may include:
step S21, determining whether each of the operation parameters meets the preset condition;
step S22, marking the operation parameter that does not meet the preset condition as an abnormal operation parameter, and marking the target service module as abnormal according to the type of the abnormal operation parameter.
In addition to directly marking the target service module corresponding to a set of operation parameters as abnormal, the target service module may also be marked as abnormal according to the kind of abnormal operation parameters, for example, the target service module is marked as hardware operation abnormal, software operation abnormal, or even further detailed, and the target service module is marked as process shutdown, CPU overload, or the like.
Specifically, how to mark the target service module as abnormal according to the type of the abnormal operation parameter may be in various manners, and the disclosure is not limited thereto.
In step S3, the monitoring states of the target service modules corresponding to the target test environment are displayed, and the target service module marked as abnormal is set as a first display effect.
In one embodiment, the monitoring status of a plurality of service modules may be presented in a two-dimensional interface. For example, the monitoring state of the target service module is displayed on a desktop computer, a notebook computer, a mobile phone, a tablet computer, and a large screen. In other embodiments, the monitoring state of the target service module or the change condition of the monitoring state may also be displayed in a three-dimensional form or a four-dimensional form with time change in a virtual environment or a real environment, so as to more intuitively reflect the monitoring state or the change condition of the monitoring state of each target service module.
Compared with the prior art that whether the test environment is normal is measured through the test script running result, the states of the plurality of service modules related to the test environment are monitored in real time, and the states of the service modules are visually displayed, so that testers can efficiently and accurately know whether the test environment is normal or not and whether the test environment needs to be maintained in time or not. Even if the abnormity of the test environment in the use state can be monitored, the reason that the test environment or the tested product causes cannot be eliminated when the test result is not in accordance with the expectation.
FIG. 4 is a sub-flowchart of step S3 in one embodiment of the present disclosure.
Referring to fig. 4, in one embodiment, step S3 may include:
step S31, responding to the operation corresponding to a first control, displaying a plurality of virtual objects, wherein the first control corresponds to the target test environment, and each virtual object corresponds to one target service module;
step S32, setting the virtual object corresponding to the abnormal target service module as a first display effect, and setting the virtual object corresponding to the abnormal target service module as a second display effect.
If the user operates the first control corresponding to the target test environment, a plurality of virtual objects corresponding to the target service modules of the target test environment can be displayed in response to the operation, the display effect of each virtual object is set according to the abnormal state of each target service module, the virtual object corresponding to the target service module with the abnormal state is set as a first display effect, and the virtual object corresponding to the target service module with the abnormal state is set as a second display effect. The first control includes, but is not limited to, a button, a check box, a drop-down list, and the like, and the manner of operating the control may be, for example, clicking, dragging, zooming, and the like, which corresponds to the type of the first control, and the disclosure is not limited thereto.
The first display effect has a more pronounced display characteristic relative to the second display effect. For example, the second display effect is a cool color such as blue, green, gray, etc., and the second display effect is a warm color such as red, orange, yellow, etc., to play a role of reminding, etc. Or the shape of the virtual object corresponding to the first display effect is different from that of the second display effect, and/or the size of the virtual object corresponding to the first display effect is larger than that of the second display effect.
When the display mode of the virtual object includes displaying in a three-dimensional mode or a four-dimensional mode, the second display effect may be set to be a two-dimensional display mode, the first display effect may be set to be a three-dimensional display mode, and the three-dimensional parameters such as shadow, depth, and the like may be added. Alternatively, the second presentation effect is a static presentation effect and the first presentation effect is a dynamic presentation effect (jump, blink, etc.).
FIG. 5 is a diagram illustrating monitoring states of a plurality of target service modules of a target test environment in one embodiment of the present disclosure.
Referring to fig. 5, in response to operation of a first control corresponding to a test environment x, a plurality of virtual objects 51 corresponding to the test environment x are shown in an interface. When a service module is marked as abnormal, the virtual object corresponding to the service module may be set as a first presentation effect (e.g., the virtual object 51 corresponding to the service module 5 in fig. 5), and when a service module is not marked as abnormal, the virtual object corresponding to the service module may be set as a second presentation effect (e.g., the virtual object 51 corresponding to the service modules 1, 2, and 3 in fig. 5).
In an embodiment, the first presentation effect may also be adjusted according to the type of the abnormal operation parameter, and then the target service module marked as abnormal is set as the adjusted first presentation effect (for example, the presentation effects of the virtual objects 51 corresponding to the service modules 5 and 9 in fig. 5 are different). In other embodiments, the second presentation effect may also be adjusted according to the type of the target service module, for the virtual object corresponding to the target service module whose state is not abnormal.
In addition, in the embodiment of the present disclosure, the test environments may be used as grouping bases, and the monitoring states of the plurality of service modules corresponding to the plurality of test environments are displayed in a grouping manner, so as to improve the efficiency of the user in checking the states of the test environments and the states of the service modules. The method for displaying the service module corresponding to each test environment may be the same as the embodiment shown in fig. 5, and the disclosure is not limited thereto.
In other embodiments of the present disclosure, when responding to the operation of the user corresponding to the first control, other information of the target test environment may also be displayed, for example, association relationship and parameter information between the service modules, where the association relationship and parameter information includes, for example, upstream service module information, downstream service module information, server address and start port, start command path, start command and log directory information of each service module, and these information may be stored in a database, and after detecting the operation on the first control, a database query is performed, and after finding relevant information, the display is performed.
In addition to directly displaying the virtual object corresponding to the service module, in an embodiment of the present disclosure, the control corresponding to each test environment may be displayed first, and the display effect of the control corresponding to the test environment is adjusted according to the abnormal state of the service module of the test environment.
FIG. 6 is a diagram illustrating a monitored state of a target test environment in one embodiment of the present disclosure.
Referring to FIG. 6, a plurality of controls 61-66, each corresponding to a test environment, may be displayed in a test environment monitoring interface. When a service module marked as abnormal exists in a test environment, setting the control corresponding to the test environment as a third display effect, such as the display effect of the control 62. For a test environment without a service module marked as abnormal, the control corresponding to the test environment may be marked as a fourth display effect, and the third display effect is different from the fourth display effect, such as the display effects of the control 61, the controls 63 to 66.
In some embodiments, the third presentation effect of the control of the test environment corresponding to the service module may also be adjusted according to the exception type (e.g., software exception or hardware exception) of the service module. When multiple abnormal types exist in one test environment, the third display effect of the control can be set according to the preset priority and the abnormal type with the highest priority. The display effect of each control can be set by a person skilled in the art according to actual needs, so that the efficiency of judging the test environment abnormality by a tester is improved.
In the embodiment shown in fig. 6, a user may select, from the controls corresponding to the multiple test environments, a first control corresponding to a target test environment that the user wants to view, to perform an operation, so as to enter the interface displayed in the embodiment shown in fig. 5, and view the monitoring state of the target service module corresponding to the target test environment.
In the embodiment of the disclosure, a user can set the relevant data of the test environment. After receiving the test environment change message input by the user, the operated test environment and the service module corresponding to the operated test environment may be changed, for example, the relevant information of the test environment may be updated and stored in the database. The testing environment change message includes, but is not limited to, creating a testing environment, deleting the testing environment, modifying a relevant service module of the testing environment, where the relevant service module of the modified testing environment includes, but is not limited to, creating a service module and setting parameters of the new service module (such as a server address and a start port, a start command path, a start command and log directory information, etc.), deleting the service module, modifying parameters of the service module, and so on.
Then, the method for monitoring and displaying the service module is adjusted according to the relevant setting of the test environment by the user, and one service module can be included in the monitoring range of a plurality of test environments.
By allowing the user to configure the test environment and the related service modules, the key and high efficiency of monitoring can be guaranteed, the user can receive the information of the key service modules in time, and the retrieval burden caused by excessive information is avoided.
In summary, compared with the related art that the test environment is tested by using the test script and the normal state of the test environment is analyzed according to the test result, the health condition of each service can be intuitively reflected by executing the service health state monitoring command of each service module corresponding to the target test environment in the embodiment of the present disclosure. Through unified management of all service modules of the test environment, a user can clearly know the information of the test environment at a glance, the maintenance efficiency of the test environment is improved, the abnormity of the test environment can be timely perceived in the use process of the test environment, and the abnormal test result caused by the abnormity of the test environment is avoided, so that the misjudgment on the reliability of a product is caused.
Corresponding to the method embodiment, the present disclosure further provides a test environment monitoring apparatus, which may be used to execute the method embodiment.
Fig. 7 is a block diagram of a test environment monitoring apparatus in an exemplary embodiment of the present disclosure.
Referring to fig. 7, the test environment monitoring apparatus 700 may include:
a parameter obtaining module 71, configured to obtain multiple sets of operating parameters corresponding to multiple target service modules of a target test environment, where each set of operating parameters includes software operating parameters and hardware operating parameters;
a state judgment module 72 configured to mark a target service module corresponding to a set of the operation parameters as abnormal when the operation parameters meet preset conditions;
and a state display module 73 configured to display monitoring states of the plurality of target service modules corresponding to the target test environment, and set the target service module marked as abnormal as a first display effect.
In an exemplary embodiment of the present disclosure, the software operation parameters include whether a service port number is in an occupied state, whether a service operation state is normal, whether a service process is normal, and whether a preset keyword exists, where the preset condition includes one of the following states: the service port number is in an occupied state, the service running state is not proper, the service process stops running, and the preset keyword does not exist.
In an exemplary embodiment of the present disclosure, the hardware operating parameter includes a cpu occupancy, a memory occupancy, and a network bandwidth occupancy, and the preset condition includes that any one of the cpu occupancy, the memory occupancy, and the network bandwidth occupancy exceeds a corresponding preset threshold.
In an exemplary embodiment of the present disclosure, the status determination module 72 is configured to: determining whether each operation parameter meets the preset condition, and marking the operation parameters which do not meet the preset condition as abnormal operation parameters; and marking the target service module as abnormal according to the type of the abnormal operation parameter.
In an exemplary embodiment of the present disclosure, the status demonstration module 73 is configured to: adjusting the first display effect according to the type of the abnormal operation parameter; and setting the target service module marked as abnormal as the adjusted first display effect.
In an exemplary embodiment of the present disclosure, the status demonstration module 73 is configured to: responding to an operation corresponding to a first control, and displaying a plurality of virtual objects, wherein the first control corresponds to the target test environment, and each virtual object corresponds to one target service module; and setting the virtual object corresponding to the target service module with the abnormal state as the first display effect, and setting the virtual object corresponding to the target service module without the abnormal state as the second display effect.
In an exemplary embodiment of the present disclosure, the status demonstration module 73 is configured to: and displaying a plurality of controls, wherein each control corresponds to a test environment, when a service module marked as abnormal exists in one test environment, the control corresponding to the test environment is set as a third display effect, and when the service module marked as abnormal does not exist in one test environment, the control corresponding to the test environment is set as a fourth display effect.
Since the functions of the apparatus 700 have been described in detail in the corresponding method embodiments, the disclosure is not repeated herein.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 that couples the various system components including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program code that is executable by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 810 may perform a method as shown in embodiments of the present disclosure.
The storage unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
The program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for monitoring a test environment, comprising:
acquiring multiple groups of operating parameters respectively corresponding to multiple target service modules of a target test environment, wherein each group of operating parameters comprises software operating parameters and hardware operating parameters;
when a group of operation parameters meet preset conditions, marking a target service module corresponding to the operation parameters as abnormal;
and displaying the monitoring states of the plurality of target service modules corresponding to the target test environment, and setting the target service modules marked as abnormal as a first display effect.
2. The method as claimed in claim 1, wherein the software operating parameters include whether the service port number is in an occupied state, whether the service operating state is normal, whether the service process is normal, and whether a preset keyword exists, and the preset condition includes one of the following states: the service port number is in an occupied state, the service running state is not proper, the service process stops running, and the preset keyword does not exist.
3. The method according to claim 1 or 2, wherein the hardware operation parameters include a cpu occupancy, a memory occupancy, and a network bandwidth occupancy, and the preset conditions include that any one of the cpu occupancy, the memory occupancy, and the network bandwidth occupancy exceeds a corresponding preset threshold.
4. The method as claimed in claim 1, wherein the marking the target service module corresponding to the operation parameter as abnormal when the set of operation parameters meets a preset condition comprises:
determining whether each operation parameter meets the preset condition, and marking the operation parameters which do not meet the preset condition as abnormal operation parameters;
and marking the target service module as abnormal according to the type of the abnormal operation parameter.
5. The test environment monitoring method of claim 4, wherein the setting the target service module marked as abnormal to a first presentation effect comprises:
adjusting the first display effect according to the type of the abnormal operation parameter;
and setting the target service module marked as abnormal as the adjusted first display effect.
6. The method as claimed in claim 1, wherein the displaying the monitoring states of the plurality of target service modules corresponding to the target testing environment comprises:
responding to an operation corresponding to a first control, and displaying a plurality of virtual objects, wherein the first control corresponds to the target test environment, and each virtual object corresponds to one target service module;
and setting the virtual object corresponding to the target service module with the abnormal state as the first display effect, and setting the virtual object corresponding to the target service module without the abnormal state as the second display effect.
7. The method as claimed in claim 1 or 6, wherein the displaying the monitoring states of the plurality of target service modules corresponding to the target testing environment comprises:
and displaying a plurality of controls, wherein each control corresponds to a test environment, when a service module marked as abnormal exists in one test environment, the control corresponding to the test environment is set as a third display effect, and when the service module marked as abnormal does not exist in one test environment, the control corresponding to the test environment is set as a fourth display effect.
8. A test environment monitoring apparatus, comprising:
the system comprises a parameter acquisition module, a parameter analysis module and a parameter analysis module, wherein the parameter acquisition module is used for acquiring a plurality of groups of operation parameters respectively corresponding to a plurality of target service modules of a target test environment, and each group of operation parameters comprises software operation parameters and hardware operation parameters;
the state judgment module is set to mark the target service module corresponding to the operation parameter as abnormal when a group of operation parameters meet preset conditions;
and the state display module is set to display the monitoring states of the plurality of target service modules corresponding to the target test environment, and sets the target service module marked as abnormal as a first display effect.
9. An electronic device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the test environment monitoring method of any of claims 1-7 based on instructions stored in the memory.
10. A computer-readable storage medium on which a program is stored, the program implementing the test environment monitoring method according to any one of claims 1 to 7 when executed by a processor.
CN202210028456.3A 2022-01-11 2022-01-11 Test environment monitoring method and device and electronic equipment Pending CN114372003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210028456.3A CN114372003A (en) 2022-01-11 2022-01-11 Test environment monitoring method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210028456.3A CN114372003A (en) 2022-01-11 2022-01-11 Test environment monitoring method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114372003A true CN114372003A (en) 2022-04-19

Family

ID=81144353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210028456.3A Pending CN114372003A (en) 2022-01-11 2022-01-11 Test environment monitoring method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114372003A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506319A (en) * 2023-06-27 2023-07-28 天津通信广播集团有限公司 Method, device and medium for monitoring running state of PIS hardware equipment of subway operation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506319A (en) * 2023-06-27 2023-07-28 天津通信广播集团有限公司 Method, device and medium for monitoring running state of PIS hardware equipment of subway operation system
CN116506319B (en) * 2023-06-27 2023-09-19 天津通信广播集团有限公司 Method, device and medium for monitoring running state of PIS hardware equipment of subway operation system

Similar Documents

Publication Publication Date Title
CN108683562B (en) Anomaly detection positioning method and device, computer equipment and storage medium
US8793578B2 (en) Automating execution of arbitrary graphical interface applications
US7340649B2 (en) System and method for determining fault isolation in an enterprise computing system
US20200092180A1 (en) Methods and systems for microservices observability automation
JP6171386B2 (en) Controller, information processing apparatus and program
CN109960635B (en) Monitoring and alarming method, system, equipment and storage medium of real-time computing platform
US20160224400A1 (en) Automatic root cause analysis for distributed business transaction
US11329869B2 (en) Self-monitoring
CN107193714B (en) Alarm display method and device
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN113014445B (en) Operation and maintenance method, device and platform for server and electronic equipment
WO2021097824A1 (en) Code quality and defect analysis method, server and storage medium
WO2013185092A1 (en) System and method for automatic test level generation
Selay et al. Adaptive random testing for image comparison in regression web testing
CN114372003A (en) Test environment monitoring method and device and electronic equipment
CN109800124B (en) CPU utilization monitoring method and device, electronic equipment and storage medium
CN112817869A (en) Test method, test device, test medium, and electronic apparatus
US10382311B2 (en) Benchmarking servers based on production data
US10372849B2 (en) Performing and communicating sheet metal simulations employing a combination of factors
CN115499327A (en) Method, apparatus, medium, and program product for three-dimensional visualization data center management
CN114218001A (en) Fault repairing method and device, electronic equipment and readable storage medium
US10678409B2 (en) Displaying an off-switch location
CN112506772A (en) Web automatic testing method and device, electronic equipment and storage medium
KR102372556B1 (en) Mobile service control method and system based on mobile remote control technology
CN112712151B (en) Epidemic situation health code quality control method and device, medium and equipment

Legal Events

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