Automatic inspection method and device for network system

Through automated inspection methods, the problem that traditional operation and maintenance monitoring systems cannot detect abnormalities in the network system in a timely manner is solved, and the inspection process without manual participation is realized, reducing costs and improving abnormal detection efficiency.

CN119094415APending Publication Date: 2024-12-06BEIJING DEEPZERO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411217887.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Traditional operation and maintenance monitoring systems cannot fully ensure the availability of services at the business level, resulting in time-consuming and labor-intensive manual inspections and the inability to detect system abnormalities in time.

Method used

Provides an automated inspection method for network systems, by obtaining pre-configured inspection task information, performing access status detection, web function detection, system performance detection and system security detection items, and generate inspection analysis reports to notify abnormal situations in real time.

Benefits of technology

It realizes automated inspection without manual participation, reduces labor costs, promptly detects and deals with network system abnormalities, and avoids the defects of not being able to detect problems in a timely manner due to long cycles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094415A_ABST
    Figure CN119094415A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic inspection method and device for a network system. The method comprises the steps that task information of a pre-configured inspection task of a target network system is acquired, and the task information at least comprises a network address, inspection time and inspection items of the target network system, the type of the inspection item comprises at least one of the following items: an access state detection item, a webpage function detection item, a system performance detection item and a system security detection item, and a target operation element, a target operation item for the target operation element and an expected operation result corresponding to the target operation item are configured in the webpage function detection item; executing each inspection item according to the inspection time, and recording the detection result of each inspection item; and generating an inspection analysis report according to the detection result of each inspection item, and sending the inspection analysis report to a pre-configured first object. The technical problems that manual inspection of the network system is time-consuming and labor-consuming, and abnormity cannot be found in time due to a long period are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network operation and maintenance technology, and in particular to a method and device for automated inspection of a network system. Background Art

[0002] In modern enterprise operations, it is crucial to ensure the service accessibility of various business systems and project systems in different environments. Although traditional operation and maintenance monitoring systems can ensure the basic availability of servers and service ports, this simple monitoring is not enough to fully ensure the availability of services at the business level. For example, even if the system service is running normally, the content displayed on the web page may still be missing or erroneous. In order to solve this problem, operation and maintenance personnel are usually required to manually log in to each system for inspection, which is not only labor-intensive, but also tedious and repetitive, with high manpower and time costs. In addition, since some services need to be operated in a specific network environment, the frequency interval of manual inspections is usually long, resulting in the inability to promptly discover and handle problems in the system.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a method and device for automated inspection of a network system, so as to at least solve the technical problems that manual inspection of the network system is time-consuming and labor-intensive, and abnormalities cannot be discovered in time due to the long inspection cycle.

[0005] According to one aspect of an embodiment of the present application, a method for automated inspection of a network system is provided, comprising: obtaining task information of an inspection task of a preconfigured target network system, wherein the task information includes at least: a network address of the target network system, an inspection time, and an inspection item, the type of the inspection item includes at least one of the following: an access status detection item, a web page function detection item, a system performance detection item, and a system security detection item, the web page function detection item is configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item; executing each inspection item according to the inspection time, and recording the inspection result of each inspection item; generating an inspection analysis report based on the inspection result of each inspection item, and sending the inspection analysis report to a preconfigured first object.

[0006] Optionally, before obtaining the task information of the inspection task of the pre-configured target network system, in response to the first configuration instruction entered by the second object in the task configuration interface, the basic task information of the inspection task of the target network system is configured, wherein the basic task information includes: task name, network address of the target network system, inspection time and type of inspection item; in response to the second configuration instruction entered by the second object in the task configuration interface, the access status detection item is configured, wherein a reconnection number threshold is configured in the access status detection item; and / or, in response to the third configuration instruction entered by the second object in the task configuration interface, the web page function detection item is configured; and / or, in response to the fourth configuration instruction entered by the second object in the task configuration interface, the system performance detection item is configured, wherein the system performance detection item is configured with performance indicators to be detected and indicator threshold intervals, and the type of performance indicators includes at least one of the following: operation response time, system resource occupancy rate; and / or, in response to the fifth configuration instruction entered by the second object in the task configuration interface, the system security detection item is configured, wherein the type of system security detection item includes at least one of the following: XSS detection, SQL injection detection.

[0007] Optionally, each inspection item is executed according to the inspection time, and the inspection result of each inspection item is recorded, including: when executing the access status detection item, the network address of the target network system is accessed at the inspection time, if the access is successful, the target network system access status is recorded as normal, and the inspection process continues; if the access fails, reconnection is performed, if the number of reconnection times reaches the reconnection number threshold and the access is still not successfully accessed, the target network system access status is recorded as abnormal, and the inspection process terminates; when executing the web page function detection item, the target operation element is located in the web page corresponding to the target network system, and the target operation item is executed on the target operation element, and the actual operation result obtained is recorded, and the actual operation result is compared with the expected operation result. If the actual operation result matches the expected operation result, record it. Record that the web page function of the target network system is normal; if the actual operation result does not match the expected operation result, record that the web page function of the target network system is abnormal; and / or, when executing the system performance detection project, obtain and record the performance indicators of the target network system, compare the performance indicators with the indicator threshold interval, if the performance indicators match the indicator threshold interval, record that the performance of the target network system is normal; if the performance indicators do not match the indicator threshold interval, record that the performance of the target network system is abnormal; and / or, when executing the system security detection project, obtain and record the number of attacks on the target network system within a preset time period, if the number of attacks does not exceed the preset threshold, record that the target network system is safe, if the number of attacks exceeds the preset threshold, record that the target network system has a security risk.

[0008] Optionally, a target operation element is located in a web page corresponding to a target network system, and a target operation item is executed on the target operation element, including: using an XPath method to locate the target operation element in a web page corresponding to the target network system; using a Selenium component or a Cypress component to execute the target operation item on the target operation element, wherein the type of the target operation item includes at least one of the following: read, input, click, select, and drag.

[0009] Optionally, if the second object is configured with a screenshot operation in the web page function detection project, after executing the target operation item on the target operation element, a screenshot of the response result interface of the web page is taken, and the screenshot image is recorded in the detection result of the web page function detection project.

[0010] Optionally, an inspection analysis report is generated based on the detection results of each inspection item, and the inspection analysis report is sent to a preconfigured first object, including: generating an inspection analysis report in a preconfigured format based on the detection results of each inspection item; when the detection result of any inspection item indicates that there is an abnormality in the target network system, the inspection analysis report is sent to the first object in real time through a preconfigured notification method, and a system abnormality alarm message is sent to the first object, wherein the preconfigured notification method includes at least one of the following: Fetion, WeChat public account, and email; if the detection results of all inspection items indicate that the target network system is normal, the inspection analysis report is sent to the first object through a preconfigured notification method at a preset notification time, and a system normal notification message is sent to the first object.

[0011] Optionally, the execution status and result information of the currently executed inspection task are displayed in the inspection status display interface, and / or the statistical information of the execution status and results of multiple inspection tasks within a preset time period are displayed; in response to the query instruction of the second object for the target inspection task, the inspection analysis report corresponding to the target inspection task is displayed in the inspection status display interface.

[0012] According to another aspect of an embodiment of the present application, there is also provided a network system automatic inspection device, including: an acquisition module, used to obtain task information of a pre-configured inspection task of a target network system, wherein the task information includes at least: a network address of the target network system, an inspection time and an inspection item, the type of the inspection item includes at least one of the following: an access status detection item, a web page function detection item, a system performance detection item, a system security detection item, the web page function detection item is configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item; an execution module, used to execute each inspection item according to the inspection time, and record the detection result of each inspection item; a feedback module, used to generate an inspection analysis report based on the detection result of each inspection item, and send the inspection analysis report to a pre-configured first object.

[0013] According to another aspect of an embodiment of the present application, a computer program product is further provided, the computer program product comprising: a computer program, wherein when the computer program is executed by a processor, the above-mentioned network system automatic inspection method is implemented.

[0014] According to another aspect of an embodiment of the present application, an electronic device is further provided, comprising: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the above-mentioned network system automatic inspection method through the computer program.

[0015] In the embodiment of the present application, the administrator can pre-configure the task information of the inspection task of the target network system, and the task information at least includes: the network address of the target network system, the inspection time and the inspection items, wherein the types of the inspection items include at least one of the following: access status detection items, web page function detection items, system performance detection items, and system security detection items, and the main web page function detection items are configured with target operation elements, target operation items for target operation elements, and expected operation results corresponding to the target operation items; in actual application, the automated inspection equipment can obtain the task information, and execute each inspection item according to the inspection time, record the inspection results of each inspection item, generate an inspection analysis report according to the inspection results of each inspection item, and send the inspection analysis report to the pre-configured first object. After the task information is configured, the entire inspection process is automated, without manual participation, which can reduce labor costs, and when the target network system is found to be abnormal during the inspection process, the administrator will be notified immediately, which can avoid the problem that the manual inspection cannot find the abnormality in time due to the long cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 It is a flowchart of an optional network system automatic inspection method according to an embodiment of the present application;

[0018] Figure 2 is a schematic diagram of an optional inspection task basic information configuration interface according to an embodiment of the present application;

[0019] Figure 3 is a schematic diagram of an optional inspection result notification mode configuration interface according to an embodiment of the present application;

[0020] Figure 4is a schematic diagram of a configuration interface for multiple optional inspection tasks according to an embodiment of the present application;

[0021] Figure 5 is a schematic diagram of an optional inspection task status and statistical information according to an embodiment of the present application;

[0022] Figure 6 is a schematic structural diagram of an optional network system automatic inspection device according to an embodiment of the present application;

[0023] Figure 7 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] In order to better understand the embodiments of the present application, some nouns or terms that appear in the description of the embodiments of the present application are first translated and explained as follows:

[0027] XSS (Cross-Site Scripting) is an injection attack in which an attacker injects malicious scripts into pages that other users browse. This attack usually occurs when an application allows users to enter data into a web page, but does not properly sanitize or transfer these inputs. Attackers can use XSS attacks to steal users' cookies, session information, or other sensitive data.

[0028] SQL (Structured Query Language) injection: is an attack technique where an attacker inserts malicious SQL code into an application's input fields to trick the backend database into executing illegal SQL commands. This attack usually occurs when the application does not properly validate or sanitize user input, allowing the attacker to manipulate SQL queries. Attackers can use SQL injection to access, modify, or delete sensitive data in the database.

[0029] XPath (XML (Extensible Markup Language) Path): is a language used to find information in XML documents. XPath uses path expressions to select nodes or sets of nodes in XML documents. These expressions can be used to locate elements on Web pages for automated testing or data extraction.

[0030] Selenium: is a popular open source automated testing tool, mainly used for automated testing of Web applications, it supports multiple programming languages, such as Java, C#, Python, Ruby, etc. Selenium can test the functionality, performance, and reliability of applications by simulating user interactions with Web pages.

[0031] Cypress: is a modern front-end testing framework for writing automated test scripts. It is designed for modern web applications and supports testing libraries such as Mocha and Chai.

[0032] Example 1

[0033] According to an embodiment of the present application, a method for automated inspection of a network system is first provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0034] Figure 1 is a flow chart of a network system automatic inspection method provided according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0035] Step S102, obtaining task information of a pre-configured inspection task of the target network system, wherein the task information at least includes: a network address of the target network system, an inspection time, and an inspection item, and the type of the inspection item includes at least one of the following: an access status inspection item, a web page function inspection item, a system performance inspection item, and a system security inspection item, and the web page function inspection item is configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item;

[0036] Step S104, executing each inspection item according to the inspection time, and recording the inspection results of each inspection item;

[0037] Step S106: Generate an inspection analysis report based on the detection results of each inspection item, and send the inspection analysis report to the preconfigured first object.

[0038] The following describes the various steps of the network system automated inspection method in conjunction with a specific implementation process.

[0039] As an optional implementation, the network system automated inspection method of the embodiment of the present application is implemented by a self-developed inspection system, which is equipped with a front-end task configuration interface to facilitate management personnel to configure task information of inspection tasks for the target network system to be inspected.

[0040] Optionally, the system can configure the basic task information of the inspection task of the target network system in response to the first configuration instruction entered by the second object in the task configuration interface, wherein the second object may be a management personnel, and the basic task information generally includes: task name, network address of the target network system, inspection time and type of inspection item, etc. Figure 2 A schematic diagram of an optional basic information configuration interface for an inspection task is shown, wherein the inspection time is configured in the form of an inspection cycle, for example, starting from 1 o'clock and executed every 2 hours. In addition, specific inspection management personnel can also be configured in the inspection group.

[0041] Optionally, the system can also configure an access status detection item in response to a second configuration instruction entered by the second object in the task configuration interface, wherein a reconnection count threshold is configured in the access status detection item to limit the maximum reconnection count when access to the target network system fails, and the threshold can be set according to needs.

[0042] Optionally, the system can also configure a web page function detection project in response to a third configuration instruction input by the second object in the task configuration interface. The project mainly detects the web page function, which is usually configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item, etc. In addition, a screenshot operation can also be configured in the web page function detection project, which is used to take a screenshot of the response result interface of the web page after executing the target operation item on the target operation element, so as to provide data for other web page function abnormality analysis.

[0043] Optionally, the system can also configure a system performance detection project in response to a fourth configuration instruction entered by the second object in the task configuration interface, wherein the system performance detection project is configured with performance indicators to be detected and indicator threshold ranges, and the types of performance indicators to be detected generally include: operation response time, system resource occupancy rate, etc.

[0044] Optionally, the system may also configure system security detection items in response to a fifth configuration instruction input by the second object in the task configuration interface, wherein the types of system security detection items include at least one of the following: XSS detection, SQL injection detection.

[0045] Optionally, the system may also configure the inspection result notification method in response to the sixth configuration instruction input by the second object in the task configuration interface, such as Figure 3 As shown, the notification method can be configured as Fetion, WeChat public account, email, etc., and the first object that needs to be notified can be configured. The first object is usually the system operation and maintenance personnel.

[0046] Figure 4 The figure shows a schematic diagram of an interface after multiple inspection tasks are configured.

[0047] When performing the inspection task, the task information of the inspection task of the pre-configured target network system may be obtained first, each inspection item may be executed according to the inspection time, and the detection result of each inspection item may be recorded.

[0048] Optionally, when executing the access status detection project, the network address of the target network system can be accessed during the inspection time. If the access is successful, the target network system access status is recorded as normal and the inspection process continues. If the access fails, reconnection is performed. If the number of reconnection times reaches the reconnection number threshold and the access is still not successful, the target network system access status is recorded as abnormal and the inspection process terminates.

[0049] Optionally, when executing the web page function detection project, the target operation element can be located in the web page corresponding to the target network system, and the target operation item can be executed on the target operation element, and the actual operation result obtained can be recorded; wherein, the positioning of the target operation element can be implemented using the XPath method, and the execution of the target operation item on the target operation element can be implemented using the Selenium component or the Cypress component, and the type of the target operation item can include: read, input, click, select, drag, etc. Afterwards, the actual operation result is compared with the expected operation result. If the actual operation result matches the expected operation result, the target network system web page function is recorded as normal. If the actual operation result does not match the expected operation result, the target network system web page function is recorded as abnormal. Further, if the second object is configured with a screenshot operation in the web page function detection project, after executing the target operation item on the target operation element, it is also necessary to take a screenshot of the response result interface of the web page, and record the screenshot image in the detection result of the web page function detection project.

[0050] Optionally, when executing a system performance detection project, the performance indicators of the target network system can be obtained and recorded, and the performance indicators can be compared with the indicator threshold interval. If the performance indicators match the indicator threshold interval, the target network system performance is recorded as normal; if the performance indicators do not match the indicator threshold interval, the target network system performance is recorded as abnormal.

[0051] Optionally, when executing a system security detection project, the number of times the target network system is attacked within a preset time period can be obtained and recorded. If the number of attacks does not exceed the preset threshold, the target network system is recorded as safe. If the number of attacks exceeds the preset threshold, the target network system is recorded as having a security risk.

[0052] As an optional implementation, after obtaining the test results of each inspection item, an inspection analysis report in a preconfigured format can be generated based on the test results of each inspection item; when the test result of any inspection item indicates that there is an abnormality in the target network system, the inspection analysis report is sent to the first object in real time through a preconfigured notification method, and a system abnormality alarm message is sent to the first object, so that the system operation and maintenance personnel can promptly deal with the abnormal problems of the target network system; if the test results of all inspection items indicate that the target network system is normal, the inspection analysis report is sent to the first object through a preconfigured notification method at a preset notification time, and a system normal notification message is sent to the first object, wherein the preset notification time can be set at off-duty time so as not to interfere with the normal work of the system operation and maintenance personnel.

[0053] Optionally, the inspection system of the embodiment of the present application may also be configured with an inspection status display interface for displaying the execution status and result information of the currently executed inspection task, or displaying the execution status and result statistics of multiple inspection tasks within a preset time period, wherein the preset time period may be one week, half a month, etc., which may be set specifically according to needs, and the two display modes may also be switched based on the needs of the management personnel. Figure 5 It is a schematic diagram of an optional inspection task statistical information interface; further, in response to the query instruction of the second object for the target inspection task, the inspection analysis report corresponding to the target inspection task can be displayed in the inspection status display interface.

[0054] In the embodiment of the present application, the administrator can pre-configure the task information of the inspection task of the target network system, and the task information at least includes: the network address of the target network system, the inspection time and the inspection items, wherein the types of the inspection items include at least one of the following: access status detection items, web page function detection items, system performance detection items, and system security detection items, and the main web page function detection items are configured with target operation elements, target operation items for target operation elements, and expected operation results corresponding to the target operation items; in actual application, the automated inspection equipment can obtain the task information, and execute each inspection item according to the inspection time, record the inspection results of each inspection item, generate an inspection analysis report according to the inspection results of each inspection item, and send the inspection analysis report to the pre-configured first object. After the task information is configured, the entire inspection process is automated, without manual participation, which can reduce labor costs, and when the target network system is found to be abnormal during the inspection process, the administrator will be notified immediately, which can avoid the problem that the manual inspection cannot find the abnormality in time due to the long cycle.

[0055] Example 2

[0056] According to an embodiment of the present application, a network system automated inspection device for implementing the network system automated inspection method in embodiment 1 is also provided. Figure 6 As shown, the network system automatic inspection device at least includes: an acquisition module 61, an execution module 62 and a feedback module 63, wherein:

[0057] The acquisition module 61 is used to acquire task information of a pre-configured inspection task of a target network system, wherein the task information at least includes: a network address of the target network system, an inspection time, and an inspection item, and the type of the inspection item includes at least one of the following: an access status detection item, a webpage function detection item, a system performance detection item, and a system security detection item, and the webpage function detection item is configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item;

[0058] An execution module 62, configured to execute each of the inspection items according to the inspection time, and record the detection result of each of the inspection items;

[0059] The feedback module 63 is used to generate an inspection analysis report according to the detection results of each inspection item, and send the inspection analysis report to the pre-configured first object.

[0060] The functions of each module of the network system automatic inspection device are explained below in conjunction with a specific implementation process.

[0061] As an optional implementation, the network system automated inspection device of the embodiment of the present application also includes a configuration module, which corresponds to a front-end task configuration interface, so that the management personnel can configure the task information of the inspection task of the target network system to be inspected.

[0062] Optionally, the configuration module can configure the basic task information of the inspection task of the target network system in response to the first configuration instruction entered by the second object in the task configuration interface, wherein the second object can be a management personnel, and the basic task information generally includes: task name, network address of the target network system, inspection time and type of inspection item, etc.

[0063] Optionally, the configuration module can also configure an access status detection item in response to a second configuration instruction entered by the second object in the task configuration interface, wherein a reconnection count threshold is configured in the access status detection item to limit the maximum reconnection count when access to the target network system fails, and the threshold can be set according to needs.

[0064] Optionally, the configuration module can also configure a web page function detection project in response to a third configuration instruction input by the second object in the task configuration interface. The project mainly detects the web page function, which is usually configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item, etc. In addition, a screenshot operation can also be configured in the web page function detection project, which is used to take a screenshot of the response result interface of the web page after executing the target operation item on the target operation element, so as to provide data for other web page function abnormality analysis.

[0065] Optionally, the configuration module can also configure a system performance detection project in response to a fourth configuration instruction entered by the second object in the task configuration interface, wherein the system performance detection project is configured with performance indicators to be detected and indicator threshold ranges, and the types of performance indicators to be detected generally include: operation response time, system resource occupancy rate, etc.

[0066] Optionally, the configuration module may further configure system security detection items in response to a fifth configuration instruction input by the second object in the task configuration interface, wherein the types of system security detection items include at least one of the following: XSS detection, SQL injection detection.

[0067] Optionally, the configuration module can also configure the inspection result notification method in response to the sixth configuration instruction entered by the second object in the task configuration interface. For example, the notification method can be configured as Fetion, WeChat public account, email, etc., and the first object that needs to be notified can be configured. The first object is usually the system operation and maintenance personnel.

[0068] When performing the inspection task, the acquisition module first obtains the task information of the inspection task of the pre-configured target network system, and then the execution module executes each inspection item according to the inspection time and records the detection result of each inspection item.

[0069] Optionally, when executing the access status detection project, the execution module can access the network address of the target network system during the inspection time. If the access is successful, the target network system access status is recorded as normal and the inspection process continues; if the access fails, reconnection is performed. If the number of reconnection times reaches the reconnection number threshold and the access is still not successful, the target network system access status is recorded as abnormal and the inspection process terminates.

[0070] Optionally, when executing the webpage function detection project, the execution module can locate the target operation element in the webpage corresponding to the target network system, execute the target operation item on the target operation element, and record the actual operation result obtained; wherein, locating the target operation element can be implemented using the XPath method, and executing the target operation item on the target operation element can be implemented using the Selenium component or the Cypress component, and the type of the target operation item can include: reading, inputting, clicking, selecting, dragging, etc. Afterwards, the actual operation result is compared with the expected operation result. If the actual operation result matches the expected operation result, the target network system webpage function is recorded as normal. If the actual operation result does not match the expected operation result, the target network system webpage function is recorded as abnormal. Further, if the second object is configured with a screenshot operation in the webpage function detection project, after executing the target operation item on the target operation element, optionally, the execution module also needs to take a screenshot of the response result interface of the webpage, and record the screenshot image in the detection result of the webpage function detection project.

[0071] Optionally, when executing the system performance detection project, the execution module can obtain and record the performance indicators of the target network system, compare the performance indicators with the indicator threshold interval, and if the performance indicators match the indicator threshold interval, record that the performance of the target network system is normal; if the performance indicators do not match the indicator threshold interval, record that the performance of the target network system is abnormal.

[0072] Optionally, when executing the system security detection project, the execution module can obtain and record the number of times the target network system is attacked within a preset time period. If the number of attacks does not exceed the preset threshold, the target network system is recorded as safe. If the number of attacks exceeds the preset threshold, the target network system is recorded as having a security risk.

[0073] As an optional implementation, after obtaining the test results of each inspection item, the feedback module can generate an inspection analysis report in a preconfigured format based on the test results of each inspection item; when the test result of any inspection item indicates that there is an abnormality in the target network system, the inspection analysis report is sent to the first object in real time through a preconfigured notification method, and a system abnormality alarm message is sent to the first object, so that the system operation and maintenance personnel can promptly deal with the abnormal problems of the target network system; if the test results of all inspection items indicate that the target network system is normal, the inspection analysis report is sent to the first object through a preconfigured notification method at a preset notification time, and a system normal notification message is sent to the first object, wherein the preset notification time can be set at off-duty time so as not to interfere with the normal work of the system operation and maintenance personnel.

[0074] Optionally, the network system automated inspection device of the embodiment of the present application also includes a display module, which corresponds to an inspection status display interface, for displaying the execution status and result information of the currently executed inspection task, or displaying statistical information on the execution status and results of multiple inspection tasks within a preset time period, wherein the preset time period can be one week, half a month, etc., which can be set specifically according to needs, and the two display modes can also be switched based on the needs of managers; further, the display module can also respond to the query instructions of the second object for the target inspection task, and display the inspection analysis report corresponding to the target inspection task in the inspection status display interface.

[0075] It should be noted that each module in the network system automatic inspection device in the embodiment of the present application corresponds one by one to each implementation step of the network system automatic inspection method in Example 1. Since a detailed description has been given in Example 1, some details not reflected in this embodiment can be referred to Example 1 and will not be elaborated here.

[0076] Example 3

[0077] According to an embodiment of the present application, a computer program product is also provided. The computer program product includes a computer program, wherein when the computer program is executed by a processor, the network system automatic inspection method in Example 1 is implemented.

[0078] According to an embodiment of the present application, a non-volatile storage medium is also provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the network system automatic inspection method in Example 1 by running the computer program.

[0079] According to an embodiment of the present application, a processor is also provided, which is used to run a computer program, wherein the network system automatic inspection method in Example 1 is executed when the computer program is running.

[0080] According to an embodiment of the present application, an electronic device is also provided, which includes: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the network system automatic inspection method in Example 1 through the computer program.

[0081] Specifically, when the computer program is running, the following steps are executed: obtaining task information of a pre-configured inspection task of a target network system, wherein the task information includes at least: a network address of the target network system, an inspection time, and an inspection item, the type of the inspection item includes at least one of the following: an access status detection item, a web page function detection item, a system performance detection item, and a system security detection item, the web page function detection item is configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item; executing each inspection item according to the inspection time, and recording the inspection result of each inspection item; generating an inspection analysis report based on the inspection result of each inspection item, and sending the inspection analysis report to the pre-configured first object.

[0082] As an optional implementation, the electronic device may be in the form of a mobile terminal, a computer terminal or a similar computing device. Figure 7 The hardware structure block diagram of an electronic device for implementing an automated inspection method for a network system is shown. Figure 7 As shown, the electronic device 70 may include one or more (shown as 702a, 702b, ..., 702n in the figure) processors 702 (the processor 702 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 704 for storing data, and a transmission device 706 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 7 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 7More or fewer components as shown, or with Figure 7 Different configurations are shown.

[0083] It should be noted that the one or more processors 702 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the electronic device 70. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0084] The memory 704 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the network system automated inspection method in the embodiment of the present application. The processor 702 executes various functional applications and data processing by running the software programs and modules stored in the memory 704, that is, to implement the vulnerability detection method of the above-mentioned application. The memory 704 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 704 may further include a memory remotely arranged relative to the processor 702, and these remote memories may be connected to the electronic device 70 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0085] The transmission device 706 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the electronic device 70. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 706 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0086] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 70 .

[0087] The serial numbers of the above embodiments are only for description and do not represent the advantages or disadvantages of the embodiments.

[0088] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0089] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0090] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0091] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0093] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A network system automated inspection method, It is characterized in that include: Obtaining task information of a pre-configured inspection task of a target network system, wherein the task information at least includes: a network address of the target network system, an inspection time, and an inspection item, the type of the inspection item includes at least one of the following: an access status detection item, a webpage function detection item, a system performance detection item, and a system security detection item, and the webpage function detection item is configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item; Execute each inspection item according to the inspection time, and record the inspection results of each inspection item; An inspection analysis report is generated according to the detection results of each of the inspection items, and the inspection analysis report is sent to a preconfigured first object.

2. The method according to claim 1, It is characterized in that Before obtaining task information of a preconfigured inspection task of the target network system, the method further includes: In response to a first configuration instruction input by the second object in the task configuration interface, basic task information of the inspection task of the target network system is configured, wherein the basic task information includes: task name, network address of the target network system, inspection time and type of inspection item; In response to a second configuration instruction input by the second object in the task configuration interface, configuring the access status detection item, wherein a reconnection count threshold is configured in the access status detection item; and / or, In response to a third configuration instruction input by the second object in the task configuration interface, configuring the webpage function detection item; and / or, In response to a fourth configuration instruction input by the second object in the task configuration interface, the system performance detection project is configured, wherein the system performance detection project is configured with performance indicators and indicator threshold intervals to be detected, and the types of the performance indicators include at least one of the following: operation response time, system resource occupancy rate; and / or, In response to a fifth configuration instruction input by the second object in the task configuration interface, the system security detection item is configured, wherein the type of the system security detection item includes at least one of the following: cross-site scripting attack XSS detection, structured query language SQL injection detection.

3. The method according to claim 2, It is characterized in that Execute each inspection item according to the inspection time, and record the inspection results of each inspection item, including: When executing the access status detection item, the network address of the target network system is accessed during the inspection time. If the access is successful, the target network system access status is recorded as normal, and the inspection process continues; if the access fails, a reconnection is performed. If the number of reconnections reaches the reconnection number threshold and the access is still unsuccessful, the target network system access status is recorded as abnormal, and the inspection process is terminated; When executing the webpage function detection project, the target operation element is located in the webpage corresponding to the target network system, and the target operation item is executed on the target operation element, and the actual operation result obtained is recorded, and the actual operation result is compared with the expected operation result. If the actual operation result matches the expected operation result, it is recorded that the webpage function of the target network system is normal; if the actual operation result does not match the expected operation result, it is recorded that the webpage function of the target network system is abnormal; and / or, When executing the system performance detection project, obtaining and recording the performance indicator of the target network system, comparing the performance indicator with the indicator threshold interval, if the performance indicator matches the indicator threshold interval, recording that the performance of the target network system is normal, if the performance indicator does not match the indicator threshold interval, recording that the performance of the target network system is abnormal; and / or, When executing the system security detection project, the number of times the target network system is attacked within a preset time period is obtained and recorded. If the number of attacks does not exceed the preset threshold, the target network system is recorded as safe. If the number of attacks exceeds the preset threshold, the target network system is recorded as having a security risk.

4. The method according to claim 3, It is characterized in that Locating the target operation element in the webpage corresponding to the target network system, and executing the target operation item on the target operation element, includes: Locating the target operation element in the webpage corresponding to the target network system by using the Extensible Markup Path Language (XPath); The target operation item is executed on the target operation element by using a Selenium component or a Cypress component, wherein the type of the target operation item includes at least one of the following: read, input, click, select, and drag.

5. The method according to claim 3, It is characterized in that The method further comprises: If the second object is configured with a screenshot operation in the web page function detection project, after executing the target operation item on the target operation element, a screenshot of the response result interface of the web page is taken, and the screenshot image is recorded in the detection result of the web page function detection project.

6. The method according to claim 1, It is characterized in that Generating an inspection analysis report according to the detection results of each inspection item, and sending the inspection analysis report to a preconfigured first object, including: Generate a pre-configured inspection analysis report based on the inspection results of each inspection item; When the detection result of any of the inspection items indicates that the target network system is abnormal, the inspection analysis report is sent to the first object in real time through a preconfigured notification method, and a system abnormality alarm message is sent to the first object, wherein the preconfigured notification method includes at least one of the following: Fetion, WeChat public account, and email; If the detection results of all the inspection items indicate that the target network system is normal, the inspection analysis report is sent to the first object through the preconfigured notification method at a preset notification time, and a system normal notification message is sent to the first object.

7. The method according to claim 1, It is characterized in that The method further comprises: Display the execution status and result information of the currently executed inspection task in the inspection status display interface, and / or display the execution status and result statistics of multiple inspection tasks within a preset time period; In response to a query instruction of the second object for the target inspection task, an inspection analysis report corresponding to the target inspection task is displayed in the inspection status display interface.

8. A network system automated inspection device, It is characterized in that include: An acquisition module is used to acquire task information of a pre-configured inspection task of a target network system, wherein the task information at least includes: a network address of the target network system, an inspection time, and an inspection item, and the type of the inspection item includes at least one of the following: an access status detection item, a web page function detection item, a system performance detection item, and a system security detection item, and the web page function detection item is configured with a target operation element, a target operation item for the target operation element, and an expected operation result corresponding to the target operation item; An execution module, used to execute each of the inspection items according to the inspection time, and record the detection results of each of the inspection items; A feedback module is used to generate an inspection analysis report according to the detection results of each inspection item, and send the inspection analysis report to a preconfigured first object.

9. A computer program product, It is characterized in that include: A computer program, wherein when the computer program is executed by a processor, the network system automatic inspection method according to any one of claims 1 to 7 is implemented.

10. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the network system automatic inspection method according to any one of claims 1 to 7 through the computer program.