CN112069070A - Page detection method, device, server and computer readable storage medium - Google Patents

Page detection method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN112069070A
CN112069070A CN202010920583.5A CN202010920583A CN112069070A CN 112069070 A CN112069070 A CN 112069070A CN 202010920583 A CN202010920583 A CN 202010920583A CN 112069070 A CN112069070 A CN 112069070A
Authority
CN
China
Prior art keywords
page
target
coverage
monitoring
service system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010920583.5A
Other languages
Chinese (zh)
Inventor
肖玉琦
左颖辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202010920583.5A priority Critical patent/CN112069070A/en
Publication of CN112069070A publication Critical patent/CN112069070A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The embodiment of the application provides a page detection method, a page detection device, a server and a computer readable storage medium, which are applied to the field of testing, wherein the method comprises the following steps: when the target service system is detected to run, monitoring the coverage condition of each page on the corresponding target function through the monitoring program corresponding to each page in the target service system to obtain monitoring data, and determining the coverage condition as an uncovered target page from each page based on the monitoring data; acquiring object information of the target page, wherein the object information comprises a page identifier and a path of the target page and a system identifier of a target business system corresponding to the target page; generating coverage indication information including the object information aiming at the target page, wherein the coverage indication information is used for indicating the coverage condition of the target page to the corresponding function; the coverage indication information is output, so that the automatic detection of the page coverage can be realized, and the page detection efficiency and the detection accuracy are improved.

Description

Page detection method, device, server and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page detection method, apparatus, server, and computer-readable storage medium.
Background
Regression testing refers to that after old code is modified, testing is performed again to confirm that new errors are not introduced into the modification or other code errors are generated, so as to determine whether the modification achieves the intended purpose, or new test cases need to be supplemented to test new or modified target functions. At present, the regression test only covers UI automation and test data construction, but more detection on whether the page covers the corresponding target function (hereinafter referred to as page coverage) depends on manual inspection, the functions corresponding to the page are increased along with continuous iteration of the version, the closer the relation among modules is, the manual regression is only depended on, the time required by repeated regression test is too long, the risk of missing the corresponding functions of the page is increased, and the problems of low efficiency, inaccurate detection and the like of the regression test are caused.
Disclosure of Invention
The embodiment of the application provides a page detection method, a page detection device, a server and a computer-readable storage medium, which can realize automatic detection of page coverage and improve page detection efficiency and detection accuracy.
A first aspect of an embodiment of the present application provides a page detection method, including:
when a target service system is detected to run, monitoring the coverage condition of each page to the corresponding target function through the monitoring program corresponding to each page in the target service system to obtain monitoring data, wherein the coverage condition comprises coverage or non-coverage, the monitoring program is configured in advance, one page in each page corresponds to one monitoring program, and the monitoring data indicates the coverage condition of each page to the corresponding target function;
determining the coverage condition as an uncovered target page from the pages based on the monitoring data;
acquiring object information of the target page, wherein the object information comprises a page identifier and a path of the target page and a system identifier of a target service system corresponding to the target page;
generating coverage indication information including the object information for the target page, wherein the coverage indication information is used for indicating the coverage condition of the target page to the corresponding function;
and outputting the coverage indication information.
A second aspect of the embodiments of the present application provides a page detecting apparatus, including:
the monitoring module is used for monitoring the coverage condition of each page to the corresponding target function through the monitoring program corresponding to each page in the target service system when the target service system is detected to run, so as to obtain monitoring data, wherein the coverage condition comprises coverage or non-coverage, the monitoring program is configured in advance, one page in each page corresponds to one monitoring program, and the monitoring data indicates the coverage condition of each page to the corresponding target function;
the processing module is used for determining the coverage condition as an uncovered target page from the pages based on the monitoring data;
the processing module is further configured to obtain object information of the target page, where the object information includes a page identifier and a path of the target page, and a system identifier of a target service system corresponding to the target page;
the processing module is further configured to generate, for the target page, coverage indication information including the object information, where the coverage indication information is used to indicate a coverage condition of the target page for a corresponding function;
and the output module is used for outputting the coverage indication information.
A third aspect of embodiments of the present application provides a server, including a processor, a network interface, and a storage device, where the processor, the network interface, and the storage device are connected to each other, where the network interface is controlled by the processor to transmit and receive data, and the storage device is used to store a computer program, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the embodiment of the application, when detecting that a target business system runs, a server may monitor, through a monitor program corresponding to each page in the target business system, a coverage condition of each page with respect to a corresponding target function, to obtain monitor data, and determine, based on the monitor data, a coverage condition as an uncovered target page from each page, the server determines, based on the monitor data, a coverage condition as an uncovered target page from each page, and obtains object information of the target page, where the object information includes a page identifier of the target page, a path, and a system identifier of the target business system corresponding to the target page, generates, for the target page, coverage indication information including the object information, where the coverage indication information is used to indicate a coverage condition of the target page with respect to the corresponding function, and outputs the coverage indication information, thereby achieving automatic detection of coverage of the page with respect to the corresponding function, the page detection efficiency and the detection accuracy are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a page detection method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another page detection method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a page detection apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, only UI automation and test data construction are covered for regression testing, but more page coverage depends on manual inspection, the efficiency is low, the risk of function omission corresponding to the page is high, the time required by repeated regression testing is too long, the integrity of the function coverage of a service system cannot be guaranteed in real time, and aiming at the problems existing at present, the embodiment of the application provides a page detection method which is suitable for regression testing, can automatically detect the function corresponding to the page, and improves the page detection efficiency and accuracy.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a page detection method according to an embodiment of the present disclosure. The method may be executed by a server, and the page detection method described in this embodiment includes the following steps:
101. when the target service system is detected to run, monitoring the coverage condition of each page on the corresponding target function through the monitoring program corresponding to each page in the target service system to obtain monitoring data.
The target business system may be one or more business systems, each business system may include many pages, and each page corresponds to a different function. The coverage condition may include coverage or non-coverage, the monitoring program is configured in advance, the monitoring program may be a buried point, and the coverage condition of each page to the corresponding target function may be counted through the buried point. One of the pages corresponds to one monitor, for example, 100 pages have 100 corresponding monitors, and the monitoring data indicates the coverage of each page on the corresponding target function.
Specifically, when it is detected that the target service system is running, the server may execute the monitoring program script corresponding to each page, so as to monitor the coverage of each page on the corresponding target function, and obtain the monitoring data.
Optionally, after the version of the target service system is updated, the server may execute the monitoring program script corresponding to each page, and monitor the coverage condition of each page in the updated version of the target service system on the corresponding target function, so as to determine the monitoring data of the version of the target service system.
In a feasible embodiment, the step of monitoring, by the server, the coverage of each page with the corresponding target function through the monitor program corresponding to each page in the target service system may be that the server monitors the running condition of each target function in each corresponding page through the monitor program corresponding to each page in the target service system, if it is detected that any one of the target functions runs abnormally in the corresponding target page, it is determined that the coverage of the target page with any one of the target functions is uncovered, and if it is detected that any one of the target functions runs normally in the corresponding target page, it is determined that the coverage of the target page with any one of the target functions is covered. The server detecting that any target function in the target functions operates abnormally on the corresponding target page may mean that any target function is not executed on the corresponding target page (that is, the function is not set on the target page), or that the execution is in a problem (that is, the function is set on the target page in a problem).
In a feasible embodiment, before the server detects that the target service system runs, the server monitors the coverage condition of each page on the corresponding target function through the corresponding monitor program of each page in the target service system, and obtains the monitoring data, a page extension table may be set, where a corresponding service system identifier is set for each page, so that the service system corresponding to each page is determined subsequently according to the service system identifier.
In a feasible embodiment, if it is detected that each service system runs and the running time of each service system reaches a preset time, the monitoring program corresponding to each page in the target service system is triggered to be executed to monitor the coverage condition of each page on the corresponding target function. For example, the preset time is 10 pm, and if the server detects that each service system is running and the running time of each service system reaches 10 pm, the server performs monitoring of the coverage of each page on its corresponding target function by using the monitoring program corresponding to each page in the target service system, thereby realizing periodic monitoring of the coverage of each page on its corresponding target function in the target service system.
102. And determining the coverage condition as an uncovered target page from the pages based on the monitoring data.
Specifically, the server may determine one or more pages that are not covered from the respective pages based on the coverage condition of the respective pages on the respective corresponding target functions, that is, the target page may be one or more pages. The monitoring data may further include a total page coverage condition of the target business system, that is, a page coverage rate, a valid page number, an uncovered page number, and the like of the target business system.
In a feasible embodiment, a corresponding page identifier is set for each page in the target service system, so that the page corresponding to the page identifier is determined according to the page identifier. The server determines that the coverage condition is the uncovered target page from each page based on the monitoring data, and may be a page set determined to be uncovered according to the coverage condition of the target function corresponding to each page, and the target page is determined from the uncovered page set according to the page identifier of the target page.
103. And acquiring the object information of the target page.
The object information includes the page identifier and the path of the target page, and the system identifier of the target business system corresponding to the target page.
Specifically, the server may obtain the object information of the target page from the monitoring data.
104. And generating the coverage indication information comprising the object information aiming at the target page.
The coverage indication information is used for indicating the coverage condition of the function corresponding to the target page.
Specifically, the server generates coverage indication information according to the object information and the coverage condition of the corresponding function of the target page, where the coverage indication information may specifically include a page identifier and a path of the target page, a system identifier of a target service system corresponding to the target page, and a coverage condition of the corresponding function of the target page. For example, the object information of the target page includes a page identifier 1, a path XXX, and a system identifier a of the target service system corresponding to the target page, the coverage condition of the corresponding function of the target page is uncovered, and coverage indication information is generated for the uncovered according to the object information of the target page and the coverage condition of the corresponding function of the target page, where the coverage indication information includes the page identifier 1, the path XXX, the system identifier a of the target service system corresponding to the target page, and the coverage condition is uncovered.
105. And outputting the coverage indication information.
In a possible embodiment, outputting the coverage indication information may be that the server directly displays the coverage indication information through a visual interface, and a filter button is provided during the display process, according to which the coverage indication information can be more visually seen.
In another feasible embodiment, the server sends the coverage indication information to a terminal of the service system corresponding to the maintenance target page, so that the terminal displays the coverage indication information to corresponding personnel to see, and further the corresponding personnel ensure the integrity of the coverage of the corresponding function of the service system page.
In the embodiment of the application, when detecting that a target business system runs, a server may monitor, through a monitor program corresponding to each page in the target business system, a coverage condition of each page with respect to a corresponding target function, to obtain monitor data, and determine, based on the monitor data, a coverage condition as an uncovered target page from each page, the server determines, based on the monitor data, a coverage condition as an uncovered target page from each page, and obtains object information of the target page, where the object information includes a page identifier and a path of the target page, and a system identifier of the target business system corresponding to the target page, generates, for the target page, coverage indication information including the object information, where the coverage indication information is used to indicate a coverage condition of the target page with respect to the corresponding function, and outputs the coverage indication information, thereby implementing automatic detection of page coverage, the page detection efficiency and the detection accuracy are improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another page detection method according to an embodiment of the present disclosure. The method may be executed by a server, and the page detection method described in this embodiment includes:
201. when the target service system is detected to run, monitoring the coverage condition of each page on the corresponding target function through the monitoring program corresponding to each page in the target service system to obtain monitoring data.
202. And determining the coverage condition as an uncovered target page from the pages based on the monitoring data.
The specific implementation manner of steps 201 to 202 may refer to the related description in steps 101 to 102 in the page detection method, and is not described herein again.
203. And analyzing the monitoring data, and generating a monitoring report based on an analysis result.
Wherein the monitoring report comprises object information of each page.
Specifically, the server analyzes the monitoring data to obtain analyzed data, and generates a monitoring report according to the analyzed data, where the analyzed data may include object information of each page.
In a feasible embodiment, the server analyzes the monitoring data to obtain the page coverage rate, the number of uncovered pages, the number of valid pages and the object information of each page corresponding to the target service system, and determines a monitoring report according to the page coverage rate, the number of uncovered pages, the number of valid pages and the object information of each page.
For example, assuming that the target service systems are multiple preset service systems, the server analyzes the monitoring data to obtain the page coverage rate, the number of uncovered pages, the number of valid pages and the object information of each page in each service system corresponding to each service system in the multiple service systems, and determines a monitoring report according to the page coverage rate, the number of uncovered pages, the number of valid pages and the object information of each page. As in table 1, it is assumed that table 1 is a generated monitoring report, and the monitoring report includes service system identifiers of a plurality of service systems, and a page coverage rate, an uncovered page number, an effective page number, a path corresponding to a covered page, and the like corresponding to each service system.
TABLE 1
Figure BDA0002666589650000071
It should be noted that table 1 merely gives an example that the number of uncovered pages corresponding to each service system is 1, and a path and a page identifier corresponding to the uncovered page, and the like, where if the number of uncovered pages in a certain service system is at least two, the generated monitoring report includes the path corresponding to each uncovered page, the page identifier of the uncovered page, the system identifier, and the like.
In a feasible embodiment, the target service system comprises a plurality of service systems, the server analyzes the monitoring data to obtain page coverage, uncovered page number, effective page number and object information of each page corresponding to the target service system, the service system with the page coverage lower than a preset value can be screened out according to the page coverage, and the service system with the page coverage lower than the preset value generates a monitoring report according to the page coverage, the uncovered page number, the effective page number and the object information of each page in the target system. The monitoring report includes object information of uncovered pages, for example, the server analyzes monitoring data to obtain page coverage, the number of uncovered pages, the number of valid pages, and object information of each page corresponding to the target service system, wherein a service system whose page coverage in the target service system does not reach 100% (preset value) is screened out by using the page coverage, and as shown in table 1, a service system a, a service system B, and a service system D whose page coverage in the target service system does not reach 100% (preset value) generate the monitoring report according to the page coverage, the number of uncovered pages, the number of valid pages, and the object information of each page in the screened service system corresponding to the screened service system.
It should be noted that, the target system may also be screened first by the number of uncovered pages, and then a monitoring report is generated for the page coverage rate, the number of uncovered pages, the number of valid pages corresponding to the screened service system, and the object information of each page in the service system. For example, screening out the uncovered pages with the number not equal to 0 in the target service system, and generating a monitoring report by the screened service system according to the page coverage rate, the number of uncovered pages, the number of effective pages corresponding to the screened service system and the object information of each page in the screened service system.
Further, the server may extract data for the monitoring report, and generate a list including only the object information of the uncovered page, where the list includes the page identifier of the uncovered page, the path, and the system identifier of the target service system corresponding to the uncovered page, and the list is shown in table 2.
TABLE 2
Page identification System identification Route of travel
1 System A XXXX
2 System A XXXXXXXX
6 System B XX
7 System D XXXXX
204. And determining the object information of the target page from the object information of each page according to the target page.
Specifically, the server determines the object information of the target page from the object information of each page according to the page identifier corresponding to the target page. For example, the target page identifier is 1, and the server selects the object information of the target page from table 1 according to the target identifier, where the object information includes page identifier 1, system identifier is system a, and path is "XXXX".
In a possible embodiment, if the list including only the object information of the uncovered page is generated, the object information of the target page may be determined from the list of the object information of the uncovered page according to the target page, and the list of the object information of the uncovered page includes the target page.
205. And generating the coverage indication information comprising the object information aiming at the target page.
The coverage indication information is used for indicating the coverage condition of the function corresponding to the target page.
Specifically, the server generates coverage indication information according to the object information and the coverage condition of the corresponding function of the target page, where the coverage indication information may specifically include a page identifier and a path of the target page, a system identifier of a target service system corresponding to the target page, and a coverage condition of the corresponding function of the target page. For example, the object information of the target page includes a page identifier 1, a path XXX, and a system identifier a of the target service system corresponding to the target page, the coverage condition of the corresponding function of the target page is uncovered, and coverage indication information is generated for the uncovered according to the object information of the target page and the coverage condition of the corresponding function of the target page, where the coverage indication information includes the page identifier 1, the path XXX, the system identifier a of the target service system corresponding to the target page, and the coverage condition is uncovered.
206. And outputting the coverage indication information.
In a feasible embodiment, the server sends the monitoring report and the coverage indication information to a terminal of a target service system corresponding to a maintenance target page, so that the terminal displays the monitoring report and the coverage indication information to service personnel, and checks the authenticity of the coverage indication information according to the monitoring report, thereby ensuring the accuracy of page detection.
In a possible embodiment, when the server sends both the monitoring report and the coverage indication information to the terminal maintaining the target service system corresponding to the target page, the coverage indication information corresponding to the target page in the monitoring report may be placed at a front position in the monitoring report.
In the embodiment of the application, when detecting that a target business system runs, a server monitors the coverage condition of each page on a corresponding target function through a monitoring program corresponding to each page in the target business system to obtain monitoring data, determines the coverage condition as an uncovered target page from each page based on the monitoring data, analyzes the monitoring data, generates a monitoring report based on an analysis result, determines object information of the target page from the object information of each page according to the target page, generates coverage indication information including the object information for the target page, and outputs the coverage indication information, so that automatic detection of page coverage can be realized, and page detection efficiency and detection accuracy are improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a page detection apparatus according to an embodiment of the present disclosure. The apparatus may be executed by a server, and the page detection apparatus described in this embodiment includes:
a monitoring module 301, configured to monitor, when it is detected that a target service system is running, a coverage condition of each page to a corresponding target function through a monitor program corresponding to each page in the target service system, to obtain monitoring data, where the coverage condition includes coverage or non-coverage, the monitor program is configured in advance, one page in each page corresponds to one monitor program, and the monitoring data indicates a coverage condition of each page to the corresponding target function;
a processing module 302, configured to determine, based on the monitoring data, that the coverage condition is an uncovered target page from the pages;
the processing module 302 is further configured to obtain object information of the target page, where the object information includes a page identifier and a path of the target page, and a system identifier of a target service system corresponding to the target page;
the processing module 302 is further configured to generate, for the target page, coverage indication information including the object information, where the coverage indication information is used to indicate a coverage condition of the target page for a corresponding function;
an output module 303, configured to output the coverage indication information.
Optionally, the monitoring module 301 is specifically configured to:
monitoring the running condition of each target function on each corresponding page through each corresponding monitoring program of each page in the target service system;
if any target function in the target functions is detected to be abnormal in operation of the corresponding target page, determining that the coverage condition of the target page to any target function is uncovered;
and if the situation that any target function normally operates in the corresponding target page is detected, determining that the coverage condition of the target page to any target function is coverage.
Optionally, the processing module 302 is specifically configured to:
analyzing the monitoring data, and generating a monitoring report based on the analysis result, wherein the monitoring report comprises object information of each page;
and determining the object information of the target page from the object information of each page according to the target page.
Optionally, the processing module 302 is specifically configured to:
analyzing the monitoring data to obtain the page coverage rate, the number of uncovered pages, the number of effective pages and the object information of each page corresponding to the target service system;
and determining a monitoring report according to the page coverage rate, the number of uncovered pages, the number of effective pages and the object information of each page.
Optionally, the processing module 302 is specifically configured to:
determining uncovered page sets according to the covering conditions of the target functions corresponding to the pages respectively;
and determining the target page from the uncovered page set according to the page identifier of the target page.
Optionally, the processing module 302 is specifically configured to:
and sending the coverage indication information to a terminal maintaining a service system corresponding to the target page so that the terminal displays the coverage indication information.
Optionally, the processing module 302 is specifically configured to:
and if the operation of each service system is detected and the operation time of each service system reaches the preset time, triggering and executing a monitoring program corresponding to each page in the target service system to monitor the coverage condition of each page on the corresponding target function.
It can be understood that the target functions of the target function modules of the page detection apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a server according to an embodiment of the present disclosure. The server described in this embodiment includes: a processor 401, a network interface 402, and a memory 403. The processor 401, the network interface 402 and the memory 403 may be connected by a bus or other means, and the embodiment of the present application is exemplified by being connected by a bus.
The processor 401 (or Central Processing Unit, CPU) is a computing core and a control core of the server. The network interface 402 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.), controlled by the processor 401, for transceiving data. The Memory 403(Memory) is a Memory device of the server for storing programs and data. It is understood that the memory 403 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, at least one memory device may be located remotely from the processor 401. Memory 403 provides storage space that stores the operating system and executable program code of the server, which may include, but is not limited to: windows system (an operating system), Linux system (an operating system), etc., which are not limited in this application.
In the embodiment of the present application, the processor 401 executes the executable program code in the memory 403 to perform the following operations:
when a target service system is detected to run, monitoring the coverage condition of each page to the corresponding target function through the monitoring program corresponding to each page in the target service system to obtain monitoring data, wherein the coverage condition comprises coverage or non-coverage, the monitoring program is configured in advance, one page in each page corresponds to one monitoring program, and the monitoring data indicates the coverage condition of each page to the corresponding target function;
determining the coverage condition as an uncovered target page from the pages based on the monitoring data;
acquiring object information of the target page, wherein the object information comprises a page identifier and a path of the target page and a system identifier of a target service system corresponding to the target page;
generating coverage indication information including the object information for the target page, wherein the coverage indication information is used for indicating the coverage condition of the target page to the corresponding function;
and outputting the coverage indication information.
Optionally, the specific implementation manner of the processor 401 monitoring the coverage of each page to the corresponding target function through the monitor corresponding to each page in the target service system is as follows:
monitoring the running condition of each target function on each corresponding page through each corresponding monitoring program of each page in the target service system;
if any target function in the target functions is detected to be abnormal in operation of the corresponding target page, determining that the coverage condition of the target page to any target function is uncovered;
and if the situation that any target function normally operates in the corresponding target page is detected, determining that the coverage condition of the target page to any target function is coverage.
Optionally, the processor 401 is specifically configured to:
analyzing the monitoring data, and generating a monitoring report based on the analysis result, wherein the monitoring report comprises object information of each page;
and determining the object information of the target page from the object information of each page according to the target page.
Optionally, the specific implementation manner of analyzing the monitoring data and generating the monitoring report based on the analysis result by the processor 401 is as follows:
analyzing the monitoring data to obtain the page coverage rate, the number of uncovered pages, the number of effective pages and the object information of each page corresponding to the target service system;
and determining a monitoring report according to the page coverage rate, the number of uncovered pages, the number of effective pages and the object information of each page.
Optionally, the specific implementation manner of determining, by the processor 401, that the coverage condition is the uncovered target page from the pages based on the monitoring data is as follows:
determining uncovered page sets according to the covering conditions of the target functions corresponding to the pages respectively;
and determining the target page from the uncovered page set according to the page identifier of the target page.
Optionally, the processor 401 is specifically configured to:
and sending the coverage indication information to a terminal maintaining a service system corresponding to the target page so that the terminal displays the coverage indication information.
Optionally, the specific implementation manner of the processor 401 monitoring the coverage of each page to the corresponding target function through the monitor corresponding to each page in the target service system is as follows:
and if the operation of each service system is detected and the operation time of each service system reaches the preset time, triggering and executing a monitoring program corresponding to each page in the target service system to monitor the coverage condition of each page on the corresponding target function.
In a specific implementation, the processor 401, the network interface 402, and the memory 403 described in this embodiment may execute the implementation described in the flow of the page detection method provided in this embodiment, and may also execute the implementation described in a page detection apparatus provided in this embodiment, which is not described herein again.
A computer-readable storage medium is further provided in an embodiment of the present application, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a processor, the steps performed in the above-mentioned page detection embodiment may be performed.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the steps performed in the page detection embodiment described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A page detection method is characterized by comprising the following steps:
when a target service system is detected to run, monitoring the coverage condition of each page to the corresponding target function through the monitoring program corresponding to each page in the target service system to obtain monitoring data, wherein the coverage condition comprises coverage or non-coverage, the monitoring program is configured in advance, one page in each page corresponds to one monitoring program, and the monitoring data indicates the coverage condition of each page to the corresponding target function;
determining the coverage condition as an uncovered target page from the pages based on the monitoring data;
acquiring object information of the target page, wherein the object information comprises a page identifier and a path of the target page and a system identifier of a target service system corresponding to the target page;
generating coverage indication information including the object information aiming at the target page, wherein the coverage indication information is used for indicating the coverage condition of the function corresponding to the target page;
and outputting the coverage indication information.
2. The method according to claim 1, wherein the monitoring, by the monitor corresponding to each page in the target service system, the coverage of each page to the corresponding target function comprises:
monitoring the running condition of each target function on each corresponding page through each corresponding monitoring program of each page in the target service system;
if any target function in the target functions is detected to be abnormal in operation of the corresponding target page, determining that the coverage condition of the target page to any target function is uncovered;
and if the situation that any target function normally operates in the corresponding target page is detected, determining that the coverage condition of the target page to any target function is coverage.
3. The method according to claim 1, wherein the obtaining the object information of the target page includes:
analyzing the monitoring data, and generating a monitoring report based on the analysis result, wherein the monitoring report comprises object information of each page;
and determining the object information of the target page from the object information of each page according to the target page.
4. The method of claim 3, wherein parsing the monitoring data and generating a monitoring report based on the parsing comprises:
analyzing the monitoring data to obtain the page coverage rate, the number of uncovered pages, the number of effective pages and the object information of each page corresponding to the target service system;
and determining a monitoring report according to the page coverage rate, the number of uncovered pages, the number of effective pages and the object information of each page.
5. The method of claim 1, wherein the determining the coverage condition as an uncovered target page from the pages based on the monitoring data comprises:
determining uncovered page sets according to the covering conditions of the target functions corresponding to the pages respectively;
and determining the target page from the uncovered page set according to the page identifier of the target page.
6. The method of claim 1, wherein the outputting the coverage indication information comprises:
and sending the coverage indication information to a terminal maintaining a service system corresponding to the target page so that the terminal displays the coverage indication information.
7. The method according to claim 1, wherein the monitoring, by the monitor corresponding to each page in the target service system, the coverage of each page to the corresponding target function comprises:
and if the operation of each service system is detected and the operation time of each service system reaches the preset time, triggering and executing a monitoring program corresponding to each page in the target service system to monitor the coverage condition of each page on the corresponding target function.
8. A page detecting apparatus, comprising:
the monitoring module is used for monitoring the coverage condition of each page to the corresponding target function through the monitoring program corresponding to each page in the target service system when the target service system is detected to run, so as to obtain monitoring data, wherein the coverage condition comprises coverage or non-coverage, the monitoring program is configured in advance, one page in each page corresponds to one monitoring program, and the monitoring data indicates the coverage condition of each page to the corresponding target function;
the processing module is used for determining the coverage condition as an uncovered target page from the pages based on the monitoring data;
the processing module is further configured to obtain object information of the target page, where the object information includes a page identifier and a path of the target page, and a system identifier of a target service system corresponding to the target page;
the processing module is further configured to generate, for the target page, coverage indication information including the object information, where the coverage indication information is used to indicate a coverage condition of the target page for a corresponding function;
and the output module is used for outputting the coverage indication information.
9. A server, comprising a processor, a network interface and a storage device, the processor, the network interface and the storage device being interconnected, wherein the network interface is controlled by the processor for transceiving data, the storage device is used for storing a computer program, the computer program comprising program instructions, the processor is configured to invoke the program instructions to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 7.
CN202010920583.5A 2020-09-04 2020-09-04 Page detection method, device, server and computer readable storage medium Pending CN112069070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010920583.5A CN112069070A (en) 2020-09-04 2020-09-04 Page detection method, device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010920583.5A CN112069070A (en) 2020-09-04 2020-09-04 Page detection method, device, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112069070A true CN112069070A (en) 2020-12-11

Family

ID=73664967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010920583.5A Pending CN112069070A (en) 2020-09-04 2020-09-04 Page detection method, device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112069070A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631869A (en) * 2020-12-28 2021-04-09 深圳市彬讯科技有限公司 Page loading data monitoring method and device, computer equipment and storage medium
CN112631933A (en) * 2020-12-30 2021-04-09 上海中通吉网络技术有限公司 Method, device and equipment for page tracking test coverage
CN113505059A (en) * 2021-06-22 2021-10-15 深圳十方融海科技有限公司 Page monitoring method and device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631869A (en) * 2020-12-28 2021-04-09 深圳市彬讯科技有限公司 Page loading data monitoring method and device, computer equipment and storage medium
CN112631869B (en) * 2020-12-28 2023-01-17 深圳市彬讯科技有限公司 Page loading data monitoring method and device, computer equipment and storage medium
CN112631933A (en) * 2020-12-30 2021-04-09 上海中通吉网络技术有限公司 Method, device and equipment for page tracking test coverage
CN113505059A (en) * 2021-06-22 2021-10-15 深圳十方融海科技有限公司 Page monitoring method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112069070A (en) Page detection method, device, server and computer readable storage medium
CN112148887B (en) Equipment fault diagnosis method, device, storage medium and electronic equipment
CN111045944B (en) Regression testing method, device, system and computer readable storage medium
CN106874135B (en) Method, device and equipment for detecting machine room fault
CN108900319B (en) Fault detection method and device
EP3667952A1 (en) Method, device, and storage medium for locating failure cause
CN110990255A (en) Buried point testing method and server
CN109359032B (en) Test data collection method, device and system and electronic equipment
CN112486749A (en) Test method and device based on 5G communication terminal and readable storage medium
KR20170123324A (en) Relay device and program
CN107770796B (en) Node state detection method and equipment for non-network type positioning system
CN110069382B (en) Software monitoring method, server, terminal device, computer device and medium
CN116645082A (en) System inspection method, device, equipment and storage medium
CN110874311A (en) Database detection method and device, computer equipment and storage medium
CN110046067B (en) Interface testing method and device
CN115509854A (en) Inspection processing method, inspection server and inspection system
CN114938339A (en) Data processing method and related device
CN115147236A (en) Processing method, processing device and electronic equipment
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN112363931A (en) Web system testing method and device
CN111966515A (en) Business abnormal data processing method and device, computer equipment and storage medium
CN111488272A (en) Automatic testing method and device for complex transaction files
CN115545677B (en) Online process specification detection method and system based on automatic case execution condition
CN110750418B (en) Information processing method, electronic equipment and information processing system
KR101628072B1 (en) Test apparatus and test method for slowness of portable communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination