Production inspection method for online environment and related device
By implementing automated production inspection methods in an online environment, using the operation results of the target production inspection tasks to determine faults and generate automatic alarms, the problem of extended online environment fault response time is solved, and efficient fault monitoring and processing is achieved.
Patent Information
- Application Number
- CN202411881182.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-19
AI Technical Summary
The complexity of the online environment increases the difficulty of monitoring and maintenance, resulting in a longer fault response time, and the lack of effective monitoring and alarm systems makes it difficult for operation and maintenance personnel to know the occurrence of faults as soon as possible.
Provide a production inspection method for online environments, determine the online faults of the online environment through the operation results of the target production inspection task, and automatically trigger alarms, generate business inspection alarm information, business processing progress information and processing completion information, and send it to the notification group address to realize automatic alarm and processing progress tracking.
It realizes automatic monitoring of online faults and automatically triggers alarms, reducing fault response time, improving the efficiency and accuracy of alarm processing, and ensuring that operation and maintenance personnel understand the fault situation as soon as possible.
Smart Images

Figure CN119676068A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a production inspection method and related devices for an online environment. Background Art
[0002] With the development of technology, the online environment of enterprises has become more and more complex. The online environment refers to the environment where applications actually run and provide services. The online environment may be distributed in different physical locations or even across different cloud service providers, which increases the difficulty of monitoring and maintaining the online environment.
[0003] When a failure occurs in the online environment, due to the lack of an effective monitoring and alarm system, operation and maintenance personnel are often unable to learn of the failure in the first place, resulting in prolonged failure response time. Summary of the invention
[0004] In view of the above problems, the present application provides a production inspection method and related devices for an online environment to automatically monitor online faults in the online environment and automatically trigger alarms. The specific scheme is as follows:
[0005] The first aspect of the present application provides a production inspection method for an online environment, comprising:
[0006] Determine online faults in the online environment based on the running results of the target production inspection tasks;
[0007] From the correspondence between the preset production inspection tasks and notification information, search for the target notification information corresponding to the target production inspection task, the target notification information including the notification group address and the person in charge identifier; the notification number of the person in charge with the person in charge identifier is located in the notification group with the notification group address;
[0008] Generate business inspection alarm information, the business inspection alarm information including the identifier of the target production inspection task, the test time, the online fault, the identifier of the person in charge, and a first processing state indicating unprocessed;
[0009] Sending the service inspection alarm information to the notification group address;
[0010] Acquire a start processing message indicating that the online fault is being processed, wherein the start processing message is obtained by operating the first processing state;
[0011] Generate business processing in-progress information, the business processing in-progress information including the name of the test task, the test time, the online fault, the person in charge identifier, the person identifier of the person who handles the online fault, and a second processing state representing the processing in progress; the person identifier is at least one person identifier among the person in charge identifiers;
[0012] Sending the business processing in progress information to the notification group address;
[0013] Obtaining a processing completion message indicating that the online fault has been processed;
[0014] Generate processing completion information, the processing completion information including the name of the test task, the test time, the online fault, the person in charge identifier, the processor identifier, and a third processing status indicating that the processing has been completed;
[0015] Send the processing completion information to the notification group address.
[0016] In a possible implementation, the target production inspection task includes multiple test cases; and the step of determining the online fault of the online environment through the running result of the target production inspection task includes:
[0017] For each of the test cases, if the running result of the test case does not match the expected result of the test case, it is determined that the online fault exists.
[0018] In a possible implementation, if the responsible person identifiers corresponding to different test cases are not completely the same, the step of searching the target notification information corresponding to the target production inspection task from the correspondence between the preset production inspection tasks and the notification information includes:
[0019] From the correspondence between preset test cases and notification information, the target notification information respectively corresponding to the multiple test cases included in the target production inspection task is searched.
[0020] In a possible implementation, the processing completion message is obtained by operating the second processing state, or the processing completion message is obtained by executing the target production inspection task again and the running result of the target production inspection task does not have an online fault.
[0021] In a possible implementation, the method for constructing the production inspection task includes:
[0022] In response to the operation of creating a production inspection task, control the display of use case sources, which include infrastructure, APIFOX, Jenkins, and cloud testing platform;
[0023] Identify target sources from among the use case sources;
[0024] Controlling display of a first user interface corresponding to the target source;
[0025] Obtaining a production inspection task identifier through the first user interface;
[0026] Selecting one or more test cases from a test case set corresponding to the target source through the first user interface;
[0027] Acquire a first execution order of the one or more test cases through the first user interface;
[0028] A correspondence between the production inspection task identifier, the first execution order and the one or more test cases is constructed to obtain the production inspection task.
[0029] In a possible implementation, the method for constructing the test case includes:
[0030] In response to an operation of creating a test case, controlling display of a second user interface;
[0031] Obtaining a test case identifier and an operating environment through the second user interface;
[0032] obtaining, through the second user interface, a plurality of use case steps and a second execution order between the plurality of use case steps,
[0033] A correspondence between the test case identifier, the operating environment, the multiple use case steps and the second execution order is constructed to obtain the test case.
[0034] A second aspect of the present application provides a production inspection device for an online environment, comprising:
[0035] The first determination module is used to determine the online fault of the online environment according to the running result of the target production inspection task;
[0036] The first search module is used to search for the target notification information corresponding to the target production inspection task from the correspondence between the preset production inspection tasks and the notification information, wherein the target notification information includes a notification group address and a person in charge identifier; the notification number of the person in charge with the person in charge identifier is located in the notification group with the notification group address;
[0037] A first generating module, configured to generate business inspection alarm information, wherein the business inspection alarm information includes an identifier of the target production inspection task, a test time, the online fault, an identifier of the person in charge, and a first processing state indicating that the task is not processed;
[0038] A first sending module, used for sending the service inspection alarm information to the notification group address;
[0039] A first acquisition module is used to acquire a start processing message indicating that the online fault is being processed, wherein the start processing message is obtained by operating the first processing state;
[0040] The second generating module is used to generate information about the ongoing business processing, wherein the information about the ongoing business processing includes the name of the test task, the test time, the online fault, the person in charge identifier, the identifier of the person who handles the online fault, and a second processing state representing the ongoing processing; the identifier of the person in charge is at least one of the identifiers of the person in charge;
[0041] A second sending module, used for sending the business processing in progress information to the notification group address;
[0042] A second acquisition module is used to acquire a processing completion message indicating that the online fault has been processed;
[0043] A third generating module is used to generate processing completion information, wherein the processing completion information includes the name of the test task, the test time, the online fault, the person in charge identifier, the processor identifier, and a third processing status indicating that the processing has been completed;
[0044] The third sending module is used to send the processing completion information to the notification group address.
[0045] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the production inspection method in an online environment of the above-mentioned first aspect or any implementation method of the first aspect.
[0046] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0047] The memory is used to store computer programs;
[0048] The processor is used to execute the computer program so that the electronic device can implement the production inspection method in an online environment of the above-mentioned first aspect or any implementation method of the first aspect.
[0049] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the production inspection method in an online environment of the above-mentioned first aspect or any implementation method of the first aspect.
[0050] By means of the above technical scheme, the present application provides a production inspection method for an online environment, which determines the online fault of the online environment through the running results of the target production inspection task. Business inspection alarm information, business processing in progress information, and processing completion information can be generated for the processing progress of the online fault; wherein, the progress of the business inspection alarm information is unprocessed, the progress of the business processing in progress information is processing in progress, and the progress of the processing completion information is restored; the business inspection alarm information, business processing in progress information, and processing completion information can be displayed in the same notification group, and the processing progress can be displayed. So that other people in the same notification group can see the processing progress of the online fault. The present application standardizes and automates the alarm processing process. The online faults are assigned through the responsible person identification, making the alarm processing efficient. The present application allows the operation and maintenance personnel to know the occurrence of the fault in the first time, thereby reducing the fault response time. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0052] Figure 1 A schematic diagram of a system architecture provided for this application;
[0053] Figure 2 A schematic diagram of an optional hardware structure of a first terminal 100 provided in this application;
[0054] Figure 3 A schematic diagram of the structure of a server 200 provided in this application;
[0055] Figure 4 A flowchart of a production inspection method for an online environment provided by this application;
[0056] Figure 5 A schematic diagram of a representation method of the service inspection alarm information provided by this application;
[0057] Figure 6 A schematic diagram of an implementation method of the alarm processing interface provided by this application;
[0058] Figure 7 A schematic diagram of a method of representing information during business processing provided by this application;
[0059] Figure 8 A schematic diagram of another implementation of the alarm processing interface provided by this application;
[0060] Fig. 9A schematic diagram of a method of representing the processing completion information provided by this application;
[0061] Fig.10 A schematic diagram of the user interface for creating a production inspection task provided for this application;
[0062] Fig.11 A schematic diagram of an implementation method of the first user interface provided in this application;
[0063] Fig.12 A schematic diagram of a third user interface provided by this application;
[0064] Fig.13 A schematic diagram of another implementation of the first user interface provided in this application;
[0065] Fig.14 A schematic diagram of the timing window provided for this application;
[0066] Fig.15 A schematic diagram of a user interface for creating a test case provided for this application;
[0067] Fig.16 A schematic diagram of a second user interface portion provided for this application;
[0068] Fig.17 A schematic diagram of a user interface for setting test steps provided for this application;
[0069] Fig.18 A schematic diagram of the user interface for setting a notification group provided for this application;
[0070] Fig.19 A schematic diagram of the structure of an online production inspection device provided by this application;
[0071] Fig. 20 Schematic diagram of the structure of the electronic device provided for this application DETAILED DESCRIPTION
[0072] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0073] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0074] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0075] The online environment, also known as the production environment or deployment environment, refers to the environment where the application actually runs and provides services. In the online environment, the application will face real user traffic and data, and needs to have key features such as high availability and scalability. The following are some of the main components of the online environment:
[0076] Servers and hardware resources: Online environments require servers to host applications. These servers may be physical servers or cloud servers. They require sufficient computing power, memory, and storage resources to handle user requests.
[0077] Network infrastructure: The online environment relies on a stable network connection, including load balancers, DNS (Domain Name System) services, CDN (Content Delivery Network), etc., to ensure that users can quickly access applications and handle high traffic.
[0078] Database system: Most applications require a database to store and retrieve data. The online environment will include database servers, which may be relational databases such as MySQL, PostgreSQL, or non-relational databases such as MongoDB, Redis, etc.
[0079] Middleware and infrastructure: The online environment may use various middleware to support the operation of applications, such as message queues (such as Kafka), caching systems (such as Memcached), search engines (such as Elasticsearch), etc.
[0080] Application Service: The online environment includes the code of the actual running application, which is optimized and configured to ensure stability and performance under production conditions.
[0081] Monitoring and logging systems: To ensure the stability and performance of the online environment, it is necessary to integrate monitoring tools to track application status in real time, as well as logging systems to record events and error information for easy troubleshooting.
[0082] User Interface and API (Application Programming Interface): The online environment provides a user interface for end-user interaction and an API for integration with other systems and applications.
[0083] The construction and management of the online environment is a complex process, involving multiple aspects from code deployment, resource management to performance optimization and security assurance. Proper configuration and management of the online environment is crucial to ensuring the reliability of the application and user experience.
[0084] In summary, the online environment is very complex and may be distributed in different physical locations or even across different cloud service providers. This complexity increases the difficulty of monitoring and maintenance, because any single point of failure may affect the stability and performance of the entire system.
[0085] In the related art, the alarm system is decentralized, and each system or service has its own alarm mechanism. This decentralization requires operation and maintenance personnel to monitor multiple alarm sources, increasing the risk of information overload and making important alarms easily ignored. In addition, the alarm formats between different systems may be inconsistent, which further increases the complexity of alarm processing.
[0086] In related technologies, in order to ensure the service quality of the online environment, enterprises usually use multiple use case sources. These use case sources often have different configuration requirements and user interfaces, which requires operation and maintenance personnel to spend a lot of time learning and maintaining these use case sources. In addition, with the introduction of new use case sources, the complexity of configuration also increases.
[0087] In the related art, the alarm processing process is imperfect. In many cases, the alarm processing process lacks standardization and automation, resulting in prolonged alarm response time. Alarm processing often relies on manual operations, which is not only inefficient but also prone to errors. The lack of a clear responsibility allocation mechanism makes alarm processing confusing and inefficient.
[0088] Due to the above factors, fault response and handling become complicated and difficult. Operation and maintenance personnel need to switch between multiple systems and use case sources to collect and analyze fault information. This manual and decentralized processing method is not only time-consuming, but also easy to miss the best time for fault handling, resulting in an expansion of the scope of fault impact.
[0089] The efficiency of production inspection is directly related to how quickly the company can discover and solve problems, and how quickly services can be restored. Inefficient inspection processes mean that problems may be discovered late, affecting service continuity and customer satisfaction. In addition, inefficient inspections may also lead to a waste of resources, including human resources, time and financial resources.
[0090] In view of the above problems, this application provides an integrated solution that can unify alarm configuration, simplify the management of use case sources, improve fault response speed, and ensure the timeliness and effectiveness of online fault handling. This solution should be able to provide real-time monitoring, automated alarms, clear responsibility allocation, and effective fault handling tracking to improve the overall efficiency and effectiveness of production inspections.
[0091] The technical solution of this application is described in detail below.
[0092] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a first terminal 100, a server 200 and a second terminal 300. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the method provided in the embodiment of the present application for one or more first terminals.
[0093] Exemplarily, the online environment includes one or more servers 200. The number of servers 200 can be one or more. The geographical locations of different servers 200 may be the same or different.
[0094] Exemplarily, the operating environments of different servers 200 may be different or the same.
[0095] It is understandable that the production inspection task can be executed in the server 200 .
[0096] Among them, an application or a web page may be installed on the first terminal 100, and the above application and web page may provide an interface, and the first terminal 100 may receive relevant parameters input by the user on the interface, for example, determine the instruction to execute the production inspection task, and send the above parameters to the server 200. In an optional implementation, the server 200 may obtain the running result of the production inspection task based on the received parameters, and return the running result to the first terminal 100, so that the first terminal 100 executes the production inspection method of the online environment provided in the embodiment of the present application. In an optional implementation, the server 200 may obtain the running result of the production inspection task based on the received parameters, and execute the production inspection method of the online environment provided in the embodiment of the present application, and feed back the final result to the first terminal 100.
[0097] Exemplarily, the first terminal 100 may send corresponding information to a notification group, thereby enabling operation and maintenance personnel in the notification group to perform online fault repair.
[0098] Exemplarily, the notification group may be a WeChat group, a QQ group, a Fetion group, a Feishu group, or a DingTalk group. The application corresponding to the notification group may be run on the second terminal 300. Exemplarily, the number of the second terminal 300 is multiple.
[0099] Next describe Figure 1 The product form of the first terminal 100;
[0100] The first terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any restrictions on this.
[0101] Figure 2 An optional hardware structure diagram of the first terminal 100 is shown.
[0102] refer to Figure 2 As shown, the first terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 This is merely an example of the first terminal and does not constitute a limitation on the first terminal. The first terminal may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0103] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the first terminal. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the first terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0104] Among them, the input device 132 can receive input data and the like.
[0105] The display unit 140 may be used to display information input by the user or provided to the user, various menus of the first terminal 100, interactive interfaces, file display and / or playback of any multimedia file. In the embodiment of the present application, the display unit 140 may be used to display interfaces, processing results, etc.
[0106] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.
[0107] The processor 170 is the control center of the first terminal 100. It uses various interfaces and lines to connect various parts of the entire first terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the first terminal 100 and processes data, thereby controlling the first terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on independent chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.
[0108] Among them, the memory 120 can be used to store software codes related to the production inspection method of the online environment, the processor 170 can execute the steps of the production inspection method of the online environment, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to realize corresponding functions.
[0109] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0110] In this embodiment of the present application, the RF unit 110 can send data to the server 200 and receive processing results sent by the server 200.
[0111] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.
[0112] The first terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0113] The first terminal 100 also includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the first terminal 100 to communicate with other devices, or to connect a charger to charge the first terminal 100 .
[0114] Although not shown, the first terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the first terminal 100 shown.
[0115] Next describe Figure 1 The product form of the server 200;
[0116] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.
[0117] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0118] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0119] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0120] The memory 204 may be used to store software codes related to the production inspection method of the online environment, and the processor 202 may execute the steps of the production inspection method of the online environment of the chip, and may also schedule other units to implement corresponding functions.
[0121] It should be understood that the first terminal 100 and the server 200 may be centralized or distributed devices, and the processors in the first terminal 100 and the server 200 (e.g., the processor 170 and the processor 202) may be hardware circuits (e.g., application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), general-purpose processors, digital signal processors (DSP), microprocessors or microcontrollers, etc.), or a combination of these hardware circuits. For example, the processor may be a hardware system having an instruction execution function, such as a CPU, a DSP, etc., or a hardware system not having an instruction execution function, such as an ASIC, an FPGA, etc., or a combination of the above-mentioned hardware systems not having an instruction execution function and hardware systems having an instruction execution function.
[0122] In order to solve the above problems, the embodiment of the present application provides a production inspection method for an online environment. The production inspection method for an online environment of the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0123] Reference Figure 4 , Figure 4 A flowchart of a production inspection method for an online environment provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, a production inspection method for an online environment provided in an embodiment of the present application may include steps S401 to S410, and these steps are described in detail below.
[0124] Step S401: determining an online fault in an online environment through the running result of a target production inspection task.
[0125] It is understandable that the target production inspection task can be executed on the server 200, and the operation result can be obtained through the server 200; it is understandable that the online fault can be determined based on the operation result.
[0126] It is understandable that corresponding production inspection tasks can be set based on the online faults that need to be detected.
[0127] Production inspection tasks refer to a series of checks and tests that are performed regularly in the online environment to ensure the normal operation and performance of the online environment. The purpose of production inspection tasks is to proactively discover and resolve potential problems to reduce the impact of online environment failures on the business.
[0128] Exemplary online fault types include but are not limited to the following fault types:
[0129] Code Bug: There is a problem with the code logic of the online environment.
[0130] Resource configuration errors: Resource configuration errors in the online environment, such as unreasonable startup sequence, initialization script errors, etc.
[0131] System-level software bugs: Bugs triggered by the operating system, third-party libraries, and software used in the technical architecture in special scenarios lead to failures.
[0132] Network failures: including public network congestion, packet loss, dedicated line problems, network equipment failures, IP (Internet Protocol Address) attacks (including DNS attacks), IP blocking, domain name blocking, network software bugs, etc.
[0133] Security issues: being attacked, vulnerabilities being exploited, etc.
[0134] Local failure: Problems caused by failures of external units such as ISP (Internet Service Provider), root domain name service, electricity, air conditioning, optical cable, etc.
[0135] Failure of third-party partner company or interface: Failure of third-party company or interface that the project depends on.
[0136] CPU (Central Processing Unit) problems: including business logic problems (dead loops), frequent GC (Garbage Collection), and excessive context switching.
[0137] Disk problem: Low disk space or disk performance issues.
[0138] Memory problems: including memory overflow (OOM), Stack Overflow, memory leak, etc.
[0139] Network problems: including timeout, TCP queue overflow, RST (Reset Exception) exception, TIME_WAIT and CLOSE_WAIT problems.
[0140] Exemplarily, the target production inspection task includes multiple test cases; the step of determining the online fault of the online environment through the running result of the target production inspection task includes: for each of the test cases, if the running result of the test case does not match the expected result of the test case, determining that the online fault exists. Accordingly, for each test case, steps S402 to S410 can be executed.
[0141] Step S402: searching for target notification information corresponding to the target production inspection task from the correspondence between preset production inspection tasks and notification information.
[0142] The target notification information includes a notification group address and a person-in-charge identifier; the communication signal of the person-in-charge with the person-in-charge identifier is located in the notification group with the notification group address.
[0143] Exemplarily, the notification group may be a WeChat group, a QQ group, a Fetion group, a Feishu group, or a DingTalk group.
[0144] Exemplarily, the notification group address may be a URL (Uniform Resource Locator) of the notification group.
[0145] Exemplarily, the person in charge identification includes the name of the person in charge and / or the employee number of the person in charge.
[0146] For example, if the notification group is a WeChat group, the communication number is the WeChat number; if the notification group is a QQ group, the communication number is the QQ number; if the notification group is a Fetion group, the communication number is the Fetion number; if the notification group is a Feishu group, the communication number is the Feishu number; if the notification group is a DingTalk group, the communication number is the DingTalk number.
[0147] In an optional implementation, a production inspection task includes multiple test cases; if the notification information corresponding to the multiple test cases is the same, then the "correspondence between the production inspection task and the notification information" is the "correspondence between the production inspection task and the notification information".
[0148] In an optional implementation, a production inspection task includes multiple test cases; the notification information corresponding to the multiple test cases can be the same or different. Then the "correspondence between production inspection tasks and notification information" is the "correspondence between test cases and notification information". At this time, step S402 is to find the target notification information corresponding to the multiple test cases included in the target production inspection task from the preset correspondence between test cases and notification information.
[0149] A test case is a set of conditions used in software testing, including test input, execution conditions, test environment, and expected results. It is used to verify whether specific functions or modules in the online environment work as expected.
[0150] Step S403: Generate business inspection alarm information, wherein the business inspection alarm information includes the identifier of the target production inspection task, the test time, the online fault, the identifier of the person in charge, and a first processing status indicating that the task is not processed.
[0151] Step S404: Send the service inspection alarm information to the notification group address.
[0152] Exemplarily, for each test case, a business inspection alarm message may be generated; in this case, the identifier of the target production inspection task may be the test case name of the test case.
[0153] In order for those skilled in the art to better understand the service inspection alarm information provided by the embodiments of the present application, the following examples are provided for illustration.
[0154] like Figure 5 The figure shows a schematic diagram of a method of representing the service inspection alarm information provided in an embodiment of the present application.
[0155] Assume that the notification group is a DingTalk group, the second terminal 300 has a DingTalk application installed, and the DingTalk account logged in by the DingTalk application running on the second terminal is in the DingTalk group. Then, the service inspection alarm information displayed by the second terminal 300 is as follows: Figure 5 shown.
[0156] like Figure 5 As shown, the test case name of the test case is "Production Business Inspection Alarm: 739"; the "Occurrence Time" is the test time, which is 2024-11-28 19:07:54; and the alarm content is "Online Failure". For example, Figure 5 The alarm content in the dialog box is in a collapsed state. If you click "Click to view details", the alarm content can be expanded, and the operation and maintenance personnel can see the detailed alarm content.
[0157] For example, Figure 5 "De-process" or "Silent processing" can be the first processing state.
[0158] For example, Figure 5 In the figure, "Zhang San" is the person in charge. "@" is a special prompt symbol for Zhang San. For example, the special prompt symbols of different notification groups may be different or the same.
[0159] Exemplarily, the service inspection alarm information may also include the number of abnormalities and the inspection scenario. Exemplarily, the inspection scenario is a description of the target production inspection task, so that the operation and maintenance personnel can determine how to solve the online fault in combination with the inspection scenario.
[0160] Step S405: obtaining a start processing message indicating that the online fault is being processed, wherein the start processing message is obtained by operating the first processing state.
[0161] Exemplarily, in response to the operation for the first processing state, an alarm processing interface may be displayed. A start processing message is obtained through the alarm processing interface. This is described below with examples.
[0162] like Figure 6The figure shows a schematic diagram of an implementation method of the alarm processing interface provided in an embodiment of the present application.
[0163] Exemplarily, after clicking the first processing state "Go to Process", the alarm processing interface can be displayed on the right; if the "Start Processing" button in the alarm processing interface is clicked, a start processing message is generated.
[0164] Exemplarily, detailed alarm information can also be viewed through the "Alarm Details" in the alarm processing interface to assist operation and maintenance personnel in determining solutions to resolve online failures.
[0165] Step S406: Generate business processing progress information, which includes the name of the test task, the test time, the online fault, the person in charge identifier, the person identifier of the person who handles the online fault, and a second processing state representing the processing in progress; the person identifier is at least one of the person in charge identifiers.
[0166] For example, there may be multiple responsible persons; different responsible persons may have different responsible persons. If a responsible person AA in the notification group operates the business inspection alarm information, the person who handles it is the responsible person AA. For example, multiple people may be allowed to operate the business inspection alarm information simultaneously or successively, that is, there may be multiple persons who handle it. For example, only one person is allowed to operate the business inspection alarm information, that is, there is only one person who handles it.
[0167] Step S407: Send the business processing in progress information to the notification group address.
[0168] like Figure 7 The figure is a schematic diagram of a method of representing information during business processing provided in an embodiment of the present application.
[0169] If the target production inspection task is identified by the test case name of the test case, Figure 7 The following is an example of a test case identified as "Production Business Inspection Alarm: 678". When "Production Business Inspection Alarm: 678" is unprocessed, the business inspection alarm information is 71. When "Production Business Inspection Alarm: 678" is being processed, the business processing information is 72.
[0170] By comparing the service inspection alarm information 71 and the service processing ongoing information 72 , the difference between the service inspection alarm information and the service processing ongoing information can be seen.
[0171] Figure 7 "Processing" is the second processing status. Figure 7 The "Handler: Li Si" in the above is the handler's ID. Figure 7It can be seen that Li Si is one of the multiple responsible persons (Li Si and Zhang Jiu).
[0172] Step S408: Obtain a processing completion message indicating that the online fault has been processed.
[0173] In an optional implementation, the processing completion message is obtained by operating the second processing state.
[0174] Exemplarily, in response to the operation for the second processing state, an alarm processing interface may be displayed. A processing completion message is obtained through the alarm processing interface. This is described below with examples.
[0175] like Figure 8 The figure is a schematic diagram of another implementation method of the alarm processing interface provided in the embodiment of the present application.
[0176] Exemplarily, after clicking the second processing status "Processing", the alarm processing interface can be displayed on the right; if the "Restored" button in the alarm processing interface is clicked, a processing completion message is generated.
[0177] Exemplarily, the corresponding alarm cause can also be selected through the "Alarm Cause Allocation" in the alarm processing interface, so that when similar alarm causes are generated, the operation and maintenance personnel can be assisted in determining a solution to resolve the online fault.
[0178] In an optional implementation, the processing completion message is obtained by executing the target production inspection task again and the running result of the target production inspection task does not have an online fault. Exemplarily, the processing completion message is obtained by executing the target production inspection task again and the running result of the target production inspection task matches the expected result.
[0179] It is understandable that the target production inspection task is run once every preset time; if the operation and maintenance personnel have repaired the online fault and did not click Figure 8 The "Restored" button in the alarm processing interface is shown. After the target production inspection task is run again, if it is found that the running result of the test case matches the expected result of the test case, it is considered that the online fault has been resolved, and it is considered that the processing completion message has been obtained.
[0180] Step S409: Generate processing completion information, the processing completion information includes the name of the test task, the test time, the online fault, the person in charge identifier, the processor identifier, and a third processing status indicating that the processing has been completed.
[0181] Step S410: Send the processing completion information to the notification group address.
[0182] like Fig. 9 The figure is a schematic diagram of a representation method of the processing completion information provided in an embodiment of the present application.
[0183] If the target production inspection task is identified by the test case name of the test case, Fig. 9 The description is made by taking the test case identified as "production business inspection alarm: 678" as an example. After the online fault corresponding to "production business inspection alarm: 678" has been processed, the third processing status of the processing completion information 91 may be "recovered".
[0184] Exemplarily, the processing completion information also includes: recovery time.
[0185] Combination Figures 5 to 9 It can be seen that the business inspection alarm information, business processing information, and processing completion information can be displayed in the same notification group, and the processing progress can be displayed. This allows other people in the same notification group to see the processing progress of the online fault. This application standardizes and automates the alarm processing process. Online faults are assigned through the person in charge identification, making alarm processing efficient.
[0186] The embodiment of the present application provides a production inspection method for an online environment, which determines the online fault of the online environment through the running results of the target production inspection task. Business inspection alarm information, business processing information, and processing completion information can be generated for the processing progress of the online fault; wherein, the progress of the business inspection alarm information is unprocessed, the progress of the business processing information is processing in progress, and the progress of the processing completion information is restored; the business inspection alarm information, business processing information, and processing completion information can be displayed in the same notification group, and the processing progress can be displayed. So that other people in the same notification group can see the processing progress of the online fault. The present application standardizes and automates the alarm processing process. The online faults are assigned by the responsible person identification, making the alarm processing efficient. The present application can enable the operation and maintenance personnel to know the occurrence of the fault in the first time, thereby reducing the fault response time.
[0187] The following is an explanation of a method for constructing a production inspection task. The method includes the following steps A1 to A7 during implementation.
[0188] Step A1: In response to the operation of creating a production inspection task, control the display of use case sources, which include infrastructure, APIFOX, Jenkins, and cloud testing platform.
[0189] Exemplarily, different sources of the use cases correspond to different test case sets.
[0190] like Fig.10Shown is a schematic diagram of a user interface for creating a production inspection task provided in an embodiment of the present application.
[0191] Fig.10 The production inspection task identifiers of multiple production inspection tasks that have been created are shown in FIG. Fig.10 In the example, the identifier of the production inspection task is used as the task name.
[0192] For example, the operation of creating a production inspection task is to click the "Add Task" button. After clicking the "Add Task" button, Fig.10 (a) becomes 10 Figure (b).
[0193] The sources of these four use cases are explained below.
[0194] Infrastructure in testing refers to the hardware and software environment that supports test execution, including servers, network equipment, databases, test frameworks, etc. These infrastructures provide the necessary operating environment and resources for testing, ensuring that the test can proceed smoothly.
[0195] APIFOX is a collaborative platform that integrates API documentation, debugging, mocking, testing and other functions. It supports multiple protocol interfaces, including HTTP (HyperText Transfer Protocol), HTTPS (Hypertext Transfer Protocol Secure), WebSocket, TCP (Transmission Control Protocol), etc., and can automatically generate code, supporting multiple languages and frameworks. APIFOX can be used as a source of test cases because it provides interface testing capabilities and test data management, allowing testers to design and execute API test cases based on APIFOX.
[0196] Jenkins is an open source automation server that can be used to automate various tasks, including building, testing, and deploying software projects. In the source of test cases, Jenkins can configure automated test processes, execute test scripts, and generate test reports. Jenkins helps teams automate the execution of test cases and improve testing efficiency through the continuous integration / continuous deployment (CI / CD) process.
[0197] Cloud testing platforms provide cloud-based services to support the execution and management of test activities. These platforms usually provide functions such as instant deployment of test environments, management of test data, and analysis of run results. Cloud testing platforms can serve as a source of test cases because they provide a test execution environment and tools that allow testers to design, execute, and monitor test cases in a cloud environment.
[0198] These four sources provide different ways of test case generation and management, covering from infrastructure support to specific test execution tools, providing testers with a comprehensive testing solution.
[0199] Step A2: Identify target sources from the use case sources.
[0200] like Fig.10 As shown, it is assumed that the target source identified is the infrastructure.
[0201] Step A3: controlling the display of a first user interface corresponding to the target source.
[0202] like Fig.11 Shown is a schematic diagram of an implementation method of the first user interface provided in an embodiment of the present application.
[0203] Taking the identification of the production inspection task as the task name as an example, the operation and maintenance personnel can fill in the "task name" in the first user interface. Select the notification group through "DingTalk Notification".
[0204] Step A4: Obtain a production inspection task identifier through the first user interface.
[0205] Step A5: Select one or more test cases from the test case set corresponding to the target source through the first user interface.
[0206] Combination Fig.11 For example, click Fig.11 The "Add Use Case" button in the display 1101 can select the type of test case. Exemplarily, the types of test cases include but are not limited to: basic use cases and scenario use cases.
[0207] For example, if you click on the scenario use case, the third user interface can be displayed; Fig.12 Shown is a schematic diagram of a third user interface provided in an embodiment of the present application.
[0208] pass Fig.12 It can be seen that Fig.12 The left side shows the storage path of the test case. By clicking the corresponding storage path, Fig.12 The test cases stored in the storage path can be displayed on the right. Fig.12 In the example, "Case Name" is used to indicate the test case ID of the test case. The operation and maintenance personnel can select one or more test cases from it.
[0209] Step A6: Obtain a first execution order of the one or more test cases through the first user interface.
[0210] pass Fig.12 After selecting one or more test cases, you can get Fig.13 The user interface shown in the figure can be Fig.13 The illustrated “execution order” determines the first execution order of the multiple test cases as concurrent execution or sequential execution.
[0211] For example, it can be done by Fig.13 The "Scheduled Time" determines the time interval and start time for executing production inspection tasks.
[0212] For example, you can start Fig.13 Click "Scheduled Time" to display the "Scheduled Task" Fig.14 The timing window shown. Fig.14 As shown, it is a schematic diagram of the timing window provided in an embodiment of the present application.
[0213] Can be Fig.14 The timing window shown determines the time interval and start time for executing the production inspection task.
[0214] Step A7: construct a correspondence between the production inspection task identifier, the first execution sequence and the one or more test cases to obtain the production inspection task.
[0215] Combination Fig.10 It can be seen that in order to ensure the service quality of the online environment, this application uses multiple use case sources. The configuration requirements and user interfaces of different use case sources are the same. Operation and maintenance personnel do not need to spend a lot of time learning and maintaining the use case sources, reducing the complexity of introducing configuration of new use case sources.
[0216] This application combines different alarm systems together, and the alarm mechanism is the same. For details, please refer to steps S401 to S410. Alarm information of different alarm systems (such as business inspection alarm information, business processing information, and processing completion information) will be sent to the same notification group if the notification information is the same, and the alarm information will not be dispersed. Operation and maintenance personnel do not need to monitor multiple alarm sources, but only need to monitor the notification group, which reduces the risk of information overload and is not easy to ignore important alarms. The alarm format between different systems is the same, which can be seen in Figures 5 to 9 As shown, the complexity of alarm processing is reduced.
[0217] The following is an explanation of a method for constructing a test case, which includes the following steps B1 to B4 during implementation.
[0218] Step B1: In response to the operation of creating a test case, controlling the display of a second user interface.
[0219] like Fig.15, which is a schematic diagram of a user interface for creating a test case provided in an embodiment of the present application.
[0220] For example, it can be done by Fig.15 Click the "Operation" button of an existing test case to modify the existing test case.
[0221] Exemplarily, clicking “Add Test Case” is an operation of creating a test case.
[0222] like Fig.16 Shown is a schematic diagram of the second user interface portion provided in an embodiment of the present application.
[0223] For example, by clicking Fig.16 The "step" button in the test case can add a test step; a test case includes one or more test steps. Exemplarily, the second user interface can also include a URL for each test step and a waiting delay for each test step. Exemplarily, the second execution order of the multiple test steps is based on the step numbers corresponding to the multiple test steps (such as Fig.16 1, 2, 3) in the list are sorted by smallest arrival.
[0224] For example, it can be done by Fig.17 Set the test steps. Fig.17 As shown, it is a schematic diagram of the user interface for setting test steps provided in an embodiment of the present application.
[0225] Step B2: Obtain the test case identifier and the operating environment through the second user interface.
[0226] Step B3: Obtain multiple use case steps and a second execution order between the multiple use case steps through the second user interface.
[0227] Exemplarily, the second execution order is Fig.16 The step numbers corresponding to multiple test steps in Fig.16 1, 2, 3) in the above are the sorted results from the smallest order.
[0228] Step B4: construct a correspondence between the test case identifier, the operating environment, the multiple use case steps and the second execution order to obtain the test case.
[0229] In an optional implementation, a production inspection task includes multiple test cases; if the notification information corresponding to the multiple test cases is the same, then the "correspondence between the production inspection task and the notification information" is the "correspondence between the production inspection task and the notification information".
[0230] It is understandable that through Fig.11You can set the notification group corresponding to the production inspection task, that is, you can select the notification group ID in the "DingTalk Notification" selection box. Fig.18 , which is a schematic diagram of a user interface for setting a notification group provided in an embodiment of the present application.
[0231] For example, the notification group identifier can be represented by a "notification name". Fig.18 Set the notification ID or URL of the notification group identifier; Fig.18 In the input box corresponding to "Notify person (@)", you can enter the ID of the person in charge. Fig.18 and Fig.11 A "correspondence between production inspection tasks and notification information" has been established.
[0232] In an optional implementation, a production inspection task includes multiple test cases; the notification information corresponding to the multiple test cases can be the same or different. Then the "correspondence between production inspection tasks and notification information" is the "correspondence between test cases and notification information". At this time, step S402 is to find the target notification information corresponding to the multiple test cases included in the target production inspection task from the preset correspondence between test cases and notification information.
[0233] Exemplarily, notification information corresponding to the test case may be set during the process of creating the test case.
[0234] The above introduces a production inspection method for an online environment provided by an embodiment of the present application. The following will introduce a device for executing the production inspection method for the online environment described above.
[0235] See also Fig.19 , Fig.19 The present invention provides a schematic diagram of the structure of an online production inspection device in an embodiment of the present invention. Fig.19 As shown, the production inspection device of the online environment includes:
[0236] The first determination module 1901 is used to determine the online fault of the online environment according to the running result of the target production inspection task;
[0237] The first search module 1902 is used to search for target notification information corresponding to the target production inspection task from the correspondence between the preset production inspection tasks and notification information, wherein the target notification information includes a notification group address and a person-in-charge identifier; the notification number of the person-in-charge with the person-in-charge identifier is located in the notification group with the notification group address;
[0238] The first generating module 1903 is used to generate business inspection alarm information, wherein the business inspection alarm information includes the identifier of the target production inspection task, the test time, the online fault, the identifier of the person in charge, and a first processing state indicating that the task is not processed;
[0239] The first sending module 1904 is used to send the service inspection alarm information to the notification group address;
[0240] A first acquisition module 1905 is used to acquire a start processing message indicating that the online fault is being processed, wherein the start processing message is obtained by operating the first processing state;
[0241] The second generating module 1906 is used to generate business processing in-progress information, wherein the business processing in-progress information includes the name of the test task, the test time, the online fault, the responsible person identifier, the processor identifier of the processor who handles the online fault, and a second processing state representing the processing in progress; the processor identifier is at least one of the responsible person identifiers;
[0242] The second sending module 1907 is used to send the business processing in progress information to the notification group address;
[0243] The second acquisition module 1908 is used to acquire a processing completion message indicating that the online fault has been processed;
[0244] The third generating module 1909 is used to generate processing completion information, wherein the processing completion information includes the name of the test task, the test time, the online fault, the person in charge identifier, the processor identifier, and a third processing status indicating that the processing has been completed;
[0245] The third sending module 1910 is used to send the processing completion information to the notification group address.
[0246] In an optional implementation, the target production inspection task includes multiple test cases; the first determination module includes:
[0247] The determination unit is used to determine, for each of the test cases, that the online fault exists if the running result of the test case does not match the expected result of the test case.
[0248] In an optional implementation, if the identifiers of the persons in charge corresponding to different test cases are not completely the same, the first search module includes:
[0249] The searching unit is used to search for the target notification information respectively corresponding to the multiple test cases included in the target production inspection task from the correspondence between the preset test cases and the notification information.
[0250] In an optional implementation, the processing completion message is obtained by operating the second processing state, or the processing completion message is obtained by executing the target production inspection task again and the operation result of the target production inspection task does not have an online fault.
[0251] In an optional implementation, the method further includes:
[0252] The first control module is used to respond to the operation of creating a production inspection task and control the display of use case sources, where the use case sources include infrastructure, APIFOX, Jenkins, and cloud testing platform;
[0253] A second determination module, configured to determine a target source from the use case source;
[0254] A second control module, used for controlling the display of a first user interface corresponding to the target source;
[0255] A third acquisition module, used to acquire a production inspection task identifier through the first user interface;
[0256] A selection module, configured to select one or more test cases from a test case set corresponding to the target source through the first user interface;
[0257] A fourth acquisition module, configured to acquire a first execution order of the one or more test cases through the first user interface;
[0258] The first construction module is used to construct a correspondence between the production inspection task identifier, the first execution order and the one or more test cases to obtain the production inspection task.
[0259] In an optional implementation, the method further includes:
[0260] A third control module, configured to respond to an operation of creating a test case and control display of a second user interface;
[0261] A fifth acquisition module, used to acquire a test case identifier and an operating environment through the second user interface;
[0262] a sixth acquisition module, configured to obtain, through the second user interface, a plurality of use case steps and a second execution order between the plurality of use case steps,
[0263] The second construction module is used to construct a correspondence between the test case identifier, the operating environment, the multiple use case steps and the second execution order to obtain the test case.
[0264] The present application also provides an electronic device in an embodiment. Fig. 20As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig. 20 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0265] like Fig. 20 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 2001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 2002 or a program loaded from a storage device 2008 to a random access memory (RAM) 2003. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 2003. The processing device 2001, the ROM 2002, and the RAM 2003 are connected to each other via a bus 2004. An input / output (I / O) interface 2005 is also connected to the bus 2004.
[0266] Typically, the following devices may be connected to the I / O interface 2005: input devices 2006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 2007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 2008 including, for example, a memory card, a hard disk, etc.; and communication devices 2009. The communication device 2009 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 20 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0267] Also provided in an embodiment of the present application is a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements a production inspection method in any online environment provided in an embodiment of the present application.
[0268] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When one or more computer programs are executed by an electronic device, the electronic device can implement any online environment production inspection method provided in an embodiment of the present application.
[0269] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0270] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0271] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0272] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A production inspection method for an online environment, characterized in that: include: Determine online faults in the online environment based on the running results of the target production inspection tasks; From the correspondence between the preset production inspection tasks and notification information, searching for the target notification information corresponding to the target production inspection task, the target notification information including the notification group address and the person in charge identifier; The communication number of the person in charge having the person in charge identification is located in the notification group having the notification group address; Generate business inspection alarm information, the business inspection alarm information including the identifier of the target production inspection task, the test time, the online fault, the identifier of the person in charge, and a first processing state indicating unprocessed; Sending the service inspection alarm information to the notification group address; Acquire a start processing message indicating that the online fault is being processed, wherein the start processing message is obtained by operating the first processing state; Generate business processing in-progress information, the business processing in-progress information including the name of the test task, the test time, the online fault, the person in charge identifier, the processor identifier of the processor who handles the online fault, and a second processing state representing the processing in progress; The processor identifier is at least one of the person in charge identifiers; Sending the business processing in progress information to the notification group address; Obtaining a processing completion message indicating that the online fault has been processed; Generate processing completion information, the processing completion information including the name of the test task, the test time, the online fault, the person in charge identifier, the processor identifier, and a third processing status indicating that the processing has been completed; Send the processing completion information to the notification group address.
2. The production inspection method for an online environment according to claim 1, characterized in that: The target production inspection task includes multiple test cases; the step of determining the online fault of the online environment through the running result of the target production inspection task includes: For each of the test cases, if the running result of the test case does not match the expected result of the test case, it is determined that the online fault exists.
3. The production inspection method for online environment according to claim 2 is characterized in that: If the responsible person identifiers corresponding to different test cases are not completely the same, the step of searching the target notification information corresponding to the target production inspection task from the correspondence between the preset production inspection tasks and notification information includes: From the correspondence between preset test cases and notification information, the target notification information respectively corresponding to the multiple test cases included in the target production inspection task is searched.
4. The production inspection method for an online environment according to any one of claims 1 to 3, characterized in that: The processing completion message is obtained by operating the second processing state, or the processing completion message is obtained by executing the target production inspection task again and the running result of the target production inspection task does not have an online fault.
5. The production inspection method for an online environment according to claim 1, characterized in that: The method for constructing the production inspection task includes: In response to the operation of creating a production inspection task, control the display of use case sources, which include infrastructure, APIFOX, Jenkins, and cloud testing platform; Identify target sources from among the use case sources; Controlling display of a first user interface corresponding to the target source; Obtaining a production inspection task identifier through the first user interface; Selecting one or more test cases from a test case set corresponding to the target source through the first user interface; Acquire a first execution order of the one or more test cases through the first user interface; A correspondence between the production inspection task identifier, the first execution order and the one or more test cases is constructed to obtain the production inspection task.
6. The production inspection method for an online environment according to any one of claims 2 or 3, characterized in that: The method of constructing the test case includes: In response to an operation of creating a test case, controlling display of a second user interface; Obtaining a test case identifier and an operating environment through the second user interface; obtaining, through the second user interface, a plurality of use case steps and a second execution order between the plurality of use case steps, A correspondence between the test case identifier, the operating environment, the multiple use case steps and the second execution order is constructed to obtain the test case.
7. A production inspection device for an online environment, characterized in that: include: The first determination module is used to determine the online fault of the online environment according to the running result of the target production inspection task; A first search module is used to search for target notification information corresponding to the target production inspection task from the correspondence between the preset production inspection tasks and notification information, wherein the target notification information includes a notification group address and a person in charge identifier; The communication number of the person in charge having the person in charge identification is located in the notification group having the notification group address; A first generating module, configured to generate business inspection alarm information, wherein the business inspection alarm information includes an identifier of the target production inspection task, a test time, the online fault, an identifier of the person in charge, and a first processing state indicating that the task is not processed; A first sending module, used for sending the service inspection alarm information to the notification group address; A first acquisition module is used to acquire a start processing message indicating that the online fault is being processed, wherein the start processing message is obtained by operating the first processing state; A second generating module is used to generate business processing in-progress information, wherein the business processing in-progress information includes the name of the test task, the test time, the online fault, the person in charge identifier, the identifier of the person who handles the online fault, and a second processing state representing the processing in progress; The processor identifier is at least one of the person in charge identifiers; A second sending module, used for sending the business processing in progress information to the notification group address; A second acquisition module is used to acquire a processing completion message indicating that the online fault has been processed; A third generating module is used to generate processing completion information, wherein the processing completion information includes the name of the test task, the test time, the online fault, the person in charge identifier, the processor identifier, and a third processing status indicating that the processing has been completed; The third sending module is used to send the processing completion information to the notification group address.
8. A computer program product, characterized in that It includes computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the production inspection method for an online environment as described in any one of claims 1 to 6.
9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the production inspection method for an online environment as described in any one of claims 1 to 6.
10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the production inspection method for an online environment as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method and system for monitoring online business
CN107506298A
An alarm method and system for on-line service
CN109039718A
Alarm processing method and device and storage medium
CN115378792A
Alarm method, device and system for test inspection
CN117056177A
Testcase selection method and related apparatus
WO2022268062A1