CN110968822A - Page detection method and device, electronic equipment and storage medium - Google Patents
Page detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110968822A CN110968822A CN201811161499.9A CN201811161499A CN110968822A CN 110968822 A CN110968822 A CN 110968822A CN 201811161499 A CN201811161499 A CN 201811161499A CN 110968822 A CN110968822 A CN 110968822A
- Authority
- CN
- China
- Prior art keywords
- page
- determining
- state
- monitoring code
- elements
- 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.)
- Granted
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides a page detection method and device, electronic equipment and a storage medium, so as to accurately detect a page. The method comprises the following steps: loading a first page, wherein the first page corresponds to a monitoring code; determining a mark position of the first page according to the monitoring code, and prompting an element corresponding to the mark position; and detecting according to the monitoring code and the prompting element. The efficiency and the accuracy of page detection are improved through prompting, the cost of page modification is reduced, and the data loss during online is reduced.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page detection method and apparatus, an electronic device, and a storage medium.
Background
The development platform can provide an interface to the third-party service provider, so that the third-party service provider can use the resources of the development platform based on the interface to provide corresponding services.
For the page of the third-party service provider, the platform can provide the detection specification of the page, so that when the third-party service provider develops the page, the page can be set according to the detection specification, and then the developed page is published on the platform. After the page is published, whether the setting of the page meets the detection specification of the platform can be checked based on the collected data, if the setting of the page does not meet the detection specification of the platform, the published page needs to be modified, the modification cost is high, and meanwhile, the data loss during the online period can be caused.
Disclosure of Invention
The embodiment of the application provides a page detection method, which is used for accurately detecting a page.
Correspondingly, the embodiment of the application also provides a page detection device, electronic equipment and a storage medium, which are used for ensuring the realization and application of the system.
In order to solve the above problem, an embodiment of the present application discloses a page detection method, where the method includes: loading a first page, wherein the first page corresponds to a monitoring code; determining a mark position of the first page according to the monitoring code, and prompting an element corresponding to the mark position; and detecting according to the monitoring code and the prompting element.
Optionally, the determining, according to the monitoring code, a flag bit of the first page, and prompting an element corresponding to the flag bit include: identifying a mark bit in the first page according to the monitoring code, and determining an element corresponding to the mark bit; and displaying the elements in a set mode in the first page.
Optionally, the displaying the elements in the first page according to a set manner includes at least one of the following steps: highlighting the element in the first page; and displaying the label data corresponding to the elements in the first page.
Optionally, the detecting according to the monitoring code and the element of the prompt includes: the monitoring code captures operation corresponding to elements prompted in the first page; and determining the behavior corresponding to the operation and collecting data.
Optionally, the determining a behavior corresponding to the operation includes: and determining a second page corresponding to the operation according to the strategy information, and jumping from the first page to the second page.
Optionally, the policy information is implemented according to a state machine, where the state machine abstracts a page into a state, and the first page corresponds to a first state and the second page corresponds to a second state; determining a second page corresponding to the operation according to the policy information, and jumping from the first page to the second page, including: and determining a second state corresponding to the operation according to the state machine, and jumping from the first state to the second state.
Optionally, the policy information is determined according to a service scenario, and the method further includes: and determining a page jump result, and determining an execution result of the service scene according to the page jump result.
Optionally, the marking of the marking bit includes: event attribute flags, behavior attribute flags, and data attribute flags.
Optionally, the mark bit includes a point location, and the point location is determined by a buried point manner.
The embodiment of the present application further provides a page detecting device, the device includes: the loading module is used for loading a first page, wherein the first page corresponds to the monitoring code; the prompting module is used for determining a marking position of the first page according to the monitoring code and prompting an element corresponding to the marking position; and the detection module is used for detecting according to the monitoring codes and the elements of the prompt.
Optionally, the prompt module includes: the identification submodule is used for identifying the marking bit in the first page according to the monitoring code and determining the element corresponding to the marking bit; and the display submodule is used for displaying the elements in the first page according to a set mode.
Optionally, the identification submodule is configured to highlight the element in the first page; and/or displaying the label data corresponding to the element in the first page.
Optionally, the detection module includes: the operation capturing submodule is used for capturing the operation corresponding to the element prompted in the first page by the monitoring code; and the detection processing submodule is used for determining the behavior corresponding to the operation and collecting data.
Optionally, the detection processing sub-module is configured to determine, according to policy information, a second page corresponding to the operation, and jump from the first page to the second page.
Optionally, the policy information is implemented according to a state machine, where the state machine abstracts a page into a state, and the first page corresponds to a first state and the second page corresponds to a second state; and the detection processing submodule is used for determining a second state corresponding to the operation according to the state machine and jumping from the first state to the second state.
Optionally, the policy information is determined according to a service scenario; the detection module is further configured to determine a page jump result, and determine an execution result of the service scenario according to the page jump result.
Optionally, the marking of the marking bit includes: event attribute flags, behavior attribute flags, and data attribute flags.
Optionally, the mark bit includes a point location, and the point location is determined by a buried point manner.
An embodiment of the present application further provides an electronic device, including: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a page detection method as described in one or more of the embodiments of the present application.
Embodiments of the present application also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a page detection method as described in one or more of the embodiments of the present application.
Compared with the prior art, the embodiment of the application has the following advantages:
in this application embodiment, can load first page, wherein, first page corresponds the monitoring code, then follows the monitoring code is confirmed mark position in the first page is right mark position corresponds the element and is indicateed, if visual suggestion etc. is convenient for inspect mark position, still can follow the element of monitoring code and suggestion detects, detects the processing logic of page, realizes the detection of waiting the time quantum to page mark position setting before the online, improves the efficiency and the accuracy that the page detected through the suggestion, reduces the cost of page modification, and reduces the data loss during the online period.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of a page detection method of the present application;
FIG. 2 is a functional block diagram of a monitoring code according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an example of page jump in a service scenario in an embodiment of the present application;
FIG. 4 is a flowchart illustrating the steps of another embodiment of a page detection method of the present application;
FIG. 5 is a flowchart illustrating steps of yet another embodiment of a page detection method of the present application;
FIG. 6 is a flowchart illustrating steps of an embodiment of a method for detecting a page based on a buried point according to the present application;
FIG. 7 is a schematic diagram of an example of a page in the embodiment of the present application;
FIG. 8 is a block diagram of a page detection apparatus according to an embodiment of the present application;
FIG. 9 is a block diagram of another embodiment of a page detection apparatus of the present application;
fig. 10 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The page detection method and the page detection device can be applied to the technical field of page detection and are used for testing various pages. The mark bit detection of the page can be carried out in equal time periods before the page is on line, so that the mark bit in the page can be adjusted before the page is on line, required data can be acquired after the subsequent page is on line, data loss is reduced, and the related information of the page can be managed conveniently.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a page detection method according to the present application is shown.
Before the page is online, the page needing to be online can be loaded for auditing, and the auditing process can be used for auditing the setting of the marking position in the page. The page may be provided with a flag bit, the monitoring code may be set in the page, or may be set in a frame for loading the page, or a section of code is injected into the page, and the detection code may be called according to the code, which is not limited in the embodiment of the present application. The monitoring code is used for monitoring according to the mark bit, and for example, the monitoring code can monitor the mark bit so as to determine information such as behavior corresponding to the mark bit. And taking the current page to be checked as a first page, and loading the first page, so that the first page can be monitored according to the monitoring code injected into the first page, and whether the mark bit of the page meets the corresponding specification or not is checked according to the monitoring code.
The flag bit refers to a position of a page where a flag is to be made, and for example, the flag bit may be set for elements such as a button and a picture of the page, and the flag bit may be implemented in various ways, for example, the flag bit is set by a way of embedding a point. The monitoring code refers to a code for detecting a page, and can perform monitoring behaviors such as behavior judgment, data collection and the like based on the mark bit, and the specific monitoring behavior can be written according to requirements. The embedded point mode can add a code in a page to record a certain operation of a user, for example, a script can be embedded in the page, so that when the page is accessed, the script can be triggered to execute a corresponding behavior and collect corresponding data, for example, a js (javascript) script is embedded. The flag bit may also be implemented in other ways, such as setting a label, a monitoring point, and the like, so that the monitoring code can recognize the flag bit and perform monitoring actions such as collecting a receipt, which is not limited in this embodiment of the present application.
For example, a page is loaded in an auditing process before online, an operator may load a page corresponding to a URL (Uniform Resource Locator) in an iframe, and simultaneously send postMessage information to the page, and load a monitoring code of the page, based on the URL (Uniform Resource Locator) of the page developed by an Independent Software developer (ISV), such as the URL of the page in the application. The iframe specifies an inline frame, and another document can be embedded in the current HTML document, so that the loading of the webpage can be realized based on the iframe.
And 104, determining a marking position of the first page according to the monitoring code, and prompting an element corresponding to the marking position.
After the first page is loaded, the monitoring code can identify the mark bit in the first page, and for the element with the mark bit, the element corresponding to the mark bit can be prompted in the page, such as visual prompt, or prompt in a mode of playing audio, and the like, so that the element with the mark bit can be prompted in the page.
The determining the mark bit of the first page according to the monitoring code and prompting the element corresponding to the mark bit includes: identifying a mark bit in the first page according to the monitoring code, and determining an element corresponding to the mark bit; and displaying the elements in a set mode in the first page. The monitoring code can identify a mark bit in the page and determine the type of an element corresponding to the mark bit, so that the element can be prompted in the page according to the type, for example, operable elements such as a button and the like are prompted. Therefore, the monitoring code can be adopted to identify the marking bit of the first page, then the element corresponding to the marking bit needing to be prompted is determined, and the element is displayed in the first page according to a set mode, so that the element with the marking bit is prompted in the page. The elements can be elements for providing interaction displayed in the page, such as buttons, selection frames and the like, and the setting mode can be set according to requirements.
In an alternative embodiment, the displaying the elements in the first page according to the set mode includes at least one of the following steps: highlighting the element in the first page; and displaying the label data corresponding to the elements in the first page. In the first page, highlighting the elements with the mark positions can be performed, for example, the whole elements are highlighted, and for example, the frame of the elements is highlighted; tag data of an element with a flag bit, such as tag data of characters and graphics prompting clicking, selecting and the like, can also be set, and the tag data is displayed near the position of the element in the first page, such as near refers to an area close to the position of the element, such as up, down, left, right and the like. In other embodiments, the setting of the display mode may also be other modes capable of prompting the element, such as enlarging the element or displaying the element with a zooming effect, and the like, which are not listed one by one and should not be construed as a limitation to the embodiments of the present application.
In an alternative embodiment, the detection code can be divided into a flag bit tracking module, a data reporting module and a flag bit detection module according to functions. The tag bit tracking module is used for identifying tag bits in a page and calling a callback function to notify a data reporting module and a tag bit detecting module when elements corresponding to the tag bits are triggered; the data reporting module can collect and report data; and the mark bit detection module is used for prompting the identified elements corresponding to the mark bits and carrying out corresponding operation processing after the elements corresponding to the mark bits are triggered. In the auditing process before the page is on-line, the monitoring code can be in a 'marking position detection mode', so that the marking position detection module can prompt the identified corresponding elements of the marking positions and process corresponding operations after the corresponding elements of the marking positions are triggered. The monitoring code can be in a data reporting mode when the monitoring code runs on a page; the data reporting module can collect and report the data after the element corresponding to the mark bit is triggered.
And 106, detecting according to the monitoring codes and the prompted elements.
In the first page, detection operations such as page review and the like can be performed according to the monitoring codes and the elements, for example, the prompted elements are operated to trigger the elements, and then, corresponding detection processing can be performed based on the detection codes, for example, data collection and reporting are performed, and for example, whether a process of a service corresponding to the page can be normally executed or not is determined.
In an optional embodiment, the detecting according to the elements of the monitoring code and the prompt includes: the monitoring code captures operations corresponding to elements prompted in the first page; and determining the behavior corresponding to the operation and collecting data. The monitoring code can capture the operation of the elements of the prompt in the first page, determine the behavior corresponding to the operation and execute the behavior, and can collect and report the data of the operation and the behavior corresponding to the operation.
In one example, a tag bit tracking module of a monitoring code captures an operation on the element, and then may notify a data reporting module and a tag bit detection module through a callback function, where the data reporting module may collect and report data of the operation and a behavior corresponding to the operation, and the tag bit detection module may determine the behavior corresponding to the operation and execute the behavior, and may execute a jump operation if it is necessary to jump to another page, and may feed back a corresponding selected result to a page if an element in the page is selected, and so on.
According to the embodiment of the application, the marking position in the page can be checked in the process of auditing before the page is on-line, so that whether the marking position meets the specification or not is determined. The service provided by the service provider is generally divided according to services or scenes, one scene can correspond to a plurality of pages, for example, after a commodity is selected from a shopping page in the shopping scene for sufficient purchase, the page can be skipped to an order page, the order can be determined in the order page and then the page can be skipped to a payment page, and after the payment page is successfully paid, the page can be skipped to a payment result page, so that the page can be skipped to a plurality of pages. Therefore, for a plurality of pages corresponding to one scene, the currently loaded page can be called a first page, and the page needing to be jumped is determined to be called a second page based on the operation on the element, so that one scene can detect the flow of the scene based on the jump among the pages, and the page detection comprises detection items for determining whether the scene flow is accurately executed and the like.
Wherein the determining the behavior corresponding to the operation includes: and determining a second page corresponding to the operation according to the strategy information, and jumping from the first page to the second page. The policy information is a policy corresponding to the scene execution flow, such as items such as elements to be selected in the page, and an execution sequence between pages, so that a jump sequence of the page can be determined. The policy information of each scene can be determined, then for the operation of the element in the first page, the action corresponding to the operation can be judged based on the policy information, if the action is the element in the selected page, the selected operation can be executed and data can be collected, if the action is jumping to the second page, the second page can be determined, and then the operation is jumping from the first page to the second page.
The policy information can be implemented in various ways, such as calling the policy information for monitoring through a monitoring code, putting the corresponding code into the monitoring code based on the policy information, and implementing the policy information through a state machine in the monitoring code, for example, programming a state machine for the policy information of page jump. Among them, a state machine is also called a Finite-state machine (FSM), and is a mathematical model representing behaviors such as Finite states and transitions and actions between the states. The page jump strategy is realized in the monitoring code based on the mathematical model, so that the page can be abstracted into a state, the first page corresponds to a first state, the second page corresponds to a second state, and the operation for triggering the page jump is called as an action, for example, the operation of clicking a button and other elements is called as an action, and for example, the operation of triggering a gesture for page jump can also be called as an action.
Fig. 2 is a schematic diagram of a functional module of a monitoring code. The flag bit tracking module can notify the data reporting module and the flag bit detection module through a callback function after the flag bit is identified, and the flag bit detection module can include policy information of a plurality of scenes, such as a policy of scene 1, a policy of scene 2 and the like, so that the policy of the corresponding scene is realized based on the state machine.
The step of jumping from the first page to the second page by operating the corresponding second page includes: and determining a second state corresponding to the operation according to the state machine, and jumping from the first state to the second state. The method comprises the steps that a mark bit tracking module of a monitoring code captures an operation on an element, the mark bit detection module can be informed through a callback function, then the mark bit detection module can judge whether the operation is an action for triggering jump or not based on a state machine, if the operation is the action for triggering jump, the jump to a second state can be determined, and therefore the first state jumps to the second state, and if the operation is not the action for triggering jump, the action can be ignored.
In the example shown in fig. 3, the page of the corresponding flow of the sample sending machine scene includes: advertisement page, commodity list page, commodity detail page and payment result page, corresponding abstract become advertisement page state, commodity list page state, commodity detail page state and payment result page state etc. the element includes: the advertisement page purchasing button, the commodity selecting button, the payment button and the coupon getting button trigger the buttons to trigger the state jump.
The method comprises the steps of firstly loading a first page advertisement page, identifying that a purchase button is provided with a mark position in the advertisement page, highlighting a frame of the purchase button in the advertisement page to remind that the purchase button is provided with the mark position, clicking the purchase button, notifying a mark position detection module through a callback function after a mark position tracking module captures a clicking operation, judging a model dispatching machine scene corresponding flow based on a state machine, determining a clicking action of the purchase button in an advertisement page state, jumping to a commodity list page state, and correspondingly jumping from the advertisement page to the commodity list page. After the commodity list page is loaded, the mark position tracking module can identify the element corresponding to the commodity list, after the selected commodity is clicked, the mark position tracking module captures the click operation, then the mark position detection module is informed through a callback function, then the mark position detection module can judge the next process based on the state machine, the next process is jumped to the commodity detail page state, and correspondingly, the commodity detail page can be jumped to. And the payment button can be prompted on the commodity detail page by analogy, after the click operation on the payment button is captured, the state of the next process, namely the state of jumping to the payment result page, can be judged based on the state machine, so that the payment result page can be jumped to, and then the page is prompted to indicate the successful elements and the button for prompting to get the coupon is prompted. Corresponding data can also be collected in the process.
Corresponding strategy information can be determined according to a service scene, so that the strategy information can be realized in various modes such as a state machine, code compiling and the like, then in the monitoring process after page loading, corresponding actions such as jumping to the next page and the like can be determined based on the strategy information, if any page jumping is not successful, the execution of the service scene can be correspondingly determined to be abnormal, and if the last page is successfully jumped, the execution of the service scene can be determined to be normal. Therefore, the page jump result can be determined based on the page detection process, and the execution result of the service scene, such as abnormal service scene execution, normal service scene execution and the like, can be determined according to the page jump result.
The marking bit in the embodiment of the application can be provided with a plurality of marks, so that the identification of the marking bit, the collection of data and the like are facilitated. The marking of the marking bit comprises: event attribute flags, behavior attribute flags, and data attribute flags. Wherein, the event attribute mark (data-rop-event) can define the event type needing to be tracked; behavior attribute tags (data-rop-actions) may define triggered business behaviors; a data-attribute tag (data-rop-extra) may define the traffic data that needs to be reflowed. Therefore, the mark bit is identified from the page based on the marked monitoring code, and the triggering tracking, behavior execution, data collection and reporting and the like of the mark bit are carried out,
In an optional embodiment of the present application, the mark bits such as the point bits in the point burying manner may be triggered based on an event in a Document Object Model (DOM) tree of the page. The event attribute mark can define the DOM event type needing to be tracked, so that the mark bit is identified and tracked, and the execution flow of the corresponding scene of the page is monitored.
When the page marking position is checked before online, the checking result can be generated based on the prompt of the elements in the page. If elements such as buttons and the like in the page are prompted in a highlight display mode, a label mode and the like, the verification is determined to be passed; if the execution result of the service scene is normal and the elements are all prompted, the verification can be determined to be passed; and if the execution result of the service scene is not abnormal, or elements are not prompted after the execution of the service scene is finished, determining that the auditing is not passed. Therefore, the auditing result of the page can be determined based on the service scene execution result corresponding to the detection code, the prompting state of the page element and the like, and the page which is not subjected to point burying according to the specification is subjected to point burying again until the page meets the specification and then the page is allowed to be online.
The method comprises the steps of loading a first page before online, wherein the first page corresponds to a monitoring code, monitoring the monitoring code according to a mark position in the page, prompting an element corresponding to the mark position in the first page according to the monitoring code, and visually prompting the element with the mark position, so that the mark position is conveniently detected.
On the basis of the foregoing embodiments, the present embodiment further provides a page detection method, which can perform visualization processing on an element having a flag bit and perform detection of the flag bit.
Referring to FIG. 4, a flowchart illustrating steps of another embodiment of a page detection method of the present application is shown.
Step 402, loading a first page before online, wherein the first page corresponds to a monitoring code.
Step 404, identifying a mark bit in the first page according to the monitoring code, and determining an element corresponding to the mark bit; and displaying the elements in a set mode in the first page. Wherein the displaying the elements in the first page according to a set mode comprises at least one of the following steps: highlighting the element in the first page; and displaying the label data corresponding to the elements in the first page.
In step 408, a page review result is determined, including whether the review passes or fails. The determination can be made according to the prompted element with the mark bit, whether the flow execution of the operation corresponding page is normal, and the like. If some elements are not displayed according to the set mode, the element can be confirmed not to be provided with the mark position, the mark position setting is not in accordance with the specification, and if the flow of the page operation is not normally executed, if the page is not skipped successfully, the elements in the page cannot be clicked, no response is generated after clicking, and the like, the page can be confirmed to have problems and not pass the audit.
On the basis of the foregoing embodiments, the present embodiment further provides a page detection method, which can perform visualization processing on an element with a flag bit, and perform detection of the flag bit in combination with a service scene customization detection rule.
Referring to fig. 5, a flowchart illustrating steps of yet another embodiment of a page detection method of the present application is shown.
Step 508, determining a second page corresponding to the operation according to the policy information, and jumping from the first page to the second page.
The policy information is implemented according to a state machine, the state machine abstracts a page into states, and the first page corresponds to a first state and the second page corresponds to a second state; determining a second page corresponding to the operation according to the policy information, and jumping from the first page to the second page, including: and determining a second state corresponding to the operation according to the state machine, and jumping from the first state to the second state.
And step 512, determining a page review result, including that the review is passed or not passed. The determination can be made according to the conditions of whether the flow execution of the service scene corresponding to the prompted element with the mark bit and the page is normal or not. If some elements are not displayed according to the set mode, the elements can be confirmed not to be provided with the mark bits, the mark bit setting is not in accordance with the standard, if the process of the corresponding service scene of the page is not normally executed, if the page is not successfully jumped, the problem of the page can also be confirmed, and the page does not pass the audit.
On the basis of the above embodiment, a point location in a buried point mode is taken as an example of a marker bit, point location visualization is provided, and policy information is customized in combination with a service scene, so that a data buried point can be checked and verified.
Referring to fig. 6, a flowchart illustrating steps of an embodiment of a page detection method based on a buried point according to the present application is shown.
Step 606, the mark bit detection module highlights the element corresponding to the point location in the first page. And displaying the label data of the elements corresponding to the point positions in the first page for prompting.
Step 608, the flag bit tracking module of the monitoring code captures an operation corresponding to an element prompted in the first page, and calls the callback function to notify the data reporting module and the flag bit detection module.
Step 612, the flag bit detection module invokes a state machine, determines a corresponding second state according to a first state corresponding to the first page and the operation, jumps from the first state to the second state, and loads a second page corresponding to the second state.
The policy information is implemented according to a state machine, the state machine abstracts a page into states, the first page corresponds to a first state, and the second page corresponds to a second state.
And 614, determining a page skipping result, and determining an execution result of the service scene according to the page skipping result.
At step 616, the page review result is determined, including whether the review passes or fails. The determination can be made according to the conditions of whether the flow execution of the service scene corresponding to the prompted element with the mark bit and the page is normal or not. If some elements are not displayed according to the set mode, the elements can be confirmed not to be provided with the mark bits, the mark bit setting is not in accordance with the standard, if the process of the corresponding service scene of the page is not normally executed, if the page is not successfully jumped, the problem of the page can also be confirmed, and the page does not pass the audit.
A schematic diagram of a page as shown in fig. 7, the buttons highlighted in the page include: a join member button, a take benefits button, and a coupon pickup button. Wherein, if the coupon of the 2000 Yuan shop is highlighted and cannot be picked up, the pickup button is invalid and can not be highlighted.
In which, when the process is executed normally, the buried point list shown in table 1 can be obtained.
Movement of | Name (R) |
BUY_CLICK_START | Receiving coupons |
ITEM_CLICK | Body fluid pumping plaster |
BUY_CLICK | Code scanning payment |
TABLE 1
The method comprises the steps that a coupon getting button is triggered in a page, a mark position tracking module can notify a data reporting module and a mark position detection module after capturing a click event, the data reporting module collects and reports data, then the mark position detection module calls a state machine to perform policy processing, it is determined that state transfer is not needed, the operation can be ignored, and 1500 Yuan shop coupons are correspondingly displayed in the page and are already got. Then "on the page may indicate that a button in the page may trigger the allowance button, and if it is not detected that the allowance button is triggered, it may generate a detection result as failing because it is not detected that the ITEM _ clip is triggered, and so on. If the allowance drawing button is clicked based on the prompt, the mark position tracking module captures the clicking operation of the allowance drawing button, can inform the data reporting module and the mark bit detection module, the data reporting module collects and reports the data, then the marking position detection module calls a state machine to carry out strategy processing, then a commodity detail page corresponding to a second state which can jump to response is determined, then, the button for code scanning payment can be highlighted on the page, the code scanning payment button is clicked, the mark position tracking module captures the clicking operation of the subsidy drawing button, can inform the data reporting module and the mark bit detection module, the data reporting module collects and reports the data, and then the mark position detection module calls a state machine to perform strategy processing, and can jump to a payment page of the payment code until the flow of the scene is executed, and an audit passing or non-audit passing result is obtained.
Therefore, in the auditing process, the mark position detection module automatically carries out frame highlight reminding on the button of the embedded point in the page, the highlighted element in the page is operated and checked, if no element is highlighted when the process is finished, the ISV is considered not to carry out embedded point operation, the ISV is rejected, and if the ISV passes the operation.
Therefore, the embodiment of the application enables page detection users such as operation and the like to acquire the marked mark position of the current page through the visualization of the mark position, and can also execute a scene strategy through a state machine to verify the skip logic of the page, so that the problem of the mark position of the page can be found before the page is online, and the quality of the page embedded point is ensured
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
On the basis of the above embodiments, the present embodiment further provides a page detection apparatus, which is applied to a server (cluster).
Referring to fig. 8, a block diagram of a structure of an embodiment of a page detection apparatus according to the present application is shown, which may specifically include the following modules:
a loading module 802, configured to load a first page, where the first page corresponds to a monitoring code.
And the prompting module 804 is configured to determine a flag bit of the first page according to the monitoring code, and prompt an element corresponding to the flag bit.
A detection module 806, configured to perform detection according to the monitoring code and the prompted element.
To sum up, can load first page, wherein, first page corresponds the monitoring code, then follows the monitoring code confirms mark position in the first page, right mark position corresponds the element and reminds, like visual suggestion etc. is convenient for inspect mark position, still can follow the element of monitoring code and suggestion detects, detects the processing logic of page, realizes the detection of waiting the time period to page mark position setting before the online, reduces the cost of page modification, and reduces the data loss during online.
Referring to fig. 9, a block diagram of another embodiment of the page detection apparatus of the present application is shown, which may specifically include the following modules:
the loading module 802 is configured to load a first page before the first page is online, where the first page corresponds to a monitoring code.
And the prompting module 804 is configured to determine a flag bit of the first page according to the monitoring code, and prompt an element corresponding to the flag bit.
A detection module 806, configured to perform detection according to the monitoring code and the prompted element.
Wherein, the prompt module 804 includes: identification sub-module 8042 and display sub-module 8044:
the identifying submodule 8042 is configured to identify a mark bit in the first page according to the monitoring code, and determine an element corresponding to the mark bit.
The display sub-module 8044 is configured to display the elements in the first page according to a set manner.
The identifying submodule 8042 is configured to highlight the element in the first page; and/or displaying the label data corresponding to the element in the first page.
The detection module 806 includes: an operation capture submodule 8062 and a detection processing submodule 8064, wherein:
the operation capturing submodule 8062 is configured to capture, by the monitoring code, an operation corresponding to an element prompted in the first page;
the detection processing submodule 8064 is configured to determine a behavior corresponding to the operation and collect data.
The detection processing sub-module 8064 is configured to determine, according to policy information, a second page corresponding to the operation, and jump from the first page to the second page.
The policy information is implemented according to a state machine, the state machine abstracts a page into states, and the first page corresponds to a first state and the second page corresponds to a second state; the detection processing submodule 8064 is configured to determine, according to the state machine, a second state corresponding to the operation, and jump from the first state to the second state.
The strategy information is determined according to a service scene; the detecting module 806 is further configured to determine a page jump result, and determine an execution result of the service scenario according to the page jump result.
The marking of the marking bit comprises: event attribute flags, behavior attribute flags, and data attribute flags. The mark bit comprises a point location, and the point location is determined in a buried point mode. And taking a point location in a point burying mode as a marking bit as an example, providing point location visualization, and customizing strategy information in combination with a service scene, so that the data burying point can check and verify the example.
When the page marking position is checked before online, the checking result can be generated based on the prompt of the elements in the page. If elements such as buttons and the like in the page are prompted in a highlight display mode, a label mode and the like, the verification is determined to be passed; if the execution result of the service scene is normal and the elements are all prompted, the verification can be determined to be passed; and if the execution result of the service scene is not abnormal, or elements are not prompted after the execution of the service scene is finished, determining that the auditing is not passed. Therefore, the auditing result of the page can be determined based on the service scene execution result corresponding to the detection code, the prompting state of the page element and the like, and the page which is not subjected to point burying according to the specification is subjected to point burying again until the page meets the specification and then the page is allowed to be online.
The present application further provides a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device, the device may execute instructions (instructions) of method steps in this application.
Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the application, the electronic device includes a server (cluster), a mobile device, a terminal device, and the like.
Embodiments of the present disclosure may be implemented as an apparatus, which may include electronic devices such as servers (clusters), mobile devices, terminal devices, etc., using any suitable hardware, firmware, software, or any combination thereof, for a desired configuration. Fig. 10 schematically illustrates an example apparatus 1000 that may be used to implement various embodiments described herein.
For one embodiment, fig. 10 illustrates an example apparatus 1000 having one or more processors 1002, a control module (chipset) 1004 coupled to at least one of the processor(s) 1002, a memory 1006 coupled to the control module 1004, a non-volatile memory (NVM)/storage 1008 coupled to the control module 1004, one or more input/output devices 1010 coupled to the control module 1004, and a network interface 1012 coupled to the control module 1006.
The processor 1002 may include one or more single-core or multi-core processors, and the processor 1002 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1000 can be used as a server (cluster), a mobile device, a terminal device, and the like in this embodiment.
In some embodiments, the apparatus 1000 may include one or more computer-readable media (e.g., the memory 1006 or the NVM/storage 1008) having instructions 1014 and one or more processors 1002 that, in conjunction with the one or more computer-readable media, are configured to execute the instructions 1014 to implement modules to perform the actions described in this disclosure.
For one embodiment, control module 1004 may include any suitable interface controllers to provide any suitable interface to at least one of the processor(s) 1002 and/or any suitable device or component in communication with control module 1004.
The control module 1004 may include a memory controller module to provide an interface to the memory 1006. The memory controller module may be a hardware module, a software module, and/or a firmware module.
Memory 1006 may be used, for example, to load and store data and/or instructions 1014 for device 1000. For one embodiment, memory 1006 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1006 may comprise a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, the control module 1004 may include one or more input/output controllers to provide an interface to the NVM/storage 1008 and input/output device(s) 1010.
For example, NVM/storage 1008 may be used to store data and/or instructions 1014. NVM/storage 1008 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drive(s) (HDD (s)), one or more Compact Disc (CD) drive(s), and/or one or more Digital Versatile Disc (DVD) drive (s)).
The NVM/storage 1008 may include storage resources that are physically part of the device on which the apparatus 1000 is installed, or it may be accessible by the device and need not be part of the device. For example, NVM/storage 1008 may be accessed over a network via input/output device(s) 1010.
Input/output device(s) 1010 may provide an interface for apparatus 1000 to communicate with any other suitable device, input/output devices 1010 may include communication components, audio components, sensor components, and so forth. Network interface 1012 may provide an interface for device 1000 to communicate over one or more networks, and device 1000 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as to access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 1002 may be packaged together with logic for one or more controller(s) (e.g., memory controller module) of control module 1004. For one embodiment, at least one of the processor(s) 1002 may be packaged together with logic for one or more controller(s) of control module 1004 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 1002 may be integrated on the same die with the logic of one or more controllers of the control module 1004. For one embodiment, at least one of the processor(s) 1002 may be integrated on the same die with logic for one or more controller(s) of control module 1004 to form a system on chip (SoC).
In various embodiments, the apparatus 1000 may be, but is not limited to: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.), among other terminal devices. In various embodiments, the apparatus 1000 may have more or fewer components and/or different architectures. For example, in some embodiments, device 1000 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
An embodiment of the present application provides a server, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the server to perform a data processing method as described in one or more of the embodiments of the application.
An embodiment of the present application provides a mobile device, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the server to perform a display processing method as described in one or more of the embodiments of the present application. The mobile device further comprises: an image pickup apparatus and a display apparatus.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The page detection method and device, the electronic device and the storage medium provided by the present application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (20)
1. A page detection method is characterized by comprising the following steps:
loading a first page, wherein the first page corresponds to a monitoring code;
determining a mark position of the first page according to the monitoring code, and prompting an element corresponding to the mark position;
and detecting according to the monitoring code and the prompting element.
2. The method of claim 1, wherein determining the flag bit of the first page according to the monitoring code, and prompting the flag bit corresponding element comprises:
identifying a mark bit in the first page according to the monitoring code, and determining an element corresponding to the mark bit;
and displaying the elements in a set mode in the first page.
3. The method according to claim 2, wherein the displaying the elements in the first page in a set manner comprises at least one of the following steps:
highlighting the element in the first page;
and displaying the label data corresponding to the elements in the first page.
4. The method of claim 1, wherein detecting based on the elements of the monitoring code and the prompt comprises:
the monitoring code captures operation corresponding to elements prompted in the first page;
and determining the behavior corresponding to the operation and collecting data.
5. The method of claim 4, wherein the determining the behavior corresponding to the operation comprises:
and determining a second page corresponding to the operation according to the strategy information, and jumping from the first page to the second page.
6. The method of claim 5, wherein the policy information is implemented according to a state machine, wherein the state machine abstracts pages into states, such that the first page corresponds to a first state and the second page corresponds to a second state;
determining a second page corresponding to the operation according to the policy information, and jumping from the first page to the second page, including:
and determining a second state corresponding to the operation according to the state machine, and jumping from the first state to the second state.
7. The method of claim 6, wherein the policy information is determined according to a service scenario, the method further comprising:
and determining a page jump result, and determining an execution result of the service scene according to the page jump result.
8. The method of any of claims 1-7, wherein the marking of the marker bits comprises: event attribute flags, behavior attribute flags, and data attribute flags.
9. The method of claim 8, wherein the marker bits comprise point locations, and wherein the point locations are determined by means of buried points.
10. A page detecting apparatus, comprising:
the loading module is used for loading a first page, wherein the first page corresponds to the monitoring code;
the prompting module is used for determining a marking position of the first page according to the monitoring code and prompting an element corresponding to the marking position;
and the detection module is used for detecting according to the monitoring codes and the elements of the prompt.
11. The apparatus of claim 10, wherein the prompt module comprises:
the identification submodule is used for identifying the marking bit in the first page according to the monitoring code and determining the element corresponding to the marking bit;
and the display submodule is used for displaying the elements in the first page according to a set mode.
12. The method of claim 11,
the identification submodule is used for highlighting the element in the first page; and/or displaying the label data corresponding to the element in the first page.
13. The apparatus of claim 10, wherein the detection module comprises:
the operation capturing submodule is used for capturing the operation corresponding to the element prompted in the first page by the monitoring code;
and the detection processing submodule is used for determining the behavior corresponding to the operation and collecting data.
14. The apparatus of claim 13,
and the detection processing submodule is used for determining a second page corresponding to the operation according to the strategy information and jumping from the first page to the second page.
15. The apparatus of claim 14, wherein the policy information is implemented according to a state machine, wherein the state machine abstracts pages into states, such that the first page corresponds to a first state and the second page corresponds to a second state;
and the detection processing submodule is used for determining a second state corresponding to the operation according to the state machine and jumping from the first state to the second state.
16. The apparatus of claim 15, wherein the policy information is determined according to a service scenario;
the detection module is further configured to determine a page jump result, and determine an execution result of the service scenario according to the page jump result.
17. The apparatus of any of claims 10-16, wherein the marking of the flag bit comprises: event attribute flags, behavior attribute flags, and data attribute flags.
18. The method of claim 17, wherein the marker bits comprise point locations, the point locations being determined by a buried point manner.
19. An electronic device, comprising:
a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a page detection method as claimed in one or more of claims 1-9.
20. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform a page detection method as recited in one or more of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161499.9A CN110968822B (en) | 2018-09-30 | 2018-09-30 | Page detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161499.9A CN110968822B (en) | 2018-09-30 | 2018-09-30 | Page detection method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110968822A true CN110968822A (en) | 2020-04-07 |
CN110968822B CN110968822B (en) | 2023-04-18 |
Family
ID=70029207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811161499.9A Active CN110968822B (en) | 2018-09-30 | 2018-09-30 | Page detection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110968822B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966429A (en) * | 2020-08-21 | 2020-11-20 | 支付宝(杭州)信息技术有限公司 | Applet processing method and device |
CN112015626A (en) * | 2020-08-26 | 2020-12-01 | 支付宝(杭州)信息技术有限公司 | User behavior recording method, device and equipment |
CN112115043A (en) * | 2020-08-12 | 2020-12-22 | 浙江大学 | Image-based on-end intelligent page quality inspection method |
CN113448832A (en) * | 2020-06-18 | 2021-09-28 | 北京新氧科技有限公司 | Control exposure detection method and application program operation monitoring system |
CN113778478A (en) * | 2020-11-09 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method, device and storage medium for generating prompt message |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150064331A (en) * | 2013-12-03 | 2015-06-11 | 주식회사 케이티 | Device for monitoring web server and analysing malicious code |
CN106066826A (en) * | 2016-05-24 | 2016-11-02 | 北京金山安全软件有限公司 | Automatic testing method and device for buried point and terminal |
CN106326734A (en) * | 2015-06-30 | 2017-01-11 | 阿里巴巴集团控股有限公司 | Method and device for detecting sensitive information |
CN108270629A (en) * | 2016-12-29 | 2018-07-10 | 北京国双科技有限公司 | Site visitor's behavior monitoring method and device |
CN108334446A (en) * | 2017-12-29 | 2018-07-27 | 五八有限公司 | A kind of method of calibration of web page template, device and computer readable storage medium |
US20180264361A1 (en) * | 2016-05-12 | 2018-09-20 | Tencent Technology (Shenzhen) Company Limited | Web page running method and apparatus, terminal, and storage medium |
-
2018
- 2018-09-30 CN CN201811161499.9A patent/CN110968822B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150064331A (en) * | 2013-12-03 | 2015-06-11 | 주식회사 케이티 | Device for monitoring web server and analysing malicious code |
CN106326734A (en) * | 2015-06-30 | 2017-01-11 | 阿里巴巴集团控股有限公司 | Method and device for detecting sensitive information |
US20180264361A1 (en) * | 2016-05-12 | 2018-09-20 | Tencent Technology (Shenzhen) Company Limited | Web page running method and apparatus, terminal, and storage medium |
CN106066826A (en) * | 2016-05-24 | 2016-11-02 | 北京金山安全软件有限公司 | Automatic testing method and device for buried point and terminal |
CN108270629A (en) * | 2016-12-29 | 2018-07-10 | 北京国双科技有限公司 | Site visitor's behavior monitoring method and device |
CN108334446A (en) * | 2017-12-29 | 2018-07-27 | 五八有限公司 | A kind of method of calibration of web page template, device and computer readable storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448832A (en) * | 2020-06-18 | 2021-09-28 | 北京新氧科技有限公司 | Control exposure detection method and application program operation monitoring system |
CN113448832B (en) * | 2020-06-18 | 2024-03-12 | 北京新氧科技有限公司 | Control exposure detection method and application program operation monitoring system |
CN112115043A (en) * | 2020-08-12 | 2020-12-22 | 浙江大学 | Image-based on-end intelligent page quality inspection method |
CN112115043B (en) * | 2020-08-12 | 2021-10-08 | 浙江大学 | Image-based on-end intelligent page quality inspection method |
CN111966429A (en) * | 2020-08-21 | 2020-11-20 | 支付宝(杭州)信息技术有限公司 | Applet processing method and device |
CN112015626A (en) * | 2020-08-26 | 2020-12-01 | 支付宝(杭州)信息技术有限公司 | User behavior recording method, device and equipment |
CN113778478A (en) * | 2020-11-09 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method, device and storage medium for generating prompt message |
Also Published As
Publication number | Publication date |
---|---|
CN110968822B (en) | 2023-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110968822B (en) | Page detection method and device, electronic equipment and storage medium | |
US20150156332A1 (en) | Methods and apparatus to monitor usage of mobile devices | |
CN107133165B (en) | Browser compatibility detection method and device | |
CN110020339B (en) | Webpage data acquisition method and device based on non-buried point | |
CN110647321A (en) | Method, device and equipment for playing back operation flow and storage medium | |
CN105335423B (en) | Method and device for collecting and processing user feedback of webpage | |
CN109684571B (en) | Data acquisition method and device and storage medium | |
CN113496017B (en) | Verification method, device, equipment and storage medium | |
CN112433923A (en) | Backtracking file generation method, backtracking method and equipment | |
CN112817831A (en) | Application performance monitoring method, device, computer system and readable storage medium | |
CN106021069A (en) | CPU occupation detection method, device and equipment | |
CN115445212A (en) | Game gift bag pushing method and device, computer equipment and storage medium | |
CN110609686A (en) | Data system generation method and device, computer equipment and storage medium | |
CN113448834A (en) | Buried point testing method and device, electronic equipment and storage medium | |
CN113849330A (en) | Method, equipment and storage medium for monitoring and analyzing application fault reasons | |
CN109542743B (en) | Log checking method and device, electronic equipment and computer readable storage medium | |
CN110674045B (en) | Information tracking detection method and device, electronic equipment and storage medium | |
CN110689370B (en) | Classification model training method, device and equipment | |
CN111177593B (en) | Data communication method and system | |
CN116738091A (en) | Page monitoring method and device, electronic equipment and storage medium | |
CN113094268B (en) | Test method, test device, test equipment and test medium | |
CN109214474B (en) | Behavior analysis and information coding risk analysis method and device based on information coding | |
CN113378036A (en) | Page operation analysis and point burying method, device, equipment and storage medium | |
CN110020906B (en) | Order information detection method and device | |
CN112698890A (en) | Method, device and equipment for collecting function time consumption 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 |