WO2019218513A1 - 测试过程的监控装置、方法及计算机可读存储介质 - Google Patents
测试过程的监控装置、方法及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2019218513A1 WO2019218513A1 PCT/CN2018/102103 CN2018102103W WO2019218513A1 WO 2019218513 A1 WO2019218513 A1 WO 2019218513A1 CN 2018102103 W CN2018102103 W CN 2018102103W WO 2019218513 A1 WO2019218513 A1 WO 2019218513A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- monitoring
- item
- database table
- data
- memory
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Definitions
- the present application relates to the field of computer technologies, and in particular, to a monitoring apparatus, method, and computer readable storage medium for a testing process.
- the commonly used tools for system test monitoring have the following drawbacks: if the test host or the database of the system under test is to be monitored during the test, the tester needs to remotely log in to the system host and bring the tool through the system. Monitoring related data, and after the test is completed, it is impossible to obtain relevant data to analyze the test situation, which brings inconvenience to the user, resulting in inefficient test monitoring.
- the present application provides a monitoring device, a method, and a computer readable storage medium for a test process, the main purpose of which is to solve the technical problem of low efficiency of the prior art test monitoring.
- the present application provides a monitoring device for a test process, the device comprising a memory and a processor, wherein the memory stores a test monitor program executable on the processor, the test monitor program being The following steps are implemented when the processor is executed:
- Determining a monitoring object and determining monitoring information and a monitoring item according to the monitoring object, where the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table;
- the instruction monitors the monitoring item in the testing process, and stores the acquired monitoring data into a corresponding database table according to a mapping relationship between the monitoring item and the database table;
- the present application further provides a monitoring method for a testing process, the method comprising:
- the monitoring device determines the monitoring object, and determines the monitoring information and the monitoring item according to the monitoring object, where the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table;
- the measured terminal monitors the monitoring item in the testing process according to the monitoring instruction, and stores the acquired monitoring data into a corresponding database table according to a mapping relationship between the monitoring item and the database table;
- the monitoring device acquires monitoring data of the monitoring item from a corresponding database table according to the monitoring period, and dynamically displays the monitoring item in the testing process according to the monitoring data and a preset visual display manner. Dynamic changes.
- the present application further provides a computer readable storage medium having a test monitor program stored thereon, the test monitor program being executable by one or more processors to implement The steps of the monitoring method of the test process as described above.
- the monitoring device determines the monitoring object, and determines the monitoring information and the monitoring item according to the monitoring object, wherein the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and
- the mapping relationship between the monitoring item and the database table is generated according to the monitoring item, the monitoring period, and the foregoing mapping relationship, and is sent to the monitored object, and the monitoring object monitors each monitoring item in the testing process according to the monitoring instruction, and monitors according to the monitoring item.
- the mapping relationship between the item and the database table stores the acquired monitoring data in the corresponding database table, and the monitoring device acquires the monitoring data from the corresponding database table according to the monitoring period, and dynamically displays according to the preset visual display manner.
- the dynamic change of the monitoring item during the testing process After the monitoring device configures the relevant monitoring information, the monitoring object collects the monitoring data, and the monitoring device dynamically displays in real time, and the tester can directly view the monitoring situation according to the need, and does not need to Testers Log on to host their own applications with the system tools to view, improve the efficiency of monitoring for the testing process.
- FIG. 1 is a schematic diagram of an internal structure of a monitoring apparatus for a testing process according to an embodiment of the present application
- FIG. 2 is a schematic diagram of a program module of a test monitoring program in a monitoring device of a testing process according to an embodiment of the present application
- FIG. 3 is a schematic flowchart of a method for monitoring a test process according to an embodiment of the present application.
- the application provides a monitoring device for a test process.
- a monitoring device for a test process Referring to Figure 1, there is shown a schematic diagram of a preferred embodiment of a monitoring device for the testing process of the present application.
- the monitoring device 1 of the testing process may be a PC (Personal Computer), or may be a terminal device such as a smart phone, a tablet computer, or a portable computer.
- the monitoring device 1 of the test process includes at least a memory 11, a processor 12, a network interface 13, and a communication bus 14.
- the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like.
- the memory 11 may in some embodiments be an internal storage unit of the monitoring device 1 of the test process, such as the hard disk of the monitoring device 1 of the test process.
- the memory 11 may also be an external storage device of the monitoring device 1 of the test process in other embodiments, such as a plug-in hard disk equipped on the monitoring device 1 of the test process, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, flash card, etc.
- the memory 11 may also include an internal storage unit of the monitoring device 1 of the test process as well as an external storage device.
- the memory 11 can be used not only for storing application software of the monitoring device 1 installed in the test process and various types of data, such as code of the test monitor 01, but also for temporarily storing data that has been output or will be output.
- the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing stored in the memory 11. Data, such as executing test monitor 01 and the like.
- CPU Central Processing Unit
- controller microcontroller
- microprocessor or other data processing chip for running program code or processing stored in the memory 11.
- Data such as executing test monitor 01 and the like.
- the network interface 13 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is typically used to establish a communication connection between the device 1 and other electronic devices.
- a standard wired interface such as a WI-FI interface
- Communication bus 14 is used to implement connection communication between these components.
- Figure 1 shows only the monitoring device 1 with the test procedures of the components 11-14 and the test monitor 01, but it should be understood that not all of the illustrated components are required to be implemented, and that more or less may be implemented instead. Component.
- the device 1 may further include a user interface
- the user interface may include a display
- an input unit such as a keyboard
- the optional user interface may further include a standard wired interface and a wireless interface.
- the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
- the display may also be referred to as a display or display unit, as appropriate, for displaying information processed in the monitoring device 1 of the testing process and a user interface for displaying visualizations.
- a test monitor program 01 is stored in the memory 11; when the processor 12 executes the test monitor program 01 stored in the memory 11, the following steps are implemented:
- the monitoring object is determined, and the monitoring information and the monitoring item are determined according to the monitoring object, where the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table.
- the instruction monitors the monitoring item in the testing process, and stores the acquired monitoring data into a corresponding database table according to a mapping relationship between the monitoring item and the database table.
- the tester sets the monitoring information through the monitoring device.
- the monitoring information mainly includes the IP address corresponding to the monitoring period monitoring and the mapping relationship between the monitoring item and the database table.
- the test object needs to set the monitoring object in advance.
- the monitoring object in this embodiment may be the measured terminal of the system under test or the database of the system under test, and set the monitoring item that matches the monitored object.
- the monitoring items include but are not limited to the following: network input, network output, CPU load, total memory, used memory, free memory, disk usage, CPU switching, etc.; for the database of the system under test
- monitoring items including but not limited to the following: application SQL (Structured Query Language) statement monitoring, memory and waiting event monitoring, and file and table space monitoring, where the application of SQL statements to monitor the entire table Monitoring of scanning, implicit conversion, and high-frequency execution statements; monitoring of content and wait events mainly includes monitoring of full table scans, implicit conversions, and high-frequency execution statements; file and table space monitoring includes file accumulation, table space usage, and Remaining statistics, etc.
- application SQL Structured Query Language
- the test terminal is also monitored by the terminal to be tested according to the received monitoring instruction.
- the monitoring period set by the user is a minimum time unit for dynamically displaying changes of each information item. For example, the user can set the monitoring period to 1-5 seconds.
- the user sets the monitoring period through the display interface of the monitoring device, and inputs the IP address of the terminal to be tested and the table name of the database table to be stored in the monitoring data.
- the pre-established database for storing monitoring data includes multiple database tables, and each data table is provided with a table name, and monitoring data of different monitoring items are stored in different database tables, so The mapping relationship between each monitoring item and the database table can be established in advance.
- the monitoring instruction is generated according to the monitoring item, the monitoring period, and the mapping relationship between the monitoring item and the database table, and the monitoring instruction is sent.
- the device corresponding to the IP address set by the user, that is, the terminal to be monitored to be monitored. It can be understood that the monitoring apparatus of this embodiment can monitor the running status of the host of multiple tested terminals at the same time, and only needs to pre-configure the above parameters and set the IP address of each device. After starting monitoring, the monitoring device Send monitoring commands to these devices to achieve synchronous monitoring of the operation of multiple tested terminals.
- the monitoring item, the monitoring period, and the mapping relationship between the monitoring item and the database table are obtained from the monitoring instruction; and the monitoring terminal is obtained at intervals of the monitoring period.
- the parameter values of the respective monitoring items are generated according to the obtained parameter values; and the monitoring data is correspondingly written to the database table corresponding to each monitoring item according to the mapping relationship between the monitoring items and the database table.
- the measured terminal acquires parameter values of the respective monitoring items, and encapsulates the obtained parameter values into monitoring data storage to the buffer area, and each monitoring data
- the name of the monitoring item, the name of the corresponding database table, the obtained parameter value, and the timestamp are recorded, wherein the preset time interval is 1/N of the monitoring period, N>1;
- the monitoring data stored in the monitoring period is obtained from the cache area, and the monitoring data is correspondingly written to each monitoring item according to the mapping relationship between the monitoring item and the database table. Database table.
- a buffer area for storing monitoring data is set in the terminal to be tested, and the measured terminal obtains parameter values of each monitoring item at a preset time interval, and is encapsulated into monitoring data according to a certain format, and is first stored in the buffer area, and is monitored.
- the time interval for transmitting the monitoring data reaches the monitoring period, the monitoring data of the monitoring period is packaged and sent to the monitoring device.
- the preset time interval is 1/N of the monitoring period, and N>1. For example, the preset time interval is 1 second, and the monitoring period is 3 seconds.
- the parameter value of the current CPU load of the tested terminal is obtained every 1 second, and the CPU load, the parameter value, the table name of the database table corresponding to the CPU load, and the time stamp are encapsulated into one monitoring data. Stored in the cache area. When the interval reaches 3 seconds, the stored monitoring data of the three CPU loads are written back from the cache area to the database table corresponding to the table name.
- the database for storing the monitoring data is a time series database, and the time series database may be deployed on a time series database server, and the server is respectively connected to the monitoring device and the terminal to be tested.
- the monitoring data of the monitoring item is obtained from the corresponding database table, and the dynamic change of the monitoring item during the testing process is dynamically displayed according to the monitoring data and the preset visual display manner.
- the monitoring device when the time interval for obtaining the monitoring data from the database table reaches the monitoring period, the monitoring data stored by the tested terminal is obtained from the database table of each monitoring item, and each monitoring is dynamically displayed according to a preset visualization manner.
- the dynamics of the item during the test when the time interval for reading data from the corresponding database table reaches the monitoring period, according to the mapping relationship between the monitoring item and the database table, the monitoring data of each monitoring item is obtained from the corresponding database table; according to the monitoring data
- the timestamp in the process determines the dynamic change of the monitoring item during the testing process, and dynamically displays the dynamic change according to the preset visual display manner.
- Each monitoring data carries a timestamp, and the sequence of the monitoring data can be determined according to the timestamp, and then the dynamic change process of the parameter values of each monitoring item is determined and displayed.
- This visual display method enables the tester to know the operation of the tested terminal during the test without knowing the need to remotely log in to the terminal under test.
- the monitoring device may further generate a monitoring report for the host or the database according to the parameter value of the monitoring item read from the database and the recorded test condition, so that the tester completes the test. After viewing.
- the monitoring device of the testing process is proposed in this embodiment, and the monitoring object is determined, and the monitoring information and the monitoring item are determined according to the monitoring object, wherein the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table.
- the acquired monitoring data is stored in the corresponding database table, and the monitoring device obtains the monitoring data from the corresponding database table according to the monitoring period, and dynamically displays the dynamic change of the monitoring item in the testing process according to the preset visual display manner.
- the monitoring object collects the monitoring data, and the monitoring device dynamically displays in real time, and the tester can directly view the monitoring situation according to the need, and the tester does not need to log in to the application host again.
- the present application also provides a monitoring system for the testing process.
- the system includes the monitoring device of the testing process in the above embodiment, and further includes a terminal to be tested, and the terminal to be tested is used to:
- the parameter value of each monitoring item is generated according to the obtained parameter value; and the monitoring data is correspondingly written to the database table corresponding to each monitoring item according to the mapping relationship between the monitoring item and the database table.
- the terminal to be tested is further configured to:
- the parameter values of each monitoring item are obtained, and the obtained parameter values are encapsulated into monitoring data storage to the buffer area, and the name of the monitoring item and the corresponding database table are recorded in each monitoring data.
- the monitoring data stored in the monitoring period is correspondingly written to the database table corresponding to each monitoring item according to the mapping relationship between the monitoring item and the database table.
- test monitor program may also be divided into one or more modules, one or more modules being stored in the memory 11 and being processed by one or more processors (this embodiment is The processor 12) is executed to complete the application.
- a module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function for describing the execution process of the test monitor program in the monitoring device of the test process.
- FIG. 2 it is a schematic diagram of a program module of a test monitoring program in an embodiment of a monitoring device of a testing process of the present application.
- the test monitoring program may be divided into an information acquiring module 10 and an instruction sending module 20 And the dynamic display module 30, illustratively:
- the information obtaining module 10 is configured to: determine a monitoring object, and determine monitoring information and a monitoring item according to the monitoring object, where the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table;
- the instruction sending module 20 is configured to: generate a monitoring instruction according to the monitoring item, the monitoring period, and a mapping relationship between the monitoring item and the database table, and send the monitoring instruction to the monitoring object according to the IP address, to provide a
- the monitoring object monitors the monitoring item in the testing process according to the monitoring instruction, and stores the acquired monitoring data into a corresponding database table according to a mapping relationship between the monitoring item and the database table;
- the dynamic display module 30 is configured to: according to the monitoring period, obtain monitoring data of the monitoring item from a corresponding database table, and dynamically display the monitoring item according to the monitoring data and a preset visual display manner. Dynamic changes in the process.
- FIG. 3 is a schematic flowchart diagram of a monitoring method of a testing process according to an embodiment of the present application.
- the method can be performed by a device that can be implemented by software and/or hardware.
- the monitoring method of the testing process includes:
- the monitoring device determines the monitoring object, and determines the monitoring information and the monitoring item according to the monitoring object, where the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table.
- Step S20 Generate a monitoring instruction according to the monitoring item, the monitoring period, and a mapping relationship between the monitoring item and the database table, and send the monitoring instruction to the monitoring object according to the IP address.
- Step S30 The measured terminal monitors the monitoring item in the testing process according to the monitoring instruction, and stores the acquired monitoring data into a corresponding database table according to a mapping relationship between the monitoring item and the database table.
- the tester sets the monitoring information through the monitoring device.
- the monitoring information mainly includes the IP address corresponding to the monitoring period monitoring and the mapping relationship between the monitoring item and the database table.
- the test object needs to set the monitoring object in advance.
- the monitoring object in this embodiment may be the measured terminal of the system under test or the database of the system under test, and set the monitoring item that matches the monitored object.
- the monitoring items include but are not limited to the following: network input, network output, CPU load, total memory, used memory, free memory, disk usage, CPU switching, etc.; for the database of the system under test
- monitoring items including but not limited to the following: application SQL (Structured Query Language) statement monitoring, memory and waiting event monitoring, and file and table space monitoring, where the application of SQL statements to monitor the entire table Monitoring of scanning, implicit conversion, and high-frequency execution statements; monitoring of content and wait events mainly includes monitoring of full table scans, implicit conversions, and high-frequency execution statements; file and table space monitoring includes file accumulation, table space usage, and Remaining statistics, etc.
- application SQL Structured Query Language
- the test terminal is also monitored by the terminal to be tested according to the received monitoring instruction.
- the monitoring period set by the user is a minimum time unit for dynamically displaying changes of each information item. For example, the user can set the monitoring period to 1-5 seconds.
- the user sets the monitoring period through the display interface of the monitoring device, and inputs the IP address of the terminal to be tested and the table name of the database table to be stored in the monitoring data.
- the pre-established database for storing monitoring data includes multiple database tables, and each data table is provided with a table name, and monitoring data of different monitoring items are stored in different database tables, so The mapping relationship between each monitoring item and the database table can be established in advance.
- the monitoring instruction is generated according to the monitoring item, the monitoring period, and the mapping relationship between the monitoring item and the database table, and the monitoring instruction is sent.
- the device corresponding to the IP address set by the user, that is, the terminal to be monitored to be monitored. It can be understood that the monitoring apparatus of this embodiment can monitor the running status of the host of multiple tested terminals at the same time, and only needs to pre-configure the above parameters and set the IP address of each device. After starting monitoring, the monitoring device Send monitoring commands to these devices to achieve synchronous monitoring of the operation of multiple tested terminals.
- the monitoring item, the monitoring period, and the mapping relationship between the monitoring item and the database table are obtained from the monitoring instruction; and the monitoring terminal is obtained at intervals of the monitoring period.
- the parameter values of the respective monitoring items are generated according to the obtained parameter values; and the monitoring data is correspondingly written to the database table corresponding to each monitoring item according to the mapping relationship between the monitoring items and the database table.
- the measured terminal acquires parameter values of the respective monitoring items, and encapsulates the obtained parameter values into monitoring data storage to the buffer area, and each monitoring data
- the name of the monitoring item, the name of the corresponding database table, the obtained parameter value, and the timestamp are recorded, wherein the preset time interval is 1/N of the monitoring period, N>1;
- the monitoring data stored in the monitoring period is obtained from the cache area, and the monitoring data is correspondingly written to each monitoring item according to the mapping relationship between the monitoring item and the database table. Database table.
- a buffer area for storing monitoring data is set in the terminal to be tested, and the measured terminal obtains parameter values of each monitoring item at a preset time interval, and is encapsulated into monitoring data according to a certain format, and is first stored in the buffer area, and is monitored.
- the time interval for transmitting the monitoring data reaches the monitoring period, the monitoring data of the monitoring period is packaged and sent to the monitoring device.
- the preset time interval is 1/N of the monitoring period, and N>1. For example, the preset time interval is 1 second, and the monitoring period is 3 seconds.
- the parameter value of the current CPU load of the tested terminal is obtained every 1 second, and the CPU load, the parameter value, the table name of the database table corresponding to the CPU load, and the time stamp are encapsulated into one monitoring data. Stored in the cache area. When the interval reaches 3 seconds, the stored monitoring data of the three CPU loads are written back from the cache area to the database table corresponding to the table name.
- the database for storing the monitoring data is a time series database, and the time series database may be deployed on a time series database server, and the server is respectively connected to the monitoring device and the terminal to be tested.
- Step S40 The monitoring device acquires monitoring data of the monitoring item from a corresponding database table according to the monitoring period, and dynamically displays the monitoring item according to the monitoring data and a preset visual display manner. Dynamic changes in the process.
- the monitoring device when the time interval for obtaining the monitoring data from the database table reaches the monitoring period, the monitoring data stored by the tested terminal is obtained from the database table of each monitoring item, and each monitoring is dynamically displayed according to a preset visualization manner.
- the dynamics of the item during the test when the time interval for reading data from the corresponding database table reaches the monitoring period, according to the mapping relationship between the monitoring item and the database table, the monitoring data of each monitoring item is obtained from the corresponding database table; according to the monitoring data
- the timestamp in the process determines the dynamic change of the monitoring item during the testing process, and dynamically displays the dynamic change according to the preset visual display manner.
- Each monitoring data carries a timestamp, and the sequence of the monitoring data can be determined according to the timestamp, and then the dynamic change process of the parameter values of each monitoring item is determined and displayed.
- This visual display method enables the tester to know the operation of the tested terminal during the test without knowing the need to remotely log in to the terminal under test.
- the monitoring apparatus may further generate a monitoring report for the host or the database according to the parameter value of the monitoring item read from the database and the recorded test condition, where For the tester to view after the test is completed.
- a monitoring method of the testing process is proposed, and the monitoring object is determined, and the monitoring information and the monitoring item are determined according to the monitoring object.
- the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table.
- the acquired monitoring data is stored in the corresponding database table, and the monitoring device obtains the monitoring data from the corresponding database table according to the monitoring period, and dynamically displays the dynamic change of the monitoring item in the testing process according to the preset visual display manner.
- the monitoring object collects the monitoring data, and the monitoring device dynamically displays in real time, and the tester can directly view the monitoring situation according to the need, and the tester does not need to log in to the application host again.
- test monitor program is stored on the computer readable storage medium, and the test monitor program can be executed by one or more processors to implement the following operations:
- Determining a monitoring object and determining monitoring information and a monitoring item according to the monitoring object, where the monitoring information includes a monitoring period, an IP address corresponding to the monitoring object, and a mapping relationship between the monitoring item and the database table;
- the instruction monitors the monitoring item in the testing process, and stores the acquired monitoring data into a corresponding database table according to a mapping relationship between the monitoring item and the database table;
- the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
- a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
一种测试过程的监控方法、监控装置以及一种计算机可读存储介质,该方法包括:确定监控对象,并根据监控对象确定监控信息和监控项,监控信息包括监控对象对应的IP地址、监控周期以及监控项与数据库表之间的映射关系(S10);根据监控项、监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据IP地址将监控指令发送至监控对象(S20),以供监控对象根据监控指令对测试过程中的监控项进行监控(S30);根据监控周期,从对应的数据库表中获取监控项的监控数据,并根据监控数据以及预设的可视化展示方式动态地展示监控项在测试过程中的动态变化情况(S40)。上述方案能提高测试监控的效率。
Description
本申请基于巴黎公约申明享有2018年05月16日递交的申请号为2018104694255、名称为“测试过程的监控装置、方法及计算机可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
本申请涉及计算机技术领域,尤其涉及一种测试过程的监控装置、方法及计算机可读存储介质。
目前,常用的用于系统测试监控的工具存在如下缺陷:如果测试过程中要对被测试的主机或者被测系统的数据库进行监控,需要测试人员自行远程登录到系统主机上并通过系统自带工具监控相关数据,并且在测试完成后无法再获取相关数据对测试情况进行分析,为用户带来不便,导致测试监控效率低下。
发明内容
本申请提供一种测试过程的监控装置、方法及计算机可读存储介质,其主要目的在于解决现有技术测试监控效率低下的技术问题。
为实现上述目的,本申请提供一种测试过程的监控装置,该装置包括存储器和处理器,所述存储器中存储有可在所述处理器上运行的测试监控程序,所述测试监控程序被所述处理器执行时实现如下步骤:
确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系;
根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象,以供所述监控对象根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表;
根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况。
此外,为实现上述目的,本申请还提供一种测试过程的监控方法,该方法包括:
监控装置确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系;
根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象;
所述被测终端根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表;
所述监控装置根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有测试监控程序,所述测试监控程序可被一个或者多个处理器执行,以实现如上所述的测试过程的监控方法的步骤。
本申请提出的测试过程的监控装置、方法及计算机可读存储介质,监控装置确定监控对象,根据监控对象确定监控信息和监控项,其中,监控信息中包括监控周期、监控对象对应的IP地址以及监控项与数据库表之间的映射关系,根据监控项、监控周期以及上述映射关系生成监控指令,发送至被监控对象,监控对象根据监控指令对测试过程中的各个监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表中,监控装置根据上述监控周期,从对应的数据库表中获取监控数据,并按照预设的可视化展示方式动态地展示监控项在测试过程中的动态变化情况,该方案通过监控装置配置好相关的监控信息后,由监控对象采集监控数据,监控装置实时地动态展示,测试人员可直接根据需要查看监控情况,不需要测试人员再自行登录到应用主机上借助系统工具去查看,提高了对于测试过程的监控效率。
图1为本申请一实施例提供的测试过程的监控装置的内部结构示意图;
图2为本申请一实施例提供的测试过程的监控装置中的测试监控程序的程序模块示意图;
图3为本申请一实施例提供的测试过程的监控方法的流程示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供一种测试过程的监控装置。参照图1所示,为本申请测试过程的监控装置较佳实施例的示意图。
在本实施例中,测试过程的监控装置1可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、便携计算机等终端设备。该测试过程的监控装置1至少包括存储器11、处理器12,网络接口13,以及通信总线14。
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是测试过程的监控装置1的内部存储单元,例如该测试过程的监控装置1的硬盘。存储器11在另一些实施例中也可以是测试过程的监控装置1的外部存储设备,例如测试过程的监控装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括测试过程的监控装置1的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于测试过程的监控装置1的应用软件及各类数据,例如测试监控程序01的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行测试监控程序01等。
网络接口13可选的可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该装置1与其他电子设备之间建立通信连接。
通信总线14用于实现这些组件之间的连接通信。
图1仅示出了具有组件11-14以及测试监控程序01的测试过程的监控装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
可选地,该装置1还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在测试过程的监控装置1中处理的信息以及用于显示可视化的用户界面。
在图1所示的装置1实施例中,存储器11中存储有测试监控程序01;处理器12执行存储器11中存储的测试监控程序01时实现如下步骤:
确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系。
根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象,以供所述监控对象根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表。
测试人员通过监控装置设置监控信息。监控信息主要包括监控周期监控对应的IP地址以及监控项与数据库表之间的映射关系。其中,测试人员需要预先设置好监控对象,本实施例中的监控对象可以是被测系统所在的被测终端或者被测系统的数据库,并且设置好与监控对象匹配的监控项。对于被测终端来说,监控项包括但不限于以下内容:网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存、磁盘使用率以及CPU切换等等;对于被测系统的数据库来说,监控项包括但不限于以下内容:应用SQL(Structured Query Language,结构化查询语言)语句的监控、内存与等待事件的监控以及文件与表空间的监控,其中,应用SQL语句监控全表扫描、隐式转换和高频 执行语句等的监控;内容与等待事件监控主要包括全表扫描、隐式转换和高频执行语句等的监控;文件与表空间监控包括文件累计、表空间使用与剩余统计等。此外,当监控对象为被测系统的数据库时,也是由被测终端作为执行主体根据接收到的监控指令对测试过程进行监控。其中,用户设置的监控周期是用于动态展示各信息项的变化情况的最小时间单位,例如用户可以将监控周期设置为1-5秒。
用户通过监控装置的显示界面设置好监控周期,并输入被测终端的IP地址,以及监控数据要存储的数据库表的表名。需要说明的是,预先建立的用于存储监控数据的数据库中包含有多个数据库表,且每一个数据表都设置有表名,不同的监控项的监控数据存储在不同的数据库表中,因此,可以预先建立好各个监控项与数据库表之间的映射关系。
在获取到监控项、监控周期以及监控项与数据库表名之间的映射关系后,根据述监控项、监控周期以及监控项与数据库表之间的映射关系生成监控指令,并且将该监控指令发送至用户设置的IP地址对应的设备,即要监控的被测终端。可以理解的是,本实施例的监控装置可以同时对多台被测终端的主机运行情况进行监控,只需要预先配置好上述参数并设置好各台设备的IP地址,在启动监控后,监控装置向这些设备发送监控指令,实现对多台被测终端的运行情况的同步监控。
对于被测终端来说,在接收到监控指令时,从所述监控指令中获取监控项、监控周期以及监控项与数据库表之间的映射关系;每间隔所述监控周期,获取被测终端上的各个监控项的参数值,根据获取的参数值生成监控数据;并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
可选地,在一实施例中,被测终端在间隔时间达到预设时间间隔时,获取各个监控项的参数值,将获取的参数值进行封装为监控数据存储至缓存区域,每条监控数据中记录有监控项的名称、对应的数据库表的表名、获取的参数值以及时间戳,其中,所述预设时间间隔为所述监控周期的1/N,N>1;在时间间隔达到所述监控周期时,从所述缓存区域中获取在该监控周期内存储的监控数据,并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
在被测终端设置用于存储监控数据的缓存区域,被测终端在每预设时间间隔获取各个监控项的参数值,按照一定的格式封装为监控数据,先存储到缓存区域中,当向监控装置发送监控数据的时间间隔达到监控周期时,将这个监控周期内监控数据打包发送至监控装置。上述预设时间间隔为监控周期的1/N,N>1,例如,预设时间间隔为1秒,而监控周期为3秒。以CPU负载的监控为例,每间隔1秒获取一次被测终端当前的CPU负载的参数值,将CPU负载、该参数值、CPU负载对应的数据库表的表名以及时间戳封装为一条监控数据存储到缓存区域。当间隔时间达到3秒时,从缓存区域将存储的3条CPU负载的监控数据回写到表名对应的数据库表中。可选地,用于存储监控数据的数据库为时间序列数据库,该时间序列数据库可以部署在时间序列数据库服务器上,该服务器分别与监控装置和被测终端连接。
根据监控周期,从对应的数据库表中获取监控项的监控数据,并根据监控数据以及预设的可视化展示方式动态地展示监控项在测试过程中的动态变化情况。
对于监控装置来说,在从数据库表中获取监控数据的时间间隔达到监控周期时,从各个监控项的数据库表中获取被测终端存储的监控数据,按照预设的可视化方式动态地展示各个监控项在测试过程中的动态变化情况。可选地,当从对应的数据库表中读数据的时间间隔达到监控周期时,根据监控项与数据库表之间的映射关系,从对应的数据库表中获取各个监控项的监控数据;根据监控数据中的时间戳确定监控项在测试过程中的动态变化情况,按照预设的可视化展示方式动态地展示动态变化情况。每一条监控数据中都携带有时间戳,根据时间戳可以确定监控数据的先后顺序,继而确定各个监控项的参数值的动态变化过程进行展示。这种可视化的展示方式能够使测试人员在不需要远程登录到被测终端上的情况下,及时地了解到测试过程中被测终端的运行情况。
可选地,在一实施例中,监控装置还可以根据从数据库中读取到的监控项的参数值以及记录的测试情况生成针对主机或者数据库的监控报告进行存储,以供测试人员在测试完成后进行查看。
本实施例提出测试过程的监控装置,确定监控对象,根据监控对象确定监控信息和监控项,其中,监控信息中包括监控周期、监控对象对应的IP地 址以及监控项与数据库表之间的映射关系,根据监控项、监控周期以及上述映射关系生成监控指令,发送至被监控对象,监控对象根据监控指令对测试过程中的各个监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表中,监控装置根据上述监控周期,从对应的数据库表中获取监控数据,并按照预设的可视化展示方式动态地展示监控项在测试过程中的动态变化情况,该方案通过监控装置配置好相关的监控信息后,由监控对象采集监控数据,监控装置实时地动态展示,测试人员可直接根据需要查看监控情况,不需要测试人员再自行登录到应用主机上借助系统工具去查看,提高了对于测试过程的监控效率。
此外,本申请还提供一种测试过程的监控系统。该系统包括上述实施例中的测试过程的监控装置,还包括被测终端,所述被测终端用于:
当接收到所述监控装置发送的监控指令时,从所述监控指令中获取监控项、监控周期以及监控项与数据库表之间的映射关系;每间隔所述监控周期,获取被测终端上的各个监控项的参数值,根据获取的参数值生成监控数据;并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
可选地,所述被测终端还用于:
在间隔时间达到预设时间间隔时,获取各个监控项的参数值,将获取的参数值进行封装为监控数据存储至缓存区域,每条监控数据中记录有监控项的名称、对应的数据库表的表名、获取的参数值以及时间戳,其中,所述预设时间间隔为所述监控周期的1/N,N>1;在时间间隔达到所述监控周期时,从所述缓存区域中获取在该监控周期内存储的监控数据,并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
本申请测试过程的监控系统具体实施方式与上述测试过程的监控装置和各实施例基本相同,在此不作累述。
可选地,在其他的实施例中,测试监控程序还可以被分割为一个或者多个模块,一个或者多个模块被存储于存储器11中,并由一个或多个处理器(本实施例为处理器12)所执行以完成本申请,本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段,用于描述测试监控程序在测试过程的 监控装置中的执行过程。
例如,参照图2所示,为本申请测试过程的监控装置一实施例中的测试监控程序的程序模块示意图,该实施例中,测试监控程序可以被分割为信息获取模块10、指令发送模块20和动态展示模块30,示例性地:
信息获取模块10用于:确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系;
指令发送模块20用于:根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象,以供所述监控对象根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表;
动态展示模块30用于:根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况。
上述信息获取模块10、指令发送模块20和动态展示模块30等程序模块被执行时所实现的功能或操作步骤与上述实施例大体相同,在此不再赘述。
此外,本申请还提供一种测试过程的监控方法。参照图3所示,为本申请一实施例提供的测试过程的监控方法的流程示意图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。
在本实施例中,测试过程的监控方法包括:
步骤S10,监控装置确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系。
步骤S20,根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象。
步骤S30,所述被测终端根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表。
测试人员通过监控装置设置监控信息,监控信息主要包括监控周期监控 对应的IP地址以及监控项与数据库表之间的映射关系。其中,测试人员需要预先设置好监控对象,本实施例中的监控对象可以是被测系统所在的被测终端或者被测系统的数据库,并且设置好与监控对象匹配的监控项。对于被测终端来说,监控项包括但不限于以下内容:网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存、磁盘使用率以及CPU切换等等;对于被测系统的数据库来说,监控项包括但不限于以下内容:应用SQL(Structured Query Language,结构化查询语言)语句的监控、内存与等待事件的监控以及文件与表空间的监控,其中,应用SQL语句监控全表扫描、隐式转换和高频执行语句等的监控;内容与等待事件监控主要包括全表扫描、隐式转换和高频执行语句等的监控;文件与表空间监控包括文件累计、表空间使用与剩余统计等。此外,当监控对象为被测系统的数据库时,也是由被测终端作为执行主体根据接收到的监控指令对测试过程进行监控。其中,用户设置的监控周期是用于动态展示各信息项的变化情况的最小时间单位,例如用户可以将监控周期设置为1-5秒。
用户通过监控装置的显示界面设置好监控周期,并输入被测终端的IP地址,以及监控数据要存储的数据库表的表名。需要说明的是,预先建立的用于存储监控数据的数据库中包含有多个数据库表,且每一个数据表都设置有表名,不同的监控项的监控数据存储在不同的数据库表中,因此,可以预先建立好各个监控项与数据库表之间的映射关系。
在获取到监控项、监控周期以及监控项与数据库表名之间的映射关系后,根据述监控项、监控周期以及监控项与数据库表之间的映射关系生成监控指令,并且将该监控指令发送至用户设置的IP地址对应的设备,即要监控的被测终端。可以理解的是,本实施例的监控装置可以同时对多台被测终端的主机运行情况进行监控,只需要预先配置好上述参数并设置好各台设备的IP地址,在启动监控后,监控装置向这些设备发送监控指令,实现对多台被测终端的运行情况的同步监控。
对于被测终端来说,在接收到监控指令时,从所述监控指令中获取监控项、监控周期以及监控项与数据库表之间的映射关系;每间隔所述监控周期,获取被测终端上的各个监控项的参数值,根据获取的参数值生成监控数据;并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各 个监控项对应的数据库表。
可选地,在一实施例中,被测终端在间隔时间达到预设时间间隔时,获取各个监控项的参数值,将获取的参数值进行封装为监控数据存储至缓存区域,每条监控数据中记录有监控项的名称、对应的数据库表的表名、获取的参数值以及时间戳,其中,所述预设时间间隔为所述监控周期的1/N,N>1;在时间间隔达到所述监控周期时,从所述缓存区域中获取在该监控周期内存储的监控数据,并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
在被测终端设置用于存储监控数据的缓存区域,被测终端在每预设时间间隔获取各个监控项的参数值,按照一定的格式封装为监控数据,先存储到缓存区域中,当向监控装置发送监控数据的时间间隔达到监控周期时,将这个监控周期内监控数据打包发送至监控装置。上述预设时间间隔为监控周期的1/N,N>1,例如,预设时间间隔为1秒,而监控周期为3秒。以CPU负载的监控为例,每间隔1秒获取一次被测终端当前的CPU负载的参数值,将CPU负载、该参数值、CPU负载对应的数据库表的表名以及时间戳封装为一条监控数据存储到缓存区域。当间隔时间达到3秒时,从缓存区域将存储的3条CPU负载的监控数据回写到表名对应的数据库表中。可选地,用于存储监控数据的数据库为时间序列数据库,该时间序列数据库可以部署在时间序列数据库服务器上,该服务器分别与监控装置和被测终端连接。
步骤S40,所述监控装置根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况。
对于监控装置来说,在从数据库表中获取监控数据的时间间隔达到监控周期时,从各个监控项的数据库表中获取被测终端存储的监控数据,按照预设的可视化方式动态地展示各个监控项在测试过程中的动态变化情况。可选地,当从对应的数据库表中读数据的时间间隔达到监控周期时,根据监控项与数据库表之间的映射关系,从对应的数据库表中获取各个监控项的监控数据;根据监控数据中的时间戳确定监控项在测试过程中的动态变化情况,按照预设的可视化展示方式动态地展示动态变化情况。每一条监控数据中都携带有时间戳,根据时间戳可以确定监控数据的先后顺序,继而确定各个监控 项的参数值的动态变化过程进行展示。这种可视化的展示方式能够使测试人员在不需要远程登录到被测终端上的情况下,及时地了解到测试过程中被测终端的运行情况。
可选地,在一实施例中,本实施例的方法中,监控装置还可以根据从数据库中读取到的监控项的参数值以及记录的测试情况生成针对主机或者数据库的监控报告进行存储,以供测试人员在测试完成后进行查看。
本实施例提出测试过程的监控方法,确定监控对象,根据监控对象确定监控信息和监控项,其中,监控信息中包括监控周期、监控对象对应的IP地址以及监控项与数据库表之间的映射关系,根据监控项、监控周期以及上述映射关系生成监控指令,发送至被监控对象,监控对象根据监控指令对测试过程中的各个监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表中,监控装置根据上述监控周期,从对应的数据库表中获取监控数据,并按照预设的可视化展示方式动态地展示监控项在测试过程中的动态变化情况,该方案通过监控装置配置好相关的监控信息后,由监控对象采集监控数据,监控装置实时地动态展示,测试人员可直接根据需要查看监控情况,不需要测试人员再自行登录到应用主机上借助系统工具去查看,提高了对于测试过程的监控效率。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有测试监控程序,所述测试监控程序可被一个或多个处理器执行,以实现如下操作:
确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系;
根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象,以供所述监控对象根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表;
根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况。
本申请计算机可读存储介质具体实施方式与上述测试过程的监控装置和 方法各实施例基本相同,在此不作累述。
需要说明的是,上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
Claims (20)
- 一种测试过程的监控装置,其特征在于,所述装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的测试监控程序,所述测试监控程序被所述处理器执行时实现如下步骤:确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系;根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象,以供所述监控对象根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表;根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况。
- 如权利要求1所述的测试过程的监控装置,其特征在于,根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况的步骤包括:当从对应的数据库表中读数据的时间间隔达到所述监控周期时,根据所述监控项与数据库表之间的映射关系,从对应的数据库表中获取各个监控项的监控数据;根据监控数据中的时间戳确定所述监控项在测试过程中的动态变化情况,按照预设的可视化展示方式动态地展示所述动态变化情况。
- 如权利要求1所述的测试过程的监控装置,其特征在于,若所述监控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率;若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
- 如权利要求2所述的测试过程的监控装置,其特征在于,若所述监控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率;若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
- 一种测试过程的监控系统,所述测试过程的监控系统包括如权利要求1至3中任一项所述测试过程的监控装置,其特征在于,所述系统还包括被测终端,所述被测终端用于:当接收到所述监控装置发送的监控指令时,从所述监控指令中获取监控项、监控周期以及监控项与数据库表之间的映射关系;每间隔所述监控周期,获取被测终端上的各个监控项的参数值,根据获取的参数值生成监控数据;并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
- 如权利要求5所述的测试过程的监控系统,其特征在于,所述被测终端还用于:在间隔时间达到预设时间间隔时,获取各个监控项的参数值,将获取的参数值进行封装为监控数据存储至缓存区域,每条监控数据中记录有监控项的名称、对应的数据库表的表名、获取的参数值以及时间戳,其中,所述预设时间间隔为所述监控周期的1/N,N>1;在时间间隔达到所述监控周期时,从所述缓存区域中获取在该监控周期内存储的监控数据,并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
- 一种测试过程的监控方法,其特征在于,所述方法包括:监控装置确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系;根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象;所述被测终端根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表;所述监控装置根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所 述监控项在测试过程中的动态变化情况。
- 如权利要求7所述的测试过程的监控方法,其特征在于,所述被测终端根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表的步骤包括:当所述被测终端接收到所述监控装置发送的监控指令时,从所述监控指令中获取监控项、监控周期以及监控项与数据库表之间的映射关系;每间隔所述监控周期,获取被测终端上的各个监控项的参数值,根据获取的参数值生成监控数据;并按照监控项与数据库表之间的映射关系,将所述监控数据对应地写入到各个监控项对应的数据库表。
- 如权利要求7所述的测试过程的监控方法,其特征在于,所述监控装置根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况的步骤包括:当从对应的数据库表中读数据的时间间隔达到所述监控周期时,所述监控装置根据所述监控项与数据库表之间的映射关系,从对应的数据库表中获取各个监控项的监控数据;所述监控装置根据监控数据中的时间戳确定所述监控项在测试过程中的动态变化情况,按照预设的可视化展示方式动态地展示所述动态变化情况。
- 如权利要求8述的测试过程的监控方法,其特征在于,所述监控装置根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况的步骤包括:当从对应的数据库表中读数据的时间间隔达到所述监控周期时,所述监控装置根据所述监控项与数据库表之间的映射关系,从对应的数据库表中获取各个监控项的监控数据;所述监控装置根据监控数据中的时间戳确定所述监控项在测试过程中的动态变化情况,按照预设的可视化展示方式动态地展示所述动态变化情况。
- 如权利要求7所述的测试过程的监控方法,其特征在于,若所述监 控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率;若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
- 如权利要求8所述的测试过程的监控方法,其特征在于,若所述监控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率;若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
- 如权利要求9所述的测试过程的监控方法,其特征在于,若所述监控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率;若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
- 如权利要求10所述的测试过程的监控方法,其特征在于,若所述监控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率;若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有测试监控程序,所述测试监控程序可被一个或者多个处理器执行,以实现如下步骤:确定监控对象,并根据监控对象确定监控信息和监控项,所述监控信息包括监控周期、所述监控对象对应的IP地址以及监控项与数据库表之间的映射关系;根据所述监控项、所述监控周期以及监控项与数据库表之间的映射关系生成监控指令,根据所述IP地址将所述监控指令发送至监控对象,以供所述监控对象根据所述监控指令对测试过程中的所述监控项进行监控,并按照监控项与数据库表之间的映射关系将获取的监控数据存储至对应的数据库表;根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测 试过程中的动态变化情况。
- 如权利要求15所述的计算机可读存储介质,其特征在于,根据所述监控周期,从对应的数据库表中获取所述监控项的监控数据,并根据所述监控数据以及预设的可视化展示方式动态地展示所述监控项在测试过程中的动态变化情况的步骤包括:当从对应的数据库表中读数据的时间间隔达到所述监控周期时,根据所述监控项与数据库表之间的映射关系,从对应的数据库表中获取各个监控项的监控数据;根据监控数据中的时间戳确定所述监控项在测试过程中的动态变化情况,按照预设的可视化展示方式动态地展示所述动态变化情况。
- 如权利要求15所述的计算机可读存储介质,其特征在于,若所述监控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率。
- 如权利要求16所述的计算机可读存储介质,其特征在于,若所述监控对象为被测终端,则所述监控项包括网络输入、网络输出、CPU负载、总内存、已使用内存、空闲内存以及磁盘使用率。
- 如权利要求15所述的计算机可读存储介质,其特征在于,若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
- 如权利要求16所述的计算机可读存储介质,其特征在于,若所述监控对象为被测系统的数据库,则监控项包括应用SQL语句、内存与等待事件以及文件与表空间。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2018104694255 | 2018-05-16 | ||
CN201810469425.5A CN108717391B (zh) | 2018-05-16 | 2018-05-16 | 测试过程的监控装置、方法及计算机可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019218513A1 true WO2019218513A1 (zh) | 2019-11-21 |
Family
ID=63900079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/102103 WO2019218513A1 (zh) | 2018-05-16 | 2018-08-24 | 测试过程的监控装置、方法及计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108717391B (zh) |
WO (1) | WO2019218513A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990224A (zh) * | 2019-11-28 | 2020-04-10 | 浪潮软件股份有限公司 | 监控硬件的方法及系统、服务器端、客户端 |
CN111258896A (zh) * | 2020-01-15 | 2020-06-09 | 平安普惠企业管理有限公司 | 自动化造数断点续造方法、装置及计算机可读存储介质 |
CN113627627A (zh) * | 2021-08-11 | 2021-11-09 | 北京互金新融科技有限公司 | 异常监控方法、装置、计算机可读介质及处理器 |
CN114389971A (zh) * | 2022-03-23 | 2022-04-22 | 苏州浪潮智能科技有限公司 | 一种智能监控微调整方法、装置、设备及存储介质 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134680B (zh) * | 2019-04-04 | 2022-11-29 | 平安科技(深圳)有限公司 | 空间监控方法、装置、计算机设备及存储介质 |
CN111654408B (zh) * | 2020-04-24 | 2023-08-22 | 平安科技(深圳)有限公司 | 设备监控方法、装置、计算机设备和存储介质 |
CN111737233A (zh) * | 2020-06-24 | 2020-10-02 | 浙江大华技术股份有限公司 | 数据监控方法及装置 |
CN112600713A (zh) * | 2020-12-24 | 2021-04-02 | 上海哔哩哔哩科技有限公司 | 数据监控方法及系统 |
CN113552497B (zh) * | 2021-06-11 | 2023-08-25 | 北京空间飞行器总体设计部 | 从测试航天器电源系统的仪器设备处采集参数的方法 |
CN113486077B (zh) * | 2021-06-11 | 2023-08-22 | 北京空间飞行器总体设计部 | 使用实时数据库处理航天器电源系统测试数据的方法 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105243016A (zh) * | 2015-09-30 | 2016-01-13 | 北京奇虎科技有限公司 | 对测试平台上的终端设备进行监控的方法、装置和系统 |
CN105279226A (zh) * | 2015-09-09 | 2016-01-27 | 浪潮(北京)电子信息产业有限公司 | 一种基于大数据的数据监控方法和设备 |
CN105912703A (zh) * | 2016-04-26 | 2016-08-31 | 北京百度网讯科技有限公司 | 数据存储方法、查询方法及装置 |
CN106649031A (zh) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | 一种监控数据的获取方法、装置及计算机 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8401022B2 (en) * | 2008-02-08 | 2013-03-19 | Oracle International Corporation | Pragmatic approaches to IMS |
US8214329B2 (en) * | 2008-08-26 | 2012-07-03 | Zeewise, Inc. | Remote data collection systems and methods |
CN103530524A (zh) * | 2013-10-24 | 2014-01-22 | 徐州通软计算机系统集成有限公司 | 医疗信息智能数据平台及其使用方法和应用 |
CN103731298A (zh) * | 2013-11-15 | 2014-04-16 | 中国航天科工集团第二研究院七〇六所 | 一种大规模分布式网络安全数据采集方法与系统 |
CN103593568B (zh) * | 2013-11-15 | 2017-02-08 | 国家电网公司 | 基于iec 61850的在线监测数据模型映射方法 |
CN104657250B (zh) * | 2014-12-16 | 2018-07-06 | 无锡华云数据技术服务有限公司 | 一种对云主机进行性能监控的监控系统及其监控方法 |
CN104683190A (zh) * | 2015-03-26 | 2015-06-03 | 重庆金美通信有限责任公司 | 一种网管被管网络模拟系统及其模拟方法 |
-
2018
- 2018-05-16 CN CN201810469425.5A patent/CN108717391B/zh active Active
- 2018-08-24 WO PCT/CN2018/102103 patent/WO2019218513A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105279226A (zh) * | 2015-09-09 | 2016-01-27 | 浪潮(北京)电子信息产业有限公司 | 一种基于大数据的数据监控方法和设备 |
CN105243016A (zh) * | 2015-09-30 | 2016-01-13 | 北京奇虎科技有限公司 | 对测试平台上的终端设备进行监控的方法、装置和系统 |
CN105912703A (zh) * | 2016-04-26 | 2016-08-31 | 北京百度网讯科技有限公司 | 数据存储方法、查询方法及装置 |
CN106649031A (zh) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | 一种监控数据的获取方法、装置及计算机 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990224A (zh) * | 2019-11-28 | 2020-04-10 | 浪潮软件股份有限公司 | 监控硬件的方法及系统、服务器端、客户端 |
CN111258896A (zh) * | 2020-01-15 | 2020-06-09 | 平安普惠企业管理有限公司 | 自动化造数断点续造方法、装置及计算机可读存储介质 |
CN113627627A (zh) * | 2021-08-11 | 2021-11-09 | 北京互金新融科技有限公司 | 异常监控方法、装置、计算机可读介质及处理器 |
CN114389971A (zh) * | 2022-03-23 | 2022-04-22 | 苏州浪潮智能科技有限公司 | 一种智能监控微调整方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN108717391B (zh) | 2021-09-28 |
CN108717391A (zh) | 2018-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019218513A1 (zh) | 测试过程的监控装置、方法及计算机可读存储介质 | |
CN109726103B (zh) | 测试报告的生成方法、装置、设备及存储介质 | |
WO2018036273A1 (zh) | 模拟测试方法、服务器、设备及计算机可读存储介质 | |
CN109302522B (zh) | 测试方法、装置以及计算机系统和介质 | |
CN108763086B (zh) | 基于远程真机的脚本录制方法、终端及计算机可读存储介质 | |
CN111078567B (zh) | 自动化测试平台的报告生成方法、终端和存储介质 | |
WO2019085079A1 (zh) | 接口测试方法、装置、计算机设备和存储介质 | |
CN108984388B (zh) | 一种生成自动化测试用例的方法及终端设备 | |
CN107273280B (zh) | 一种日志处理方法、装置、电子设备和存储介质 | |
CN108446190B (zh) | 接口测试方法及装置 | |
WO2019169757A1 (zh) | 测试控制和测试执行装置、方法及计算机存储介质 | |
WO2019214109A1 (zh) | 测试过程的监控装置、方法及计算机可读存储介质 | |
CN109633351B (zh) | 智能it运维故障定位方法、装置、设备及可读存储介质 | |
WO2018120722A1 (zh) | 异步接口测试方法、终端、设备、系统及存储介质 | |
CN101867494B (zh) | 基于监控模板的软硬件性能监控方法及系统 | |
WO2018184420A1 (zh) | 软件测试方法、装置、电子设备及介质 | |
WO2016095554A1 (zh) | 应用程序的测试方法、设备及系统 | |
CN108959067B (zh) | 搜索引擎的测试方法、装置及计算机可读存储介质 | |
CN111061464B (zh) | 解析代码生成方法、装置、设备及存储介质 | |
CN110647471A (zh) | 接口测试用例生成方法、电子装置及存储介质 | |
US20120089871A1 (en) | Test system | |
CN109788052B (zh) | 一种服务器配置远程查询方法、装置、终端及存储介质 | |
CN112202628B (zh) | 一种WiFi模块串口协议自动化测试系统及方法 | |
CN109426597B (zh) | 应用性能监控方法、装置、设备、系统及存储介质 | |
CN112817831A (zh) | 应用性能监测方法、装置、计算机系统和可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18919344 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18919344 Country of ref document: EP Kind code of ref document: A1 |