Automatic inspection method and inspection device for information system

文档序号:154220 发布日期:2021-10-26 浏览:26次 中文

阅读说明:本技术 信息系统的自动巡检方法以及巡检装置 (Automatic inspection method and inspection device for information system ) 是由 孙少华 杨林慧 韩全 方晨 侯骏 于 2021-08-11 设计创作,主要内容包括:本申请提供了一种信息系统的自动巡检方法以及巡检装置,该方法包括:向目标系统发送访问信息,目标系统为待巡检的信息系统;接收目标系统的响应信息,响应信息为目标系统响应于访问信息生成的信息,响应信息包括状态码;对预定界面进行截图,得到预定图像,预定界面为访问信息对应的目标系统的界面;至少根据响应信息以及预定图像,生成巡检报告。该方法实现了信息系统的自动化巡检以及巡检报告的自动生成,解决了现有技术中人工巡检耗时费力,运维工作效率较低的问题,保证了信息系统的运维效率较高,并且解放了生产力。(The application provides an automatic inspection method and an inspection device for an information system, wherein the method comprises the following steps: sending access information to a target system, wherein the target system is an information system to be inspected; receiving response information of the target system, wherein the response information is information generated by the target system in response to the access information and comprises a status code; screenshot is carried out on a preset interface to obtain a preset image, wherein the preset interface is an interface of a target system corresponding to the access information; and generating a patrol inspection report at least according to the response information and the predetermined image. The method realizes the automatic routing inspection of the information system and the automatic generation of the routing inspection report, solves the problems of time and labor consumption and lower operation and maintenance work efficiency of manual routing inspection in the prior art, ensures higher operation and maintenance efficiency of the information system and liberates productivity.)

1. An automatic inspection method of an information system is characterized by comprising the following steps:

sending access information to a target system, wherein the target system is an information system to be inspected;

receiving response information of the target system, wherein the response information is information generated by the target system in response to the access information and comprises a status code;

screenshot is carried out on a preset interface to obtain a preset image, wherein the preset interface is the interface of the target system corresponding to the access information;

and generating a patrol inspection report at least according to the response information and the preset image.

2. The method of claim 1, wherein generating a patrol report based on at least the response information and the predetermined image comprises:

determining a routing inspection result according to the state code;

and generating the inspection report according to the inspection result and the predetermined image.

3. The method of claim 2, wherein determining the routing inspection result based on the status code comprises:

under the condition that the state code is a first preset value, determining that the preset interface response is normal;

determining a server error of the target system if the status code is a second predetermined value;

and determining that the access information is wrong under the condition that the status code is a second preset value.

4. The method of claim 3,

after determining that the predetermined interface response is abnormal, the method further comprises:

a first warning alert message is generated that,

after determining a server error for the target system, the method further comprises:

a second warning alert message is generated that,

after determining that the access information is erroneous, the method further comprises:

and generating third alarm prompt information.

5. The method of claim 1,

before generating a patrol inspection report according to at least the response information and the predetermined image, the method further comprises:

the transmission time of the access information is acquired,

generating a patrol inspection report at least according to the response information and the predetermined image, wherein the patrol inspection report comprises:

and generating the inspection report according to the response information, the preset image and the sending time.

6. The method of claim 1, wherein sending access information to a target system comprises:

and sending the access information to the target system at intervals of a predetermined time.

7. The utility model provides an information system's automatic inspection device which characterized in that includes:

the system comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for sending access information to a target system, and the target system is an information system to be inspected;

a receiving unit, configured to receive response information of the target system, where the response information is information generated by the target system in response to the access information, and the response information includes a status code;

the screenshot unit is used for screenshot a preset interface to obtain a preset image, wherein the preset interface is the interface of the target system corresponding to the access information;

and the first generating unit is used for generating an inspection report at least according to the response information and the preset image.

8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program performs the method of any one of claims 1 to 6.

9. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method of any of claims 1 to 6.

10. An electronic device, comprising: one or more processors, memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the method of any of claims 1-6.

Technical Field

The present application relates to the field of information systems, and in particular, to an automatic inspection method, an inspection device, a computer-readable storage medium, a processor, and an electronic device for an information system.

Background

In order to better guarantee the safety and stability of information communication operation, according to the requirements of the information operation and maintenance service management standard of the national grid company Limited, each unit needs to strengthen the inspection tour of the information system and the operation and maintenance management of infrastructure, so as to ensure the stable and reliable operation of the information system. In the general idea of IT health management work in the department of transportation and security in 2020, IT is explicitly pointed out that each unit needs to plan an information communication operation and maintenance management system practically and steadily advance the burden reduction work of basic operation and maintenance management. Through investigating basic operation and maintenance work, it is found that basic operation and maintenance work such as a large amount of system homepage polling, system interface polling, web detection and the like exists in current information operation and maintenance work, and the prominent problems and the challenges of the basic operation and maintenance work are as follows:

(1) the web routing inspection workload is large: because the B/S (Browser/Server) model is based on the structural mode of the Browser/Server, the Browser/Server has the advantages of convenience in use, strong expansibility, simplicity in maintenance and the like, national network information systems are mostly designed by adopting the B/S model, so that a large amount of Web inspection work exists in the operation and maintenance of the information system, through statistics, 93 pieces of inspection homepages, 176 pieces of cluster and main and standby Web pages, 283 pieces of Web Service API (Application Programming Interface) and 143 pieces of other Web detection based on B/S Application are involved in 93 sets of information systems for daily inspection of a company, and the daily inspection is divided into morning and afternoon twice, and 1390 accumulated inspections are performed every day;

(2) the traditional inspection mode falls behind: the traditional information system web daily inspection is mostly carried out by manually opening a browser to input website inspection item by item, the inspection result needs to be manually captured and pasted to a word document, the work is repeated and low in efficiency, the inspection time is 10 seconds per set of web inspection, the inspection result is stored for 5 seconds, the inspection time is 15 seconds for single inspection, the accumulated inspection time is 5.79 hours for 1390 web daily inspection times every day, the traditional inspection mode is time-consuming, labor-consuming and automatic, the inspection level is low, and the web inspection method is not beneficial to liberation of productivity.

Therefore, a method is needed to solve the problems of time and labor consumption and low operation and maintenance efficiency of the manual inspection information system in the prior art.

The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.

Disclosure of Invention

The main purpose of the present application is to provide an automatic inspection method, an inspection device, a computer-readable storage medium, a processor and an electronic device for an information system, so as to solve the problems of time and labor consumption and low operation and maintenance efficiency of a manual inspection information system in the prior art.

According to an aspect of an embodiment of the present invention, there is provided an automatic inspection method for an information system, including: sending access information to a target system, wherein the target system is an information system to be inspected; receiving response information of the target system, wherein the response information is information generated by the target system in response to the access information and comprises a status code; screenshot is carried out on a preset interface to obtain a preset image, wherein the preset interface is the interface of the target system corresponding to the access information; and generating a patrol inspection report at least according to the response information and the preset image.

Optionally, generating a patrol inspection report according to at least the response information and the predetermined image, including: determining a routing inspection result according to the state code; and generating the inspection report according to the inspection result and the predetermined image.

Optionally, determining a polling result according to the status code includes: under the condition that the state code is a first preset value, determining that the preset interface response is normal; determining a server error of the target system if the status code is a second predetermined value; and determining that the access information is wrong under the condition that the status code is a second preset value.

Optionally, after determining that the predetermined interface response is abnormal, the method further comprises: generating a first alert prompt, the method further comprising, after determining a server error for the target system: generating second alert prompt information, after determining that the access information is incorrect, the method further comprising: and generating third alarm prompt information.

Optionally, before generating the inspection report according to at least the response information and the predetermined image, the method further includes: acquiring the sending time of the access information, and generating an inspection report at least according to the response information and the predetermined image, wherein the method comprises the following steps: and generating the inspection report according to the response information, the preset image and the sending time.

Optionally, sending the access information to the target system includes: and sending the access information to the target system at intervals of a predetermined time.

According to another aspect of the embodiment of the present invention, an automatic inspection device for an information system is further provided, including a sending unit, a receiving unit, a screenshot unit, and a first generating unit, where the sending unit is configured to send access information to a target system, and the target system is an information system to be inspected; the receiving unit is configured to receive response information of the target system, where the response information is information generated by the target system in response to the access information, and the response information includes a status code; the screenshot unit is used for screenshot a preset interface to obtain a preset image, and the preset interface is the interface of the target system corresponding to the access information; the first generating unit is used for generating an inspection report at least according to the response information and the preset image.

According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes any one of the methods.

According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes any one of the methods.

According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: one or more processors, memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the methods described herein.

In the embodiment of the invention, the automatic inspection method of the information system firstly sends access information to a target system, and then receives corresponding response information generated by the target system in response to the access information, wherein the response information comprises a state code; screenshot is carried out on a preset interface of the target system, wherein the preset interface corresponds to the access information; and finally, generating a routing inspection report according to the response information and the preset image. According to the method, the access information is sent to the information system, the screenshot is carried out, the predetermined interface of the information system corresponding to the access information generates the inspection report of the information system according to the received response information and the corresponding screenshot, the automatic inspection of the information system and the automatic generation of the inspection report are realized, the problems that in the prior art, manual inspection is time-consuming and labor-consuming, the operation and maintenance work efficiency is low are solved, the operation and maintenance efficiency of the information system is high, and the productivity is liberated.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:

fig. 1 shows a schematic flow diagram generated by an automatic inspection method of an information system according to an embodiment of the present application;

fig. 2 shows a schematic diagram of an automatic inspection device of an information system according to an embodiment of the application.

Detailed Description

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.

As mentioned in the background, the manual inspection of the information system in the prior art is time-consuming and labor-consuming, and the operation and maintenance work efficiency is low, and in order to solve the above problems, in an exemplary embodiment of the present application, an automatic inspection method, an inspection device, a computer-readable storage medium, a processor, and an electronic device for the information system are provided.

According to the embodiment of the application, an automatic inspection method of an information system is provided.

Fig. 1 is a flowchart of an automatic inspection method of an information system according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:

step S101, sending access information to a target system, wherein the target system is an information system to be inspected;

step S102, receiving response information of the target system, wherein the response information is information generated by the target system in response to the access information, and the response information comprises a status code;

step S103, screenshot is carried out on a preset interface to obtain a preset image, wherein the preset interface is the interface of the target system corresponding to the access information;

and step S104, generating a patrol inspection report at least according to the response information and the preset image.

The automatic inspection method of the information system comprises the steps of firstly sending access information to a target system, and then receiving corresponding response information generated by the target system in response to the access information, wherein the response information comprises a state code; screenshot is carried out on a preset interface of the target system, wherein the preset interface corresponds to the access information; and finally, generating a patrol inspection report according to the response information and the preset image. According to the method, the access information is sent to the information system, the preset interface of the information system corresponding to the access information is captured, and the routing inspection report of the information system is generated according to the received response information and the corresponding captured image, so that the automatic routing inspection of the information system and the automatic generation of the routing inspection report are realized, the problems that manual routing inspection in the prior art is time-consuming and labor-consuming and the operation and maintenance work efficiency is low are solved, the operation and maintenance efficiency of the information system is high, and the productivity is liberated.

In an actual application process, the status code is an http (Hyper Text Transfer Protocol) status code, and the information system includes a system based on a B/S architecture. The predetermined interface comprises a web homepage, a cluster and main and standby web pages, an API page, a web detection page and the like.

According to a specific embodiment of the present application, generating a polling report at least according to the response information and the predetermined image includes: determining a polling result according to the state code; and generating the inspection report according to the inspection result and the preset image. Therefore, the problem that inspection efficiency is low due to the fact that a browser is manually opened to input website inspection item by item and inspection results are manually captured and pasted to store is further solved, and automation of inspection operation and maintenance work of the information system is further guaranteed.

In order to further ensure that the inspection result is obtained simply and accurately, according to another specific embodiment of the present application, the determining the inspection result according to the status code includes: under the condition that the state code is a first preset value, determining that the preset interface response is normal; determining a server error of the target system when the status code is a second predetermined value; and determining that the access information is wrong when the status code is a second predetermined value.

In a specific embodiment, the first predetermined value is 200, the second predetermined value is 400, and the third predetermined value is 500. Of course, the status code is not limited to the first predetermined value, the second predetermined value and the third predetermined value, and the inspection result is not limited to the predetermined interface response condition, the server operation condition and whether the access information is wrong or not, and a person skilled in the art can set the access information according to actual needs to implement automatic inspection of other operation conditions of the information system.

In another specific embodiment of the present application, after determining that the predetermined interface response is abnormal, the method further includes: generating a first alert notification, after determining that the server of the target system is faulty, the method further comprising: generating second alarm prompt information, and after determining that the access information is wrong, the method further comprises: and generating third alarm prompt information. The method and the system send different alarm prompt information aiming at different routing inspection abnormal results of the information system, and are convenient for operation and maintenance personnel to determine the abnormal reason of the information system according to the alarm prompt information.

Specifically, before generating the inspection report at least according to the response information and the predetermined image, the method further includes: acquiring the sending time of the access information, and generating an inspection report at least according to the response information and the predetermined image, wherein the method comprises the following steps: and generating the inspection report according to the response information, the preset image and the sending time. The inspection result of the inspection report, the screenshot of the preset interface and the inspection time are obtained, so that the automatic inspection information system is further realized, the inspection report is automatically generated, meanwhile, the obtained inspection report is further ensured to be complete, and the follow-up tracing is facilitated.

In the actual application process, sending access information to a target system, including: and transmitting the access information to the target system every predetermined time. Therefore, automatic periodic inspection of the information system is further realized, the problems that manual inspection is time-consuming and labor-consuming and operation and maintenance work efficiency is low are further solved, and the operation and maintenance efficiency of the information system is further guaranteed to be high. The predetermined time period can be flexibly set by those skilled in the art according to actual situations.

In the actual application process, the characteristic that an open source worker has web service detection can be utilized, and by combining http state codes, the traditional inspection mode that a browser is manually opened and web addresses are input one by one to inspect web services is converted into code execution, and the mode that the inspection result is manually captured and pasted to be stored in a word document is converted into the mode that the inspection result is automatically recorded and an inspection report is established. And encapsulating the action execution and code implementation process by using a script file to form an automatic web inspection script. By operating the web inspection script, the web service is inspected item by item, the inspection result is automatically recorded and an inspection report is established, and by setting a timing task, the inspection script can be automatically executed periodically and regularly, so that one-click automatic inspection operation and maintenance of information system homepages, interfaces and the like are thoroughly realized, and the inspection code has strong universality.

In a specific embodiment, the source-opening tool includes a wget tool and a Curl tool, the wget tool is a source-opening tool for automatically downloading files from a network, supports downloading via three most common TCP/IP protocols, namely HTTP, HTTPs (Hyper Text Transfer Protocol over secure session), FTP (File Transfer Protocol), and may use an HTTP proxy; the Curl tool is an open source file transfer tool which works under a command line by using URL (Uniform Resource Locator) grammar and supports file uploading and downloading, and the wegt tool and the Curl tool are self-contained service components of an open source linux system. The script file comprises a Bat batch file and a Shell script, wherein the Bat batch file is in a DOS (Disk Operating System) and a Windows (random) System, the Bat file is an executable file and is composed of a series of commands, and the Bat batch file can comprise calls to other programs; the Shell script is a program written by C language, which is a bridge for users to use Linux, and is a command language and a programming language, and the sh file is an executable file of the Shell script.

According to another specific embodiment of the present application, sending access information to a target system includes: and responding to the preset operation acted on the web patrol script, and running the web patrol script to transmit the access information to the target system.

The automatic inspection method of the information system solves the problems of large workload and low efficiency of manual inspection in the prior art, has the advantages of high inspection speed, light weight, easiness in use, high safety, portability and the like, ensures that the automatic operation and maintenance level of the information system is higher, and has better inspection efficiency.

It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.

The embodiment of the present application further provides an automatic inspection device for an information system, and it should be noted that the automatic inspection device for an information system according to the embodiment of the present application can be used to execute the automatic inspection method for an information system according to the embodiment of the present application. The following introduces an automatic inspection device of an information system provided by an embodiment of the present application.

Fig. 2 is a schematic diagram of an automatic inspection device of an information system according to an embodiment of the present application. As shown in fig. 2, the apparatus includes a sending unit 10, a receiving unit 20, a screenshot unit 30, and a first generating unit 40, where the sending unit 10 is configured to send access information to a target system, and the target system is an information system to be inspected; the receiving unit 20 is configured to receive response information of the target system, where the response information is generated by the target system in response to the access information, and the response information includes a status code; the screenshot unit 30 is configured to capture a screenshot of a predetermined interface to obtain a predetermined image, where the predetermined interface is an interface of the target system corresponding to the access information; the first generating unit 40 is configured to generate an inspection report based on at least the response information and the predetermined image.

The automatic inspection device of the information system transmits access information to a target system through a transmitting unit, and receives corresponding response information generated by the target system in response to the access information through a receiving unit, wherein the response information comprises a status code; screenshot is carried out on a preset interface of the target system through the screenshot unit, and the preset interface corresponds to the access information; and generating a patrol inspection report according to the response information and the preset image by the first generating unit. The device of the application generates the patrol inspection report of the information system by sending the access information to the information system and screenshot the preset interface of the information system corresponding to the access information and according to the received response information and the corresponding screenshot, so that the automation patrol inspection of the information system and the automatic generation of the patrol inspection report are realized, the problems of time and labor consumption and lower operation and maintenance work efficiency of manual patrol inspection in the prior art are solved, the higher operation and maintenance efficiency of the information system is ensured, and the productivity is liberated.

In an actual application process, the state code is an http state code, and the information system includes a system based on a B/S architecture. The predetermined Interface includes a web homepage, a cluster and a host/standby web page, an API (Application Programming Interface) page, a web probe page, and the like.

According to a specific embodiment of the present application, the first generating unit includes a determining module and a first generating module, wherein the determining module is configured to determine a polling result according to the status code; the first generating module is used for generating the inspection report according to the inspection result and the preset image. Therefore, the problem that inspection efficiency is low due to the fact that a browser is manually opened to input website inspection item by item and inspection results are manually captured and pasted to store is further solved, and automation of inspection operation and maintenance work of the information system is further guaranteed.

In order to further ensure that the inspection result is obtained more simply and more accurately, according to another specific embodiment of the present application, the determining module includes a first determining submodule, a second determining submodule, and a third determining submodule, where the first determining submodule is configured to determine that the predetermined interface response is normal when the status code is a first predetermined value; the second determining submodule is used for determining the server error of the target system under the condition that the status code is a second preset value; the third determining submodule is configured to determine that the access information is erroneous when the status code is a second predetermined value.

In a specific embodiment, the first predetermined value is 200, the second predetermined value is 400, and the third predetermined value is 500. Of course, the status code is not limited to the first predetermined value, the second predetermined value and the third predetermined value, and the inspection result is not limited to the predetermined interface response condition, the server operation condition and whether the access information is wrong or not, and a person skilled in the art can set the access information according to actual needs to implement automatic inspection of other operation conditions of the information system.

In another specific embodiment of the present application, the apparatus further includes a second generating unit, the second generating unit is configured to generate first alarm notification information after determining that the predetermined interface response is abnormal, the apparatus further includes a third generating unit, the third generating unit is configured to generate second alarm notification information after determining that the server of the target system is wrong, and the apparatus further includes a fourth generating unit, the fourth generating unit is configured to generate third alarm notification information after determining that the access information is wrong. The method and the system send different alarm prompt information aiming at different routing inspection abnormal results of the information system, and are convenient for operation and maintenance personnel to determine the abnormal reason of the information system according to the alarm prompt information.

Specifically, the apparatus further includes an acquisition unit configured to acquire a transmission time of the access information before generating an inspection report based on at least the response information and the predetermined image, and the first generation unit includes a second generation module configured to generate the inspection report based on the response information, the predetermined image, and the transmission time. The inspection result of the inspection report, the screenshot of the preset interface and the inspection time are obtained, so that the automatic inspection information system is further realized, the inspection report is automatically generated, meanwhile, the obtained inspection report is further ensured to be complete, and the follow-up tracing is facilitated.

In an actual application process, the sending unit includes a first sending module, and the first sending module is configured to send the access information to the target system every predetermined time. Therefore, automatic periodic inspection of the information system is further realized, the problems that manual inspection is time-consuming and labor-consuming and operation and maintenance work efficiency is low are further solved, and the operation and maintenance efficiency of the information system is further guaranteed to be high. The predetermined time period can be flexibly set by those skilled in the art according to actual situations.

In the actual application process, the characteristic that an open source worker has web service detection can be utilized, and by combining http state codes, the traditional inspection mode that a browser is manually opened and web addresses are input one by one to inspect web services is converted into code execution, and the mode that the inspection result is manually captured and pasted to be stored in a word document is converted into the mode that the inspection result is automatically recorded and an inspection report is established. And encapsulating the action execution and code implementation process by using a script file to form an automatic web inspection script. By operating the web inspection script, the web service is inspected item by item, the inspection result is automatically recorded and an inspection report is established, and by setting a timing task, the inspection script can be automatically executed periodically and regularly, so that one-click automatic inspection operation and maintenance of information system homepages, interfaces and the like are thoroughly realized, and the inspection code has strong universality.

In a specific embodiment, the source-opening tool includes a wget tool and a Curl tool, the wget tool is a source-opening tool for automatically downloading files from a network, supports downloading via three most common TCP/IP protocols, namely HTTP, HTTPs (Hyper Text Transfer Protocol over secure session), FTP (File Transfer Protocol), and may use an HTTP proxy; the Curl tool is an open source file transfer tool which works under a command line by using URL (Uniform Resource Locator) grammar and supports file uploading and downloading, and the wegt tool and the Curl tool are self-contained service components of an open source linux system. The script file comprises a Bat batch file and a Shell script, wherein the Bat batch file is in a DOS (Disk Operating System) and a Windows (random) System, the Bat file is an executable file and is composed of a series of commands, and the Bat batch file can comprise calls to other programs; the Shell script is a program written by C language, which is a bridge for users to use Linux, and is a command language and a programming language, and the sh file is an executable file of the Shell script.

According to another specific embodiment of the present application, the transmitting unit includes a second transmitting module for executing the web patrol script in response to a predetermined operation applied to the web patrol script to transmit the access information to the target system.

The automatic inspection device of the information system solves the problems of large workload and low efficiency of manual inspection in the prior art, has the advantages of high inspection speed, light weight, easiness in use, high safety, portability and the like, ensures that the automatic operation and maintenance level of the information system is higher, and has better inspection efficiency.

The automatic inspection device of the information system comprises a processor and a memory, wherein the sending unit, the receiving unit, the screenshot unit, the first generating unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that the efficiency of the manual inspection information system is low in the prior art is solved by adjusting the kernel parameters.

The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.

An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, the program implementing the automatic inspection method of the information system when being executed by a processor.

The embodiment of the invention provides a processor, which is used for running a program, wherein the automatic inspection method of the information system is executed when the program runs.

The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:

step S101, sending access information to a target system, wherein the target system is an information system to be inspected;

step S102, receiving response information of the target system, wherein the response information is information generated by the target system in response to the access information, and the response information comprises a status code;

step S103, screenshot is carried out on a preset interface to obtain a preset image, wherein the preset interface is the interface of the target system corresponding to the access information;

and step S104, generating a patrol inspection report at least according to the response information and the preset image.

The device herein may be a server, a PC, a PAD, a mobile phone, etc.

The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:

step S101, sending access information to a target system, wherein the target system is an information system to be inspected;

step S102, receiving response information of the target system, wherein the response information is information generated by the target system in response to the access information, and the response information comprises a status code;

step S103, screenshot is carried out on a preset interface to obtain a preset image, wherein the preset interface is the interface of the target system corresponding to the access information;

and step S104, generating a patrol inspection report at least according to the response information and the preset image.

In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:

1) the automatic inspection method of the information system comprises the steps of firstly sending access information to a target system, and then receiving corresponding response information generated by the target system in response to the access information, wherein the response information comprises a state code; screenshot is carried out on a preset interface of the target system, wherein the preset interface corresponds to the access information; and finally, generating a patrol inspection report according to the response information and the preset image. According to the method, the access information is sent to the information system, the preset interface of the information system corresponding to the access information is captured, and the routing inspection report of the information system is generated according to the received response information and the corresponding captured image, so that the automatic routing inspection of the information system and the automatic generation of the routing inspection report are realized, the problems that manual routing inspection in the prior art is time-consuming and labor-consuming and the operation and maintenance work efficiency is low are solved, the operation and maintenance efficiency of the information system is high, and the productivity is liberated.

2) The automatic inspection device of the information system sends access information to a target system through a sending unit, and receives corresponding response information generated by the target system in response to the access information through a receiving unit, wherein the response information comprises a status code; screenshot is carried out on a preset interface of the target system through the screenshot unit, and the preset interface corresponds to the access information; and generating a patrol inspection report according to the response information and the preset image by the first generating unit. The device of the application generates the patrol inspection report of the information system by sending the access information to the information system and screenshot the preset interface of the information system corresponding to the access information and according to the received response information and the corresponding screenshot, so that the automation patrol inspection of the information system and the automatic generation of the patrol inspection report are realized, the problems of time and labor consumption and lower operation and maintenance work efficiency of manual patrol inspection in the prior art are solved, the higher operation and maintenance efficiency of the information system is ensured, and the productivity is liberated.

The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于区块链的警务资源数据治理协同方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!