CN109491908B - Page detection method and device, electronic equipment and storage medium - Google Patents

Page detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109491908B
CN109491908B CN201811312926.9A CN201811312926A CN109491908B CN 109491908 B CN109491908 B CN 109491908B CN 201811312926 A CN201811312926 A CN 201811312926A CN 109491908 B CN109491908 B CN 109491908B
Authority
CN
China
Prior art keywords
page
detection tool
identity verification
detection
identity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811312926.9A
Other languages
Chinese (zh)
Other versions
CN109491908A (en
Inventor
陈昊阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811312926.9A priority Critical patent/CN109491908B/en
Publication of CN109491908A publication Critical patent/CN109491908A/en
Application granted granted Critical
Publication of CN109491908B publication Critical patent/CN109491908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure provides a page detection method, a page detection device, an electronic device and a storage medium, wherein the method comprises the following steps: the method comprises the steps of responding to a detection tool acquisition request sent by a page, generating an identity verification code and identity verification information containing the identity verification code, implanting the identity verification information into the detection tool so that the page carries the upper identity verification information when the detection tool is loaded, responding to a detection mode starting request aiming at the page, verifying the identity verification information carried by the page when the detection tool is loaded according to the identity verification code, if the verification is detected to be passed, sending the detection tool to the page, and visually detecting the page through the detection tool. The technical scheme of the embodiment of the disclosure solves the problems that the requirement on user capability is high and the detection process is inconvenient in the actual code modification and installation process, realizes convenient detection of the webpage, and improves the working efficiency of webpage detection.

Description

Page detection method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the field of software testing, and in particular, to a page detection method and apparatus, an electronic device, and a storage medium.
Background
Currently, the content contained in a page viewed by a user on a browser is acquired by a program and is presented to the user, and if the presented page is an abnormal or incomplete data page, poor user experience is caused, so that detection of the presented page is essential.
In the related art, when a user performs code installation detection on a webpage, the user needs to manually add a corresponding code in the webpage and install the code to detect the webpage. However, in the actual operation process, the code may need to be modified and installed for many times based on different test contents during detection, and the requirement on the user capability during the modification and installation of the code is high, and the detection process is not convenient enough, which inevitably reduces the work efficiency of web page detection.
Disclosure of Invention
The embodiment of the disclosure provides a page detection method and device, electronic equipment and a storage medium, so as to realize convenient visual detection of a webpage and improve the working efficiency of the visual detection of the webpage.
In a first aspect, an embodiment of the present disclosure provides a page detection method applied to a test end, where the method includes:
responding to a detection tool acquisition request sent by a page, generating an identity verification code and identity verification information containing the identity verification code, and implanting the identity verification information into a detection tool so as to enable the page to carry the identity verification information when the detection tool is loaded;
responding to a detection mode starting request aiming at the page, and verifying the identity verification information carried by the page when the page requests to load the detection tool according to the identity verification code;
and if the verification is passed, sending the detection tool to the page, and carrying out visual detection on the page through the detection tool.
In a second aspect, an embodiment of the present disclosure further provides a page detection method, which is applied to a browser page side, and the method includes:
responding to a first trigger operation of a user on a page, generating a detection tool acquisition request, and sending the detection tool acquisition request to a test platform; the test platform is configured to generate an identity verification code and identity verification information containing the identity verification code according to the detection tool acquisition request, and implant the identity verification information into the detection tool;
responding to a second trigger operation of the user on the page, generating a detection mode starting request, and sending the detection mode starting request to a test platform; the page automatically carries the identity verification information when the detection tool is loaded, the test platform is further configured to verify the identity verification information according to the identity verification code, and when the verification is detected to be passed, the detection tool is sent to the page, and the page is visually detected through the detection tool.
In a third aspect, an embodiment of the present disclosure further provides a page detection apparatus configured at a test end, where the apparatus includes:
the acquisition request processing module is used for responding to a detection tool acquisition request sent by a page, generating an identity verification code and identity verification information containing the identity verification code, and implanting the identity verification information into a detection tool so as to enable the page to carry the identity verification information when the detection tool is loaded;
the loading request processing module is used for responding to a detection mode starting request aiming at the page and verifying the identity verification information carried by the page when the page requests to load the detection tool according to the identity verification code;
and the visual detection module is used for sending the detection tool to the page if the verification is detected to be passed, and carrying out visual detection on the page through the detection tool.
In a fourth aspect, an embodiment of the present disclosure further provides a page detection apparatus configured at a page end of a browser, where the apparatus includes:
the first processing module is used for responding to a first trigger operation of a user on a page, generating a detection tool acquisition request and sending the detection tool acquisition request to the test platform; the test platform is configured to generate an identity verification code and identity verification information containing the identity verification code according to the detection tool acquisition request, and implant the identity verification information into the detection tool;
the second processing module is used for responding to a second trigger operation of the user on the page, generating a detection mode starting request and sending the detection mode starting request to the test platform; the page automatically carries the identity verification information when the detection tool is loaded, the test platform is further configured to verify the identity verification information according to the identity verification code, and when the verification is detected to be passed, the detection tool is sent to the page, and the page is visually detected through the detection tool.
In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are enabled to implement the page detection method applied to the test terminal as described in any of the above embodiments.
In a sixth aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are enabled to implement the page detection method applied to the browser page side as described in any of the above embodiments.
In a seventh aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processing apparatus to implement the page detection method applied to a test terminal as described in any of the foregoing embodiments.
In an eighth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processing apparatus to implement the page detection method applied to the browser page side as described in any one of the above embodiments.
The embodiment of the disclosure provides a page detection method, a page detection device, electronic equipment and a storage medium, wherein the method responds to a detection tool acquisition request sent by a page, generates an identity verification code and identity verification information containing the identity verification code, and implants the identity verification information into the detection tool so that the page carries the identity verification information when the detection tool is loaded; responding to a detection mode starting request aiming at the page, and verifying the identity verification information carried by the page when the page requests to load the detection tool according to the identity verification code; and if the verification is passed, sending the detection tool to the page, and carrying out visual detection on the page through the detection tool. The technical scheme of the embodiment of the disclosure solves the problems that the requirement on user capability is high and the detection process is inconvenient in the process of detecting the page by using actual code modification and installation, realizes visual and convenient detection of the page, and improves the working efficiency of visual detection of the page.
Drawings
Fig. 1 illustrates a flowchart of a page detection method provided in an embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of a capture and load detection tool provided in embodiments of the present disclosure;
fig. 3 shows a schematic flow chart of another page detection method provided in the embodiment of the present disclosure;
fig. 4 shows a block diagram of a structure of a page detection apparatus provided in an embodiment of the present disclosure;
fig. 5 shows a block diagram of another page detection apparatus provided in the embodiment of the present disclosure;
fig. 6 shows a block diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 7 shows a block diagram of another electronic device provided in the embodiments of the present disclosure.
Detailed Description
In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution. The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Fig. 1 shows a schematic flow chart of a page detection method provided in an embodiment of the present disclosure, where the embodiment of the present disclosure is applicable to a case where a user performs code installation detection on a web page, and the method may be executed by a page detection apparatus, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in an electronic device at a test end, where the electronic device may be formed by two or more physical entities or may be formed by one physical entity.
As shown in fig. 1, the page detection method provided in the embodiment of the present disclosure may include:
s101, responding to a detection tool acquisition request sent by a page, generating an identity verification code and identity verification information containing the identity verification code, and implanting the identity verification information into a detection tool.
In the embodiment of the disclosure, when a user detects a page of a browser by using a conventional method, the user selects to manually add a code and install the code in the page of the browser to detect the page, but in an actual page detection process of the browser, the content of detection of the browser is not single, and the added code needs to be modified and installed for many times based on different detection contents during detection, so that the requirement on the capability of the user is higher when the page of the browser is detected, that is, the user needs to understand how to modify and install the code based on different detection contents. Based on the above situation, in order to solve the problem that the detection operation on the page of the browser cannot be completed autonomously due to the user capability problem, so as to ensure that all users can complete the detection operation on the page of the browser autonomously, in this embodiment, a detection tool can be selected to be used on the page of the browser for page detection.
In the embodiment of the present disclosure, fig. 2 shows a schematic diagram of obtaining and loading a detection tool provided in the embodiment of the present disclosure, referring to fig. 2, a corresponding detection tool obtaining control may be provided on a browser page, and the detection tool obtaining control may be triggered by a user, where the user may trigger by clicking the detection tool obtaining control, and other triggering manners may also be adopted. When a user needs to adopt a detection tool to detect a browser page, the detection tool acquisition control can be triggered on the page, the browser page can respond to a first trigger operation of triggering the detection tool acquisition control by the user, a detection tool acquisition request is generated, and the detection tool acquisition request is sent to a test platform. At the testing end, the testing platform can receive a detection tool acquisition request sent from the browser page end. In addition, the test platform can respond to a detection tool acquisition request sent by the browser page, and generate an authentication code corresponding to the page and authentication information containing the authentication code. Because an external detection tool is required to be used for detecting the browser page, the browser page needs to be authenticated in order to ensure the detection safety, so that the page of the browser can meet the authority of loading the detection tool. Therefore, after the test platform generates the identity verification code and the identity verification information containing the identity verification code, the identity verification information needs to be implanted into the detection tool, so that the page carries the identity verification information when the detection tool is loaded, and the browser page is conveniently authenticated when the detection tool is loaded on a subsequent page.
In an optional implementation manner of the embodiment of the present disclosure, generating the authentication code and the authentication information including the authentication code may include:
s1011, determining a detection tool identifier carried in the detection tool acquisition request;
and S1012, generating an identity verification code corresponding to the page and identity verification information containing the identity verification code according to the detection tool identifier and a preset encryption mode.
In this embodiment, the test platform may respond to a detection tool acquisition request sent by the page, and determine, according to the detection tool acquisition request sent by the page, identification information of a detection tool required by the page, which is carried in the detection tool request, that is, a detection tool identification. It can be understood that, when a user triggers a detection tool acquisition control set on a browser page, the browser page may generate a detection tool acquisition request in response to a first trigger operation that the user triggers the detection tool acquisition control. The detection tool acquisition request may carry a detection tool identifier corresponding to a detection tool required by the page, and the detection tool identifier may be a detection tool required by the user to identify when the user detects the browser page. The test platform can generate the identity verification code corresponding to the page and the identity verification information containing the identity verification code according to the detection tool identifier and a preset encryption mode. In a specific optional example, the test platform may respond to a detection tool acquisition request sent by a page, generate an authentication code corresponding to the page and authentication information including the authentication code, and directly implant the authentication information in the detection tool. In another specific optional example, the test platform may generate an authentication code corresponding to the page in response to a detection tool acquisition request sent by the page, and implant the authentication code into authentication information included in the detection tool, so that the page carries the authentication information including the authentication code when the detection tool is loaded.
Illustratively, a Software Development Kit (SDK) is a collection of Development tools used by Software engineers to build application Software for a particular Software package, Software framework, hardware platform, operating system, etc. After the test platform receives a detection tool acquisition request sent from a browser page end, the test platform can respond to the detection tool acquisition request sent by the page, and determine the SDK ID of the detection tool required by the page, which is carried in the detection tool request, according to the detection tool acquisition request sent by the page. In addition, the test platform may also generate an authentication code (e.g., Token) corresponding to the page and authentication information (e.g., Cookie) including the authentication code according to the SDK ID, the key, and the expiration time of the detection tool. The expiration time may be used to indicate a valid time of the authentication code (e.g., Token) and the authentication information (e.g., Cookie), and the authentication code and the authentication information are invalidated when the usage time of the authentication code (e.g., Token) or the authentication information (e.g., Cookie) exceeds the expiration time.
In an optional implementation manner of the embodiment of the present disclosure, implanting the identity verification information in the detection tool may include:
and S1013, jumping to an interface address corresponding to the domain name of the detection tool, and implanting identity verification information into the detection tool through the interface address.
In this embodiment, the test platform responds to a detection tool acquisition request sent by a page, and not only can determine the identification information of the detection tool required by the page, which is carried in the detection tool request, but also can determine the domain name of the detection tool, which is carried in the detection tool request. In addition, at the testing end, the testing platform can jump to an interface address corresponding to the domain name of the detection tool according to the domain name of the detection tool, and identity verification information containing an identity card verification code is implanted into the detection tool through the interface address.
For example, after the test platform receives a detection tool acquisition request sent from a browser page, the test platform may respond to the detection tool acquisition request sent by the page, and determine, according to the detection tool acquisition request sent by the page, a detection tool domain name corresponding to a detection tool required by a user and carried in the detection tool request. In addition, at the testing end, the testing platform can jump to an interface address under the domain name of the detection tool according to the domain name of the detection tool, and the identity verification information can be implanted into the detection tool corresponding to the domain name of the detection tool through the interface address. Optionally, the authentication information may be authentication information (e.g., Cookie) with an authentication code, and the authentication information (e.g., Cookie) may include the SDK ID, the key, and the expiration time of the detection tool.
In another optional implementation manner of the embodiment of the present disclosure, generating an authentication code and authentication information including the authentication code, and implanting the authentication information in the detection tool may include:
and responding to a detection tool acquisition request sent by the page, generating an identity verification code corresponding to the page, and implanting the identity verification code into identity verification information corresponding to the detection tool.
In this embodiment, the test platform may generate a Token corresponding to the browser page in response to a detection tool acquisition request sent by the page. In a specific optional example, the test platform determines a detection tool identifier SDK ID carried in the detection tool acquisition request, and generates an authentication code Token corresponding to the page according to the detection tool identifier SDK ID, the key, and the expiration time. Furthermore, the test platform can directly implant the authentication code Token into the authentication information Cookie corresponding to the detection tool. In a specific optional example, the test platform determines a domain name of the detection tool carried in the detection tool acquisition request, and jumps to an interface address under the domain name of the detection tool according to the domain name of the detection tool, and directly implants the authentication code Token into the authentication information Cookie under the domain name of the detection tool through the interface address, so that when a browser page loads and accesses the detection tool, the authentication code Token implanted in the detection tool can be acquired and carried.
S102, responding to a detection mode starting request aiming at the page, and verifying the identity verification information carried by the page when the detection tool is loaded according to the identity verification code.
In the embodiment of the disclosure, a browser page may be provided with a detection mode starting control, and a user may determine whether to trigger the detection mode starting control according to a requirement. When it is detected that the user triggers the detection mode starting control, the browser page end can respond to a second triggering operation of the user on the page to generate a detection mode starting request, and send the detection mode starting request to the test platform. In addition, before triggering a detection mode starting request on a browser page, the browser page can request to load a detection tool, and at the moment, the browser page can automatically carry the authentication information of the detection tool. The authentication information may include, among other things, the SDK ID, key, and expiration time of the detection tool. The test platform responds to the detection mode starting request aiming at the page, and can verify the identity verification information carried by the page when the detection tool is loaded according to the identity verification code so as to determine whether the generated identity verification code is consistent with the identity verification code contained in the identity verification information implanted into the page. If the generated identity verification code is consistent with the identity verification code contained in the identity verification information implanted into the page, the identity verification information is verified; and if the generated identity verification code is inconsistent with the identity verification code contained in the identity verification information implanted into the page, the identity verification information is not verified.
In this embodiment of the present disclosure, optionally, the user may input address information of the detection tool corresponding to the identifier of the detection tool on the browser page, and trigger a detection mode start control set on the page after the address information of the detection tool is input. At the test end, the test platform can receive the detection mode starting request sent by the page, respond to the detection mode starting request sent by the page, and verify the identity verification information carried by the page when the detection tool is loaded according to the identity verification code.
For example, the detection mode start control that may be set on the browser page is a Debug start button, and the user may click the Debug start button on the browser page. When the user is detected to click the Debug opening button, a Debug opening request can be generated at the browser page end, and the Debug opening request is sent to the test platform. At the test end, the test platform can receive a Debug starting request sent by the page, respond to the Debug starting request sent by the page, and verify the identity verification information carried by the page when the detection tool is loaded according to the identity verification code. Optionally, the authentication information may be authentication information (e.g., Cookie) with a verification code, wherein the authentication information (e.g., Cookie) may include the SDK ID, the key, and the expiration time of the detection tool.
In an optional implementation manner of the embodiment of the present disclosure, verifying, according to the identity verification code, the identity verification information carried by the page when the detection tool is loaded may include:
s1021, decoupling the identity authentication information carried by the page when the detection tool is loaded to obtain the identification, the secret key and the expiration time of the detection tool contained in the identity authentication information;
s1022, verifying the identifier, the secret key and the expiration time of the detection tool contained in the identity verification information according to the identifier, the secret key and the expiration time of the detection tool contained in the identity verification code;
and S1023, when the identification, the secret key and the expiration time of the detection tool contained in the identity verification information are consistent with the identification, the secret key and the expiration time of the detection tool contained in the identity verification code, determining that the verification is passed.
In this embodiment, the test platform may, in response to a detection mode initiation request sent by the page, decouple the authentication information carried by the page when the detection tool is loaded, and obtain the identifier, the key, and the expiration time of the detection tool included in the authentication information. Furthermore, the test platform can verify the identifier, the key and the expiration time of the detection tool contained in the authentication information according to the identifier, the key and the expiration time of the detection tool contained in the authentication code. Specifically, for example, the test platform may decouple the identity verification information (such as a Cookie) carried by the page when the detection tool is loaded in response to the Debug start request sent by the page, obtain the identity verification code Token therein from the Cookie, and obtain the SDK ID, the key, and the expiration time included in the identity verification code Token, and the test platform may perform one-to-one matching verification according to the SDK ID, the key, and the expiration time obtained from the identity verification information (such as the Cookie) and the SDK ID, the key, and the expiration time included in the identity verification code (such as the Token). If the generated identity verification code is consistent with the identity verification code contained in the identity verification information implanted into the page, the identity verification information is verified; and if the generated identity verification code is inconsistent with the identity verification code contained in the identity verification information implanted into the page, the identity verification information is not verified.
S103, if the verification is detected to be passed, the detection tool is sent to the page, and the page is visually detected through the detection tool.
In the embodiment of the disclosure, when it is detected that the authentication of the authentication information passes, the test platform may send the detection tool to the browser page, and perform visual detection on the page through the detection tool. In a specific optional example, the test platform may send the SDK to the browser page, where a Debug tool is automatically added to the SDK, and after the browser page successfully installs the SDK, the browser page may be visually detected by using the Debug tool added to the SDK. Optionally, the link generated by the detection tool may be shared with other users, so that after the link of the detection tool is opened by others, the other users can enter a visual detection mode in the same browser.
In an optional implementation manner of the embodiment of the present disclosure, visually detecting a page by using a detection tool may include:
s1031, judging whether the detection tool is normally installed on the page or not;
s1032, if the detection tool is detected to be normally installed, performing visual detection on the page according to a preset detection specification.
In this embodiment, when it is detected that the detection tool is correctly installed on the page of the browser, the test platform may perform visual detection on the page according to a preset detection specification. Specifically, for example, the test platform may monitor an event in the page through the detection tool and generate a monitoring result for the event, and the test platform may further send the monitoring result to the page to display the monitoring result on the page. In addition, in the automatic installation detection tool, the information of the detection tool can be visually displayed on the browser page to check whether the detection tool is correctly installed on the page and whether the corresponding parameters of the detection tool are correctly configured. For example, when the Debug tool is automatically installed on a page, the SDK information can be visually displayed on the page to check whether the SDK is correctly installed on the page and whether Trigger is correctly configured.
In an optional implementation manner of the embodiment of the present disclosure, after the implanting the identity verification information in the detection tool, the method may further include:
and responding to a detection mode closing request sent by the page, and clearing the identity verification information carried by the page when the detection tool is loaded.
In this embodiment, a detection mode closing control may be set on a browser page, and when it is detected that a user triggers the detection mode closing control set on the browser page, the authentication information carried by the page when the detection tool is loaded may be cleared. For example, when it is detected that the user triggers the Debug close control of the page, a Debug close request may be sent to the test platform. The test platform may respond to the Debug close request to clear the authentication information (such as Cookie) carried in the page.
According to the technical scheme of the embodiment, the identity verification code and the identity verification information of the page are generated in response to a detection tool acquisition request sent by the page, the identity verification information is implanted into the page, the identity verification information of the page carried in the detection tool loading request is verified in response to the detection tool loading request sent by the page according to the identity verification code of the page, if the verification is detected to be passed, the detection tool is sent to the page, and the page is visually detected through the detection tool. The technical scheme of the embodiment of the disclosure solves the problems that the requirement on the user capacity is high and the detection process is not convenient in the actual code modification and installation process, the whole process does not need the user to perform excessive operation, and only needs the user to perform simple click triggering, so that the convenient detection of the webpage is realized, and the work efficiency of webpage detection is improved.
Fig. 3 shows a flowchart of another page detection method provided in the embodiment of the present disclosure. The method can be executed by a page detection device, the device can be realized in a software and/or hardware mode, the device can be configured in electronic equipment at a browser page end, and the electronic equipment can be composed of two or more physical entities or one physical entity.
As shown in fig. 3, the page detection method provided in the embodiment of the present disclosure may include:
s301, responding to a first trigger operation of a user on a page, generating a detection tool acquisition request, and sending the detection tool acquisition request to a test platform; the test platform is configured to generate an authentication code and authentication information including the authentication code according to the detection tool acquisition request, and implant the authentication information in the detection tool.
In the embodiment of the disclosure, a user may trigger a detection tool acquisition control set on a page of a browser, and a browser page may generate a detection tool acquisition request in response to a first trigger operation of the user on the detection tool acquisition control set on the page, and send the detection tool acquisition request to a test platform. The test platform can generate the identity verification code and the identity verification information containing the identity verification code according to the detection tool acquisition request, and implant the identity verification information into the detection tool. It can be understood that the browser page side and the test platform can be integrated into the same electronic device, in other words, the page detection method of the test side and the page detection method of the browser page side can be executed on the same electronic device at the same time. Of course, each electronic device may also individually execute any one of the page detection method of the test side and the page detection method of the browser page side.
S302, responding to a second trigger operation of the user on the page, generating a detection mode starting request, and sending the detection mode starting request to the test platform; the page automatically carries identity verification information when the detection tool is loaded, the test platform is further configured to verify the identity verification information automatically carried by the page when the detection tool is loaded according to the identity verification code, and when the verification is detected to be passed, the detection tool is sent to the page, and the page is visually detected through the detection tool.
In the embodiment of the disclosure, a user may trigger a detection mode starting control set on a browser page, and a browser page end may generate a detection mode starting request in response to a second trigger operation of the user on the detection mode starting control set on the page, and send the generated detection mode starting request to a test platform. The page may automatically carry on the authentication token that has been embedded in the detection tool when the detection tool is loaded. The test platform can verify the identity verification information automatically carried by the page when the detection tool is loaded according to the identity verification code, send the detection tool to the page when the verification is detected to be passed, and visually detect the page through the detection tool.
In an optional implementation manner of the embodiment of the present disclosure, after sending the detection tool acquisition request to the test platform, the method may further include:
and responding to a third trigger operation of the user on the page, loading the detection tool, and acquiring and carrying the identity verification information implanted in the detection tool. The browser page automatically requests the SDK when the detection tool is loaded, and the Cookie implanted in the detection tool can be carried according to the characteristics of the Cookie when the SDK is requested.
In an optional implementation manner of the embodiment of the present disclosure, the method may further include: responding to a fourth trigger operation of the user on the page, generating a detection mode closing request, and sending the detection tool closing request to the test platform; the test platform is further configured to respond to the detection mode closing request and clear the identity verification information carried by the page when the detection tool is loaded.
In this embodiment, a user may trigger a detection mode closing control set on a page of a browser, and a browser page may generate a detection mode closing request in response to a fourth trigger operation of the user on the detection tool closing control on the page, and send the detection mode closing request to a test platform. The test platform may respond to a detection mode close request sent from the page to clear the authentication information carried by the page when the detection tool is loaded.
Fig. 4 is a block diagram of a structure of a page detection apparatus according to an embodiment of the present disclosure, where the page detection apparatus according to the embodiment of the present disclosure is applicable to a situation where a user performs code installation detection on a webpage, and the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in an electronic device at a test end, where the electronic device may be formed by two or more physical entities or may be formed by one physical entity.
As shown in fig. 4, the apparatus may include: an acquisition request processing module 401, a loading request processing module 402 and a visualization detection module 403. Wherein:
an obtaining request processing module 401, configured to generate an authentication code and authentication information including the authentication code in response to a detection tool obtaining request sent by a page, and implant the authentication information in a detection tool, so that the page carries the authentication information when the detection tool is loaded;
a loading request processing module 402, configured to respond to a detection mode start request for the page, and verify, according to the identity verification code, the identity verification information carried by the page when the detection tool is loaded;
and the visual detection module 403 is configured to send the detection tool to the page if it is detected that the verification passes, and perform visual detection on the page through the detection tool.
Optionally, on the basis of the foregoing embodiment, the obtaining request processing module 401 may include:
an identifier determining unit, configured to determine a detection tool identifier carried in the detection tool acquisition request;
and the identity information generating unit is used for generating an identity verification code corresponding to the page and identity verification information containing the identity verification code according to the detection tool identifier and a preset encryption mode.
Optionally, on the basis of the foregoing embodiment, the obtaining request processing module 401 may include:
a domain name determining unit, configured to determine a domain name of the detection tool carried in the detection tool acquisition request;
and the identity authentication information processing unit is used for skipping to an interface address corresponding to the domain name of the detection tool and implanting the identity authentication information into the detection tool through the interface address.
Optionally, on the basis of the foregoing embodiment, the load request processing module 402 may include:
the identity information decoupling unit is used for decoupling the identity authentication information carried by the page when the detection tool is loaded to obtain the identification, the secret key and the expiration time of the detection tool contained in the identity authentication information;
the identity information verification unit is used for verifying the identifier, the secret key and the expiration time of the detection tool contained in the identity verification information according to the identifier, the secret key and the expiration time of the detection tool contained in the identity verification code;
and the verification processing unit is used for determining that the verification is passed when the identifier, the key and the expiration time of the detection tool contained in the identity verification information are consistent with the identifier, the key and the expiration time of the detection tool contained in the identity verification code.
Optionally, on the basis of the foregoing embodiment, the visualization detecting module 403 may include:
the installation detection unit is used for judging whether the detection tool is normally installed on the page or not;
and the visual detection unit is used for carrying out visual detection on the page according to a preset detection standard if the detection tool is detected to be normally installed.
Optionally, on the basis of the foregoing embodiment, the visualization detecting unit may include:
the event monitoring subunit is used for monitoring the events in the page through the detection tool and generating a monitoring result aiming at the events;
and the monitoring result processing subunit is used for sending the monitoring result to the page so as to display the monitoring result on the page.
Optionally, on the basis of the foregoing embodiment, the apparatus may further include:
an identity verification information processing module 404, configured to respond to a detection mode closing request sent by the page, and clear the identity verification information carried by the page when the detection tool is loaded.
The page detection device provided by the embodiment of the disclosure can execute the page detection method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 5 shows a block diagram of another page detection apparatus provided in the embodiment of the present disclosure. The embodiment of the disclosure is applicable to the condition that a user performs code installation detection on a webpage, the device can be implemented in a software and/or hardware manner, the device can be configured in electronic equipment at a browser page end, and the electronic equipment can be composed of two or more physical entities or one physical entity.
As shown in fig. 5, the apparatus may include: a first processing module 501 and a second processing module 502. Wherein:
the first processing module 501 is configured to generate a detection tool acquisition request in response to a first trigger operation of a user on a page, and send the detection tool acquisition request to a test platform; the test platform is configured to generate an identity verification code and identity verification information containing the identity verification code according to the detection tool acquisition request, and implant the identity verification information into the detection tool;
the second processing module 502 is configured to generate a detection mode starting request in response to a second trigger operation of the user on the page, and send the detection mode starting request to the test platform; the page automatically carries the identity verification information when the detection tool is loaded, the test platform is further configured to verify the identity verification information according to the identity verification code, and when the verification is detected to be passed, the detection tool is sent to the page, and the page is visually detected through the detection tool.
Optionally, on the basis of the foregoing embodiment, the apparatus may further include:
a third processing module 503, configured to respond to a third trigger operation of the user on the page, load the detection tool, and acquire and carry the authentication information implanted in the detection tool.
Optionally, on the basis of the foregoing embodiment, the apparatus may further include:
a fourth processing module 504, configured to generate a detection mode closing request in response to a fourth trigger operation of the user on the page, and send the detection tool closing request to the test platform; the test platform is further configured to respond to the detection mode closing request and clear the identity verification information carried by the page when the detection tool is loaded.
The page detection device provided by the embodiment of the disclosure can execute the page detection method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 6 shows a block diagram of an electronic device provided in an embodiment of the present disclosure. Referring to fig. 6, a schematic structural diagram of an electronic device (e.g., a terminal device or a server) 600 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. When executed by the processing device 601, the computer program performs the above-mentioned functions defined in the page detection method applied to the test side of the embodiment of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the test platform; or may be separate and not assembled into the test platform.
The computer readable medium carries one or more programs which, when executed by the test platform, cause the electronic device to: responding to a detection tool acquisition request sent by a page, generating an identity verification code and identity verification information containing the identity verification code, and implanting the identity verification information into a detection tool so as to enable the page to carry the identity verification information when the detection tool is loaded; responding to a detection mode starting request aiming at the page, and verifying the identity verification information carried by the page when the detection tool is loaded according to the identity verification code; and if the verification is passed, sending the detection tool to the page, and carrying out visual detection on the page through the detection tool.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Fig. 7 shows a block diagram of another electronic device provided in the embodiments of the present disclosure. Referring to fig. 7, a schematic structural diagram of an electronic device (e.g., a terminal device or a server) 700 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. When executed by the processing device 701, the computer program performs the above-described functions defined in the page detection method applied to the browser page side of the embodiment of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a first trigger operation of a user on a page, generating a detection tool acquisition request, and sending the detection tool acquisition request to a test platform; the test platform is configured to generate an identity verification code and identity verification information containing the identity verification code according to the detection tool acquisition request, and implant the identity verification information into the detection tool; responding to a second trigger operation of the user on the page, generating a detection mode starting request, and sending the detection mode starting request to a test platform; the page automatically carries the identity verification information when the detection tool is loaded, the test platform is further configured to verify the identity verification information according to the identity verification code, and when the verification is detected to be passed, the detection tool is sent to the page, and the page is visually detected through the detection tool.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (18)

1. A page detection method is applied to a test terminal, and is characterized by comprising the following steps:
responding to a detection tool acquisition request sent by a page, generating an identity verification code and identity verification information containing the identity verification code, and implanting the identity verification information into a detection tool so as to enable the page to carry the identity verification information when the detection tool is loaded;
responding to a detection mode starting request aiming at the page, and verifying the identity verification information carried by the page when the detection tool is loaded according to the identity verification code;
if the verification is passed, the detection tool is sent to the page, and the page is visually detected through the detection tool;
wherein the generating of the authentication code and the authentication information including the authentication code includes:
determining a detection tool identifier carried in the detection tool acquisition request;
generating an identity verification code corresponding to the page and identity verification information containing the identity verification code according to the detection tool identifier and a preset encryption mode;
implanting the authentication information in a detection tool, comprising:
jumping to an interface address corresponding to a domain name of a detection tool, and implanting the identity verification information into the detection tool through the interface address;
the verifying the identity verification information carried by the page when the detection tool is loaded according to the identity verification code comprises:
decoupling the identity authentication information carried by the page when the detection tool is loaded to obtain the identification, the secret key and the expiration time of the detection tool contained in the identity authentication information;
verifying the identifier, the secret key and the expiration time of the detection tool contained in the identity verification information according to the identifier, the secret key and the expiration time of the detection tool contained in the identity verification code;
and when the identification, the secret key and the expiration time of the detection tool contained in the identity verification information are consistent with the identification, the secret key and the expiration time of the detection tool contained in the identity verification code, determining that the verification is passed.
2. The method of claim 1, wherein visually inspecting the page with the inspection tool comprises:
judging whether the detection tool is normally installed on the page or not;
and if the detection tool is detected to be normally installed, performing visual detection on the page according to a preset detection standard.
3. The method according to claim 2, wherein visually inspecting the page according to a preset inspection specification comprises:
monitoring events in the page through the detection tool, and generating a monitoring result aiming at the events;
and sending the monitoring result to the page so as to display the monitoring result on the page.
4. The method of claim 1, after implanting the authentication information in the detection tool, further comprising:
and responding to a detection mode closing request sent by the page, and clearing the identity authentication information carried by the page when the detection tool is loaded.
5. A page detection method is applied to a browser page end, and is characterized by comprising the following steps:
responding to a first trigger operation of a user on a page, generating a detection tool acquisition request, and sending the detection tool acquisition request to a test platform; the test platform is configured to generate an identity verification code and identity verification information containing the identity verification code according to the detection tool acquisition request, and implant the identity verification information into the detection tool;
responding to a second trigger operation of the user on the page, generating a detection mode starting request, and sending the detection mode starting request to a test platform; the page automatically carries the identity verification information when the detection tool is loaded, the test platform is further configured to verify the identity verification information according to the identity verification code, send the detection tool to the page when verification is detected to be passed, and visually detect the page through the detection tool;
wherein the generating of the authentication code and the authentication information including the authentication code includes:
determining a detection tool identifier carried in the detection tool acquisition request;
generating an identity verification code corresponding to the page and identity verification information containing the identity verification code according to the detection tool identifier and a preset encryption mode;
implanting the authentication information in a detection tool, comprising:
jumping to an interface address corresponding to a domain name of a detection tool, and implanting the identity verification information into the detection tool through the interface address;
the verifying the identity verification information according to the identity verification code comprises:
decoupling the identity authentication information carried by the page when the detection tool is loaded to obtain the identification, the secret key and the expiration time of the detection tool contained in the identity authentication information;
verifying the identifier, the secret key and the expiration time of the detection tool contained in the identity verification information according to the identifier, the secret key and the expiration time of the detection tool contained in the identity verification code;
and when the identification, the secret key and the expiration time of the detection tool contained in the identity verification information are consistent with the identification, the secret key and the expiration time of the detection tool contained in the identity verification code, determining that the verification is passed.
6. The method of claim 5, wherein after sending the inspection tool acquisition request to a test platform, further comprising:
and responding to a third trigger operation of the user on the page, loading the detection tool, and acquiring and carrying the identity verification information implanted in the detection tool.
7. The method of claim 5,
responding to a fourth trigger operation of the user on the page, generating a detection mode closing request, and sending the detection tool closing request to the test platform; the test platform is further configured to respond to the detection mode closing request and clear the identity verification information carried by the page when the detection tool is loaded.
8. A page detection device configured at a test end, the device comprising:
the acquisition request processing module is used for responding to a detection tool acquisition request sent by a page, generating an identity verification code and identity verification information containing the identity verification code, and implanting the identity verification information into a detection tool so as to enable the page to carry the identity verification information when the detection tool is loaded;
the loading request processing module is used for responding to a detection mode starting request aiming at the page and verifying the identity verification information carried by the page when the detection tool is loaded according to the identity verification code;
the visual detection module is used for sending the detection tool to the page if the verification is detected to be passed, and carrying out visual detection on the page through the detection tool;
wherein, the acquisition request processing module comprises:
an identifier determining unit, configured to determine a detection tool identifier carried in the detection tool acquisition request;
the identity information generating unit is used for generating an identity verification code corresponding to the page and identity verification information containing the identity verification code according to the detection tool identifier and a preset encryption mode;
the identity authentication information processing unit is used for jumping to an interface address corresponding to a domain name of a detection tool and implanting the identity authentication information into the detection tool through the interface address;
the load request processing module comprises:
the identity information decoupling unit is used for decoupling the identity authentication information carried by the page when the detection tool is loaded to obtain the identification, the secret key and the expiration time of the detection tool contained in the identity authentication information;
the identity information verification unit is used for verifying the identifier, the secret key and the expiration time of the detection tool contained in the identity verification information according to the identifier, the secret key and the expiration time of the detection tool contained in the identity verification code;
and the verification processing unit is used for determining that the verification is passed when the identifier, the key and the expiration time of the detection tool contained in the identity verification information are consistent with the identifier, the key and the expiration time of the detection tool contained in the identity verification code.
9. The apparatus of claim 8, wherein the visual detection module comprises:
the installation detection unit is used for judging whether the detection tool is normally installed on the page or not;
and the visual detection unit is used for carrying out visual detection on the page according to a preset detection standard if the detection tool is detected to be normally installed.
10. The apparatus of claim 8, wherein the visual detection unit comprises:
the event monitoring subunit is used for monitoring the events in the page through the detection tool and generating a monitoring result aiming at the events;
and the monitoring result processing subunit is used for sending the monitoring result to the page so as to display the monitoring result on the page.
11. The apparatus of claim 8, further comprising:
and the identity authentication information processing module is used for responding to a detection mode closing request sent by the page and clearing the identity authentication information carried by the page when the detection tool is loaded.
12. A page detecting apparatus configured at a page side of a browser, the apparatus comprising:
the first processing module is used for responding to a first trigger operation of a user on a page, generating a detection tool acquisition request and sending the detection tool acquisition request to the test platform; the test platform is configured to generate an identity verification code and identity verification information containing the identity verification code according to the detection tool acquisition request, and implant the identity verification information into the detection tool;
the second processing module is used for responding to a second trigger operation of the user on the page, generating a detection mode starting request and sending the detection mode starting request to the test platform; the page automatically carries the identity verification information when the detection tool is loaded, the test platform is further configured to verify the identity verification information according to the identity verification code, send the detection tool to the page when verification is detected to be passed, and visually detect the page through the detection tool;
wherein the generating of the authentication code and the authentication information including the authentication code includes:
determining a detection tool identifier carried in the detection tool acquisition request;
generating an identity verification code corresponding to the page and identity verification information containing the identity verification code according to the detection tool identifier and a preset encryption mode;
implanting the authentication information in a detection tool, comprising:
jumping to an interface address corresponding to a domain name of a detection tool, and implanting the identity verification information into the detection tool through the interface address;
the verifying the identity verification information according to the identity verification code comprises:
decoupling the identity authentication information carried by the page when the detection tool is loaded to obtain the identification, the secret key and the expiration time of the detection tool contained in the identity authentication information;
verifying the identifier, the secret key and the expiration time of the detection tool contained in the identity verification information according to the identifier, the secret key and the expiration time of the detection tool contained in the identity verification code;
and when the identification, the secret key and the expiration time of the detection tool contained in the identity verification information are consistent with the identification, the secret key and the expiration time of the detection tool contained in the identity verification code, determining that the verification is passed.
13. The apparatus of claim 12, further comprising:
and the third processing module is used for responding to a third trigger operation of the user on the page, loading the detection tool, and acquiring and carrying the identity authentication information implanted in the detection tool.
14. The apparatus of claim 12, further comprising:
the fourth processing module is used for responding to fourth trigger operation of the user on the page, generating a detection mode closing request and sending the detection tool closing request to the test platform; the test platform is further configured to respond to the detection mode closing request and clear the identity verification information carried by the page when the detection tool is loaded.
15. An electronic device, comprising:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the page detection method of any of claims 1-4.
16. An electronic device, comprising:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the page detection method of any of claims 5-7.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processing means, carries out the page detection method according to any one of claims 1 to 4.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processing means, carries out the page detection method according to any one of claims 5 to 7.
CN201811312926.9A 2018-11-06 2018-11-06 Page detection method and device, electronic equipment and storage medium Active CN109491908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811312926.9A CN109491908B (en) 2018-11-06 2018-11-06 Page detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811312926.9A CN109491908B (en) 2018-11-06 2018-11-06 Page detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109491908A CN109491908A (en) 2019-03-19
CN109491908B true CN109491908B (en) 2021-12-10

Family

ID=65693878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811312926.9A Active CN109491908B (en) 2018-11-06 2018-11-06 Page detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109491908B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489276B (en) * 2019-07-25 2023-08-29 腾讯科技(深圳)有限公司 Disaster recovery method and device for verification service based on business page
CN110532186B (en) * 2019-08-29 2023-04-28 中国工商银行股份有限公司 Method, device, electronic equipment and storage medium for testing by using verification code
CN112764824B (en) * 2019-10-21 2023-10-10 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for triggering identity verification in application program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6460141B1 (en) * 1998-10-28 2002-10-01 Rsa Security Inc. Security and access management system for web-enabled and non-web-enabled applications and content on a computer network
CN102957690A (en) * 2012-09-26 2013-03-06 北京奇虎科技有限公司 Website security verification method and system
CN105337940A (en) * 2014-08-04 2016-02-17 优视科技有限公司 Page verification method, client, server and system
CN105991554A (en) * 2015-02-04 2016-10-05 阿里巴巴集团控股有限公司 Vulnerability detection method and equipment
CN106899445A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and system of page interface automatic test
CN107547524A (en) * 2017-08-09 2018-01-05 百度在线网络技术(北京)有限公司 A kind of page detection method, device and equipment
CN107733853A (en) * 2017-08-25 2018-02-23 上海壹账通金融科技有限公司 Page access method, apparatus, computer and medium
CN108055299A (en) * 2017-12-05 2018-05-18 迈普通信技术股份有限公司 Portal page push method, network access server and portal certification system
CN108681662A (en) * 2018-05-17 2018-10-19 阿里巴巴集团控股有限公司 A kind of method and device of installation procedure

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8381269B2 (en) * 2010-09-28 2013-02-19 College Of William And Mary System architecture and method for secure web browsing using public computers

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6460141B1 (en) * 1998-10-28 2002-10-01 Rsa Security Inc. Security and access management system for web-enabled and non-web-enabled applications and content on a computer network
CN102957690A (en) * 2012-09-26 2013-03-06 北京奇虎科技有限公司 Website security verification method and system
CN105337940A (en) * 2014-08-04 2016-02-17 优视科技有限公司 Page verification method, client, server and system
CN105991554A (en) * 2015-02-04 2016-10-05 阿里巴巴集团控股有限公司 Vulnerability detection method and equipment
CN106899445A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and system of page interface automatic test
CN107547524A (en) * 2017-08-09 2018-01-05 百度在线网络技术(北京)有限公司 A kind of page detection method, device and equipment
CN107733853A (en) * 2017-08-25 2018-02-23 上海壹账通金融科技有限公司 Page access method, apparatus, computer and medium
CN108055299A (en) * 2017-12-05 2018-05-18 迈普通信技术股份有限公司 Portal page push method, network access server and portal certification system
CN108681662A (en) * 2018-05-17 2018-10-19 阿里巴巴集团控股有限公司 A kind of method and device of installation procedure

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"Access control to web pages based on user browsing behavior";Chang Liu;《2017 IEEE 9th International Conference on Communication Software and Networks (ICCSN)》;20171221;第1016-1020页 *
"Internet-Marks: the secure seal for WWW site authentication";S. Honjo等;《Proceedings Seventh International Conference on Parallel and Distributed Systems: Workshops》;20020806;第393-398页 *
"基于灰盒测试的Web应用程序安全漏洞检测";栗国斌;《中国优秀硕士学位论文全文数据库•信息科技辑》;20131215;第2013年卷(第S2期);第I139-79页 *
"网页篡改检测系统的研究与实现";魏文晗;《中国优秀硕士学位论文全文数据库•信息科技辑》;20140215;第2014年卷(第2期);第I139-27页 *

Also Published As

Publication number Publication date
CN109491908A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN109491908B (en) Page detection method and device, electronic equipment and storage medium
CN108446211B (en) Browser exception collection method and device, mobile terminal and storage medium
CN106649126B (en) Method and device for testing application program
CN110933103A (en) Anti-crawler method, device, equipment and medium
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN115102744B (en) Data access method and device
CN110457049A (en) Realize method, apparatus, electronic equipment and the storage medium of plug-in unit automation
CN109818972B (en) Information security management method and device for industrial control system and electronic equipment
CN109947659B (en) System, method and apparatus for testing applications
CN110971482B (en) Back-end server detection method and device based on ebpf and electronic equipment
CN113961836A (en) Page jump method and device, electronic equipment and storage medium
CN111736919A (en) Buried point inspection method and device and electronic equipment
CN116662193A (en) Page testing method and device
CN109145591B (en) Plug-in loading method of application program
CN109714371B (en) Industrial control network safety detection system
CN111930736B (en) Data verification method and device
CN108471635B (en) Method and apparatus for connecting wireless access points
CN115412347A (en) Device login method, device and storage medium
CN109933990B (en) Multi-mode matching-based security vulnerability discovery method and device and electronic equipment
CN105791253B (en) Method and device for acquiring authentication information of website
CN112445697B (en) Method and apparatus for testing applications
KR20150024056A (en) Http(hypertext transfer protocol) message processing method and electronic device implementing the same
CN115391770A (en) Program monitoring method, device, electronic equipment and computer readable storage medium
CN115237816B (en) System function verification method and device, electronic equipment and readable storage medium
CN110851185A (en) Automatic configuration method and device for equipment, electronic equipment and storage medium

Legal Events

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