Software system inspection method, device, equipment and medium

By determining the functions and middleware to be inspected in the software system, setting and executing the inspection content, generating and forwarding the output text, the problem of low level of inspection automation in the existing software system is solved, and higher system stability and Fault response efficiency.

CN119440940APending Publication Date: 2025-02-14CHENGDU PUBLIC SECURITY INFORMATION TECHNOLOGY RESEARCH INSTITUTE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411394871.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing software system inspection methods have low degree of automation, resulting in problems such as untimely response, insufficient coverage and low accuracy.

Method used

By determining the functions to be inspected and related middleware in the target software system, setting up the inspection content and conducting inspections, generating output text, and outputting it to the ferry directory of the target platform, and finally forwarding to the target client.

Benefits of technology

It improves the automation level of software inspection, improves the stability and reliability of the system, shortens the fault response time, realizes accurate fault analysis and alarm notification, and reduces application terminal time and business losses caused by faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440940A_ABST
    Figure CN119440940A_ABST
Patent Text Reader

Abstract

The invention discloses a software system inspection method, apparatus and device, and a medium. The method comprises the steps of determining a target to-be-inspected function in a target software system and target middleware associated with the target to-be-inspected function; respectively setting inspection contents for the target to-be-inspected function and the target middleware, and respectively performing inspection to obtain an inspection result and / or alarm information; generating an output text according to the inspection content, the inspection result and / or the alarm information; outputting the output text to a ferry target directory of the target platform; and obtaining the output text in the ferry target directory of the target platform, and forwarding the output text to a target client of the target platform. The invention belongs to the field of software monitoring. Compared with an existing software system which depends on manual inspection or a simple monitoring tool to detect faults, different inspection contents are designed for all functions in the system, the middleware related to the functions is subjected to inspection, and the automation degree is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software monitoring, and in particular to a software system inspection method, device, equipment and medium. Background Art

[0002] A software system is a collection of multiple software components that work together to achieve a specific function or service. A software system can be a simple application or a complex system such as an operating system, a database management system, an enterprise resource planning (ERP) system, etc.

[0003] Functional inspection of software refers to the regular inspection and evaluation of various functions of the software system to ensure its normal operation, meet the expected functional requirements, and promptly discover and solve potential problems. Functional inspection includes functional verification, performance evaluation, compatibility testing, security inspection, user experience evaluation, error and defect detection or document and record review. Existing software systems usually rely on manual inspection or simple monitoring tools to detect faults. These methods have problems such as untimely response, insufficient coverage and low accuracy. Therefore, a software system inspection method is urgently needed to solve the above problems. Summary of the invention

[0004] The embodiments of the present invention solve the technical problem of low automation of software inspection in the prior art by providing a software system inspection method, device, equipment and medium, and achieve the technical effect of improving software inspection.

[0005] In a first aspect, the present invention provides a software system inspection method, the method comprising:

[0006] Determine the target function to be inspected in the target software system and the target middleware associated with the target function to be inspected;

[0007] Set inspection contents for the target function to be inspected and the target middleware respectively, and perform inspections respectively to obtain inspection results and / or alarm information;

[0008] Generate output text based on inspection content, inspection results and / or alarm information;

[0009] Output the output text to the target platform's ferry target directory;

[0010] Get the output text in the target platform's ferry target directory, and forward the output text to the target client of the target platform.

[0011] Furthermore, inspections are performed to obtain inspection results and / or alarm information, including:

[0012] Determine whether an alarm is required based on the inspection results of the target function to be inspected and the inspection results of the target middleware;

[0013] If necessary, generate an alarm message corresponding to the inspection result.

[0014] Further, according to the inspection result of the target function to be inspected and the inspection result of the target middleware, it is determined whether an alarm is required, including:

[0015] Inspect each inspection subtask in the inspection content of the target function to be inspected and each inspection subtask in the inspection content of the target middleware in turn;

[0016] Generate inspection results corresponding to each inspection subtask;

[0017] When the inspection result corresponding to any inspection subtask does not meet the preset requirement corresponding to the inspection subtask, it is determined that there is an alarm demand.

[0018] Furthermore, the inspection contents include:

[0019] The inspection contents of the target function to be inspected include: business inspection, service inspection, server inspection and component inspection of the target function to be inspected;

[0020] The inspection contents of the target middleware include: database inspection, cache inspection and message queue inspection.

[0021] Furthermore, before generating the output text according to the inspection content, inspection result and / or alarm information, the following is also included:

[0022] After the inspection of all inspection contents is completed, the inspection results corresponding to the inspection contents are sent to the target time series database and stored.

[0023] Furthermore, the method further comprises:

[0024] Determine whether there is any misjudgment in the inspection results;

[0025] If it exists, re-inspect the inspection content.

[0026] Furthermore, the method further comprises:

[0027] Determine whether each inspection subtask in each inspection content has a corresponding inspection subresult;

[0028] If any inspection sub-result is missed, the inspection content will be re-determined.

[0029] In a second aspect, the present invention provides a software system inspection device, the device comprising:

[0030] A determination module, used to determine a target function to be inspected in a target software system, and a target middleware associated with the target function to be inspected;

[0031] The inspection module is used to set inspection contents for the target function to be inspected and the target middleware respectively, and to perform inspections respectively to obtain inspection results and / or alarm information;

[0032] A text generation module, used to generate output text according to inspection content, inspection results and / or alarm information;

[0033] The ferry module is used to output the output text to the ferry target directory of the target platform;

[0034] The forwarding module is used to obtain the output text in the ferry target directory of the target platform and forward the output text to the target client of the target platform.

[0035] In a third aspect, the present invention provides an electronic device, comprising:

[0036] processor;

[0037] a memory for storing processor-executable instructions;

[0038] The processor is configured to execute to implement a software system inspection method as provided in the first aspect.

[0039] In a fourth aspect, the present invention provides a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to implement a software system inspection method as provided in the first aspect.

[0040] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

[0041] The present invention provides a software system inspection method, the method comprising: determining a target function to be inspected in a target software system, and a target middleware associated with the target function to be inspected; setting inspection contents for the target function to be inspected and the target middleware respectively, and inspecting them respectively to obtain inspection results and / or alarm information; generating output text according to the inspection contents, inspection results and / or alarm information; outputting the output text to a ferry target directory of a target platform; obtaining the output text in the ferry target directory of the target platform, and forwarding the output text to a target client of the target platform. Compared with the existing software system that relies on manual inspection or simple monitoring tools to detect faults, the present invention designs different inspection contents for each function in the system, and also inspects the middleware related to the function, with a high degree of automation, improving the stability and reliability of the system, improving the fault response speed, and being able to accurately analyze faults and issue alarm notifications, reducing the application terminal time caused by faults, and reducing business losses. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 A flowchart of a software system inspection method provided by the present invention;

[0044] Figure 2 A schematic diagram of the structure of a software system inspection device provided by the present invention;

[0045] Figure 3 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION

[0046] The embodiment of the present invention solves the technical problem of low automation level of software inspection in the prior art by providing a software system inspection method.

[0047] The technical solution of the embodiment of the present invention is to solve the above technical problems, and the overall idea is as follows:

[0048] A software system inspection method, the method comprising: determining a target function to be inspected in a target software system, and a target middleware associated with the target function to be inspected; setting inspection contents for the target function to be inspected and the target middleware respectively, and performing inspections respectively to obtain inspection results and / or alarm information; generating an output text according to the inspection contents, inspection results and / or alarm information; outputting the output text to a ferry target directory of a target platform; obtaining the output text in the ferry target directory of the target platform, and forwarding the output text to a target client of the target platform.

[0049] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0050] First of all, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0051] The present invention provides a software system inspection method, the method comprising steps S11-S15:

[0052] Step S11, determining a target function to be inspected in a target software system and a target middleware associated with the target function to be inspected.

[0053] Step S12, setting inspection contents for the target function to be inspected and the target middleware respectively, and performing inspections respectively to obtain inspection results and / or alarm information.

[0054] Step S13, generating an output text according to the inspection content, inspection results and / or alarm information.

[0055] Step S14, output the output text to the ferry target directory of the target platform.

[0056] Step S15, obtaining the output text in the ferry target directory of the target platform, and forwarding the output text to the target client of the target platform.

[0057] Regarding step S11, a target function to be inspected in a target software system and target middleware associated with the target function to be inspected are determined.

[0058] The target software system refers to a software system with inspection requirements. The target software system includes several functions, such as search function, user management function, interaction function or data analysis function. The present invention takes the search function as an example for analysis.

[0059] The target function to be inspected refers to a function that has an inspection requirement. In other words, the target function to be inspected can be inspected to determine whether the function has a fault.

[0060] The target middleware associated with the target function to be inspected may include message queue middleware, cache middleware, and database middleware associated with the target function to be inspected.

[0061] Message queue middleware: such as RabbitMQ, Kafka, etc., is used for asynchronous message delivery and task scheduling to ensure reliable message delivery and processing; database middleware: such as MySQL Proxy, ShardingSphere, etc., is responsible for database connection pool management, load balancing and data sharding; cache middleware: such as Redis, Memcached, etc., is used to improve data access speed and reduce database burden.

[0062] Regarding step S12, inspection contents are set for the target function to be inspected and the target middleware respectively, and inspections are performed respectively to obtain inspection results and / or alarm information.

[0063] You can set the corresponding inspection content for the target inspection function, which can include:

[0064] The inspection contents of the target function to be inspected include: business inspection, service inspection, server inspection and component inspection of the target function to be inspected;

[0065] You can set the corresponding inspection content for the corresponding target middleware, which can include:

[0066] The inspection contents of the target middleware include: database inspection, cache inspection and message queue inspection.

[0067] Taking the search function as an example, the key point of inspecting whether the search function is normal is whether the search data interface can return normally and whether the data image has any cracks. Therefore, the content of the business inspection for the search function can be: "whether the data interface can return normally and whether the data image has any cracks."

[0068] Service inspection refers to the inspection of services involved in the processes related to the search function, for example, the inspection of the memory usage status of the search function; server inspection refers to the inspection of the usage status of the server related to the search function; component inspection refers to the inspection of hardware components related to the search function, for example, inspection of CPU usage, disk, etc.

[0069] After the inspection content is determined, the inspection can be started, including: determining whether an alarm is required based on the inspection results of the target function to be inspected and the inspection results of the target middleware; if necessary, generating alarm information corresponding to the inspection results.

[0070] Specifically: inspect each inspection subtask in the inspection content of the target function to be inspected and each inspection subtask in the inspection content of the target middleware in turn; generate inspection results corresponding to each inspection subtask; when the inspection result corresponding to any inspection subtask does not meet the preset requirements corresponding to the inspection subtask, determine that there is an alarm demand.

[0071] It can be understood that each inspection content may include several inspection sub-tasks. For example, the middleware inspection includes database inspection, cache inspection and message queue inspection. Each inspection sub-task corresponds to a preset requirement. For example, the memory is continuously less than 300s and the remaining is greater than 1G. In other words, when the memory continues to exceed 300s and the remaining is less than 1G, the memory does not meet the preset requirements, and there is an alarm demand.

[0072] Taking the search function inspection as an example, simulate the single sign-on of the system, simulate the inspection of the browser-triggered interface, and check whether the returned interface data is normal (business inspection); inspect the running status of the search function service, whether the interface can respond normally, and whether there is a memory overflow risk (service inspection and component inspection); inspect the middleware of the search function, including: whether the PG service is normal; whether the Redis service is normal; whether the RabbitMQ service is normal (middleware inspection).

[0073] After the inspection of all inspection contents is completed, the inspection results corresponding to the inspection contents can be sent to the target time series database and stored, including:

[0074] After the inspection task is sent to the corresponding agent to trigger the task inspection, the inspection result is stored back to the inspection center and stored in the time series database for backup and viewing.

[0075] Regarding step S13, an output text is generated according to the inspection content, inspection results and / or alarm information.

[0076] The present invention can realize file extraction between different platforms, taking a video network platform and other network platforms as examples.

[0077] The video network platform creates real-time tasks, queries the video network alarm records, and generates output text based on inspection content, inspection results and / or alarm information.

[0078] Specifically, a real-time task is created on the video network platform, which is responsible for monitoring the video stream, processing alarms, etc. It obtains relevant alarm records through API or database query functions, organizes the inspection results, inspection content and alarm information into a structured format, and writes the organized content into the output text.

[0079] Regarding step S14, the output text is output to the ferry target directory of the target platform.

[0080] The ferry target directory is the storage location of the output text on the target platform, which is used to receive data obtained from the source system and forward it to the target client. This directory is usually a folder or path used to store data that needs to be processed or further operated. The target platform can be any platform that needs to obtain data. The output text can be output to the ferry target directory specified by the target platform through FTP ferry, including: using an FTP client or an FTP library in a programming language to connect to the FTP server of the target platform. In order to improve security, you can provide credentials such as server address, user name and password, and upload the output text to the ferry target directory of the target platform through the FTP protocol. You can specify the target path to ensure that the file is stored in the correct location. After the upload is completed, you can perform a confirmation operation to ensure that the output file has been successfully transferred to the target directory.

[0081] Regarding step S15, the output text is obtained in the ferry target directory of the target platform, and the output text is forwarded to the target client of the target platform.

[0082] Specifically, data is extracted through the data resource pool ETL task (extracted in the ferry target directory), mapped into JSON data through field reading and parsing, and then produced through the Kafka of the target platform. Finally, it is consumed by the Kafka of the data domain, and the output file is output to the specified directory of the data domain.

[0083] The data domain jes inspection platform creates real-time tasks, reads files in the directory, and calls the SMS interface to prepare for SMS sending; configures SMS notification recipients according to business configurations, pushes business-related alarms to operation and maintenance personnel, and initiates operation and maintenance processing.

[0084] In addition, in order to further optimize the system, it can also include: judging whether there is any misjudgment in the inspection result; if so, re-inspecting the inspection content.

[0085] The method may also include: determining whether each inspection subtask in each inspection content has a corresponding inspection subresult; and if any inspection subresult is missed, re-determining the inspection content.

[0086] It can also include: when the alarm is too sensitive, it supports retry times according to the configuration, and an alarm will be issued only after three consecutive failures.

[0087] In summary, the present invention provides a software system inspection method, the method comprising: determining the target function to be inspected in the target software system, and the target middleware associated with the target function to be inspected; setting inspection contents for the target function to be inspected and the target middleware respectively, and inspecting them respectively to obtain inspection results and / or alarm information; generating output text according to the inspection contents, inspection results and / or alarm information; outputting the output text to the ferry target directory of the target platform; obtaining the output text in the ferry target directory of the target platform, and forwarding the output text to the target client of the target platform. Compared with the existing software system that relies on manual inspection or simple monitoring tools to detect faults, the present invention designs different inspection contents for each function in the system, and also inspects the middleware related to the function, with a high degree of automation, improving the stability and reliability of the system, improving the fault response speed, and being able to accurately analyze faults and alarm notifications, reducing the application terminal time caused by faults, and reducing business losses.

[0088] Based on the same inventive concept, the present invention provides Figure 2 A software system inspection device is shown, the device comprising:

[0089] A determination module 21, used to determine a target function to be inspected in a target software system, and a target middleware associated with the target function to be inspected;

[0090] Inspection module 22, used to set inspection contents for target functions to be inspected and target middleware respectively, and perform inspections respectively to obtain inspection results and / or alarm information;

[0091] The text generation module 23 is used to generate output text according to the inspection content, inspection results and / or alarm information;

[0092] The ferry module 24 is used to output the output text to the ferry target directory of the target platform;

[0093] The forwarding module 25 is used to obtain the output text in the ferry target directory of the target platform and forward the output text to the target client of the target platform.

[0094] Based on the same inventive concept, the present invention also provides Figure 3 An electronic device as shown includes:

[0095] Processor 31;

[0096] A memory 32 for storing instructions executable by the processor 31;

[0097] The processor 31 is configured to execute to implement a software system inspection method as provided above.

[0098] Based on the same inventive concept, the present invention also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor 51 of the electronic device, the electronic device can execute a software system inspection method as provided above.

[0099] Since the electronic device introduced in this embodiment is an electronic device used to implement the information processing method in the embodiment of the present invention, based on the information processing method introduced in the embodiment of the present invention, a person skilled in the art can understand the specific implementation of the electronic device of this embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present invention is not described in detail here. As long as the electronic device used by a person skilled in the art to implement the information processing method in the embodiment of the present invention, it belongs to the scope of protection of the present invention.

[0100] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0101] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0104] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0105] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A software system inspection method, characterized in that: The method comprises: Determine a target function to be inspected in a target software system, and a target middleware associated with the target function to be inspected; Setting inspection contents for the target function to be inspected and the target middleware respectively, and performing inspections respectively to obtain inspection results and / or alarm information; Generate an output text according to the inspection content, the inspection result and / or the alarm information; Output the output text to the ferry target directory of the target platform; The output text is obtained in the ferry target directory of the target platform, and the output text is forwarded to the target client of the target platform.

2. A software system inspection method according to claim 1, characterized in that: Perform inspections and obtain inspection results and / or alarm information, including: Determine whether an alarm is required according to the inspection result of the target function to be inspected and the inspection result of the target middleware; If necessary, generate an alarm message corresponding to the inspection result.

3. A software system inspection method as claimed in claim 2, characterized in that: The determining whether an alarm is required according to the inspection result of the target function to be inspected and the inspection result of the target middleware includes: Inspecting each inspection subtask in the inspection content of the target function to be inspected and each inspection subtask in the inspection content of the target middleware in turn; Generate inspection results corresponding to each inspection subtask; When the inspection result corresponding to any inspection subtask does not meet the preset requirement corresponding to the inspection subtask, it is determined that there is an alarm demand.

4. A software system inspection method according to claim 1, characterized in that: The inspection contents include: The inspection contents of the target function to be inspected include: business inspection, service inspection, server inspection and component inspection of the target function to be inspected; The inspection contents of the target middleware include: database inspection, cache inspection and message queue inspection.

5. A software system inspection method according to claim 1, characterized in that: Before generating the output text according to the inspection content, the inspection result and / or the alarm information, the method further includes: After the inspection of all inspection contents is completed, the inspection results corresponding to the inspection contents are sent to the target time series database and stored.

6. A software system inspection method according to claim 1, characterized in that: The method further comprises: Determine whether there is any misjudgment in the inspection results; If it exists, re-inspect the inspection content.

7. A software system inspection method according to claim 1, characterized in that: The method further comprises: Determine whether each inspection subtask in each inspection content has a corresponding inspection subresult; If any inspection sub-result is missed, the inspection content will be re-determined.

8. A software system inspection device, characterized in that: The device comprises: A determination module, used to determine a target function to be inspected in a target software system, and a target middleware associated with the target function to be inspected; An inspection module is used to set inspection contents for the target function to be inspected and the target middleware respectively, and to perform inspections respectively to obtain inspection results and / or alarm information; A text generation module, used to generate an output text according to the inspection content, the inspection result and / or the alarm information; A ferry module, used for outputting the output text to a ferry target directory of a target platform; The forwarding module is used to obtain the output text in the ferry target directory of the target platform and forward the output text to the target client of the target platform.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute to implement a software system inspection method as claimed in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to implement a software system inspection method as described in any one of claims 1 to 7.