A network request processing method, apparatus and device

By obtaining the semantic information of the triggering operation of page elements, generating operation step information and associating it with network requests, the problem of low efficiency in network request processing is solved, and accurate step separation and organization of network requests are achieved.

CN123158010APending Publication Date: 2026-11-24JIANXIN RONGTONG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611322836.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, network request processing is inefficient and difficult to accurately categorize and organize according to user operation steps, resulting in cumbersome and error-prone network request processing.

Method used

By acquiring semantic information about the user's actions triggered by page elements, corresponding operation step information is generated, and network requests are associated with operation step information to achieve the separation and organization of network request steps.

Benefits of technology

It improves the efficiency of network request processing, reduces the manual division and organization of network requests by testers, and clarifies the operation steps to which network requests belong.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158010A_ABST
    Figure CN123158010A_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and device for processing network requests, relating to the field of computer technology. The method includes: responding to a user's trigger operation on a target element in a page, obtaining semantic information corresponding to the trigger operation; the semantic information being used to characterize the operation object and / or operation context corresponding to the trigger operation; generating operation step information corresponding to the trigger operation based on the semantic information; and associating a network request generated based on the trigger operation with the operation step information. Through this method, semantic information can be obtained and operation step information generated based on the user's trigger operation on the page, automatically associating network requests with corresponding operation steps. This reduces the manual process of testers dividing steps and associating network requests, improving the efficiency and accuracy of structured organization of network requests according to user operation steps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus and device for processing network requests. Background Technology

[0002] A network request refers to the data request and response data generated during data interaction between a webpage and a server while the browser is running. In functional testing, interface debugging, and fault reproduction scenarios of web applications, it is necessary to capture and record network requests to obtain network communication data generated during user operations.

[0003] Currently, in functional testing, API debugging, and fault reproduction scenarios of web applications, to analyze the network requests generated when users perform different operations, it is necessary to classify and organize the network requests according to the user's operation steps to clarify the correspondence between each network request and the user's operation steps. Network request tools can record each network request sequentially according to the time of occurrence, forming a request list arranged in chronological order. When it is necessary to classify and organize network requests according to the user's actions on the page, testers need to manually identify and mark the operation steps to which each network request belongs in the request list based on memory or operation records. This process is tedious, error-prone, and has the problem of low network request processing efficiency.

[0004] Therefore, there is an urgent need for a solution to address the aforementioned technical problems. Summary of the Invention

[0005] Based on the above problems, this application provides a network request processing method, apparatus, and device to solve the problem of low efficiency in network request processing.

[0006] The embodiments of this application disclose the following technical solutions: Firstly, this application provides a network request processing method, comprising: responding to a user's trigger operation on a target element in a page, obtaining semantic information corresponding to the trigger operation; the semantic information being used to characterize the operation object and / or operation context corresponding to the trigger operation; generating operation step information corresponding to the trigger operation based on the semantic information corresponding to the trigger operation; and associating a network request generated based on the trigger operation with the operation step information.

[0007] In this embodiment, by establishing semantic information corresponding to the triggering operation, operation step information corresponding to the triggering operation is generated. This enables network requests generated based on different triggering operations to establish a correspondence with different operation step information, thereby allowing network requests to be organized and distinguished according to operation steps, clarifying the operation step to which the network request belongs, avoiding the mixing of network requests generated by different operations, and improving the processing efficiency of network requests.

[0008] In one possible implementation, associating the network request generated based on the triggering operation with the operation step information includes: adding the operation step information to the end of the operation step information sequence; and associating the network request generated based on the triggering operation with the operation step information located at the end of the operation step information sequence.

[0009] In this embodiment, by arranging the operation step information in the order of creation and associating the network request generated based on the trigger operation with the operation step information at the end, the network request can establish a correspondence with the latest created operation step information, thereby distinguishing the network requests generated by different operation steps according to the operation steps, clarifying the operation step to which the network request belongs, and realizing the step separation of the network request.

[0010] In one possible implementation, in response to a user's trigger operation on a target element on the page, semantic information corresponding to the trigger operation is obtained; the semantic information is used to characterize the operation object and / or operation context corresponding to the trigger operation, including: in response to a user's trigger operation on a target element on the page, obtaining the operation context corresponding to the trigger operation and the type of the target element; based on the type of the target element, obtaining semantic content corresponding to the trigger operation; the semantic content is used to indicate the operation object corresponding to the trigger operation; and based on the semantic content and the operation context, obtaining the semantic information corresponding to the trigger operation.

[0011] In this embodiment of the application, the semantic information corresponding to the triggering operation is determined by combining the operation context corresponding to the triggering operation and the type of the target element. This allows the semantic information to simultaneously characterize the operation object and operation context corresponding to the triggering operation, thereby giving the operation step information corresponding to the triggering operation more explicit operation content and providing accurate semantic basis for the association between network requests and operation step information.

[0012] In one possible implementation, obtaining the semantic content corresponding to the triggering operation based on the type of the target element includes: when the type of the target element is a first type, extracting the semantic content corresponding to the triggering operation from the target element.

[0013] In this embodiment of the application, by extracting the semantic content corresponding to the triggering operation from the target element of the first type, the operation object corresponding to the triggering operation can be directly determined through the target element, thereby providing accurate operation object information for obtaining the semantic information corresponding to the triggering operation.

[0014] In one possible implementation, obtaining the semantic content corresponding to the triggering operation based on the type of the target element includes: when the type of the target element is a second type, searching for ancestor nodes level by level along the parent node direction of the target element; extracting text content describing the triggering operation from the found ancestor nodes, and using the text content as the semantic content corresponding to the triggering operation.

[0015] In this embodiment of the application, by searching for ancestor nodes level by level along the parent node direction of the second type of target element and extracting text content from the found ancestor nodes, the second type of target element can obtain semantic content for describing the trigger operation, thereby determining the operation object corresponding to the trigger operation and providing operation object information for obtaining the semantic information corresponding to the trigger operation.

[0016] In one possible implementation, before obtaining the semantic information corresponding to the trigger operation in response to a user's trigger operation on a target element on the page, the method further includes: registering a trigger operation detector on the document object of the page; setting the trigger operation detector to be executed during the event capture phase; obtaining the semantic information corresponding to the trigger operation in response to a user's trigger operation on a target element on the page includes: in response to a user's trigger operation on a target element on the page, capturing the trigger event corresponding to the trigger operation based on the trigger operation detector during the event capture phase; and obtaining the semantic information corresponding to the trigger operation based on the trigger event.

[0017] In this embodiment of the application, by acquiring the triggering event corresponding to the triggering operation during the event capture stage, the triggering operation can be acquired before the page processes the triggering operation, thereby timely acquiring the semantic information corresponding to the triggering operation and providing a basis for generating operation step information based on the triggering operation.

[0018] In one possible implementation, the method further includes: obtaining the occurrence time of the triggering operation in the page process; ignoring the triggering operation when the time interval between the occurrence time and the occurrence time of the previous triggering operation is less than or equal to a first preset time threshold, or when the triggering operation is located in a non-tested area.

[0019] In this embodiment, triggering operations are filtered based on the time interval between triggering operations and the region where the triggering operation is located, so that triggering operations with a time interval less than or equal to a first preset time threshold and triggering operations located in non-tested regions are not included in subsequent processing, thereby reducing the impact of repeated triggering operations and triggering operations in non-tested regions on the generation of operation step information.

[0020] In one possible implementation, the method further includes: receiving trigger operation information sent by the page process through a background service process; the trigger operation information includes the occurrence time of the trigger operation; when the time interval between the occurrence time and the occurrence time of the previous trigger operation is less than or equal to a second preset time threshold, the trigger operation information is ignored.

[0021] In this embodiment, the background service process filters the trigger operation information again based on the occurrence time in the trigger operation information, so that trigger operation information with a time interval less than or equal to the second preset time threshold is not entered into subsequent processing, thereby reducing the impact of repeated trigger operation information on the generation of operation step information.

[0022] Second aspect: Embodiments of this application provide a network request processing apparatus, including: The acquisition unit is used to acquire semantic information corresponding to the trigger operation in response to a user's trigger operation on a target element on the page; the semantic information is used to characterize the operation object and / or operation context corresponding to the trigger operation. The generation unit is used to generate operation step information corresponding to the triggering operation based on the semantic information corresponding to the triggering operation; The association unit is used to associate the network request generated based on the triggering operation with the operation step information.

[0023] Third aspect: This application provides a computer device, which includes a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the steps of the method described above according to the instructions in the program code.

[0024] Fourth aspect: Embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.

[0025] Fifth aspect: This application provides a computer program product, which, when run on a computer, enables the computer to perform the steps of the method described above.

[0026] Sixth aspect: This application provides a chip including a processor coupled to a memory for executing a computer program or instructions stored in the memory, such that the chip implements the steps of the method described above. Attached Figure Description

[0027] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 A schematic diagram illustrating an application scenario provided in an embodiment of this application; Figure 2 A flowchart illustrating an overall process for processing network requests provided in this application embodiment; Figure 3 A general architecture diagram of a network request processing method provided in an embodiment of this application; Figure 4 A schematic diagram of the structure of a network request processing device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0029] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the embodiments of this application, "one or more" refers to one, two, or more; "and / or" describes the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0030] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0031] The "multiple" mentioned in the embodiments of this application refers to two or more. It should be noted that in the description of the embodiments of this application, terms such as "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.

[0032] Currently, network requests can be captured and recorded using network request tools. Testers can use these tools to obtain network requests generated during webpage execution and record them according to their occurrence time. However, due to limitations in existing network request recording methods, network requests are usually arranged sequentially by occurrence time to form a request list. This does not directly reflect the correspondence between each network request and the user's actions. When it is necessary to classify and organize network requests according to user actions, testers still need to manually identify the network requests corresponding to different actions from the request list, affecting the accuracy and convenience of organizing network requests according to user actions.

[0033] For example, when a user needs to perform functional testing, interface debugging, or fault reproduction on a web application, the network request tool can record the network requests generated during the user's operation in sequence according to the time of occurrence of the network requests. When the user performs multiple operations in succession, the network requests generated by different operations will be arranged in the request list in sequence. Testers need to identify the operation to which each network request belongs according to the user's operation process, and classify and organize the network requests corresponding to different operations.

[0034] However, this method has at least the following problems: First, this method records network requests sequentially according to their occurrence time. Network requests generated by different user operations are arranged sequentially in the request list, making it difficult to determine the user operation to which each network request belongs. Second, when it is necessary to classify and organize network requests according to user operations, this method requires testers to identify the operation to which each network request belongs from the request list one by one and manually classify the network requests corresponding to different operations, increasing the operational burden in the process of classifying and organizing network requests. Third, the network request records generated by this method lack the correspondence between user operations and network requests, making it difficult to organize network requests in a structured manner according to user operations, which affects the step separation of network requests.

[0035] Based on this, embodiments of this application provide a network request processing method, which, in response to a user's trigger operation on a target element on a page, obtains semantic information corresponding to the trigger operation, the semantic information being used to characterize the operation object and / or operation context corresponding to the trigger operation; based on the semantic information corresponding to the trigger operation, generates operation step information corresponding to the trigger operation; and associates the network request generated based on the trigger operation with the operation step information.

[0036] This application embodiment can determine operation step information based on the semantic information corresponding to the user-triggered operation, and associate network requests generated based on different triggered operations with the corresponding operation step information, so that network requests can be distinguished and organized according to operation steps, thereby clarifying the operation steps to which the network request belongs, reducing the manual division and organization of network requests by testers, and improving the processing efficiency of network requests.

[0037] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0038] See Figure 1 This figure is a schematic diagram of an application scenario provided by an embodiment of this application.

[0039] The network request processing method provided in this application can be applied to computer devices. In some embodiments, the computer device may include, but is not limited to, electronic devices such as desktop computers, laptops, tablets, and smartphones. This application does not impose any special limitations on the specific form of the computer device. The computer device may run a page process and a background service process, which interact to implement the network request processing method.

[0040] In this embodiment, the page process 1101 interacts with the background service process 1102. The page process 1101 runs the page under test, obtains trigger operations performed by the user on the page under test, and sends trigger operation information corresponding to the trigger operations to the background service process 1102. The background service process 1102 generates corresponding operation step information based on the trigger operation information and processes network requests generated based on the trigger operations.

[0041] For example, page process 1101 can respond to a user's trigger operation on a target element on the page, obtain the semantic information corresponding to the trigger operation, and send the semantic information corresponding to the trigger operation to the background service process 1102.

[0042] After receiving the semantic information, the background service process 1102 can generate the operation step information corresponding to the trigger operation based on the semantic information corresponding to the trigger operation, and associate the network request generated based on the trigger operation with the operation step information.

[0043] When a user performs multiple triggered operations on a page, the page process 1101 can obtain the semantic information corresponding to each triggered operation and send the semantic information corresponding to each triggered operation to the background service process 1102. The background service process 1102 can generate corresponding operation step information based on the semantic information corresponding to each triggered operation, and associate the network requests generated by each triggered operation with the corresponding operation step information, thereby forming a network request record organized according to the operation steps.

[0044] The following description, in conjunction with the accompanying drawings, illustrates a network request processing method provided by an embodiment of this application. (See attached drawings.) Figure 2 The figure is an overall flowchart of a network request processing method provided in an embodiment of this application, including S201-S203.

[0045] S201. In response to a user's trigger operation on a target element on the page, obtain the semantic information corresponding to the trigger operation.

[0046] The semantic information is used to characterize the operation object and / or operation context corresponding to the triggering operation.

[0047] In this embodiment, the user's triggering operation on a target element on the page may include, but is not limited to, click operations, touch operations, voice operations, eye-tracking operations, gesture operations, and other user operations that can trigger the corresponding function of the target element. This embodiment does not specifically limit this. The target element on the page may include, but is not limited to, buttons, links, input boxes, or other page elements that can respond to user operations. The operation object indicates the page element targeted by the user when performing the triggering operation, such as a login button, a query button, or an input box; the operation context indicates the page environment corresponding to the occurrence of the triggering operation, such as the page where the triggering operation is located.

[0048] For example, taking a click operation as the triggering action and a login button as the target element, the login button displays the text "Login". When a user clicks the login button on the login page, the operation object corresponding to the triggering action can be obtained as the login button, and the operation context corresponding to the triggering action can be obtained as the login page.

[0049] When a user is detected to have performed a trigger operation on a target element on the page, the operation object and / or operation context corresponding to the trigger operation can be obtained, and semantic information corresponding to the trigger operation can be obtained based on the operation object and / or operation context. The operation object represents the target element targeted by the user when performing the trigger operation, and the operation context represents the page environment corresponding to the occurrence of the trigger operation.

[0050] For example, when a user performs a trigger operation on different target elements on the same page, the operation object and / or operation context corresponding to each trigger operation can be obtained separately to obtain the semantic information corresponding to each trigger operation, thereby distinguishing the operation content corresponding to different trigger operations.

[0051] In this embodiment of the application, in the process of obtaining the semantic information corresponding to the triggering operation, it is necessary to first obtain the triggering event corresponding to the triggering operation performed by the user on the page, and determine the target element corresponding to the triggering operation based on the triggering event, so as to further obtain the operation object and / or operation context corresponding to the triggering operation.

[0052] In one possible implementation, S201 can be achieved through steps 211 to 212.

[0053] Step 211: In response to the user's trigger operation on the target element on the page, the trigger operation detector captures the trigger event corresponding to the trigger operation during the event capture phase.

[0054] In one possible implementation, a trigger action detector can be registered on the page's document object and set to execute during the event capture phase.

[0055] In this embodiment, a document object can be used to represent the page document structure, and page elements in the page can be organized and managed through the document object. The trigger operation detector can include an event detector for detecting trigger operations performed by the user on the page. The event capture phase can include a phase for processing the trigger event as it propagates along the event propagation path to the target element.

[0056] For example, trigger action detectors include, but are not limited to, event detectors registered on document objects. Event detectors can be configured to execute during the event capturing phase, enabling them to detect trigger events corresponding to user actions on the page.

[0057] Furthermore, after registering the trigger action detector, it can be configured to execute during the event capture phase, allowing the detector to capture the trigger event as it propagates to the target element. By pre-registering and configuring the trigger action detector, the corresponding trigger event can be detected directly when the user performs a trigger action, providing a foundation for subsequently obtaining the semantic information corresponding to the trigger action.

[0058] It is understood that the specific implementation of the document object, the trigger operation detector, and the event capturing phase can be set according to actual application requirements. For example, the document object may include a document object used to represent the page document structure or other objects that can carry page elements; the trigger operation detector may include an event detector, an event handler, or other detection components used to detect trigger operations; the event capturing phase may include a phase of processing the trigger event before the trigger event propagates to the target element, and this application embodiment does not specifically limit this.

[0059] Based on the above implementation, in order to enable the trigger operation detector to obtain the trigger event before the trigger event propagates to the target element, the execution position of the event capture stage in the event propagation path can be further set.

[0060] In one possible implementation, the event capturing phase is executed at the very beginning of the event propagation path.

[0061] In this embodiment of the application, by setting the event capture phase to be executed before the page performs subsequent processing on the trigger event, the trigger operation detector can obtain the trigger event before the trigger event propagates to the target element and the page performs subsequent processing on the trigger event, thereby avoiding the trigger event being unable to be obtained by the trigger operation detector due to subsequent event processing on the page.

[0062] For example, when a user triggers the login button on the page, the trigger event corresponding to the login button propagates along the event propagation path to the login button. The trigger operation detector obtains the trigger event during the event capture phase, thereby avoiding the trigger event being missed due to subsequent page event processing of the login button.

[0063] For example, after the trigger event continues to propagate to the login button, the page event handler corresponding to the login button can call the `stopPropagation` method to stop the trigger event from continuing to propagate along the event propagation path, preventing the trigger event from being passed to subsequent event handling locations. Since the trigger action detector has already acquired the trigger event during the event capture phase, even if the page event handler calls the `stopPropagation` method, it will not affect the trigger event already acquired by the trigger action detector, thus avoiding the situation where the trigger event is not detected due to subsequent page event handling stopping event propagation.

[0064] It is understood that the specific execution method of the event capture phase can be set according to the actual application requirements. For example, the event detector can be executed in the event capture phase by setting the event capture parameter (useCapture) of the event detector to true. This application embodiment does not make specific limitations on this.

[0065] After configuring the trigger action detector, you can detect the trigger actions performed by the user on the page based on the trigger action detector, and then you need to perform follow-up processing on the detected trigger actions.

[0066] In one possible implementation, when a user triggers a page action, the target element corresponding to the trigger action can be retrieved, and it can be checked whether the target element belongs to a pre-defined non-tested area. If the target element belongs to a non-tested area, the trigger action can be ignored.

[0067] In this embodiment of the application, by detecting whether the target element corresponding to the trigger operation belongs to the non-tested area, and ignoring the trigger operation when it belongs to the non-tested area, the trigger operation executed on the operation control in the toolbar can be excluded, thus preventing the toolbar operation from being processed as a user operation in the tested page.

[0068] For example, the non-tested area may include the area corresponding to the toolbar used to provide operation recording functionality. The toolbar may include operation controls such as pause and screenshot. When a user performs a trigger operation on an operation control in the toolbar, it can be detected whether the target element corresponding to the trigger operation belongs to the non-tested area of ​​the toolbar; if it is determined that the target element belongs to the non-tested area, the trigger operation can be ignored.

[0069] It is understood that the specific form of the non-tested area can be set according to the actual application requirements. The non-tested area may include the toolbar area corresponding to the operation recording function, or it may include other areas that do not belong to the content of the tested page. The operation controls in the toolbar can be set according to the actual application requirements, such as pause, screenshot or other operation controls. This application embodiment does not specifically limit this.

[0070] After completing the detection of non-tested areas, the occurrence time of the triggering operation can be further detected to filter out duplicate triggering operations that may be generated by the same physical trigger.

[0071] In one possible implementation, the occurrence time of the triggering operation is obtained in the page process. If the time interval between the occurrence time and the occurrence time of the previous triggering operation is less than or equal to a first preset time threshold, the triggering operation is ignored.

[0072] In this embodiment, when a user's trigger operation on a page is obtained, the occurrence time of the trigger operation can be obtained and compared with the occurrence time of the previous trigger operation. The first preset time threshold may include a time interval threshold for determining whether adjacent trigger operations may be generated by the same physical trigger. The first preset time threshold can be set according to the generation of trigger events on the page, for example, it can be set to 300 milliseconds. When the time interval between two occurrence times is less than or equal to the first preset time threshold, it can be determined that adjacent trigger operations may be generated by the same physical trigger, and the later trigger operation is ignored as a duplicate trigger operation.

[0073] For example, when a user performs a physical trigger on a target element on a page, multiple trigger events may be generated from the same physical trigger due to the page's interaction logic or the event handling mechanism of the page framework. Each trigger event corresponds to a specific occurrence time. When the time interval between the occurrence times of two adjacent trigger events is less than or equal to 300 milliseconds, the later-occurring trigger event can be ignored as a duplicate trigger event, thus preventing the repeated processing of multiple trigger events generated from the same physical trigger.

[0074] It is understandable that by filtering trigger operations based on the occurrence time of the trigger operation in the page process, duplicate trigger operations caused by the same physical trigger can be reduced before the trigger operation information is sent to subsequent processing.

[0075] Step 212: Based on the triggering event, obtain the semantic information corresponding to the triggering operation.

[0076] In this embodiment of the application, after obtaining the triggering event corresponding to the triggering operation, the semantic information corresponding to the triggering operation can be obtained based on the triggering event.

[0077] For example, the target element corresponding to the triggering operation can be determined based on the triggering event, and the semantic information corresponding to the triggering operation can be obtained based on the target element and the page information corresponding to the triggering operation.

[0078] Steps 211 to 212 described above can be considered one implementation of S201, used to determine the semantic information corresponding to the triggering operation by acquiring the triggering event. In other implementations, the semantic information can also be acquired from the operation context corresponding to the triggering operation, the type of the target element, and the semantic content.

[0079] In another possible implementation, S201 can be implemented through steps 221 to 223.

[0080] Step 221: In response to the user's trigger operation on the target element on the page, obtain the operation context corresponding to the trigger operation and the type of the target element.

[0081] In this embodiment, the operation context may include information describing the state of the page when the triggered operation occurs, to help determine the operation scenario corresponding to the triggered operation. This may include, but is not limited to, the page path, page address, or other information that can describe the page where the triggered operation occurs.

[0082] The type of the target element can include information describing the page element category to which the target element belongs. This can include, but is not limited to, visible text type, nested structure type, or other page element types. Visible text type can include types where the target element itself contains text content that can be used to describe the triggered action; nested structure type can include types where the target element itself does not contain text content, but is nested within other page elements that contain relevant text content.

[0083] For example, when a user clicks the login button on the login page, the page path corresponding to the login page, such as / login, can be obtained, and the page path can be used as the operation context corresponding to the triggering operation; at the same time, it can be determined that the target element corresponding to the login button clicked by the user contains login text, so the type of the target element can be determined as visible text type.

[0084] For example, when a user triggers a button on a page that contains both an icon and text, the actual target element corresponding to the triggered action might be the icon element inside the button. The icon element itself doesn't contain text describing the triggered action, but its parent page element contains the submission text. In this case, the target element's type can be determined as a nested structure, and the corresponding operation context can be obtained based on information such as the page path.

[0085] Step 222: Based on the type of the target element, obtain the semantic content corresponding to the triggering operation.

[0086] The semantic content is used to indicate the operation object corresponding to the triggering operation.

[0087] In this embodiment, the semantic content corresponding to the triggering operation can be obtained according to the type of the target element, using a method corresponding to the type of the target element. The semantic content may include text content describing the operation object corresponding to the triggering operation, such as button name, link name, or other text content that can describe the operation object.

[0088] In one possible implementation, when the type of the target element includes the first type, the semantic content corresponding to the triggering operation can be extracted from the target element.

[0089] In this embodiment, the first type may include a type in which the target element itself contains text content used to describe the triggering operation. When the target element is of the first type, the text content can be directly extracted from the target element and used as the semantic content corresponding to the triggering operation.

[0090] For example, when a user clicks the login button on a page, the target element can include the page element corresponding to the login button, and the page element contains login text. In this case, the login text can be directly extracted from the target element, and login can be used as the semantic content corresponding to the triggering operation, indicating that the operation object corresponding to the triggering operation is the login operation.

[0091] It is understood that the specific form of the first type and the specific method of extracting semantic content from the target element can be set according to actual application requirements. The text content may include, but is not limited to, button text, link text, or other text content used to describe the operation object. This application embodiment does not specifically limit this.

[0092] In another possible implementation, when the target element's type includes the second type, ancestor nodes can be searched level by level along the parent node direction of the target element, and the text content used to describe the triggering operation can be extracted from the found ancestor nodes, and the text content can be used as the semantic content corresponding to the triggering operation.

[0093] In this embodiment, the second type may include a target element that does not contain text content describing the triggering operation, and the target element is nested within other page elements. When the target element is of the second type, ancestor nodes can be searched level by level from the target element along the parent node direction, and it can be detected whether the found ancestor nodes contain text content describing the triggering operation. When an ancestor node containing text content is found, the text content can be extracted from the ancestor node and used as the semantic content corresponding to the triggering operation.

[0094] For example, when a user clicks the submit button on the page, the actual target element received may include the icon element inside the submit button. The icon element itself does not contain text content describing the triggered operation. In this case, ancestor nodes can be searched level by level along the parent node of the icon element. When a button element containing the submit text is found, the submit text can be extracted from the button element, and the submit can be used as the semantic content corresponding to the triggered operation.

[0095] It is understood that the specific form of the second type can be set according to actual application needs, and may include, but is not limited to, the type in which the target element itself does not contain text content used to describe the triggering operation, or the type in which the target element is nested in a page element containing relevant text content; the search method for ancestor nodes can be set according to actual application needs, and may include, but is not limited to, searching step by step in order from near to far, searching according to a preset level range, or searching according to a preset node type. This application embodiment does not specifically limit this.

[0096] In one possible implementation, the length of the semantic content corresponding to the triggering operation can be limited. When the number of characters in the semantic content exceeds a preset number of characters, the semantic content can be truncated according to a preset truncation rule, and the truncated semantic content can be used to generate the operation step information corresponding to the triggering operation. The preset number of characters can include a character threshold for limiting the length of the semantic content, for example, it can be set to 30 characters, so as to retain the main semantic content corresponding to the triggering operation while reducing the impact of excessively long semantic content on the display space.

[0097] For example, when the semantic content corresponding to the triggered operation includes long text such as "fill in the user's delivery address information, including province, city, district, street and detailed house number", the semantic content can be truncated, retaining less than or equal to a preset number of characters as the truncated semantic content, and generating corresponding operation step information based on the truncated semantic content, thereby making the generated semantic content more readable.

[0098] It is understood that the preset number of characters and the truncation method of semantic content can be set according to actual application needs. For example, the preset number of characters can be set to 20 characters, 30 characters, 50 characters or other number of characters. The semantic content can also be truncated by retaining the beginning of the text, retaining the beginning and end of the text or other methods. This application embodiment does not make specific limitations on this.

[0099] Step 223: Based on the semantic content and operation context, obtain the semantic information corresponding to the triggering operation.

[0100] In this embodiment of the application, after obtaining the semantic content and operation context corresponding to the triggering operation, semantic information that can characterize the triggering operation can be obtained by combining the semantic content and operation context.

[0101] For example, when a user clicks the login button on the login page, the semantic content corresponding to the login as the triggering operation can be obtained, and the page path corresponding to the login page can be obtained as the operation context. The login and page path can be combined to obtain the semantic information corresponding to the triggering operation, so that the semantic information can represent the login operation performed by the user on the login page.

[0102] It is understood that the specific combination of semantic content and operational context can be set according to actual application requirements, and may include, but is not limited to, text concatenation, field combination, or combination according to a preset data structure. This application embodiment does not specifically limit this.

[0103] S202. Based on the semantic information corresponding to the triggering operation, generate operation step information corresponding to the triggering operation.

[0104] In this embodiment of the application, after obtaining the semantic content, it can be determined whether to generate operation step information corresponding to the trigger operation based on the semantic content according to the current operation recording status. The operation recording status can be used to indicate whether the current state is recording the operation performed by the user on the page under test.

[0105] In one possible implementation, the decision to generate operation step information based on the semantic information corresponding to the triggered operation can be determined based on the current operation recording status. When operation recording is enabled, triggered operations that meet the conditions can be recorded, and operation step information can be generated based on the semantic information corresponding to the triggered operation. The paused state can be used to indicate that, while operation recording is enabled, the generation of operation step information based on the triggered operations performed by the user on the page under test is temporarily stopped; when operation recording is paused, new operation step information can be generated without relying on the triggered operations performed by the user.

[0106] For example, when a user enables the operation recording function, the operation recording state can be on. In this state, when the user performs a trigger operation on a button, link, or other page element on the page under test, operation step information can be generated based on the semantic information corresponding to the trigger operation. When the user pauses operation recording using the pause control in the operation recording toolbar, the operation recording state can remain on, and the pause state is also on. In this state, the trigger operation performed by the user on the page under test does not need to be used to generate new operation step information.

[0107] When a user resumes recording via the recording toolbar, the paused state can be restored to the unpaused state, and subsequent triggered operations that meet the conditions can generate new operation step information based on the corresponding semantic information.

[0108] In one possible implementation, when operation recording is paused, the user's triggering action on the page may not be used to generate new operation step information. However, the occurrence time of the triggering action can be obtained, and the active time corresponding to the operation recording can be updated based on the occurrence time to reset the idle detection timer. The active time can represent the time of the user's most recent page interaction; the idle detection timer can be used to determine whether the user is idle based on the difference between the current time and the active time. When the difference exceeds a certain time, the user can be determined to be idle, and operation recording can be automatically paused to save system resources.

[0109] For example, if a user pauses recording but continues browsing or viewing on the tested page, although no new operation steps are generated, each triggered operation updates the active time to the current moment, causing the idle detection timer to restart from the current moment. This prevents the system from mistakenly judging that the user has left and automatically pausing recording due to a long period of inactivity. When the user leaves the device after pausing recording, the active time is no longer updated, and the system can automatically pause recording after the idle detection timer expires to release system resources.

[0110] For example, when a user pauses operation recording, if a button on the page is triggered during the pause, new operation step information may not be generated based on the triggered operation, and the active time corresponding to the operation recording may be updated. When the user resumes operation recording, subsequent triggered operations that meet the operation recording conditions can be used to generate new operation step information.

[0111] When the operation recording state is on and not paused, the above-mentioned triggering operation can be further filtered by the background service process to reduce the duplicate triggering operation information that may be generated during the message transmission between the page process and the background service process. The triggering operation information may include the occurrence time of the triggering operation, which is used to indicate the occurrence time of the triggering operation in the page process.

[0112] In one possible implementation, after receiving the trigger operation information sent by the page process, the background service process can obtain the occurrence time in the trigger operation information and compare it with the occurrence time corresponding to the last received valid trigger operation. The second preset time threshold may include a time interval threshold for determining whether multiple received trigger operation information may correspond to the same trigger operation. When the time interval between two occurrence times is less than or equal to the second preset time threshold, it can be determined that the trigger operation information may correspond to a already processed trigger operation, and the trigger operation information is ignored.

[0113] For example, a valid triggering operation may include a triggering operation that the background service process determines requires further processing after receiving the triggering operation information and judging it based on a second preset time threshold. The occurrence time corresponding to a valid triggering operation may include the time recorded when the triggering operation actually occurs in the page process, rather than the time when the background service process receives the triggering operation information.

[0114] For example, when a user triggers the login button on the page for the first time, the page process can record the time of the trigger, for example, 10:00:00.000, and send the trigger information including this time to the background service process. After receiving the trigger information, the background service process can record 10:00:00.000 as the occurrence time of the previous valid trigger and perform subsequent processing on the trigger information.

[0115] When a page process sends a trigger operation message again due to the same trigger operation, the trigger operation message can carry the occurrence time recorded in the page process for this trigger operation, such as 10:00:00.100. After receiving the trigger operation message, the background service process can retrieve 10:00:00.100 and compare it with the occurrence time of the previous valid trigger operation, which was 10:00:00.000. Assuming the second preset time threshold is set to 300 milliseconds, the time interval between the two occurrence times is 100 milliseconds. If it is less than or equal to 300 milliseconds, the background service process can ignore the currently received trigger operation message and not process it as a new valid trigger operation.

[0116] When a user subsequently performs a new triggering action on other target elements on the page, the page process can record the new occurrence time, such as 10:00:01.000, and send the triggering action information, including the occurrence time and the semantic information corresponding to the triggering action, to the background service process. The background service process compares 10:00:01.000 with the occurrence time of the previous valid triggering action, 10:00:00.000. The time interval between the two occurrence times is 1000 milliseconds, which is greater than 300 milliseconds. Therefore, it can be determined that the currently received triggering action information has not been ignored, and 10:00:01.000 is updated to the occurrence time of the previous valid triggering action. Furthermore, the background service process can generate operation step information corresponding to the triggering action based on the semantic information of the triggering action included in the triggering action information.

[0117] It is understood that the specific value of the second preset time threshold can be set according to the message transmission between the page process and the background service process and the actual application requirements, or it can be set to other time lengths. This application embodiment does not specifically limit this.

[0118] For trigger operation information that is not ignored, the background service process can generate corresponding operation step information based on the semantic information included in the trigger operation information.

[0119] In one possible implementation, when the semantic information includes text content corresponding to the triggering operation, the text content can be used as descriptive information of the operation object, and the operation steps information can be constructed by combining the page path in the operation context.

[0120] For example, when a user clicks the login button on the page corresponding to the page path / user / login, the system can obtain login as semantic content and / user / login as the page path, and then generate the step information Click login on / user / login; when a user clicks the "Submit Order" button on the page corresponding to the page path / checkout, the system can generate the step information Click "Submit Order" on / checkout based on the semantic content "Submit Order" and the page path / checkout.

[0121] In another possible implementation, when the semantic information does not include text content describing the operation object corresponding to the triggering operation, operation step information can be constructed based on the tag name corresponding to the target element and the page path in the operation context.

[0122] For example, when a user clicks an icon element on the page, and the icon element does not contain text content describing the operation object, the tag name corresponding to the icon element, such as SVG, can be obtained, and the operation step information (Click) can be generated by combining it with the page path / editor. <svg>on / editor.

[0123] In this embodiment, the tag name can be used to represent the element tag corresponding to the target element in the page document structure. For example, the tag name may include button, a, input, svg, etc. When it is impossible to obtain the text content describing the operation object from the target element or its associated ancestor node, the tag name corresponding to the target element can be used as the information describing the operation object.

[0124] S203. Associate the network request generated based on the triggering operation with the operation step information.

[0125] In this embodiment, session information can be maintained according to the page identifier corresponding to the page process. The page identifier may include identification information used to distinguish different page processes, such as the tab identifier (tabId) corresponding to a browser tab. The background service process can determine the page process to which the trigger operation information and network request belong based on the page identifier, and maintain corresponding session information for different page processes. The session information may include a sequence of operation steps related to the corresponding page process and information such as network requests corresponding to the operation steps, used to record the trigger operations performed by the user in the corresponding page process and the network requests generated by the trigger operations.

[0126] For example, when a user opens the page under test in the first tab of the browser, the background service process can obtain the page identifier corresponding to the first tab, such as tabId=101, and maintain the session information corresponding to the first tab based on the page identifier; when the user opens another page in the second tab, the background service process can obtain the page identifier corresponding to the second tab, such as tabId=102, and maintain another session information corresponding to the second tab.

[0127] When a user performs login and query operations sequentially on the page corresponding to tabId=101, the background service process can maintain the operation step information corresponding to login and query in the session information corresponding to tabId=101; when a user performs other triggered operations on the page corresponding to tabId=102, the operation step information corresponding to the triggered operations can be maintained in the session information corresponding to tabId=102, thereby recording the operation step information in different page processes separately.

[0128] When operation step information is obtained, it can be added to the corresponding operation step information sequence. The current operation step is determined based on the position of the operation step information in the operation step information sequence. The network request generated based on the trigger operation is associated with the current operation step, thereby organizing the network request according to the operation step.

[0129] In one possible implementation, S203 can be achieved through steps 231 to 232.

[0130] Step 231: Add the operation step information to the end of the operation step information sequence.

[0131] In this embodiment, an operation step information sequence can be maintained to record multiple operation step information in the order in which they are generated. When new operation step information is generated, it can be added to the end of the operation step information sequence, so that each operation step information in the sequence is arranged according to the order in which the corresponding triggering operation occurs.

[0132] For example, when a user sequentially performs actions such as login, query, and submit, operation step information corresponding to login, query, and submission can be generated respectively. This operation step information can be added sequentially to the end of the operation step information sequence according to the order in which the actions occur, thus forming an operation step information sequence arranged in the order of their occurrence.

[0133] Step 232: Associate the network request generated based on the triggering operation with the operation step information located at the end of the operation step information sequence.

[0134] In this embodiment of the application, since the new operation step information is at the end of the operation step information sequence, the operation step information located at the end of the operation step information sequence can be determined as the current operation step, and the network request generated based on the trigger operation can be associated with the current operation step.

[0135] For example, after a user performs a login operation, the corresponding operation step information can be added to the end of the operation step information sequence. At this time, the login-related operation step information can be used as the current operation step. After the background service process captures the network request generated based on the login operation, it can add the network request to the network request set corresponding to the current operation step.

[0136] When a user continues to perform a query, the corresponding operation steps can be added to the end of the operation step information sequence. These operation steps then become the new current operation step. Subsequent network requests generated based on the query can be associated with the corresponding operation step information.

[0137] This application also provides an overall architecture diagram of a network request processing method, see [link to diagram]. Figure 3 .

[0138] like Figure 3 As shown, network request processing can be achieved through interaction between the page process and the background service process. The page process can capture user-triggered actions on the page, filter these actions, and acquire semantic information. The background service process can further filter the triggered action information sent by the page process, generate corresponding operation step information, and maintain the sequence of operation step information and the correlation between network requests and operation step information.

[0139] During the page process, a trigger operation detector can be used to detect trigger operations performed by the user on the page. Upon detection of a trigger operation, non-tested area detection and a first preset time detection can be performed sequentially to filter trigger operations located in non-tested areas and trigger operations that repeatedly occur within a preset time interval. For trigger operations that pass the above detection, the semantic information corresponding to the trigger operation can be obtained.

[0140] After the page process obtains semantic information, it can send trigger operation information, including information related to the trigger operation, to the background service process. Upon receiving the trigger operation information, the background service process can perform a second preset time check to further filter the trigger operation information sent by the page process. For trigger operation information that passes the second preset time check, operation step information can be generated based on the semantic information corresponding to the trigger operation.

[0141] After generating operation step information, the background service process can maintain a sequence of operation step information and add the operation step information to the end of the sequence. The operation step information at the end of the sequence can be used as the current operation step. The background service process can associate network requests generated based on the triggered operation with the current operation step, thereby organizing and recording network requests according to the operation steps.

[0142] Furthermore, operation step display information can be generated based on the sequence of operation step information and the network requests associated with each operation step, and the network requests associated with each operation step can be statistically analyzed to display the number of network requests corresponding to each operation step.

[0143] For example, each operation step can be displayed in the order in which the operation step information occurs in the operation step information sequence, and the number of network requests associated with each operation step can be displayed in the display area corresponding to each operation step, so that users can view the corresponding network requests and the number of network requests according to the operation steps.

[0144] This application also provides a network request processing apparatus, see [link to relevant documentation]. Figure 4 The figure is a schematic diagram of the structure of a network request processing device provided in an embodiment of this application. Its specific implementation method is consistent with the implementation method and the technical effect achieved in the above-described method embodiment, and some contents will not be repeated.

[0145] A network request processing apparatus 4100 includes: The acquisition unit 4101, the generation unit 4102, and the association unit 4103; The acquisition unit 4101 is used to acquire semantic information corresponding to the trigger operation in response to a user's trigger operation on a target element in the page; the semantic information is used to characterize the operation object and / or operation context corresponding to the trigger operation. The generation unit 4102 is used to generate operation step information corresponding to the trigger operation based on the semantic information corresponding to the trigger operation; The association unit 4103 is used to associate the network request generated based on the triggering operation with the operation step information.

[0146] In one possible implementation, the unit is obtained, specifically for: In response to a user's action on a target element on the page, obtain the action context and the type of the target element. Based on the type of the target element, obtain the semantic content corresponding to the triggering operation; the semantic content is used to indicate the operation object corresponding to the triggering operation. Based on the semantic content and operation context, the semantic information corresponding to the triggering operation is obtained.

[0147] In one possible implementation, the unit is obtained, specifically for: When the target element is of type 1, the semantic content corresponding to the triggering operation is extracted from the target element.

[0148] In one possible implementation, the unit is obtained, specifically for: When the target element is of type 2, the ancestor node is searched level by level along the direction of the target element's parent node; Extract the text content describing the triggering operation from the found ancestor nodes, and use the text content as the semantic content corresponding to the triggering operation.

[0149] In one possible implementation, the unit is obtained, specifically for: Register a trigger operation detector on the document object of the page; Set the trigger operation detector to be executed during the event capture phase; In one possible implementation, the unit is obtained, specifically for: In response to a user's triggering action on a target element on the page, the triggering action detector captures the triggering event corresponding to the triggering action during the event capturing phase; Based on the triggering event, obtain the semantic information corresponding to the triggering operation.

[0150] In one possible implementation, the unit is obtained, specifically for: Obtain the occurrence time of the triggering operation in the page process; When the time interval between the occurrence time and the occurrence time of the previous trigger operation is less than or equal to a first preset time threshold, or when the trigger operation is located in a non-tested area, the trigger operation is ignored.

[0151] In one possible implementation, the generating unit is specifically used for: The background service process receives trigger operation information sent by the page process; the trigger operation information includes the time when the trigger operation occurred; When the time interval between the occurrence time and the occurrence time of the previous trigger operation is less than or equal to the second preset time threshold, the trigger operation information is ignored; When the time interval between the occurrence time and the occurrence time of the previous trigger operation is greater than the second preset time threshold, operation step information corresponding to the trigger operation is generated based on the semantic information corresponding to the trigger operation.

[0152] In one possible implementation, the associated unit is specifically used for: Add the operation step information to the end of the operation step information sequence; The network request generated based on the triggering operation is associated with the operation step information located at the end of the operation step information sequence.

[0153] In summary, the network request processing apparatus provided in this application embodiment obtains semantic information corresponding to the trigger operation performed by the user on the target element in the page, generates operation step information corresponding to the trigger operation based on the semantic information, and associates the network request generated based on the trigger operation with the operation step information, thereby realizing the process of organizing the operation steps of the network request according to the trigger operation performed by the user.

[0154] Meanwhile, the network request processing device provided in this application embodiment can obtain the semantic information corresponding to the trigger operation through the page process and process the trigger operation information through the background service process; by judging the trigger operation based on a preset time threshold in the page process and the background service process respectively, repeated trigger operations can be ignored, reducing the impact of repeated trigger operations on the generation of operation step information and the network request association process.

[0155] Furthermore, the network request processing device provided in this application embodiment can maintain corresponding session information according to the page identifier corresponding to the page process, and maintain the operation step information sequence according to the occurrence order of the trigger operation. The operation step information at the end of the operation step information sequence is taken as the current operation step, and the network request generated based on the trigger operation is associated with the current operation step, thereby forming a network request record organized according to the operation steps, which improves the accuracy of the network request record.

[0156] This application provides a computer device, such as... Figure 5 As shown in the figure, this figure is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 5100 includes: a processor 5101 and a memory 5102. The memory 5102 is used to store program code and transmit the program code to the processor; The processor 5101 is used to execute the steps of the method described above according to the instructions in the program code.

[0157] This application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.

[0158] This application provides a computer program product that, when run on a computer, executes the steps of the method described above.

[0159] This application provides a chip including a processor coupled to a memory for executing computer programs or instructions stored in the memory, such that the chip implements the steps of the method described above.

[0160] The above description is merely one specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.< / svg>

Claims

1. A method for processing network requests, characterized in that, include: In response to a user's triggering action on a target element on the page, obtain the semantic information corresponding to the triggering action; The semantic information is used to characterize the operation object and / or operation context corresponding to the triggering operation; Based on the semantic information corresponding to the triggering operation, the operation step information corresponding to the triggering operation is generated; Associate the network request generated based on the triggering operation with the operation step information.

2. The method according to claim 1, characterized in that, Associating the network request generated based on the triggering operation with the operation step information includes: Add the operation step information to the end of the operation step information sequence; The network request generated based on the triggering operation is associated with the operation step information located at the end of the operation step information sequence.

3. The method according to claim 1, characterized in that, The step of responding to a user's trigger operation on a target element on the page and obtaining semantic information corresponding to the trigger operation includes: In response to a user's action on a target element on the page, obtain the action context and the type of the target element. Based on the type of the target element, obtain the semantic content corresponding to the triggering operation; Based on the semantic content and operation context, the semantic information corresponding to the triggering operation is obtained.

4. The method according to claim 3, characterized in that, The step of obtaining the semantic content corresponding to the triggering operation based on the type of the target element includes: When the target element is of type 1, the semantic content corresponding to the triggering operation is extracted from the target element.

5. The method according to claim 3, characterized in that, The step of obtaining the semantic content corresponding to the triggering operation based on the type of the target element includes: When the target element is of type 2, the ancestor node is searched level by level along the direction of the target element's parent node; Extract the text content describing the triggering operation from the found ancestor nodes, and use the text content as the semantic content corresponding to the triggering operation.

6. The method according to claim 1, characterized in that, Before obtaining the semantic information corresponding to the triggering operation in response to a user's triggering operation on a target element on the page, the method further includes: Register a trigger operation detector on the document object of the page; Set the trigger operation detector to be executed during the event capture phase; The step of responding to a user's trigger operation on a target element on the page and obtaining semantic information corresponding to the trigger operation includes: In response to a user's triggering action on a target element on the page, the triggering action detector captures the triggering event corresponding to the triggering action during the event capturing phase; Based on the triggering event, obtain the semantic information corresponding to the triggering operation.

7. The method according to claim 6, characterized in that, Before obtaining the semantic information corresponding to the triggering operation, the method further includes: Obtain the occurrence time of the triggering operation in the page process; When the time interval between the occurrence time and the occurrence time of the previous trigger operation is less than or equal to a first preset time threshold, or when the trigger operation is located in a non-tested area, the trigger operation is ignored.

8. The method according to claim 1, characterized in that, The step of generating operation step information corresponding to the triggering operation based on the semantic information corresponding to the triggering operation includes: The background service process receives trigger operation information sent by the page process; the trigger operation information includes the time when the trigger operation occurred; When the time interval between the occurrence time and the occurrence time of the previous trigger operation is less than or equal to the second preset time threshold, the trigger operation information is ignored; When the time interval between the occurrence time and the occurrence time of the previous trigger operation is greater than the second preset time threshold, operation step information corresponding to the trigger operation is generated based on the semantic information corresponding to the trigger operation.

9. A network request processing apparatus, characterized in that, include: The acquisition unit is used to acquire semantic information corresponding to the triggering operation in response to a user's triggering operation on a target element on the page. The semantic information is used to characterize the operation object and / or operation context corresponding to the triggering operation; The generation unit is used to generate operation step information corresponding to the triggering operation based on the semantic information corresponding to the triggering operation; The association unit is used to associate the network request generated based on the triggering operation with the operation step information.

10. A computer device, characterized in that, The computer device includes: a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the steps of the method as described in any one of claims 1 to 8 according to instructions in the program code.