CN115484200B - Buried point testing method, buried point testing device, server, storage medium and buried point testing system - Google Patents
Buried point testing method, buried point testing device, server, storage medium and buried point testing system Download PDFInfo
- Publication number
- CN115484200B CN115484200B CN202211153760.7A CN202211153760A CN115484200B CN 115484200 B CN115484200 B CN 115484200B CN 202211153760 A CN202211153760 A CN 202211153760A CN 115484200 B CN115484200 B CN 115484200B
- Authority
- CN
- China
- Prior art keywords
- buried point
- server
- buried
- test
- point information
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 295
- 238000004458 analytical method Methods 0.000 claims abstract description 62
- 238000000034 method Methods 0.000 claims description 47
- 230000008569 process Effects 0.000 claims description 36
- 238000012545 processing Methods 0.000 claims description 33
- 230000005856 abnormality Effects 0.000 claims description 12
- 230000002159 abnormal effect Effects 0.000 claims description 11
- 238000009933 burial Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 238000010998 test method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000005282 brightening Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geophysics And Detection Of Objects (AREA)
Abstract
The embodiment of the invention discloses a buried point testing method, a buried point testing device, a buried point testing server, a buried point testing storage medium and a buried point testing system, wherein the buried point testing method comprises the following steps: receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; receiving test buried point information sent by a buried point server; and determining a buried point test result according to the target buried point information and the test buried point information. According to the technical scheme, the interception server only sends the buried point request to the analysis server, the data volume sent to the analysis server is reduced, and the interception server forwards the buried point request twice, so that the buried point server and the analysis server are respectively used for determining the test buried point information and the target buried point information, the efficiency of determining the test buried point information and the target buried point information is improved, and the efficiency of determining the buried point test result by the analysis server is improved because the data volume processed by the analysis server is smaller.
Description
Technical Field
The embodiment of the invention relates to the technical field of buried points, in particular to a buried point testing method, a buried point testing device, a server medium and a buried point testing system.
Background
Buried points are a common data acquisition method. By burying points in the page of the application program, user data corresponding to the page can be acquired. The accuracy of the user data has important significance in various subsequent decisions, and it is very important to ensure the accuracy of the buried points in the application program. Thus, before each application is brought online, a buried point test is required.
In the prior art, after the terminal equipment is connected to the packet capturing tool, a tester performs clicking, browsing, playing and other test operations on an application program in the terminal equipment, and burial point data is checked and verified through the packet capturing tool so as to realize burial point test.
In the process of implementing the present invention, the inventor finds that at least the following technical problems exist in the prior art:
The traditional buried point test method has high repeatability and complex test, and has low test efficiency and high cost.
Disclosure of Invention
The invention provides a buried point testing method, a buried point testing device, a server, a storage medium and a buried point testing system, so that the efficiency of buried point testing is improved.
In a first aspect, an embodiment of the present invention provides a buried point testing method, including: receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script; receiving test buried point information sent by a buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server; and determining a buried point test result according to the target buried point information and the test buried point information.
In a second aspect, an embodiment of the present invention further provides a buried point testing apparatus, including:
The first receiving module is used for receiving the buried point request sent by the interception server and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script;
the second receiving module is used for receiving the test buried point information sent by the buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server;
And the determining module is used for determining a buried point test result according to the target buried point information and the test buried point information.
In a third aspect, an embodiment of the present invention further provides a server, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the buried point test method according to any one of the first aspects when the processor executes the program.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions for performing the buried point testing method according to any of the first aspects when executed by a computer processor.
In a fifth aspect, an embodiment of the present invention further provides a buried point testing system, which is characterized by including: the system comprises terminal equipment, an interception server, a buried point server and an analysis server; the terminal equipment is used for executing the test script and sending a network request to the embedded point server; the interception server is used for intercepting the network request sent to the embedded point server by the terminal equipment, determining the embedded point request in the network request according to the test script and sending the embedded point request to the embedded point server and the analysis server; the embedded point server is used for processing the embedded point information in the embedded point request according to the service information to obtain test embedded point information, and sending the test embedded point information to the analysis server, wherein the embedded point request is sent to the embedded point server by the interception server; the analysis server is used for determining target buried point information contained in the buried point request and determining a buried point test result according to the target buried point information and the test buried point information.
The embodiments of the above invention have the following advantages or benefits:
The embodiment of the invention provides a buried point testing method, which comprises the following steps: receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script; receiving test buried point information sent by a buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server; and determining a buried point test result according to the target buried point information and the test buried point information. According to the technical scheme, the terminal equipment can send the network request to the embedded point service end in the process of executing the test script, the network request can comprise the embedded point request, the interception service end can intercept the network request sent by the terminal equipment to the embedded point service end, after determining the embedded point request in the network request according to the test script, the embedded point request is sent to the embedded point service end and the analysis service end, the interception service end only sends the embedded point request to the analysis service end, the data volume sent to the analysis service end is reduced, the interception service end forwards the embedded point request twice, the embedded point service end can process the embedded point information in the embedded point request according to service information to obtain test embedded point information, the analysis service end can determine target embedded point information contained in the embedded point request, the embedded point information and the target embedded point information are respectively determined based on the embedded point service end and the analysis service end, the efficiency of determining the test embedded point information and the target embedded point information is improved, the embedded point information can be sent to the analysis service end according to the test point information and the target embedded point information, and the analysis service end can automatically determine the embedded point information based on the test point information and the analysis service end.
Drawings
FIG. 1 is a schematic diagram of a buried point testing system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a buried point testing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for testing buried points according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a buried point testing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.
When testing an application, a buried point needs to be set in the application. The automatic test application loaded in the terminal equipment can be used for simulating manual application program operation, for example, the operations of starting, clicking, sliding, returning, extinguishing screen, brightening screen and the like of the application program can be simulated manually. In the process of simulating manual operation of an application program by using the automatic test application, the terminal equipment can send a network request to the server, and the terminal equipment can send the embedded point request to the embedded point server as the network request because the embedded point is arranged in the application program.
In the prior art, the buried point server side can receive a network request sent by the terminal equipment, determine a buried point request in the network request, further determine target buried point information contained in the buried point request, obtain test buried point information after processing the buried point information in the buried point request according to service information, and determine a buried point test result according to the target buried point information and the test buried point information, wherein when the buried point test data volume is large, the efficiency of determining the buried point test result is low.
Therefore, the embodiment of the invention provides a buried point testing method for improving the automatic buried point testing efficiency. Fig. 1 is a schematic diagram of a buried point testing system according to an embodiment of the present invention, as shown in fig. 1, the buried point testing system may include a terminal device 110, an interception server 120, a buried point server 130, and an analysis server 140. The buried point testing method according to the embodiment of the present invention will be described in detail with reference to the buried point testing system and embodiment shown in fig. 1.
Fig. 2 is a flowchart of a buried point testing method according to an embodiment of the present invention, where the embodiment of the present invention is applicable to a case of improving the efficiency of automatic buried point testing. The method may be performed by a point of burial test device, which may be implemented in software and/or hardware. As shown in fig. 2, the method specifically includes the following steps:
Step 210, receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request.
The terminal device may be loaded with an automated test application for simulating manual operation of the application, for example, operations such as starting, clicking, sliding, returning, extinguishing, and lighting the application may be simulated manually. The automatic test application can send a network request to the embedded point server by the terminal equipment in the process of simulating manual operation of the application program. The automatic test application can execute the test script at regular time to simulate the operation of the application program by manpower, and the terminal equipment can send a network request to the buried point server in the process of executing the test script by the automatic test application.
The interception server may be whistle interception platform, whistle interception platform is a cross-platform web debugging agent tool based on Node implementation, all operations of whistle can be realized through configuration for checking or modifying the request and response of HTTP, HTTPS, websocket, multiple matching modes such as domain name, path, regular expression, wildcard path and the like are supported, and functions can be expanded through the Node module.
Specifically, the whistle interception platform may be configured to intercept a network request sent by the terminal device to the embedded point server, determine an embedded point request in the network request according to the test script and the network request, and send the embedded point request to the embedded point server and the analysis server. The embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is sent by the terminal equipment in the process of executing the test script according to the test script when determining that the network request is the embedded point request. Therefore, it can be known that after the interception server determines the buried point request, the interception server can further send the buried point request to the analysis server, and the analysis server can determine target buried point information according to the buried point information in the buried point request.
In the embodiment of the invention, after the interception server intercepts the network request sent by the terminal equipment to the embedded point server and determines the embedded point request in the network request, the embedded point request can be sent to the analysis server.
Step 220, receiving the test buried point information sent by the buried point server.
The interception server side can also send the buried point request to the buried point server side after intercepting the network request sent to the buried point server side by the terminal equipment and determining the buried point request in the network request.
The test embedded point information is obtained by processing the embedded point information in the embedded point request by the embedded point server according to service information, and the embedded point request is sent to the embedded point server by the interception server.
Specifically, the buried point information in the buried point request acquired by the buried point test needs to be used for service analysis by different service systems. Therefore, after the buried point server receives the buried point request sent by the interception server, the buried point information in the buried point request needs to be processed according to the service information. The embedded point request is sent to the embedded point server by the interception server in a message queue mode, and after the embedded point server receives the embedded point request in the message queue mode, the embedded point server needs to process embedded point information in the embedded point request according to service information, for example, processes such as splitting, merging and/or filtering are performed. Therefore, the test buried point information needs to be determined according to the processing result of the service information on the buried point information in the buried point request, and specifically, the test buried point information can be determined according to the processed buried point information in the buried point request.
It should be noted that, the interception server may send all network requests sent by the terminal device to the embedded point server, and may also record and store the network requests sent by the terminal device to the embedded point server.
In the embodiment of the invention, after intercepting the network request sent to the embedded point server by the terminal equipment and determining the embedded point request in the network request, the embedded point server can also send the embedded point request to the embedded point server, process the embedded point information in the embedded point request according to the service requirement, further process the processed embedded point information to combine the processed embedded point information, and determine the number of the embedded points and the type of the embedded points in the combined embedded point information as the tested embedded point information, wherein the embedded point server only needs to determine the tested embedded point information, thereby improving the efficiency of determining the tested embedded point information.
And 230, determining a buried point test result according to the target buried point information and the test buried point information.
The target embedded point information is embedded point information in an embedded point request sent to the embedded point server by the terminal equipment, namely the embedded point information reported by the terminal equipment. The test embedded point information is embedded point information in an embedded point request sent by the terminal equipment to the embedded point server according to the service information, and the processed embedded point information is the embedded point information processed by the embedded point server.
Specifically, during the buried point test, the buried point information reported by the target buried point information terminal equipment can be defaulted to be normal. Therefore, after the analysis server receives the information sent to the test buried point by the buried point server and determines the target buried point information, the analysis server can compare the target buried point information with the test buried point information and determine a buried point test result according to the comparison result. If the target buried point information is consistent with the test buried point information, the buried point test can be determined to be normal, and if the target buried point information is inconsistent with the test buried point information, the buried point test can be determined to be abnormal.
In the embodiment of the invention, the test buried point information and the target buried point information are respectively determined based on the buried point server and the analysis server, so that the efficiency of determining the test buried point information and the target buried point information is improved, and the efficiency of determining the buried point test result is further improved based on the determination of the buried point test result by the analysis server.
The embodiment of the invention provides a buried point testing method, which comprises the following steps: receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script; receiving test buried point information sent by a buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server; and determining a buried point test result according to the target buried point information and the test buried point information. According to the technical scheme, the terminal equipment can send the network request to the embedded point service end in the process of executing the test script, the network request can comprise the embedded point request, the interception service end can intercept the network request sent by the terminal equipment to the embedded point service end, after determining the embedded point request in the network request according to the test script, the embedded point request is sent to the embedded point service end and the analysis service end, the interception service end only sends the embedded point request to the analysis service end, the data volume sent to the analysis service end is reduced, the interception service end forwards the embedded point request twice, the embedded point service end can process the embedded point information in the embedded point request according to service information to obtain test embedded point information, the analysis service end can determine target embedded point information contained in the embedded point request, the embedded point information and the target embedded point information are respectively determined based on the embedded point service end and the analysis service end, the efficiency of determining the test embedded point information and the target embedded point information is improved, the embedded point information can be sent to the analysis service end according to the test point information and the target embedded point information, and the analysis service end can automatically determine the embedded point information based on the test point information and the analysis service end.
Fig. 3 is a flowchart of another method for testing buried points according to an embodiment of the present invention, where the embodiment of the present invention is applicable to improving the efficiency of automated testing buried points. The embodiments of the present invention are embodied based on the above embodiments, and explanations of terms identical to or corresponding to the above embodiments are not repeated herein. Referring to fig. 3, the buried point testing method provided by the embodiment of the invention includes:
step 310, receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request.
The embedded point request is sent by the interception server when the network request sent by the terminal equipment to the embedded point server is intercepted, and the network request is determined to be the embedded point request according to the test script, wherein the network request is sent by the terminal equipment in the process of executing the test script.
After determining the embedded point test scene of the application program, the embedded point test scene can be recorded by using the interface test frame to generate a test script. The automatic test application loaded in the terminal equipment and used for simulating manual operation of the application program executes the test script at regular time, so that the terminal equipment can send the embedded point request to the embedded point server at regular time.
Specifically, the interception server may intercept a network request sent by the terminal device to the embedded point server, determine the embedded point request according to the test script and the network request, and then send the embedded point request to the analysis server. After receiving the buried point request sent by the interception server, the analysis server can determine target buried point information contained in the buried point request. The target embedded point information may be the number of embedded points and the type of embedded points, and therefore, the analysis server may determine the number of embedded points and the type of embedded points included in the embedded point information in the embedded point request.
In addition, after determining the test script corresponding to the buried point test scene, the actual buried point information corresponding to the buried point test scene can be determined according to the test step of the buried point test scene, that is, the actual buried point information which should be obtained when the automatic test application executes the test script corresponding to the buried point test scene.
In the embodiment of the invention, the analysis server can be used for determining the target buried point information, namely determining the number of the buried points and the types of the buried points contained in the buried point information in the buried point request reported to the buried point server by the terminal equipment, thereby improving the efficiency of determining the target buried point information.
Step 320, receiving the test buried point information sent by the buried point server.
The test embedded point information is obtained by processing the embedded point information in the embedded point request by the embedded point server according to service information, and the embedded point request is sent to the embedded point server by the interception server.
Specifically, the interception server may intercept a network request sent by the terminal device to the embedded point server, determine the embedded point request according to the test script and the network request, and then send the embedded point request to the embedded point server. The embedded point server side can process the embedded point information in the embedded point request according to the service information, further process the processed embedded point information, and then determine the test embedded point information according to the processed embedded point information, namely determine the number of the embedded points and the type of the embedded points contained in the processed embedded point information in the embedded point request.
In practical applications, the service systems may include logistics service, financial service, and rights migration service of the articles, where each service system needs different embedded point information to perform service analysis. For example, when the service system is a logistics service, the service information may be logistics, at this time, all the buried point requests sent to the buried point service end by the interception service end in the form of a message queue may be combined, and then the buried point information is split according to whether the buried point information in the buried point request is related to logistics, so that the buried point information related to the logistics is sent to the logistics system for carrying out logistics analysis; when the service system is a financial service, the service information can be cost information corresponding to the service, at this time, all the buried point requests sent to the buried point service end by the interception service end in the form of a message queue can be combined, and then the buried point information is filtered according to whether the buried point information in the buried point request is cost information corresponding to the service or not, so that buried point information related to the cost information corresponding to the service is sent to the financial system for financial analysis.
Of course, after processing the embedded point information in the embedded point request sent by the interception server according to the service information, the embedded point server can further combine all the embedded point information, and determine the test embedded point information according to the combined embedded point information.
In the embodiment of the invention, the embedded point server can be used for determining the test embedded point information, namely the number of the embedded points and the embedded point types contained in the processed embedded point information obtained by processing the embedded point information in the embedded point request sent to the embedded point server by the terminal equipment according to the service information, so that the efficiency of determining the test embedded point information is improved.
Step 330, comparing the pre-stored actual buried point information, the target buried point information and the test buried point information corresponding to the buried point request respectively.
And 340, determining the buried point test result according to the comparison result.
The actual embedded point information may be actual embedded point information that should be obtained by executing the test script. If the actual embedded point information which is obtained by executing the test script is inconsistent with the target embedded point information which is reported to the embedded point server by the terminal equipment, reporting abnormality of the terminal equipment, namely reporting abnormality of the embedded point is indicated.
The target embedded point information is the embedded point number and the embedded point type of the embedded point information in the embedded point request sent by the terminal equipment to the embedded point server, namely the embedded point information reported by the terminal equipment. The test embedded point information is embedded point information in an embedded point request sent by the terminal equipment to the embedded point server according to the service information, and the number and type of the embedded points of the processed embedded point information, namely the embedded point information processed by the embedded point server.
Specifically, after receiving the information sent from the buried point server to the test buried point and determining the target buried point information, the analysis server may compare the actual buried point information with the target buried point information and the actual buried point information with the test buried point information. If the actual buried point information is inconsistent with the target buried point information, namely determining that the buried point information in the buried point request sent to the buried point server by the terminal equipment is inconsistent with the actual buried point information, so that the buried point test result can be determined to be the report abnormality of the buried point; if the actual buried point information is consistent with the target buried point information and inconsistent with the test buried point information, the buried point reporting is normal, and the actual buried point information is inconsistent with the test buried point information, namely the actual buried point information is inconsistent with the buried point information after the buried point server side processes the buried point information in the buried point request according to the service information, so that the buried point test result can be determined to be abnormal buried point processing; if the actual buried point information is consistent with the target buried point information and is consistent with the test buried point information, the buried point reporting is determined to be normal and the buried point processing is determined to be normal, so that the buried point test result can be determined to be the buried point normal.
In the embodiment of the invention, the analysis server can compare the actual buried point information corresponding to the pre-stored buried point request, determine the target buried point information according to the buried point request sent by the interception server and the test buried point information determined according to the processed buried point information sent by the buried point server, and determine whether the buried point test result is the reported buried point abnormality, the processing buried point abnormality or the normal buried point according to the comparison result. On one hand, the efficiency of determining the buried point test result is improved, and on the other hand, the positioning of the buried point abnormality is realized, namely, the buried point abnormality is determined to be the reported abnormality of the buried point or the processing abnormality of the buried point, so that the user can conveniently process the buried point abnormality.
The buried point testing method provided by the embodiment of the invention comprises the following steps: receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script; receiving test buried point information sent by a buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server; respectively comparing pre-stored actual buried point information corresponding to the buried point request, the target buried point information and the test buried point information; and determining the buried point test result according to the comparison result. According to the technical scheme, the terminal equipment can send a network request to the embedded point service end in the process of executing the test script, the network request can comprise the embedded point request, the interception service end can intercept the network request sent by the terminal equipment to the embedded point service end, after determining the embedded point request in the network request according to the test script, the embedded point request is sent to the embedded point service end and the analysis service end, the interception service end only sends the embedded point request to the analysis service end, the data volume sent to the analysis service end is reduced, the interception service end forwards the embedded point request twice, so that the embedded point service end can process the embedded point information in the embedded point request according to service information to obtain test embedded point information, the analysis service end can determine target embedded point information contained in the embedded point request, the test embedded point information and the target embedded point information are respectively determined based on the embedded point service end and the analysis service end, the efficiency of determining the test embedded point information and the target embedded point information is improved, the embedded point information can be sent to the analysis service end according to the pre-stored embedded point request, the analysis service end can automatically determine the embedded point information and the target embedded point information to be the embedded point information or the abnormal point information is based on the basis of the test point information, the abnormal processing result is higher than the normal or the abnormal processing is achieved, and the abnormal processing is easier to realize the processing of the abnormal processing result is better than the test result is determined on the embedded point, and the efficiency of determining the buried point test result is improved.
Fig. 4 is a schematic structural diagram of a buried point testing apparatus according to an embodiment of the present invention. The device and the buried point testing method of each embodiment belong to the same invention conception, and reference can be made to the embodiment of the buried point testing method for the details which are not described in detail in the embodiment of the buried point testing device.
The specific structure of the buried point testing device is shown in fig. 4, and the buried point testing device comprises:
the first receiving module 410 is configured to receive a buried point request sent by the interception server, and determine target buried point information included in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script;
The second receiving module 420 is configured to receive the test buried point information sent by the buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server;
the determining module 430 is configured to determine a buried point test result according to the target buried point information and the test buried point information.
Based on the above embodiment, the determining module 430 is specifically configured to:
Comparing the target buried point information with the test buried point information; and determining the buried point test result according to the comparison result.
In one embodiment, determining the buried point test result according to the comparison result includes:
If the target buried point information is inconsistent with the test buried point information, determining that the buried point test result is buried point abnormality;
and if the target buried point information is consistent with the test buried point information, determining that the buried point test result is that the buried point is normal.
On the basis of the above embodiment, the determining module 430 is further configured to:
respectively comparing pre-stored actual buried point information corresponding to the buried point request, the target buried point information and the test buried point information; and determining the buried point test result according to the comparison result.
In one embodiment, determining the buried point test result according to the comparison result includes:
If the actual buried point information is inconsistent with the target buried point information, determining that the buried point test result is that the buried point reporting is abnormal;
If the actual buried point information is consistent with the target buried point information and inconsistent with the test buried point information, determining that the buried point test result is abnormal buried point processing;
and if the actual buried point information is consistent with the target buried point information and is consistent with the test buried point information, determining that the buried point test result is that the buried point is normal.
The buried point testing device provided by the embodiment of the invention can execute the buried point testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the buried point testing method.
It should be noted that, in the embodiment of the buried point testing apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary server 5 suitable for use in implementing embodiments of the present invention. The server 5 shown in fig. 5 is only an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 5, the server 5 is in the form of a general purpose computing electronic device. The components of the server 5 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 5 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by server 5 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The server 5 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The server 5 may also be in communication with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the server 5, and/or any device (e.g., network card, modem, etc.) that enables the server 5 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the server 5 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown in fig. 5, the network adapter 20 communicates with the other modules of the server 5 via the bus 18. It should be appreciated that although not shown in fig. 5, other hardware and/or software modules may be used in connection with server 5, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and page displays by running programs stored in the system memory 28, for example, implementing the embedded point test method provided by the embodiment of the present invention, the method includes:
Receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script;
receiving test buried point information sent by a buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server;
and determining a buried point test result according to the target buried point information and the test buried point information.
Of course, those skilled in the art will understand that the processor may also implement the technical solution of the buried point testing method provided in any embodiment of the present invention.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a buried point testing method such as provided by the embodiment of the present invention, the method including:
Receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script;
receiving test buried point information sent by a buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server;
and determining a buried point test result according to the target buried point information and the test buried point information.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The embodiment of the invention also provides a buried point test system, as shown in fig. 1, which comprises: terminal equipment 110, interception server 120, buried point server 130, and analysis server 140;
the terminal device 110 is configured to execute a test script and send a network request to the buried point server;
The interception server 120 is configured to intercept the network request sent by the terminal device 110 to the buried point server 130, determine a buried point request in the network request according to the test script, and send the buried point request to the buried point server 130 and the analysis server 140;
the buried point server 130 is configured to process the buried point information in the buried point request according to service information to obtain test buried point information, and send the test buried point information to the analysis server 120, where the buried point request is sent by the interception server 120 to the buried point server 130;
the analysis server 140 is configured to determine target buried point information included in the buried point request, and determine a buried point test result according to the target buried point information and the test buried point information.
In one embodiment, the terminal device 110 is further configured to:
And responding to configuration operation triggered by the user based on the setting interface, and when the terminal equipment is determined to execute the test script, sending the network request to the interception server, so that an interception target of the interception server is the network request sent by the terminal equipment to the buried point server.
Specifically, after the terminal device receives the configuration operation triggered by the user based on the setting interface, the destination address when the terminal device sends the network request can be changed from the embedded point server to the interception server according to the configuration operation, so that the interception target of the interception server can be the network request sent by the terminal device to the embedded point server. When the interception server is whistle interception platforms, the whistle interception platform is configured with forwarding addresses, namely a buried point server and an analysis server. Therefore, the interception server can intercept the network request sent by the terminal equipment to the buried point server, and send the buried point request determined according to the network request and the test script to a sending target configured by the interception server, namely the analysis server and the buried point server.
In practical applications, if the amount of the buried test data is small, the interception server 120, the buried server 130, and the analysis server 140 may be integrated into the same server.
The buried point testing system provided by the embodiment of the invention can execute the buried point testing method provided by any embodiment of the invention, and has the corresponding beneficial effects of executing the buried point testing method.
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
In addition, the technical scheme of the invention can acquire, store, use, process and the like the data, which accords with the relevant regulations of national laws and regulations.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (11)
1. A buried point testing method, comprising:
Receiving a buried point request sent by an interception server, and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script; the target embedded point information is embedded point information in the embedded point request sent by the terminal equipment to the embedded point server, namely the embedded point information reported by the terminal equipment;
receiving test buried point information sent by a buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server;
and determining a buried point test result according to the target buried point information and the test buried point information.
2. The buried point testing method according to claim 1, wherein determining a buried point test result from the target buried point information and the test buried point information comprises:
Comparing the target buried point information with the test buried point information;
and determining the buried point test result according to the comparison result.
3. The buried point testing method according to claim 2, wherein determining the buried point test result from the comparison result comprises:
If the target buried point information is inconsistent with the test buried point information, determining that the buried point test result is buried point abnormality;
and if the target buried point information is consistent with the test buried point information, determining that the buried point test result is that the buried point is normal.
4. The buried point testing method according to claim 1, wherein determining a buried point test result from the target buried point information and the test buried point information comprises:
Respectively comparing pre-stored actual buried point information corresponding to the buried point request, the target buried point information and the test buried point information;
and determining the buried point test result according to the comparison result.
5. The buried point testing method according to claim 4, wherein determining the buried point test result from the comparison result comprises:
If the actual buried point information is inconsistent with the target buried point information, determining that the buried point test result is that the buried point reporting is abnormal;
If the actual buried point information is consistent with the target buried point information and inconsistent with the test buried point information, determining that the buried point test result is abnormal buried point processing;
and if the actual buried point information is consistent with the target buried point information and is consistent with the test buried point information, determining that the buried point test result is that the buried point is normal.
6. A buried point testing apparatus, comprising:
The first receiving module is used for receiving the buried point request sent by the interception server and determining target buried point information contained in the buried point request; the embedded point request is sent by the interception server when intercepting a network request sent by the terminal equipment to the embedded point server, and the network request is determined to be the embedded point request according to a test script, and the network request is sent by the terminal equipment in the process of executing the test script; the target embedded point information is embedded point information in the embedded point request sent by the terminal equipment to the embedded point server, namely the embedded point information reported by the terminal equipment;
the second receiving module is used for receiving the test buried point information sent by the buried point server; the test buried point information is obtained by processing buried point information in the buried point request according to service information by the buried point server, and the buried point request is sent to the buried point server by the interception server;
And the determining module is used for determining a buried point test result according to the target buried point information and the test buried point information.
7. The buried point testing apparatus according to claim 6, wherein said determining module is specifically configured to:
Comparing the target buried point information with the test buried point information;
and determining the buried point test result according to the comparison result.
8. The point-of-burial testing apparatus of claim 6, wherein said determining module is further configured to:
Respectively comparing pre-stored actual buried point information corresponding to the buried point request, the target buried point information and the test buried point information;
and determining the buried point test result according to the comparison result.
9. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the buried point test method according to any of claims 1 to 5 when executing the program.
10. A storage medium containing computer executable instructions for performing the buried point testing method according to any of claims 1-5 when executed by a computer processor.
11. A point-of-burial test system, comprising: the system comprises terminal equipment, an interception server, a buried point server and an analysis server;
the terminal equipment is used for executing the test script and sending a network request to the embedded point server;
the interception server is used for intercepting the network request sent to the embedded point server by the terminal equipment, determining the embedded point request in the network request according to the test script and sending the embedded point request to the embedded point server and the analysis server;
The embedded point server is used for processing the embedded point information in the embedded point request according to the service information to obtain test embedded point information, and sending the test embedded point information to the analysis server, wherein the embedded point request is sent to the embedded point server by the interception server;
The analysis server is used for determining target buried point information contained in the buried point request and determining a buried point test result according to the target buried point information and the test buried point information; the target embedded point information is embedded point information in the embedded point request sent by the terminal equipment to the embedded point server, namely the embedded point information reported by the terminal equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211153760.7A CN115484200B (en) | 2022-09-21 | 2022-09-21 | Buried point testing method, buried point testing device, server, storage medium and buried point testing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211153760.7A CN115484200B (en) | 2022-09-21 | 2022-09-21 | Buried point testing method, buried point testing device, server, storage medium and buried point testing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115484200A CN115484200A (en) | 2022-12-16 |
CN115484200B true CN115484200B (en) | 2024-05-17 |
Family
ID=84423908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211153760.7A Active CN115484200B (en) | 2022-09-21 | 2022-09-21 | Buried point testing method, buried point testing device, server, storage medium and buried point testing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115484200B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023711A (en) * | 2011-09-22 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for verifying service reliability |
CN110990255A (en) * | 2019-10-28 | 2020-04-10 | 贝壳技术有限公司 | Buried point testing method and server |
CN111367814A (en) * | 2020-03-17 | 2020-07-03 | 深圳市前海随手数据服务有限公司 | Embedded point testing method and device, terminal equipment and storage medium |
CN113238935A (en) * | 2021-05-10 | 2021-08-10 | 深圳前海微众银行股份有限公司 | Application testing method, system, device, medium, and computer program product |
CN113360376A (en) * | 2021-06-01 | 2021-09-07 | 北京沃东天骏信息技术有限公司 | Buried point testing method and device |
WO2022105591A1 (en) * | 2020-11-20 | 2022-05-27 | 上海连尚网络科技有限公司 | Cache server performance test method and apparatus, device, and medium |
-
2022
- 2022-09-21 CN CN202211153760.7A patent/CN115484200B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023711A (en) * | 2011-09-22 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for verifying service reliability |
CN110990255A (en) * | 2019-10-28 | 2020-04-10 | 贝壳技术有限公司 | Buried point testing method and server |
CN111367814A (en) * | 2020-03-17 | 2020-07-03 | 深圳市前海随手数据服务有限公司 | Embedded point testing method and device, terminal equipment and storage medium |
WO2022105591A1 (en) * | 2020-11-20 | 2022-05-27 | 上海连尚网络科技有限公司 | Cache server performance test method and apparatus, device, and medium |
CN113238935A (en) * | 2021-05-10 | 2021-08-10 | 深圳前海微众银行股份有限公司 | Application testing method, system, device, medium, and computer program product |
CN113360376A (en) * | 2021-06-01 | 2021-09-07 | 北京沃东天骏信息技术有限公司 | Buried point testing method and device |
Non-Patent Citations (1)
Title |
---|
基于Web应用中间件性能测试的研究与应用;陈聪;陆璐;胡明;王鹏;郭栋;;中国计量(第08期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115484200A (en) | 2022-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108897691B (en) | Data processing method, device, server and medium based on interface simulation service | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
CN110083543B (en) | Regression testing method, device, electronic equipment and storage medium | |
CN111008135B (en) | APP test method, device, equipment and storage medium | |
WO2019075994A1 (en) | Method, device and system for mock data at ios end, and storage medium | |
CN111367814A (en) | Embedded point testing method and device, terminal equipment and storage medium | |
CN111045942A (en) | Application testing method, system, storage medium and electronic equipment | |
CN111324441A (en) | Operating environment switching method and device, computer equipment and storage medium | |
CN110597704B (en) | Pressure test method, device, server and medium for application program | |
CN114253864A (en) | Service testing method and device, electronic equipment and storage medium | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
CN110888731A (en) | Route data acquisition method, device, equipment and storage medium | |
CN109947659B (en) | System, method and apparatus for testing applications | |
CN111274130A (en) | Automatic testing method, device, equipment and storage medium | |
CN112084114B (en) | Method and apparatus for testing interfaces | |
CN115022201B (en) | Data processing function test method, device, equipment and storage medium | |
CN115484200B (en) | Buried point testing method, buried point testing device, server, storage medium and buried point testing system | |
CN115454856B (en) | Multi-application security detection method, device, medium and electronic equipment | |
US9703676B2 (en) | Testing application internal modules with instrumentation | |
CN112506782A (en) | Application program testing method, device, equipment and storage medium | |
CN113392002A (en) | Test system construction method, device, equipment and storage medium | |
CN113760696A (en) | Program problem positioning method and device, electronic equipment and storage medium | |
CN111124423A (en) | Multi-platform-based compiling detection method, device, server and medium | |
CN110806981A (en) | Application program testing method, device, equipment and storage medium | |
CN117632727A (en) | Abnormality positioning method, device, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |