CN107844484A - A kind of method and apparatus for identifying exposure code - Google Patents

A kind of method and apparatus for identifying exposure code Download PDF

Info

Publication number
CN107844484A
CN107844484A CN201610828721.0A CN201610828721A CN107844484A CN 107844484 A CN107844484 A CN 107844484A CN 201610828721 A CN201610828721 A CN 201610828721A CN 107844484 A CN107844484 A CN 107844484A
Authority
CN
China
Prior art keywords
url
visited
pid
code
http
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
Application number
CN201610828721.0A
Other languages
Chinese (zh)
Other versions
CN107844484B (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201610828721.0A priority Critical patent/CN107844484B/en
Publication of CN107844484A publication Critical patent/CN107844484A/en
Application granted granted Critical
Publication of CN107844484B publication Critical patent/CN107844484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Abstract

The embodiments of the invention provide a kind of method and apparatus for identifying exposure code, this method includes:Obtain Web automated test tools URL to be visited;When the Web automated test tools access webpage corresponding to the URL to be visited, HTTP Http requests are monitored;During Http requests are monitored, it is determined that process identification (PID) corresponding with the URL to be visited, and determine exposure code corresponding with the Http requests of predetermined format and process identification (PID) corresponding with the exposure code;According to the URL to be visited and the corresponding relation of the process identification (PID), and the exposure code and the corresponding relation of the process identification (PID), it is determined that corresponding with the URL to be visited expose code.Browser process mark can not directly be obtained by solving when Web automated test tools open browser in the prior art, lead to not obtain the Web automated test tools in caused the problem of exposing code during accessing webpage.

Description

A kind of method and apparatus for identifying exposure code
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of method and apparatus for identifying exposure code.
Background technology
WebDriver (being a kind of Web automated test tools) open after browser by WindowsHandles and CurrentWindowHandle property control browsers.But the two attributes are GUID (Globally Unique Identifier, GUID) form, WebDriver encapsulates the real window of browser by certain technology Handle.Therefore, occur WebDriver can not confirm open be which browser on earth, also can not just exposed It is the exposure code triggered during which WebDriver is paid a return visit on earth to be corresponded to after code.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on The method and apparatus for stating the identification exposure code of problem.
First aspect, there is provided a kind of method for identifying exposure code, methods described include:
Obtain Web automated test tools URL to be visited;
When the Web automated test tools access webpage corresponding to the URL to be visited, Http requests are monitored;
During Http requests are monitored, it is determined that process identification (PID) corresponding with the URL to be visited, and determine with Exposure code corresponding to the Http requests of predetermined format and process identification (PID) corresponding with the exposure code;
According to the URL to be visited and the corresponding relation of the process identification (PID), and the exposure code and it is described enter The corresponding relation of journey mark, it is determined that corresponding with the URL to be visited expose code.
Alternatively, the monitoring Http requests, including:
Start the instrument of monitoring Http requests, the Http is monitored by the instrument of monitoring Http requests and asked.
Alternatively, during Http requests are monitored, it is determined that process identification (PID) corresponding with the URL to be visited, with And exposure code corresponding with the Http requests of predetermined format and process identification (PID) corresponding with the exposure code are determined, including:
During Http requests are monitored, process identification (PID) corresponding with the URL to be visited is recorded;
From listen to Http request in filter out it is corresponding with the Http of predetermined format requests exposure code, and determination and Process identification (PID) corresponding to the exposure code.
Alternatively, after obtaining Web automated test tools URL to be visited, methods described also includes:
By the URL records to be visited in lists.
Alternatively, the Web automated test tools are Webdriver, and the instrument of the monitoring Http requests is FiddlerCore。
Second aspect, additionally provides a kind of device for identifying exposure code, and described device includes:
Acquisition module, the URL to be visited for obtaining Web automated test tools;
Module is monitored, for when the Web automated test tools access webpage corresponding to the URL to be visited, Monitor Http requests;
First determining module, for monitor Http request during, it is determined that it is corresponding with the URL to be visited enter Journey identifies, and during Http requests are monitored, it is determined that process identification (PID) corresponding with the URL to be visited, and really Fixed exposure code corresponding with the Http requests of predetermined format and process identification (PID) corresponding with the exposure code;
Second determining module, for the corresponding relation according to the URL to be visited and the process identification (PID), and it is described Code and the corresponding relation of the process identification (PID) are exposed, it is determined that corresponding with the URL to be visited expose code.
Alternatively, the monitoring module, it is further used for starting the instrument of monitoring Http requests, passes through the monitoring Http The instrument of request monitors the Http requests.
Alternatively, first determining module, it is further used for during Http requests are monitored, record is treated with described Process identification (PID) corresponding to the URL of access;And filtered out from the Http requests listened to and the Http of predetermined format requests pair The exposure code answered, and determine process identification (PID) corresponding with the exposure code.
Alternatively, described device also includes:
Logging modle, for the URL to be visited to be recorded in lists.
Alternatively, it is characterised in that the Web automated test tools are Webdriver, the monitoring Http requests Instrument is FiddlerCore.
By above-mentioned technical proposal, the method and apparatus of identification exposure code provided in an embodiment of the present invention, Web is obtained certainly Dynamicization testing tool URL to be visited;When webpage corresponding to URL to be visited is accessed in Web automated test tools, monitor Http is asked;During Http requests are monitored, it is determined that process identification (PID) corresponding with URL to be visited, and determine with it is pre- Exposure code corresponding to the Http requests for the formula that fixes and process identification (PID) corresponding with exposure code;Then, wait to visit according to determination The URL and the corresponding relation of process identification (PID) and exposure code and the corresponding relation of process identification (PID) asked, can identify that Web is automated Testing tool caused exposure code during webpage is accessed, so that it is determined that it is to be visited to go out the access of Web automated test tools URL corresponding to webpage process it is total caused by exposure code, solve Web automated test tools in the prior art and open and browse Browser process mark can not be directly obtained when device, leads to not obtain the Web automated test tools in access webpage During it is caused exposure code the problem of.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is the flow chart of the method for the identification exposure code of the first embodiment of the present invention;
Fig. 2 is one of device block diagram of identification exposure code of the second embodiment of the present invention;
Fig. 3 is the two of the device block diagram of the identification exposure code of the second embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be to be used for object as region class, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so that embodiments of the invention described here can be with except illustrating herein Or the order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, such as series of steps or unit, but may include not list clearly or for these Other intrinsic steps of process, method, product or equipment or unit.
It should be noted that in the case where not conflicting, the feature in embodiments of the invention and embodiment can phase Mutually combination.Describe technical scheme in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Description below is done to technical term involved in the embodiment of the present invention:
WebDriver:It is a kind of Web automated test tools, whether is performed like that as expected for proving program, can With using chrome, firebox, IE browser carry out web tests, it can with analog subscriber clickthrough, fill in list, click on Button etc..When carrying out Web tests using WebDriver, it is when client writes scripted code, controls client browser page The operations such as input through keyboard and mouse click on face, then some attributes for capturing operating result element pass through as returning result Judge whether returning result unanimously carrys out decision procedure operation correctness with expected.
Process identification (PID) (or referred to as process ID, ProcessID (PID)):Be most of operating systems kernel be used for only One numerical value of one identification process, the numerical value can be as the parameters of function call, so that adjustment process priority, termination process Etc Process flowchart behavior be referred to as may.
Expose code:Refer to that web page element (such as an advertisement material) shows that is triggered services to monitoring on webpage The Http requests for the specific format that device is sent, such as:Webpage can initiate to monitoring server while advertisement exposure on webpage An intended pixel size picture request, the exposure code can be used for count advertisement light exposure, it is necessary to explanation, The specific form of the exposure code is not limited in the present embodiment.
FiddlerCore, it is the C#DLL that packet catcher Fiddler is provided.The DLL can be registered BeforeRequest, BeforeResponse two events dynamically change packet.Its principle is by creating HTTP Proxy Come packet capturing and modification packet.Fiddler is that a http protocol debugging acts on behalf of instrument, and it is able to record and checks all computers Between internet http communication, set breakpoint, check all " disengaging " Fiddler data (refer to cookie, html, The files such as js, css).
First embodiment
Fig. 1 is the identification Web automated test tools according to embodiments of the present invention caused exposure during webpage is accessed The flow chart of the method for light code, as shown in figure 1, this method can include the steps:
Step 101, Web automated test tools URL (URL) to be visited is obtained, subsequently into step 102;
Above-mentioned Web automated test tools can be used for webpage and pay a return visit test, and alternatively, Web automated test tools are Webdriver, Webdriver are a kind of Ruby storehouses based on Ruby language developments.It can use chrome, firefox, IE Browser carries out web tests, and it can fill in list with analog subscriber clickthrough, click on button etc..Web automatic test works Tool can also be that (full name is by SELENIUM (being the strong tools of an integration testing of thoughtworks companies), WATIR " Web Application Testing in Ruby ", it is a kind of automated function test instrument based on webpage pattern) etc., Certainly it should be noted that not limiting the particular type of Web automated test tools specifically in the present embodiment.
Above-mentioned URL to be visited is it can be appreciated that be the URL that Web automated test tools pay a return visit webpage, such as the net Page can be the webpage (such as homepage) of portal website, the webpage of enterprise web site, the webpage etc. of government website.
Alternatively, can also be by URL records to be visited in lists after above-mentioned steps 101.
Step 102, when Web automated test tools access webpage corresponding to URL to be visited, it is (super literary to monitor Http This host-host protocol) request, subsequently into step 103;
Above-mentioned Http requests refer to the request message from client to server end, and the request message can include:Message In first trip, the identifier of requesting method, resource to resource and the agreement that uses etc..
Alternatively, the instrument of existing monitoring Http requests can be used to monitor Http requests in the present embodiment.Specifically Ground, when webpage corresponding to URL to be visited is accessed in Web automated test tools, start the instrument of monitoring Http requests, pass through The instrument for monitoring Http requests monitors Http requests, and the instrument of above-mentioned monitoring Http requests can be FiddlerCore, certainly It is not limited to this.
Step 103, during Http requests are monitored, it is determined that process identification (PID) corresponding with URL to be visited, and really Fixed exposure code corresponding with the Http requests of predetermined format and process identification (PID) corresponding with exposure code, subsequently into step 104;
Alternatively, monitor Http request during, can use existing mode by monitor Http request work Tool determines process identification (PID) corresponding with URL to be visited, and the instrument of above-mentioned monitoring Http requests can be FiddlerCore, when So it is also not limited to this.When webpage corresponding to URL to be visited is accessed in Web automated test tools, one can be started and browsed Device applies (such as chome, firefox, IE browser etc.), the corresponding unique process identification (PID) of the browser application, such as Can be in one application process of globally unique identifier with a triple in network service:(agreement, local address, local port Number), be also not limited to this certainly, the process identification (PID) based on the browser application can determine it is corresponding with URL to be visited enter Journey identifies.
Alternatively, monitor Http request during, can use existing mode by monitor Http request work Tool determines exposure code corresponding with the Http requests of predetermined format and process identification (PID) corresponding with exposure code, above-mentioned exposure generation Code can be the Http requests of specific format, monitor the instrument of Http requests in step 103 and can be asked from the Http listened to The exposure code is filtered out in asking, process identification (PID) corresponding with the exposure code, above-mentioned prison are then determined using existing mode The instrument for surveying Http requests can be FiddlerCore, be also not limited to this certainly.Such as with a triple in network service Can be in one application process of globally unique identifier:(agreement, local address, local port number), is also not limited to this certainly.
Step 104, the corresponding relation according to URL to be visited and process identification (PID), and exposure code and process identification (PID) Corresponding relation, it is determined that corresponding with URL to be visited expose code.
Specifically, according to the URL to be visited and the corresponding relation of process identification (PID) and exposure generation determined in above-mentioned steps 103 Code and the corresponding relation of process identification (PID), can identify the caused exposure during webpage is accessed of Web automated test tools Code, so that it is determined that going out Web automated test tools accesses the total caused exposure generation of webpage process corresponding to URL to be visited Code, browser process mark can not directly be obtained when Web automated test tools open browser in the prior art by solving Know, lead to not obtain the Web automated test tools in caused the problem of exposing code during accessing webpage.
Second embodiment
Referring to Fig. 2, a kind of identification Web automated test tools caused exposure during webpage is accessed is shown in figure The device 200 of code, the device 200 include:Acquisition module 201, monitor module 202, the first determining module 203 and the second determination Module 204, wherein:
Acquisition module 201, the URL to be visited for obtaining the Web automated test tools;Alternatively, Web is automated Testing tool is Webdriver, and Webdriver is a kind of Ruby storehouses based on Ruby language developments.It can use chrome, Firefox, IE browser carry out web tests, and it can fill in list with analog subscriber clickthrough, click on button etc..Certainly need It is noted that do not limit the particular type of Web automated test tools specifically in the present embodiment;It is above-mentioned to be visited URL is it can be appreciated that be the URL that Web automated test tools pay a return visit webpage, such as the webpage can be the net of portal website Page (such as homepage), the webpage of enterprise web site, the webpage etc. of government website;
Module 202 is monitored, for accessing webpage corresponding to the URL to be visited in the Web automated test tools When, monitor Http requests;Alternatively, module 202 is monitored, is further used for starting the instrument of monitoring Http requests, by described The instrument for monitoring Http requests monitors the Http requests.Above-mentioned Http requests refer to that the request from client to server end disappears Breath, the request message can include:In message first trip, the identifier of requesting method, resource to resource and the agreement that uses etc.;
First determining module 203, during being asked in monitoring Http, it is determined that corresponding with the URL to be visited Process identification (PID), and during Http requests are monitored, it is determined that process identification (PID) corresponding with the URL to be visited, with And determine exposure code corresponding with the Http requests of predetermined format and process identification (PID) corresponding with the exposure code;It is optional Ground, the first determining module 203, it is further used for during Http requests are monitored, record is corresponding with the URL to be visited Process identification (PID);And exposure code corresponding with the Http of predetermined format requests is filtered out from the Http requests listened to, And determine process identification (PID) corresponding with the exposure code.
Second determining module 204, for the corresponding relation according to the URL to be visited and the process identification (PID), and The exposure code and the corresponding relation of the process identification (PID), it is determined that corresponding with the URL to be visited expose code.Second The URL to be visited and corresponding relation and the exposure of process identification (PID) that determining module 204 can determine according to the first determining module 203 Code and the corresponding relation of process identification (PID), identify Web automated test tools caused exposure generation during webpage is accessed Code, so that it is determined that going out Web automated test tools accesses the total caused exposure code of webpage process corresponding to URL to be visited, Browser process mark can not directly be obtained by solving when Web automated test tools open browser in the prior art, Lead to not obtain the Web automated test tools in caused the problem of exposing code during accessing webpage.
Alternatively, on the basis of Fig. 2, device 200 also includes:Logging modle 205, referring to Fig. 3.
Logging modle 205, for the URL to be visited to be recorded in lists.
The device of Web automated test tools caused exposure code during webpage is accessed is identified in the present embodiment The each process realized in Fig. 1 embodiment of the method can be realized, to avoid repeating, no longer applies state herein.
The device for determining page issuing time includes processor and memory, above-mentioned acquisition module, monitoring module, the One determining module, the second determining module, logging modle etc. are defined as program unit storage in memory, by computing device Storage said procedure unit in memory realizes corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can set one Or more, determine that Web automated test tools access webpage corresponding to URL to be visited by adjusting kernel parameter to realize Exposure code caused by process is total.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
The device of identification exposure code provided in an embodiment of the present invention, it is to be visited can to obtain Web automated test tools URL;When webpage corresponding to URL to be visited is accessed in Web automated test tools, Http requests are monitored;Monitoring Http During request, it is determined that process identification (PID) corresponding with URL to be visited, and determine corresponding with the Http requests of predetermined format Exposure code and with the corresponding process identification (PID) of exposure code;Then, according to the URL to be visited of determination and pair of process identification (PID) It should be related to and expose code and the corresponding relation of process identification (PID), can identify that Web automated test tools are accessing webpage mistake Caused exposure code in journey, so that it is determined that it is total to go out webpage process corresponding to Web automated test tools access URL to be visited Caused exposure code, solving can not directly obtain when Web automated test tools open browser in the prior art Browser process identifies, and leads to not obtain the Web automated test tools caused exposure code during webpage is accessed The problem of.
Present invention also provides a kind of computer program product, when being performed on data processing equipment, is adapted for carrying out just The program code of beginningization there are as below methods step:Obtain Web automated test tools URL to be visited;Automated in the Web When testing tool accesses webpage corresponding to the URL to be visited, Http requests are monitored;During Http requests are monitored, It is determined that process identification (PID) corresponding with the URL to be visited, and determine exposure generation corresponding with the Http requests of predetermined format Code and process identification (PID) corresponding with the exposure code;According to the URL to be visited and the corresponding relation of the process identification (PID), And the exposure code and the corresponding relation of the process identification (PID), it is determined that corresponding with the URL to be visited expose code.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Embodiments herein is these are only, is not limited to the application.To those skilled in the art, The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent substitution, Improve etc., it should be included within the scope of claims hereof.

Claims (10)

  1. A kind of 1. method for identifying exposure code, it is characterised in that methods described includes:
    Obtain Web automated test tools URL to be visited;
    When the Web automated test tools access webpage corresponding to the URL to be visited, Http requests are monitored;
    During Http requests are monitored, it is determined that process identification (PID) corresponding with the URL to be visited, and determine and make a reservation for Exposure code corresponding to the Http requests of form and process identification (PID) corresponding with the exposure code;
    According to the URL to be visited and the corresponding relation of the process identification (PID), and the exposure code and the process mark The corresponding relation of knowledge, it is determined that corresponding with the URL to be visited expose code.
  2. 2. according to the method for claim 1, it is characterised in that the monitoring Http requests, including:
    Start the instrument of monitoring Http requests, the Http is monitored by the instrument of monitoring Http requests and asked.
  3. 3. according to the method for claim 2, it is characterised in that during Http requests are monitored, it is determined that being treated with described Process identification (PID) corresponding to the URL of access, and determine it is corresponding with the Http requests of predetermined format expose code and with the exposure Process identification (PID) corresponding to light code, including:
    During Http requests are monitored, process identification (PID) corresponding with the URL to be visited is recorded;
    From listen to Http request in filter out it is corresponding with the Http of predetermined format requests expose code, and determination with it is described Expose process identification (PID) corresponding to code.
  4. 4. according to the method for claim 1, it is characterised in that obtain Web automated test tools URL to be visited Afterwards, methods described also includes:
    By the URL records to be visited in lists.
  5. 5. according to the method described in any one of claim 2~4, it is characterised in that:
    The Web automated test tools are Webdriver, and the instrument of the monitoring Http requests is FiddlerCore.
  6. 6. a kind of device for identifying exposure code, it is characterised in that described device includes:
    Acquisition module, the URL to be visited for obtaining Web automated test tools;
    Module is monitored, for when the Web automated test tools access webpage corresponding to the URL to be visited, monitoring Http is asked;
    First determining module, during being asked in monitoring Http, it is determined that process mark corresponding with the URL to be visited Know, and during Http requests are monitored, it is determined that process identification (PID) corresponding with the URL to be visited, and determine with Exposure code corresponding to the Http requests of predetermined format and process identification (PID) corresponding with the exposure code;
    Second determining module, for the corresponding relation according to the URL to be visited and the process identification (PID), and the exposure Code and the corresponding relation of the process identification (PID), it is determined that corresponding with the URL to be visited expose code.
  7. 7. device according to claim 6, it is characterised in that the monitoring module, be further used for starting monitoring Http The instrument of request, the Http is monitored by the instrument of monitoring Http requests and asked.
  8. 8. device according to claim 7, it is characterised in that first determining module, be further used for monitoring During Http is asked, process identification (PID) corresponding with the URL to be visited is recorded;And from the Http requests listened to Exposure code corresponding with the Http of predetermined format requests is filtered out, and determines process identification (PID) corresponding with the exposure code.
  9. 9. device according to claim 6, it is characterised in that described device also includes:
    Logging modle, for the URL to be visited to be recorded in lists.
  10. 10. according to the device described in any one of claim 7~9, it is characterised in that the Web automated test tools are Webdriver, the instrument of the monitoring Http requests is FiddlerCore.
CN201610828721.0A 2016-09-18 2016-09-18 Method and device for identifying exposure code Active CN107844484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610828721.0A CN107844484B (en) 2016-09-18 2016-09-18 Method and device for identifying exposure code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610828721.0A CN107844484B (en) 2016-09-18 2016-09-18 Method and device for identifying exposure code

Publications (2)

Publication Number Publication Date
CN107844484A true CN107844484A (en) 2018-03-27
CN107844484B CN107844484B (en) 2021-07-16

Family

ID=61657229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610828721.0A Active CN107844484B (en) 2016-09-18 2016-09-18 Method and device for identifying exposure code

Country Status (1)

Country Link
CN (1) CN107844484B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870559A (en) * 1996-10-15 1999-02-09 Mercury Interactive Software system and associated methods for facilitating the analysis and management of web sites
CN101772778A (en) * 2007-08-10 2010-07-07 怡斯福乐株式会社 System for managing customized advertisement using indicator on webpage
US7849193B1 (en) * 2007-02-01 2010-12-07 Adobe Systems Incorporated Multiple hyperlinks in a uniform resource locator
US8340408B2 (en) * 2009-02-27 2012-12-25 Yahoo! Inc. Automatic page layout validation
CN103268361A (en) * 2013-06-07 2013-08-28 百度在线网络技术(北京)有限公司 Extracting method, device and system of hidden URL (Uniform Resource Locator) in webpage
CN103268562A (en) * 2013-05-23 2013-08-28 中国科学院计算机网络信息中心 Internet advertisement audience population ascribed characteristic monitoring method and system
CN104063310A (en) * 2013-03-22 2014-09-24 阿里巴巴集团控股有限公司 WEB front end quality detection method and device
CN105791077A (en) * 2014-12-24 2016-07-20 北京秒针信息咨询有限公司 Method and apparatus for collecting statistics about email advertisement viewing indicator

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870559A (en) * 1996-10-15 1999-02-09 Mercury Interactive Software system and associated methods for facilitating the analysis and management of web sites
US7849193B1 (en) * 2007-02-01 2010-12-07 Adobe Systems Incorporated Multiple hyperlinks in a uniform resource locator
CN101772778A (en) * 2007-08-10 2010-07-07 怡斯福乐株式会社 System for managing customized advertisement using indicator on webpage
US8340408B2 (en) * 2009-02-27 2012-12-25 Yahoo! Inc. Automatic page layout validation
CN104063310A (en) * 2013-03-22 2014-09-24 阿里巴巴集团控股有限公司 WEB front end quality detection method and device
CN103268562A (en) * 2013-05-23 2013-08-28 中国科学院计算机网络信息中心 Internet advertisement audience population ascribed characteristic monitoring method and system
CN103268361A (en) * 2013-06-07 2013-08-28 百度在线网络技术(北京)有限公司 Extracting method, device and system of hidden URL (Uniform Resource Locator) in webpage
CN105791077A (en) * 2014-12-24 2016-07-20 北京秒针信息咨询有限公司 Method and apparatus for collecting statistics about email advertisement viewing indicator

Also Published As

Publication number Publication date
CN107844484B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN111221743B (en) Automatic test method and system
US8977739B2 (en) Configurable frame work for testing and analysis of client-side web browser page performance
US20070271375A1 (en) Method and apparatus for monitoring real users experience with a website capable of using service providers and network appliances
US10362086B2 (en) Method and system for automating submission of issue reports
US11012339B2 (en) Web site reachability management for content browsing
JP5980430B2 (en) Method, apparatus, computer program product, and computer program for managing a data cache for a computer system (managing a data cache for a computer system)
CN103618696B (en) Method and server for processing cookie information
CN107092535B (en) Method and apparatus for data storage of test interface
CN110968760A (en) Webpage data crawling method and device, and webpage login method and device
CN111177519A (en) Webpage content acquisition method and device, storage medium and equipment
CN112131504A (en) Webpage editing and displaying method, device, equipment and storage medium
CN113342689A (en) Automatic testing method and device for interface, electronic equipment and storage medium
CN111858255A (en) User behavior acquisition method based on screenshot and related equipment
CN112256984B (en) Method and device for acquiring interface background screenshot corresponding to webpage
CN113114794A (en) Method and device for processing domain name based on secondary proxy
CN107239475B (en) File calling method and device
CN107992416A (en) A kind of definite method and device of webpage time delay
CN111241547B (en) Method, device and system for detecting override vulnerability
CN108268369A (en) Test data acquisition methods and device
CN107844484A (en) A kind of method and apparatus for identifying exposure code
US7873715B1 (en) Optimized instrumentation of web pages for performance management
CN112738221B (en) Auditing method and device for object storage flow
CN114637508A (en) VUE-based label parameter transfer method, device, equipment and storage medium
CN112363944A (en) Method and equipment for comparing return values of multiple environment interfaces
CN106407109A (en) Automatic test method and device for realizing popularization information control

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