CN110768872A - Inspection method, system, device, computer equipment and storage medium - Google Patents

Inspection method, system, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110768872A
CN110768872A CN201911054452.7A CN201911054452A CN110768872A CN 110768872 A CN110768872 A CN 110768872A CN 201911054452 A CN201911054452 A CN 201911054452A CN 110768872 A CN110768872 A CN 110768872A
Authority
CN
China
Prior art keywords
inspection
test result
original test
script
result file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911054452.7A
Other languages
Chinese (zh)
Other versions
CN110768872B (en
Inventor
曹小明
卢伟开
徐晖
周英耀
张华兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd
Southern Power Grid Digital Grid Research Institute Co Ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN201911054452.7A priority Critical patent/CN110768872B/en
Publication of CN110768872A publication Critical patent/CN110768872A/en
Application granted granted Critical
Publication of CN110768872B publication Critical patent/CN110768872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a polling method, a polling system, a polling device, a computer device and a storage medium. The method comprises the following steps: executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task; executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by a user; and displaying the inspection object and the corresponding inspection result. By adopting the method, the waste of manpower and resources can be reduced, and the inspection efficiency and the inspection accuracy can be improved.

Description

Inspection method, system, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, an apparatus, a computer device, and a storage medium for routing inspection.
Background
With the change of the deployment mode of the information system, the system architecture is increasingly complex, the technology is more advanced, and higher requirements and challenges are brought to the lean operation and maintenance service work of the system.
At present, automatic routing inspection of objects such as databases, servers, middleware, storage devices, network devices and the like is realized, but whether the objects are abnormal or not still needs to be manually logged in and clicked to check the running conditions one by one. However, due to the large scale of the system and the multiple application functions, the traditional manual inspection mode is adopted to inspect the information system for many times every day, and inspection work occupies a large amount of human resources and time resources. And each inspection is large-scale repetitive labor, and the manual inspection causes misoperation due to factors such as attention reduction and the like, so that the deviation of the inspection result is caused.
Therefore, the current manual inspection method has the problems of consuming manpower and time resources, low inspection efficiency and possible deviation of inspection results.
Disclosure of Invention
In view of the above, it is necessary to provide a method, a system, an apparatus, a computer device and a storage medium for routing inspection, which can reduce the waste of manpower and resources and improve the routing inspection efficiency and the routing inspection accuracy.
A method of inspection, the method comprising:
executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
and displaying the inspection object and the corresponding inspection result.
In one embodiment, after the step of executing the corresponding preset patrol inspection case script according to the patrol inspection task script, the method further includes:
generating an original test result file;
and analyzing the original test result file to obtain a routing inspection result.
In one embodiment, if an isolated internal network and an isolated external network are used for inspecting the same inspection object, recording an original test result file obtained by the internal network as an internal network original test result file; recording an original test result file obtained in the external network as an external network original test result file; the method further comprises the following steps:
converging the internal network original test result file and the external network original test result file to obtain a converged original test result file;
and analyzing the converged original test result file to obtain a routing inspection result.
In one embodiment, the step of aggregating the internal network original test result file and the external network original test result file includes:
initiating a file channel link of an internal and external network exchange platform;
and synchronizing the external network original test result file to the internal network through a file synchronization script, and converging the external network original test result file and the internal network original test result file.
In one embodiment, the inspection object is accessed in a multi-path mode, and inspection is carried out on the inspection object; the multipaths include:
sending an access request to the inspection object, and accessing the inspection object across network segments;
and if the inspection object provides service for the public network at the same time, sending the access request to the public network, and accessing the inspection object through the public network.
In one embodiment, the method further comprises:
dispatching user polling data according to the polling case script; the user inspection data is data generated by inspecting the inspection object by the user;
and simulating the operation of the user for polling the polling object according to the user polling data.
An inspection system, the system comprising: collection equipment, processing apparatus and display device:
the acquisition equipment is used for executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
the acquisition equipment is also used for executing a corresponding preset inspection case script according to the inspection task script; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
the acquisition equipment is also used for generating an original test result file;
the processing equipment is used for analyzing the original test result file to obtain a routing inspection result;
and the display equipment is used for displaying the inspection object and the corresponding inspection result.
An inspection device, the device comprising:
the inspection task execution module is used for executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
the inspection case execution module is used for executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
and the display module is used for displaying the inspection object and the corresponding inspection result.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
and displaying the inspection object and the corresponding inspection result.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of:
executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
and displaying the inspection object and the corresponding inspection result.
The inspection method, the inspection system, the inspection device, the computer equipment and the storage medium determine an inspection object and an inspection task by executing the inspection task script; by executing the inspection case script, the operation of inspecting the inspection object by the user is simulated; finally, after the inspection result is obtained, the inspection object and the corresponding inspection result are displayed, the inspection result of the inspection object can be visually obtained, manual login and clicking on the system are not needed, the operation condition of the inspection object is judged, and automatic inspection of the inspection object is realized, so that the waste of human resources and time is reduced, and the inspection efficiency and the inspection accuracy are improved.
Drawings
FIG. 1 is a diagram of an application scenario of the inspection method in one embodiment;
FIG. 2 is a schematic flow chart of a polling method in one embodiment;
FIG. 3 is a schematic diagram of an interface for inspection results in one embodiment;
FIG. 4 is a diagram illustrating an interface for polling case report download according to an embodiment;
FIG. 5 is a diagram illustrating an example of an application of an intranet and extranet application platform in one embodiment;
FIG. 6 is a block diagram of the inspection device in one embodiment;
FIG. 7 is a block diagram of the routing inspection system in one embodiment;
FIG. 8 is an overall architecture diagram of an inspection system in another embodiment;
FIG. 9 is a diagram of a back-end dispatch framework for the inspection system in one embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The inspection method can be applied to the application environment shown in fig. 1. Wherein the collection device 102 communicates with the presentation device 104 over a network. The display device 104 may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers.
In one embodiment, as shown in fig. 2, a polling method is provided, which is described by taking the example that the polling method is applied to the acquisition device 102 in fig. 1, and includes the following steps:
step S202, executing a polling task script; the inspection task script is used for determining an inspection object and an inspection task.
Wherein, the object of patrolling and examining can include: databases, middleware, operating systems, storage devices, network devices, and the like.
In specific implementation, the polling instruction is sent to the acquisition device 102 by triggering the polling icon on the display device 104, and the acquisition device 102 receives the polling instruction and executes the polling task script. Each inspection object has an independent inspection task script, and the inspection task script can be set to be executed at regular time, so that the inspection object is inspected once every set time, and automatic regular inspection of the inspection object is realized.
Preferably, if a plurality of inspection objects are inspected, the acquisition device 102 may perform task scheduling, and inspect different inspection objects according to a certain scheduling rule, for example, the inspection of different inspection objects may be completed according to a set priority order.
Step S204, executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by the user.
The patrol case script is an operation script provided for patrol objects to implement patrol, and is further instantiated for each patrol object.
In the specific implementation, when executing the inspection task script, the acquisition device 102 executes an inspection case script corresponding to the inspection object according to the inspection task script; and when the routing inspection case script is executed, scheduling the routing inspection data of the user, wherein the routing inspection data of the user is generated when the user performs routing inspection on the routing inspection object. According to the user simulation polling data, the operations of logging, clicking, screenshot and the like when the user patrols the polling object can be simulated. More specifically, the researcher, through a test framework integrated in the acquisition device 102: robotframwork (an automated testing framework) + Selenium2 (a testing framework for Web application user interfaces) + WebdriverAPI (Web driver API) as an automated testing framework. And can record and write the polling case script through Robotframwork-RIDE (Robotframwork-based client). Through the integration of Robotframwork and Selenium2, the patrol case script written in RIDE not only supports the Python patrol case script of the native Selenium2 test framework, but also supports the patrol case script based on the open-source framework Robotframwork.
After the execution of the inspection case script is completed, an original test result file is generated, the original test result file needs to be analyzed through the analysis script to obtain an inspection result, and whether an inspection object is abnormal or not is displayed. More specifically, the analysis of the original test file includes matching and screening the label pairs, the special fields and the like, and after the analysis, the analysis result is put into a database.
And step S206, displaying the inspection object and the corresponding inspection result.
In the specific implementation, after the original test result file is analyzed to obtain the inspection result, the inspection result can be input into the database through the warehousing script, and finally the inspection object and the inspection result corresponding to the inspection object are displayed on the display screen 104.
Optionally, the patrol object and the corresponding patrol result are displayed in a list form, the list may further include a URL (Uniform Resource Locator), a sampling time, a start time, an end time, a module/function number, and the like corresponding to the patrol object, and the list may be derived in an Excel format, as shown in fig. 3, which is a schematic diagram of a patrol result downloading interface.
In the inspection method, an inspection object and an inspection task are determined by executing an inspection task script; the method comprises the steps that by executing a polling case script, the operation of polling an object to be polled by a user is simulated; finally, after the inspection result is obtained, the inspection object and the corresponding inspection result are displayed, the inspection result of the inspection object can be visually obtained, manual login and clicking on the system are not needed, the operation condition of the inspection object is judged, and automatic inspection of the inspection object is realized, so that the waste of human resources and time is reduced, and the inspection efficiency and the inspection accuracy are improved.
In an embodiment, after the step of executing the corresponding preset polling case script according to the polling task script, the method further includes: generating an original test result file; and analyzing the original test result file to obtain a routing inspection result.
In the specific implementation, after the inspection case script is executed, an original test result file is generated to represent a result file generated by executing the inspection case script, because the original test result file is a file in an xml format and cannot visually obtain an inspection result, an output file needs to be analyzed, and specifically, the original test result file can be read by writing the script file, so that a required inspection result is obtained. In addition, after the routing inspection case script is executed, a screenshot file and a routing inspection case report are generated. The screenshot file is generated by simulating screenshot action in the user operation process and can be stored in the format of png or jpg. The patrol case report represents a collection result report of the execution condition of the patrol case script, and can also contain patrol time information. For example, in 2019, day 5, month 13, the patrol use case script execution condition of the operating system is: normal 10, failure 2. And a downloading interface of the historical inspection case report can be provided, as shown in fig. 4, the downloading interface is a schematic diagram of the downloading interface of the historical inspection case report, so that a user can download the historical inspection case report, further, historical inspection record backtracking and analysis can be performed on an abnormal inspection object, and the reason of the abnormality can be searched.
According to the embodiment, the original test result file is analyzed, so that the inspection result can be displayed more visually, and a user can know the inspection result of the inspection object through the display interface.
In one embodiment, if an isolated internal network and an isolated external network are used for polling the same polling object, recording an original test result file obtained by the internal network as an internal network original test result file; recording an original test result file obtained in an external network as an external network original test result file; the method further comprises the following steps: converging the original test result file of the internal network and the original test result file of the external network to obtain a converged original test result file; and analyzing the converged original test result file to obtain a routing inspection result.
In concrete realization, the accessible sets up the collection machine in collection equipment and visits the object of patrolling and examining, and then realizes patrolling and examining the object. Wherein, the intranet adopts the intranet collection machine to patrol and examine, and the extranet adopts the extranet collection machine to patrol and examine. When the intranet and the extranet inspect the same inspection object, for example, the intranet and the extranet both inspect the database. After the routing inspection is finished, the internal network original test result file obtained by the internal network and the external network original test result file obtained by the external network are firstly converged, and then the converged original test result files are analyzed to obtain a routing inspection result.
In this embodiment, the original internal network test result obtained by the internal network and the original external network test result obtained by the external network are collected and then analyzed, so that the running state of the inspection object can be comprehensively analyzed, and the accuracy of the inspection result can be improved.
It should be noted that the inner net and the outer net in the present application are only used to represent two different net ends, and are not used to limit the present application.
In one embodiment, the step of aggregating the internal network original test result file and the external network original test result file includes: initiating a file channel link of an internal and external network exchange platform; and synchronizing the original test result file of the external network to the internal network through the file synchronization script, and converging the original test result file of the internal network.
The internal and external network exchange platform can be an independent system for data ferry and file synchronization.
In the specific implementation, a file channel link of an internal and external network exchange platform is initiated, an external network original test result file is synchronized to the internal and external network exchange platform through a preset file synchronization script, then the internal and external network exchange platform sends the external network original test result file obtained synchronously to an internal network, the external network original test result file is converged with an internal network original test result file, and then the converged original test result file is obtained. As shown in fig. 5, for an application example of the internal and external network switching platform, the DMZ area may represent an isolation area, the IDC area may represent an internal network, and the DMZ area and the IDC area are two physically isolated local area networks, and the internal and external network switching platform converges an original test result file of the DMZ area and an original test result of the IDC area.
In this embodiment, the internal and external network exchange platform converges the original test result file of the internal network and the original test result file of the external network, thereby solving the problem of data convergence caused by physical isolation between the internal and external network.
In one embodiment, the routing inspection object is accessed in a multi-path mode, and routing inspection is carried out on the routing inspection object; wherein the multi-path includes: sending an access request to the inspection object, and accessing the inspection object across network segments; and if the inspection object provides service for the public network at the same time, sending an access request to the public network, and accessing the inspection object through the public network.
Wherein, the public network represents a third network end different from the internal network and the external network.
In concrete realization, accessible collection machine visits and patrols and examines the object, if patrol and examine the object and provide the service to public network simultaneously, then the route that collection machine visits this object of patrolling and examining has two: the first path is that the acquisition machine directly accesses the inspection object across the network segment; the second path is a public network for the access request of the acquisition machine, and the inspection object is accessed through the public network. As shown in fig. 5, for an application example of this embodiment, if the inspection object in the DMZ area provides services to the public network at the same time, the path of the DMZ area acquisition machine accessing the inspection object includes: the first path, i.e. the path denoted by 1; the second path, 2-1, 2-2.
In the embodiment, the multi-path covering method of the scene of the inspection case is adopted to cover various possible paths to access the inspection object, so that the inspection object can be accessed through other paths when one path is abnormal, and the stability and reliability of the inspection object by the acquisition machine can be improved.
In one embodiment, the inspection method further includes: scheduling user inspection data according to the inspection case script; the user inspection data is data generated by inspecting an inspection object by a user; and simulating the operation of the user for polling the polling object according to the polling data of the user.
In the specific implementation, when the inspection case script is executed, the user inspection data is dispatched from the database, wherein the user inspection data is generated by the inspection of the inspection object by the user. The user can simulate the operation of polling the polling object, namely logging in a page, clicking a button, screenshot and the like. More specifically, the acquisition device 102 schedules the user inspection data through an acquisition scheduling engine, where the scheduling engine framework includes a lightweight Schedule scheduling framework and a distributed battery scheduling engine framework, and different scheduling engine frameworks are adopted according to the service order of the inspection object, and the lightweight Schedule scheduling engine framework is adopted in the present application.
In the embodiment, the user inspection data is dispatched through the inspection case script, the operation of inspecting the inspection object by the user is simulated, the automatic inspection of the inspection object is realized, the manpower is liberated, the inspection personnel does not need to log in and click each inspection object, and the operation condition of the inspection object is judged.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in a strict order unless explicitly stated herein, and may be performed in other orders. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Based on the same idea as the heartbeat detection method in the above embodiment, the present invention further provides a heartbeat detection device, which can be used to execute the above heartbeat detection method. For convenience of illustration, only the parts related to the embodiments of the present invention are shown in the schematic structural diagram of the embodiments of the heartbeat detecting device, and those skilled in the art will understand that the illustrated structure does not constitute a limitation of the device, and may include more or less components than those illustrated, or combine some components, or arrange different components.
In one embodiment, as shown in fig. 6, there is provided an inspection apparatus including: the inspection task execution module 602, the inspection case execution module 604 and the display module 606, wherein:
an inspection task execution module 602, configured to execute an inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
the inspection case execution module 604 is used for executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting an inspection object by a user;
and the display module 606 is used for displaying the inspection object and the corresponding inspection result.
In one embodiment, further comprising: generating an original test result file; and analyzing the original test result file to obtain a routing inspection result.
In one embodiment, if an isolated internal network and an isolated external network are used for polling the same polling object, recording an original test result file obtained by the internal network as an internal network original test result file; recording an original test result file obtained in an external network as an external network original test result file; further comprising: converging the internal network original test result file and the external network original test result file to obtain a converged original test result file; and analyzing the converged original test result file to obtain a routing inspection result.
In one embodiment, further comprising: initiating a file channel link of an internal and external network exchange platform; and synchronizing the original test result file of the external network to the internal network through the file synchronization script, and converging the original test result file of the internal network.
In one embodiment, the routing inspection object is accessed in a multi-path mode, and routing inspection is carried out on the routing inspection object; further comprising: sending an access request to the inspection object, and accessing the inspection object across network segments; and if the inspection object provides service for the public network at the same time, sending an access request to the public network, and accessing the inspection object through the public network.
In one embodiment, further comprising: scheduling user polling data according to the polling case script; the user inspection data is data generated by inspecting an inspection object by a user; and simulating the operation of the user for polling the polling object according to the polling data of the user.
It should be noted that, the inspection device of the present invention corresponds to the inspection method of the present invention one to one, and the technical features and the advantageous effects described in the embodiments of the inspection method are all applicable to the embodiments of the inspection device.
In addition, all or part of the modules in the inspection device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 7, there is provided an inspection system including: acquisition device 702, processing device 704 and presentation device 706, wherein:
the acquisition device 702 is used for executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
the acquisition equipment 702 is also used for executing a corresponding preset inspection case script according to the inspection task script; the inspection case script is used for simulating the operation of inspecting the inspection object by the user;
the acquisition device 702 is further configured to generate an original test result file;
the processing device 704 is used for analyzing the original test result file to obtain a routing inspection result;
and the display device 706 is used for displaying the inspection object and the corresponding inspection result.
The inspection system can be used for executing the inspection method provided by any embodiment and has corresponding functions and beneficial effects.
For the specific definition of the inspection system, reference may be made to the definition of the inspection method above, and details are not repeated here.
In one embodiment, to facilitate understanding of the embodiments of the present application by those skilled in the art, the following description is given with reference to specific examples in the accompanying drawings. Referring to fig. 8, a diagram of an example of an inspection system is shown, including: the system comprises an acquisition layer, a processing layer, a display layer and an access range. Wherein the access range includes: OS (operating system), DB (database), middleware, business system, storage, and network. The acquisition layer first inspects objects within access range. The system adopts the following frames: nginx + uWSGI (Django) + Python.
As shown in fig. 9, for the back-end scheduling architecture diagram of the inspection system, different architectures are selected according to different service objects, and a corresponding timing script is executed according to a service order according to requirements by combining a lightweight Schedule scheduling framework and a distributed battery scheduling framework. Wherein, in this application, the frame that the rear end acquisition layer that simulation user carried out emulation and patrols and examines adopted is: robotframwork + Selenium2+ Webdriver rAPI; the framework adopted by the database and the operating system is as follows: python + Paramiko + Shell.
As shown in the following table, a time-dependent analysis table after the inspection system is applied is provided, in the table, a second column indicates different inspection object types, a third column indicates the time required for inspection by using a conventional inspection method, a fourth column indicates the time required for inspection by using the inspection method of the present application, and a fifth column indicates the percentage of efficiency improvement of the inspection method of the present application with respect to the conventional inspection method. As shown in the table, the original time required by each set of system for inspection is 240 seconds by adopting the traditional manual inspection method, while the time required by each set of system for inspection is 30 seconds by adopting the inspection method, and the efficiency is improved by 87.5 percent. And the routing inspection original data and the display data are subjected to script scheduling and front-end visual report frame solidification, so that the accuracy rate can basically reach 100%. In addition, the system comprehensively considers the aspects of multiple instances of Nginx + uWSGI application, database active-standby, monitoring of related acquisition programs, caching of consumption results, periodic timing backup of application and data and the like on the basis of the architecture, and the reliability and the availability of the system are improved.
Serial number Inspection type Original time (second/set) Present time (second/set) Efficiency improvement
1 Application url 15 3 ↑80%
2 Oracle 600 3 ↑99.5%
3 Mysql 300 14 ↑95.4%
4 Weblogic 600 5 ↑99.3%
5 Tomcat 60 4 ↑93%
6 Nginx 50 3 ↑94%
7 Backup of 120 3 ↑97.5%
8 User emulation 240 30 ↑87.5%
9 SqlServer 300 14 ↑95.4%
TABLE 1
In one embodiment, a computer device is provided, which may be a terminal, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a patrol method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting an inspection object by a user;
and displaying the inspection object and the corresponding inspection result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: generating an original test result file; and analyzing the original test result file to obtain a routing inspection result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the same inspection object is inspected by the isolated internal network and the isolated external network, recording an original test result file obtained by the internal network as an internal network original test result file; recording an original test result file obtained by the external network as an external network original test result file; further comprising: converging the internal network original test result file and the external network original test result file to obtain a converged original test result file; and analyzing the gathered original test result file to obtain a routing inspection result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: initiating a file channel link of an internal and external network exchange platform; and synchronizing the original test result file of the external network to the internal network through the file synchronization script, and converging the original test result file of the internal network.
In one embodiment, the processor, when executing the computer program, further performs the steps of: accessing the inspection object in a multi-path manner, and inspecting the inspection object; the multipath includes: sending an access request to the inspection object, and accessing the inspection object across network segments; and if the inspection object provides service for the public network at the same time, sending an access request to the public network, and accessing the inspection object through the public network.
In one embodiment, the processor, when executing the computer program, further performs the steps of: scheduling the user inspection data according to the inspection case script; the user inspection data is data generated by inspecting an inspection object by a user; and simulating the operation of the user for polling the polling object according to the polling data of the user.
In one embodiment, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting an inspection object by a user;
and displaying the inspection object and the corresponding inspection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating an original test result file; and analyzing the original test result file to obtain a routing inspection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the same inspection object is inspected by the isolated internal network and the isolated external network, recording an original test result file obtained by the internal network as an internal network original test result file; recording an original test result file obtained by the external network as an external network original test result file; further comprising: converging the internal network original test result file and the external network original test result file to obtain a converged original test result file; and analyzing the converged original test result file to obtain a routing inspection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: initiating a file channel link of an internal and external network exchange platform; and synchronizing the original test result file of the external network to the internal network through the file synchronization script, and converging the original test result file of the internal network.
In one embodiment, the computer program when executed by the processor further performs the steps of: accessing an inspection object by multiple paths, and inspecting the inspection object; the multipath includes: sending an access request to the inspection object, and accessing the inspection object across network segments; and if the inspection object provides service for the public network at the same time, sending an access request to the public network, and accessing the inspection object through the public network.
In one embodiment, the computer program when executed by the processor further performs the steps of: scheduling user polling data according to the polling case script; the user inspection data is data generated by inspecting an inspection object by a user; and simulating the operation of the user for polling the polling object according to the polling data of the user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A method of routing inspection, the method comprising:
executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
and displaying the inspection object and the corresponding inspection result.
2. The method according to claim 1, wherein after the step of executing the corresponding preset patrol use case script according to the patrol task script, the method further comprises:
generating an original test result file;
and analyzing the original test result file to obtain a routing inspection result.
3. The method according to claim 2, characterized in that if the same inspection object is inspected by an internal network and an external network which are isolated, an original test result file obtained by the internal network is recorded as an internal network original test result file; recording an original test result file obtained by the external network as an external network original test result file; the method further comprises the following steps:
converging the internal network original test result file and the external network original test result file to obtain a converged original test result file;
and analyzing the converged original test result file to obtain a routing inspection result.
4. The method according to claim 3, wherein the step of aggregating the intranet original test result file and the extranet original test result file comprises:
initiating a file channel link of an internal and external network exchange platform;
and synchronizing the external network original test result file to the internal network through a file synchronization script, and converging the external network original test result file and the internal network original test result file.
5. The method of claim 1, wherein the inspection object is inspected by accessing the inspection object in multiple paths; the multipaths include:
sending an access request to the inspection object, and accessing the inspection object across network segments;
and if the inspection object provides service for the public network at the same time, sending the access request to the public network, and accessing the inspection object through the public network.
6. The method of claim 1, further comprising:
dispatching user polling data according to the polling case script; the user inspection data is data generated by inspecting the inspection object by the user;
and simulating the operation of the user for polling the polling object according to the user polling data.
7. An inspection system, the system comprising: collection equipment, processing apparatus and display device:
the acquisition equipment is used for executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
the acquisition equipment is also used for executing a corresponding preset inspection case script according to the inspection task script; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
the acquisition equipment is also used for generating an original test result file;
the processing equipment is used for analyzing the original test result file to obtain a routing inspection result;
and the display equipment is used for displaying the inspection object and the corresponding inspection result.
8. An inspection device, the device comprising:
the inspection task execution module is used for executing the inspection task script; the inspection task script is used for determining an inspection object and an inspection task;
the inspection case execution module is used for executing a corresponding preset inspection case script according to the inspection task script to obtain an inspection result; the inspection case script is used for simulating the operation of inspecting the inspection object by a user;
and the display module is used for displaying the inspection object and the corresponding inspection result.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201911054452.7A 2019-10-31 2019-10-31 Inspection method, system, device, computer equipment and storage medium Active CN110768872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911054452.7A CN110768872B (en) 2019-10-31 2019-10-31 Inspection method, system, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911054452.7A CN110768872B (en) 2019-10-31 2019-10-31 Inspection method, system, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110768872A true CN110768872A (en) 2020-02-07
CN110768872B CN110768872B (en) 2020-07-17

Family

ID=69335423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911054452.7A Active CN110768872B (en) 2019-10-31 2019-10-31 Inspection method, system, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110768872B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654411A (en) * 2020-05-14 2020-09-11 山东中创软件商用中间件股份有限公司 Inspection method and related device
CN111797021A (en) * 2020-07-06 2020-10-20 广州嘉为科技有限公司 Prometheus standard format-based inspection method
CN111800307A (en) * 2020-05-14 2020-10-20 苏州霞军通讯有限公司 Communication equipment fault safety inspection system
CN112181807A (en) * 2020-09-08 2021-01-05 支付宝(杭州)信息技术有限公司 Application program inspection method, device and equipment
CN112787895A (en) * 2021-03-05 2021-05-11 上海中通吉网络技术有限公司 Network inspection method, device and equipment
CN113031969A (en) * 2021-03-24 2021-06-25 建信金融科技有限责任公司 Equipment deployment inspection method and device, computer equipment and storage medium
CN113656245A (en) * 2021-08-12 2021-11-16 北京中亦安图科技股份有限公司 Data inspection method and device, storage medium and processor
CN113918999A (en) * 2021-12-15 2022-01-11 天津联想协同科技有限公司 Method and device for establishing safe ferry channel, network disk and storage medium
CN114185886A (en) * 2021-11-15 2022-03-15 广西电网有限责任公司 VMware virtualization platform based inspection method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913452A (en) * 2006-08-18 2007-02-14 亿阳信通股份有限公司 Method and equipment of intelligent patrol detection for communication network
CN101056220A (en) * 2007-05-29 2007-10-17 中国移动通信集团江苏有限公司 Central monitoring method of the data service system without network management interface
CN101166208A (en) * 2006-10-20 2008-04-23 北京直真节点技术开发有限公司 A method and system for maintaining work automation
CN102571396A (en) * 2010-12-28 2012-07-11 中兴通讯股份有限公司 Communication network system and routing inspection subsystem and routing inspection method of communication equipment
CN102752770A (en) * 2011-04-21 2012-10-24 中国移动通信集团北京有限公司 Method and device for polling service system
US8407338B2 (en) * 2008-09-12 2013-03-26 Salesforce.Com Methods and systems for polling an on demand service
CN106713281A (en) * 2016-11-30 2017-05-24 国网北京市电力公司 Monitoring system
CN107066540A (en) * 2017-03-09 2017-08-18 中国电力科学研究院 Access/the conversion equipment and method of ultra-high voltage converter station device status data
CN108171339A (en) * 2017-12-13 2018-06-15 国电南瑞科技股份有限公司 Distribution comprehensive business management system and its emergency repair method based on mobile interchange

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913452A (en) * 2006-08-18 2007-02-14 亿阳信通股份有限公司 Method and equipment of intelligent patrol detection for communication network
CN101166208A (en) * 2006-10-20 2008-04-23 北京直真节点技术开发有限公司 A method and system for maintaining work automation
CN101056220A (en) * 2007-05-29 2007-10-17 中国移动通信集团江苏有限公司 Central monitoring method of the data service system without network management interface
US8407338B2 (en) * 2008-09-12 2013-03-26 Salesforce.Com Methods and systems for polling an on demand service
CN102571396A (en) * 2010-12-28 2012-07-11 中兴通讯股份有限公司 Communication network system and routing inspection subsystem and routing inspection method of communication equipment
CN102752770A (en) * 2011-04-21 2012-10-24 中国移动通信集团北京有限公司 Method and device for polling service system
CN106713281A (en) * 2016-11-30 2017-05-24 国网北京市电力公司 Monitoring system
CN107066540A (en) * 2017-03-09 2017-08-18 中国电力科学研究院 Access/the conversion equipment and method of ultra-high voltage converter station device status data
CN108171339A (en) * 2017-12-13 2018-06-15 国电南瑞科技股份有限公司 Distribution comprehensive business management system and its emergency repair method based on mobile interchange

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654411A (en) * 2020-05-14 2020-09-11 山东中创软件商用中间件股份有限公司 Inspection method and related device
CN111800307A (en) * 2020-05-14 2020-10-20 苏州霞军通讯有限公司 Communication equipment fault safety inspection system
CN111797021A (en) * 2020-07-06 2020-10-20 广州嘉为科技有限公司 Prometheus standard format-based inspection method
CN112181807A (en) * 2020-09-08 2021-01-05 支付宝(杭州)信息技术有限公司 Application program inspection method, device and equipment
CN112787895A (en) * 2021-03-05 2021-05-11 上海中通吉网络技术有限公司 Network inspection method, device and equipment
CN113031969A (en) * 2021-03-24 2021-06-25 建信金融科技有限责任公司 Equipment deployment inspection method and device, computer equipment and storage medium
CN113031969B (en) * 2021-03-24 2023-09-19 建信金融科技有限责任公司 Equipment deployment inspection method and device, computer equipment and storage medium
CN113656245A (en) * 2021-08-12 2021-11-16 北京中亦安图科技股份有限公司 Data inspection method and device, storage medium and processor
CN113656245B (en) * 2021-08-12 2024-07-16 北京中亦安图科技股份有限公司 Data inspection method and device, storage medium and processor
CN114185886A (en) * 2021-11-15 2022-03-15 广西电网有限责任公司 VMware virtualization platform based inspection method and system
WO2023082711A1 (en) * 2021-11-15 2023-05-19 广西电网有限责任公司 Vmware virtualization platform-based inspection method and system
CN113918999A (en) * 2021-12-15 2022-01-11 天津联想协同科技有限公司 Method and device for establishing safe ferry channel, network disk and storage medium

Also Published As

Publication number Publication date
CN110768872B (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
CN109302522B (en) Test method, test device, computer system, and computer medium
US10909028B1 (en) Multi-version regression tester for source code
CN103235756B (en) A kind of emulation test method of embedded system subregion application software
CN107506300B (en) User interface testing method, device, server and storage medium
US9697104B2 (en) End-to end tracing and logging
CN103577328A (en) Method and device for analyzing performance of application
US10528456B2 (en) Determining idle testing periods
CN107045475B (en) Test method and device
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN102541732A (en) Method for constructing Web automatic testing framework
CN111881014A (en) System test method, device, storage medium and electronic equipment
US20130091391A1 (en) User-coordinated resource recovery
CN110597704B (en) Pressure test method, device, server and medium for application program
CN113590454A (en) Test method, test device, computer equipment and storage medium
CN112051771A (en) Multi-cloud data acquisition method and device, computer equipment and storage medium
CN111970151A (en) Flow fault positioning method and system for virtual and container network
CN107844486B (en) Method and system for analyzing webpage problems for client
CN110659435A (en) Page data acquisition processing method and device, computer equipment and storage medium
CN114461533A (en) Method, system, electronic device and storage medium for automatic testing of Web page
CN116860614A (en) Performance test method, apparatus, device, storage medium, and program product
CN115982049A (en) Abnormity detection method and device in performance test and computer equipment
CN113031969B (en) Equipment deployment inspection method and device, computer equipment and storage medium
CN115509925A (en) Automatic interface testing method and related device
US20130006568A1 (en) Test Operation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 1301, Chengtou building, No. 106, Fengze East Road, Nansha District, Guangzhou City, Guangdong Province

Patentee after: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

Country or region after: China

Address before: Room 1301, Chengtou building, No. 106, Fengze East Road, Nansha District, Guangzhou City, Guangdong Province

Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240306

Address after: Floor 12, Unit 2, Building 2, No. 11 Spectral Middle Road, Huangpu District, Guangzhou City, Guangdong Province, 510700, China

Patentee after: China Southern Power Grid Digital Power Grid Group Information Communication Technology Co.,Ltd.

Country or region after: China

Address before: Room 1301, Chengtou building, No. 106, Fengze East Road, Nansha District, Guangzhou City, Guangdong Province

Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

Country or region before: China