Application program quality monitoring method and related device
By determining the target application during application development, finding its corresponding trigger monitoring process and obtaining the actual value of access control indicators, the problem of application quality monitoring in different environments is solved, and the stable operation and security of the application are achieved.
Patent Information
- Application Number
- CN202411879810.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-25
AI Technical Summary
During the application development process, how to effectively monitor the quality of the application in different environments to avoid functional defects, performance bottlenecks and security vulnerabilities.
By determining the target application to be monitored, finding its corresponding trigger monitoring process, obtaining the actual value of the access control indicator for each triggering time, and determining whether it meets the preset threshold range, thereby realizing monitoring of application quality.
It realizes effective monitoring of the quality of applications in different environments, ensuring that applications operate stably in various environments, and avoids functional defects, performance bottlenecks and security vulnerabilities.
Smart Images

Figure CN119690845A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a quality monitoring method for an application program and a related device. Background Art
[0002] During the application development process, it is crucial to ensure that the application runs stably in various environments (such as development environment, test environment, production environment, etc.), that is, the quality of the application needs to be monitored. If the quality of the application is not tested, the following problems may occur: the application may contain functional defects and errors; the untested application may have performance bottlenecks.
[0003] Based on this, how to monitor the quality of application programs is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0004] In view of the above problems, the present application provides a method and related device for monitoring the quality of an application program to achieve the purpose of monitoring the quality of the application program. The specific scheme is as follows:
[0005] The first aspect of the present application provides a method for monitoring the quality of an application program, comprising:
[0006] Identify the target applications to be monitored;
[0007] From the correspondence between the preset applications and the trigger monitoring process, searching for the target trigger monitoring process corresponding to the target application, the target monitoring process comprising a plurality of target triggering opportunities arranged in sequence, the target triggering opportunities representing the environment in which the target application is run;
[0008] For each of the target triggering moments, if the target application has completed running in the environment represented by the target triggering moment, the target access control indicator identifier corresponding to the target triggering time and the target application identifier of the target application is searched from the correspondence between the preset triggering moment, the application identifier and the access control indicator identifier, and the target access control indicator identifier corresponds to the card control indicator and the preset threshold range;
[0009] For each of the target triggering moments, if the target application has completed running in the environment represented by the target triggering moment, obtaining the actual value of the card control indicator corresponding to the target access control indicator identifier;
[0010] For each of the target triggering moments, if the actual value falls within the preset threshold range, it is determined that the target access control indicator complies with the rule.
[0011] In a possible implementation, the step of obtaining the actual value of the card control indicator corresponding to the target access control indicator identifier includes:
[0012] From the pre-stored correspondence between the application identifier, the access control indicator identifier, the actual value and the acquisition time, the actual value of the latest acquisition time corresponding to the target application identifier and the target access control indicator identifier is searched.
[0013] In a possible implementation, the step of searching for a target access control indicator identifier corresponding to the target trigger time and the target application identifier of the target application from the correspondence between the preset trigger timing, the application identifier and the access control indicator identifier includes:
[0014] Searching for a target application group identifier corresponding to the target application identifier from a preset correspondence relationship between application identifiers and application group identifiers;
[0015] From the correspondence between the preset triggering timing, the application group identifier and the access control indicator identifier, the target access control indicator identifier corresponding to the target triggering timing and the target application group identifier is searched.
[0016] In a possible implementation, the method for constructing the correspondence between the target application program identifier and the target application group identifier includes:
[0017] Controlling display of a first user interface, wherein the first user interface includes the target application group identifier;
[0018] triggering an edit button corresponding to the target application group identifier in the first user interface to enter a second user interface;
[0019] Adding the target application program identifier through the application list area of the second user interface;
[0020] If the save button in the first user interface is triggered, a correspondence between the target application program identifier and the target application group identifier is constructed.
[0021] In a possible implementation, a method for establishing a correspondence between a triggering time, an application group identifier, and an access control indicator identifier includes:
[0022] Controlling display of a third user interface;
[0023] Selecting a door access indicator identifier through a first selection box of the third user interface;
[0024] Select a card control indicator through a second selection box of the third user interface;
[0025] Inputting the preset threshold range through the input box of the third user interface;
[0026] Selecting a triggering time through a third selection box of the third user interface;
[0027] Selecting an application group identifier through a fourth selection box of the third user interface;
[0028] If the save button in the third user interface is triggered, a correspondence between the triggering time, the application group identifier, and the access control indicator identifier selected through the third user interface is established.
[0029] A second aspect of the present application provides a quality monitoring device for an application program, comprising:
[0030] A first determination module, used to determine a target application to be monitored;
[0031] A first search module is used to search for a target trigger monitoring process corresponding to the target application from a correspondence between preset applications and trigger monitoring processes, wherein the target monitoring process includes a plurality of target triggering opportunities sorted in sequence, and the target triggering opportunities represent an environment for running the target application;
[0032] A second search module is used for searching, for each of the target triggering moments, a target access control indicator identifier corresponding to the target triggering time and the target application identifier of the target application from the correspondence between the preset triggering moments, the application identifier and the access control indicator identifier, wherein the target access control indicator identifier corresponds to a card control indicator and a preset threshold range;
[0033] An acquisition module, for acquiring, for each target triggering opportunity, an actual value of the card control indicator corresponding to the target access control indicator identifier if the target application has completed running in the environment represented by the target triggering opportunity;
[0034] The second determination module is used to determine, for each target triggering opportunity, if the actual value belongs to the preset threshold range, whether the target access control indicator meets the rule.
[0035] In a possible implementation, the acquisition module includes:
[0036] The first search unit is used to search for the actual value of the latest acquisition time corresponding to the target application identifier and the target access control indicator identifier from the pre-stored correspondence between the application identifier, access control indicator identifier, actual value and acquisition time for each target triggering moment if the target application has completed running in the environment represented by the target triggering moment.
[0037] A 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 method for monitoring the quality of an application program according to the first aspect or any implementation of the first aspect.
[0038] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0039] The memory is used to store computer programs;
[0040] The processor is used to execute the computer program so that the electronic device can implement the quality monitoring method of the application program according to the first aspect or any implementation manner of the first aspect.
[0041] 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 use the quality monitoring method of the application program of the first aspect or any implementation method of the first aspect.
[0042] By means of the above technical scheme, the present application provides a method for monitoring the quality of an application, which determines the target application to be monitored; from the correspondence between the preset application and the trigger monitoring process, find the target trigger monitoring process corresponding to the target application; for each target triggering time, if the target application has completed running in the environment represented by the target triggering time, find the target access control indicator identifier corresponding to the target application identifier of the target triggering time and the target application from the correspondence between the preset triggering time, application identifier and access control indicator identifier, and obtain the actual value of the card control indicator corresponding to the target access control indicator identifier; if the actual value belongs to the preset threshold range, determine that the target access control indicator complies with the rule. Thus, the purpose of monitoring the quality of the application is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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.
[0044] Figure 1 A schematic diagram of a system architecture provided for this application;
[0045] Figure 2 A schematic diagram of an optional hardware structure of a terminal 100 provided in this application;
[0046] Figure 3A schematic diagram of the structure of a first server 200 provided in this application;
[0047] Figure 4 A flowchart of a method for monitoring the quality of an application program provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of a fifth user interface provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of a sixth user interface provided in an embodiment of the present application;
[0050] Figure 7 A schematic diagram of an implementation method of the corresponding relationship between the application identifier, access control indicator identifier, actual value and acquisition time provided in an embodiment of the present application;
[0051] Figure 8 A schematic diagram of an implementation method of the first user interface provided in an embodiment of the present application;
[0052] Fig. 9 A schematic diagram of an implementation method of the second user interface provided in an embodiment of the present application;
[0053] Fig.10 A schematic diagram of an implementation method of the third user interface provided in an embodiment of the present application;
[0054] Fig.11 A schematic diagram of the structure of a quality monitoring device for an application program provided in an embodiment of the present application;
[0055] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] 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.
[0057] 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.
[0058] 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.
[0059] During the application development process, it is crucial to ensure that the application runs stably in various environments (such as development, testing, production, etc.), which means that the quality of the application needs to be monitored. If quality testing is not performed before entering the next stage, the following problems may occur:
[0060] Functional defects and errors: Undetected applications may contain functional defects and errors, which may cause program crashes or data corruption in subsequent environments, affecting user experience and business continuity.
[0061] Performance issues: Undetected applications may have performance bottlenecks, causing the application to run slowly, affecting user experience and system efficiency.
[0062] Security vulnerabilities: Lack of quality inspection may result in security vulnerabilities in the application not being discovered and fixed in a timely manner, increasing the risk of data leakage and system attacks.
[0063] Code quality issues: There may be problems in the application that do not comply with coding standards, such as code duplication, potential logical errors, etc. These problems will increase maintenance costs and reduce code readability.
[0064] This application solves the above problems through the quality gate platform. In DevOps, by setting quality gates at each stage of development, we can ensure that functional updates undergo strict quality checks to ensure the quality and stability of the application.
[0065] The following is a detailed description of the quality monitoring method for the application program provided in this application.
[0066] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100, a first server 200, a second server 300 and a database 400. The server 200 may include one or more servers ( Figure 1In 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 terminals.
[0067] Among them, an application or a web page can be installed on the terminal 100, and the above application and web page can provide an interface. The terminal 100 can receive relevant parameters entered by the user on the interface, such as the application identifier of the application to be monitored; and send the above parameters to the first server 200. The first server 200 can obtain corresponding data from the database 400 based on the received parameters, obtain processing results, and return the processing results to the terminal 100.
[0068] Exemplarily, the second server 300 may be a server carrying various environments (such as development, testing, production, etc.). Different second servers 300 may carry different environments; exemplarily, an application may be run in the second server 300, and the obtained data may be stored in the database 400.
[0069] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining data from the database 400 and obtaining processing results based on the received parameters by itself without the cooperation of the first server, and the embodiments of the present application are not limited.
[0070] Exemplarily, the first server 200 and the second server 300 may be the same server or different servers.
[0071] Next describe Figure 1 The product form of the mid-terminal 100;
[0072] The 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 limitation on this.
[0073] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.
[0074] refer to Figure 2As shown, the 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 a terminal and does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0075] 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 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 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.
[0076] Among them, the input device 132 can receive input data and the like.
[0077] The display unit 140 may be used to display information input by the user or provided to the user, various menus of the 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.
[0078] 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.
[0079] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire 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 terminal 100 and processes data, thereby controlling the 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 separate 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.
[0080] Among them, the memory 120 can be used to store software codes related to the quality monitoring method of the application, the processor 170 can execute the steps of the quality monitoring method of the application, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to implement corresponding functions.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] The 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.
[0085] The terminal 100 further 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 terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .
[0086] Although not shown, the 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 terminal 100 shown.
[0087] Next describe Figure 1 The product form of the first server 200;
[0088] Figure 3 A structural diagram of a first server 200 is provided, such as Figure 3 As shown, the first 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.
[0089] 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.
[0090] 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).
[0091] 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).
[0092] The memory 204 may be used to store software codes related to the quality monitoring method of the application program, and the processor 202 may execute the steps of the quality monitoring method of the chip application program, and may also schedule other units to implement corresponding functions.
[0093] It should be understood that the above-mentioned terminal 100 and the first server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and the first server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.
[0094] In order to solve the above problems, the embodiment of the present application provides a method for monitoring the quality of an application program. The method for monitoring the quality of an application program according to the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0095] Reference Figure 4 , Figure 4 A flow chart of a method for monitoring the quality of an application program provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, a method for monitoring the quality of an application program provided in an embodiment of the present application may include steps S401 to S405, and these steps are described in detail below.
[0096] Step S401: Determine the target application to be monitored.
[0097] Exemplarily, the target application may be determined based on actual conditions.
[0098] Step S402: searching for a target trigger monitoring process corresponding to the target application from the correspondence between preset applications and trigger monitoring processes, wherein the target monitoring process includes a plurality of target triggering moments arranged in sequence, and the target triggering moments represent an environment for running the target application.
[0099] The following is an explanation of the process of constructing the corresponding relationship between the application program and the trigger monitoring process. The process includes the following steps A1 to A5.
[0100] Step A1: controlling the display of a fifth user interface.
[0101] The fifth user interface includes application identifications of a plurality of applications.
[0102] In order for those skilled in the art to better understand the fifth user interface provided in the embodiment of the present application, the fifth user interface is described below by taking an example.
[0103] like Figure 5 Shown is a schematic diagram of the fifth user interface provided in an embodiment of the present application.
[0104] like Figure 5 As shown, the application identifier of the application includes the pipeline name. Figure 5 7 application program identifiers are shown in FIG. Each application program identifier corresponds to a "build now" button.
[0105] Step A2: If the build now button corresponding to the target application identifier in the fifth user interface is triggered, control the display of the sixth user interface.
[0106] Step A3: constructing the target trigger monitoring process through the sixth user interface.
[0107] In order for those skilled in the art to better understand the sixth user interface provided in the embodiment of the present application, the fifth user interface is described below by way of example.
[0108] like Figure 6 Shown is a schematic diagram of the sixth user interface provided in an embodiment of the present application.
[0109] Assuming that the target application is identified as "Quality Gate-Emergency Release Pipeline", the starting point of the process shown in the sixth user interface, application construction, deployment release / PROD, and process end are used to set the target trigger monitoring process.
[0110] For example, the execution order of the environment added at the starting point of the process is ranked first; the execution order of the environment added at the application build is ranked second; the execution order of the environment added at the deployment release / PROD is ranked third; the execution order of the environment added at the end of the process is ranked fourth.
[0111] By way of example, the environments mentioned in the embodiments of the present application include, but are not limited to: Dev environment (Development Environment), Fat environment (Factory Acceptance Testing Environment), Uat environment (User Acceptance Testing Environment), and Prod environment (Production Environment).
[0112] The following is an explanation of "the target monitoring process includes multiple target triggering opportunities arranged in sequence".
[0113] If one or more target triggering opportunities can be executed at the same time, then the one or more target triggering opportunities are located at the same level; if multiple target triggering opportunities cannot be executed at the same time, then the multiple target triggering opportunities are located at different levels.
[0114] Step S403: For each of the target triggering moments, if the target application has completed running in the environment represented by the target triggering moment, the target access control indicator identifier corresponding to the target trigger time and the target application identifier of the target application is searched from the correspondence between the preset triggering moment, the application identifier and the access control indicator identifier, and the target access control indicator identifier corresponds to a card control indicator and a preset threshold range.
[0115] Step S404: for each of the target triggering moments, if the target application has completed running in the environment represented by the target triggering moment, the actual value of the card control indicator corresponding to the target access control indicator identifier is obtained.
[0116] It is understandable that the actual value of the card control indicator corresponding to the target access control indicator identifier can be stored in the database 400.
[0117] Exemplarily, a method for obtaining the actual value of the card control indicator corresponding to the target access control indicator identifier includes: searching for the actual value of the latest acquisition time corresponding to the target application identifier and the target access control indicator identifier from the pre-stored correspondence between the application identifier, access control indicator identifier, actual value and acquisition time.
[0118] In order for those skilled in the art to better understand the "corresponding relationship between application identifier, access control indicator identifier, actual value and acquisition time", the following example is used to illustrate: Figure 7 As shown, it is a schematic diagram of an implementation method of the correspondence between the application identifier, access control indicator identifier, actual value and acquisition time provided in an embodiment of the present application.
[0119] Figure 7 In the example, "pipelinekey" is used to represent the application identifier, "Type ID" is used to represent the access control indicator identifier, and "nowResult" is used to represent the actual value. For example, "accessType" is the indicator type to which the access control indicator identifier belongs. Figure 7 Each row in is a corresponding relationship.
[0120] It is understandable that for the same application, if the application is re-run due to code, script or peripheral configuration changes, there may be multiple corresponding relationships for the same application, one row for one corresponding relationship, and in the multiple corresponding relationships for the same application, the "application identifier and access control indicator identifier" are the same, but the "acquisition time" is different.
[0121] Step S405: For each of the target triggering opportunities, if the actual value belongs to the preset threshold range, it is determined that the target access control indicator meets the rule.
[0122] It is understandable that if the actual value does not fall within the preset threshold range, it is determined that the target access control indicator does not comply with the rule.
[0123] The embodiment of the present application provides a method for monitoring the quality of an application, which determines a target application to be monitored; from the correspondence between the preset application and the trigger monitoring process, finds the target trigger monitoring process corresponding to the target application; for each target triggering time, if the target application is completed in the environment represented by the target triggering time, finds the target access control indicator identifier corresponding to the target application identifier of the target triggering time and the target application from the correspondence between the preset triggering time, application identifier and access control indicator identifier, and obtains the actual value of the card control indicator corresponding to the target access control indicator identifier; if the actual value belongs to the preset threshold range, determines that the target access control indicator complies with the rule. Thus, the purpose of monitoring the quality of the application is achieved.
[0124] It is understandable that there are multiple ways to implement step S403. The embodiment of the present application provides but is not limited to the following method, which includes the following steps B1 to B2 during implementation.
[0125] Step B1: searching for a target application group identifier corresponding to the target application identifier from a preset correspondence relationship between application identifiers and application group identifiers.
[0126] The implementation process of step B1 is described below. The process includes the following steps B11 to B14.
[0127] Step B11: controlling the display of a first user interface, wherein the first user interface includes the target application group identifier.
[0128] like Figure 8 Shown is a schematic diagram of an implementation method of the first user interface provided in an embodiment of the present application.
[0129] Figure 8 10 application group identifiers are shown. Figure 8 In the application group identifier, "name" is used. Figure 8Each application group identifier corresponds to an "Edit" button.
[0130] Step B12: triggering an edit button corresponding to the target application group identifier in the first user interface to enter the second user interface.
[0131] Step B13: Add the target application program identifier through the application list area of the second user interface.
[0132] like Fig. 9 Shown is a schematic diagram of an implementation method of the second user interface provided in an embodiment of the present application.
[0133] Fig. 9 The middle area 91 is an application list area, from which you can select the application program ID that needs to be added.
[0134] Step B14: If the save button in the first user interface is triggered, a correspondence between the target application program identifier and the target application group identifier is constructed.
[0135] Step B2: searching for the target access control indicator identifier corresponding to the target triggering timing and the target application group identifier from the correspondence relationship among the preset triggering timing, the application group identifier and the access control indicator identifier.
[0136] The implementation process of step B2 is described below. The process includes the following steps B21 to B27.
[0137] Step B21: controlling the display of the third user interface.
[0138] like Fig.10 Shown is a schematic diagram of an implementation method of the third user interface provided in an embodiment of the present application.
[0139] Fig.10 The access control indicator name is used to represent the access control indicator identifier. For example, the access control indicator name includes but is not limited to: functional test code coverage, automated interface pass rate, static code scanning, regression test automated interface pass rate, change regular interface release period, code review, and health check.
[0140] Step B22: Select an access control indicator identifier through the first selection box of the third user interface.
[0141] For example, Fig.10 The selection box 1001 is the first selection box. Fig.10 The access control indicator selected in is the automation interface pass rate.
[0142] Step B23: Select a card control indicator through the second selection box of the third user interface.
[0143] For example, Fig.10 The selection box 1002 is the second selection box. Fig.10 The card control indicator selected is the automation interface pass rate.
[0144] Step B24: Input the preset threshold range through the input box of the third user interface.
[0145] For example, Fig.10 The input box 1003 is an input box.
[0146] Step B25: Select a triggering time through the third selection box of the third user interface.
[0147] For example, Fig.10 The selection box 1004 is the third selection box. Fig.10 The triggering time selected in is the Uat environment application release. Exemplarily, the triggering times in the embodiment of the present application are: Dev environment application release (corresponding to Dev environment), Fat environment application release (corresponding to Fat environment), Uat environment application release (corresponding to Uat environment), Prod environment application release (corresponding to Prod environment).
[0148] Step B26: Select an application group identifier through the fourth selection box of the third user interface.
[0149] For example, Fig.10 The selection box 1005 is the fourth selection box.
[0150] Step B27: If the save button in the third user interface is triggered, a correspondence between the triggering timing, the application group identifier, and the access control indicator identifier selected through the third user interface is established.
[0151] A method for monitoring the quality of an application program provided in an embodiment of the present application is introduced above, and a device for executing the method for monitoring the quality of an application program will be introduced below.
[0152] See also Fig.11 , Fig.11 A schematic diagram of a device for monitoring the quality of an application program provided in an embodiment of the present application. Fig.11 As shown, the quality monitoring device of the application includes:
[0153] A first determination module 1101 is used to determine a target application to be monitored;
[0154] A first search module 1102 is used to search for a target trigger monitoring process corresponding to the target application from a preset correspondence relationship between the application and the trigger monitoring process, wherein the target monitoring process includes a plurality of target triggering opportunities arranged in sequence, and the target triggering opportunities represent an environment in which the target application is run;
[0155] The second search module 1103 is used for searching, for each of the target triggering moments, a target access control indicator identifier corresponding to the target triggering time and the target application identifier of the target application from the correspondence between the preset triggering moments, the application identifier and the access control indicator identifier, wherein the target access control indicator identifier corresponds to a card control indicator and a preset threshold range;
[0156] An acquisition module 1104 is configured to acquire, for each target triggering opportunity, an actual value of a card control indicator corresponding to the target access control indicator identifier if the target application has completed running in the environment represented by the target triggering opportunity;
[0157] The second determination module 1105 is configured to determine, for each target triggering opportunity, if the actual value belongs to the preset threshold range, whether the target access control indicator complies with the rule.
[0158] In an optional implementation, the acquisition module includes:
[0159] The first search unit is used to search for the actual value of the latest acquisition time corresponding to the target application identifier and the target access control indicator identifier from the pre-stored correspondence between the application identifier, access control indicator identifier, actual value and acquisition time for each target triggering moment if the target application has completed running in the environment represented by the target triggering moment.
[0160] In an optional implementation, the second search module includes:
[0161] A second searching unit, configured to search for a target application group identifier corresponding to the target application identifier from a preset correspondence relationship between application identifiers and application group identifiers;
[0162] The third searching unit is used to search for the target access control indicator identifier corresponding to the target triggering timing and the target application group identifier from the correspondence relationship among preset triggering timings, application group identifiers and access control indicator identifiers.
[0163] In an optional implementation, the method further includes:
[0164] A first control module, configured to control display of a first user interface, wherein the first user interface includes the target application group identifier;
[0165] A trigger module, configured to trigger an edit button corresponding to the target application group identifier in the first user interface to enter a second user interface;
[0166] A setting module, configured to add the target application program identifier through the application list area of the second user interface;
[0167] The first building module is used to build a corresponding relationship between the target application program identifier and the target application group identifier if the save button in the first user interface is triggered.
[0168] In an optional implementation, the method further includes:
[0169] A second control module, used for controlling the display of a third user interface;
[0170] A first selection module, used to select a door access indicator identifier through a first selection box of the third user interface;
[0171] A second selection module, used to select a card control indicator through a second selection box of the third user interface;
[0172] An input module, used for inputting the preset threshold range through an input box of the third user interface;
[0173] A third selection module, used to select a triggering time through a third selection box of the third user interface;
[0174] A fourth selection module, configured to select an application group identifier through a fourth selection box of the third user interface;
[0175] The second construction module is used to construct a corresponding relationship between the triggering time, application group identifier and access control indicator identifier selected through the third user interface if the save button in the third user interface is triggered.
[0176] The present application also provides an electronic device in an embodiment. Fig.12 As 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.12 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.
[0177] like Fig.12As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage device 1208 to a random access memory (RAM) 1203. 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 1203. The processing device 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.
[0178] Typically, the following devices may be connected to the I / O interface 1205: an input device 1206 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1208 including, for example, a memory card, a hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 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.
[0179] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements a quality monitoring method for any application provided in the embodiment of the present application.
[0180] 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 the one or more computer programs are executed by an electronic device, the electronic device can implement a quality monitoring method for any application provided in an embodiment of the present application.
[0181] 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.
[0182] 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.
[0183] 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.
[0184] 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 method for monitoring the quality of an application, characterized in that: include: Identify the target applications to be monitored; From the correspondence between the preset applications and the trigger monitoring process, searching for the target trigger monitoring process corresponding to the target application, the target monitoring process comprising a plurality of target triggering opportunities arranged in sequence, the target triggering opportunities representing the environment in which the target application is run; For each of the target triggering moments, if the target application has completed running in the environment represented by the target triggering moment, the target access control indicator identifier corresponding to the target triggering time and the target application identifier of the target application is searched from the correspondence between the preset triggering moment, the application identifier and the access control indicator identifier, and the target access control indicator identifier corresponds to the card control indicator and the preset threshold range; For each of the target triggering moments, if the target application has completed running in the environment represented by the target triggering moment, obtaining the actual value of the card control indicator corresponding to the target access control indicator identifier; For each of the target triggering moments, if the actual value falls within the preset threshold range, it is determined that the target access control indicator complies with the rule.
2. The method for monitoring the quality of an application according to claim 1, characterized in that: The step of obtaining the actual value of the card control indicator corresponding to the target access control indicator identifier includes: From the pre-stored correspondence between the application identifier, the access control indicator identifier, the actual value and the acquisition time, the actual value of the latest acquisition time corresponding to the target application identifier and the target access control indicator identifier is searched.
3. The method for monitoring the quality of an application according to any one of claims 1 or 2, characterized in that: The step of searching for a target access control indicator identifier corresponding to the target trigger time and the target application identifier of the target application from the correspondence between the preset trigger timing, the application identifier and the access control indicator identifier comprises: Searching for a target application group identifier corresponding to the target application identifier from a preset correspondence relationship between application identifiers and application group identifiers; From the correspondence between the preset triggering timing, the application group identifier and the access control indicator identifier, the target access control indicator identifier corresponding to the target triggering timing and the target application group identifier is searched.
4. The method for monitoring the quality of an application according to claim 3, characterized in that: The method for constructing the corresponding relationship between the target application program identifier and the target application group identifier includes: Controlling display of a first user interface, wherein the first user interface includes the target application group identifier; triggering an edit button corresponding to the target application group identifier in the first user interface to enter a second user interface; Adding the target application program identifier through the application list area of the second user interface; If the save button in the first user interface is triggered, a correspondence between the target application program identifier and the target application group identifier is constructed.
5. The method for monitoring the quality of an application according to claim 3, characterized in that: The method for establishing the corresponding relationship between the triggering time, the application group identifier and the access control indicator identifier includes: Controlling display of a third user interface; Selecting a door access indicator identifier through a first selection box of the third user interface; Select a card control indicator through a second selection box of the third user interface; Inputting the preset threshold range through the input box of the third user interface; Selecting a triggering time through a third selection box of the third user interface; Selecting an application group identifier through a fourth selection box of the third user interface; If the save button in the third user interface is triggered, a correspondence between the triggering timing, the application group identifier, and the access control indicator identifier selected through the third user interface is established.
6. A quality monitoring device for an application, characterized in that: include: A first determination module, used to determine a target application to be monitored; A first search module is used to search for a target trigger monitoring process corresponding to the target application from a correspondence between preset applications and trigger monitoring processes, wherein the target monitoring process includes a plurality of target triggering opportunities sorted in sequence, and the target triggering opportunities represent an environment for running the target application; A second search module is used for searching, for each of the target triggering moments, a target access control indicator identifier corresponding to the target triggering time and the target application identifier of the target application from the correspondence between the preset triggering moments, the application identifier and the access control indicator identifier, wherein the target access control indicator identifier corresponds to a card control indicator and a preset threshold range; An acquisition module, for acquiring, for each target triggering opportunity, an actual value of the card control indicator corresponding to the target access control indicator identifier if the target application has completed running in the environment represented by the target triggering opportunity; The second determination module is used to determine, for each target triggering opportunity, if the actual value belongs to the preset threshold range, whether the target access control indicator meets the rule.
7. The device for monitoring the quality of an application program according to claim 6, characterized in that: The acquisition module comprises: The first search unit is used to search for the actual value of the latest acquisition time corresponding to the target application identifier and the target access control indicator identifier from the pre-stored correspondence between the application identifier, access control indicator identifier, actual value and acquisition time for each target triggering moment if the target application has completed running in the environment represented by the target triggering moment.
8. A computer program product, characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the quality monitoring method of the application program as claimed in any one of claims 1 to 5.
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 quality monitoring method of the application program as described in any one of claims 1 to 5.
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 quality monitoring method of the application program as described in any one of claims 1 to 5.