CN109002550B - Test method and device for reduction equipment - Google Patents

Test method and device for reduction equipment Download PDF

Info

Publication number
CN109002550B
CN109002550B CN201810857021.3A CN201810857021A CN109002550B CN 109002550 B CN109002550 B CN 109002550B CN 201810857021 A CN201810857021 A CN 201810857021A CN 109002550 B CN109002550 B CN 109002550B
Authority
CN
China
Prior art keywords
content
terminal
url
test
server
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.)
Expired - Fee Related
Application number
CN201810857021.3A
Other languages
Chinese (zh)
Other versions
CN109002550A (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 Mesh Technology Co ltd
Original Assignee
Xiamen Wangsu 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 Xiamen Wangsu Co Ltd filed Critical Xiamen Wangsu Co Ltd
Priority to CN201810857021.3A priority Critical patent/CN109002550B/en
Publication of CN109002550A publication Critical patent/CN109002550A/en
Application granted granted Critical
Publication of CN109002550B publication Critical patent/CN109002550B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application relates to the technical field of communication, in particular to a test method and a test device for recovery equipment. In the embodiment of the application, after the terminal acquires the URL of the content to be detected which is shielded by the shielding plug-in the test webpage and is not reduced by the reduction equipment, the terminal transmits the first request to the server, and under the condition that the shielding plug-in is not arranged, the terminal acquires the content to be detected from the first response transmitted by the server, so that the terminal can determine whether the content which cannot be reduced by the reduction equipment is the content which should be reduced by the reduction equipment according to whether the attribute information of the content to be detected accords with the preset attribute information, the reduction capability of the equipment can be accurately reduced, technical personnel do not need to determine the reduction capability of the reduction equipment through comparison of naked eyes, and the work complexity of the technical personnel is reduced.

Description

Test method and device for reduction equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a test method and a test device for recovery equipment.
Background
Most internet websites insert a certain amount of advertisements into the web pages in order to pursue the income of the website, and the advertisements are loaded when a user visits the web pages with the advertisements in the website. With the increasing growth of web page advertising services, users usually use some advertising shielding plug-ins to shield advertisements in order to protect the advertisements, and the advertising shielding plug-ins result in the loss of advertisement display amount. In order to ensure the display quantity of the advertisements put into by advertisers, reduction equipment for reducing the advertisements shielded by the advertisement shielding plug-in is available on the market, and the reduction equipment can enable the displayed advertisements to bypass the shielding of the advertisement shielding plug-in, so that the advertisements can be played normally. However, the existing reduction plants are still immature, and the reduction capacity of the reduction plants is still being extensively tested by the skilled person.
In the prior art, after the technical personnel use the reduction equipment to reduce the advertisement shielded by the advertisement shielding plug-in, whether the advertisement is reduced or not is judged in a naked eye mode, so that the complexity of the work of the technical personnel is increased.
Disclosure of Invention
The embodiment of the application provides a testing method and a testing device for reduction equipment, which are used for reducing the work complexity of technicians and improving the work efficiency.
The embodiment of the application provides a test method for reduction equipment, which comprises the following steps: the terminal acquires a Uniform Resource Locator (URL) of the content to be detected; the content to be tested is the content which is shielded by the shielding plug-in the test webpage and is not restored by the restoring equipment; the terminal sends a first request to the server; the first request comprises a URL of the content to be tested; the method comprises the steps that under the condition that a shielding plug-in is not arranged, a terminal obtains content to be detected from a first response sent by a server; and the terminal determines the reduction capability of the reduction equipment according to whether the attribute information of the content to be detected conforms to the preset attribute information.
Optionally, the attribute information of the content to be tested includes at least one of the following items: the format of the content, the data size of the content or keywords in a domain name corresponding to the content; the attribute information conforms to preset attribute information and comprises one or more of the following items: the format of the content conforms to a preset format; the data volume of the content is not less than the preset data volume; and combining the key characters in the domain name corresponding to the content with preset keys.
Optionally, before the terminal acquires the URL of the content to be detected, the method further includes: the terminal acquires the URL of the test webpage; the terminal sends a second request to the server; the second request comprises the URL of the test webpage; the terminal displays a test webpage according to a second response which is sent by the server and restored by the restoring equipment under the condition that the shielding plug-in is arranged; and if the content which is not displayed on the display screen exists in the test webpage, the terminal determines that the content is the content to be tested.
Optionally, the second request is directed to the restoring device by the terminal in a hosts manner, and then forwarded to the server.
Optionally, the obtaining, by the terminal, the URL of the test web page includes: the terminal classifies the web pages in the website according to the characteristic information of the URL of the web pages; and determining one webpage in each type of webpages as a test webpage, and acquiring the URL of the test webpage.
Optionally, the feature information includes path information of a URL of the test web page.
Optionally, before the terminal sends the second request to the server, the method further includes: and the terminal deletes the cache of the test webpage on the browser used for testing.
The embodiment of the application provides a testing arrangement to reduction equipment, and the device includes: the processing unit is used for acquiring a Uniform Resource Locator (URL) of the content to be detected; the content to be tested is the content which is shielded by the shielding plug-in the test webpage and is not restored by the restoring equipment; a receiving unit, configured to send a first request to a server; the first request comprises a URL of the content to be tested; the processing unit is also used for receiving a first response sent by the server through the receiving unit to acquire the content to be tested under the condition that the shielding plug-in is not arranged; and determining the reduction capability of the reduction equipment according to whether the attribute information of the content to be detected conforms to the preset attribute information.
Optionally, the attribute information of the content to be tested includes at least one of the following items: the format of the content, the data size of the content or keywords in a domain name corresponding to the content; the attribute information conforms to preset attribute information and comprises one or more of the following items: the format of the content conforms to a preset format; the data volume of the content is not less than the preset data volume; and combining the key characters in the domain name corresponding to the content with preset keys.
Optionally, the system further comprises a display unit; the processing unit is also used for acquiring the URL of the test webpage; the sending unit is also used for sending a second request to the server; the second request comprises the URL of the test webpage; the display unit is used for displaying the test webpage according to a second response which is sent by the receiving unit from the server and passes through the restoration device under the condition that the shielding plug-in is arranged; and the processing unit is also used for determining the content as the content to be tested if the content which is not displayed on the display screen exists in the test webpage.
Optionally, the second request is directed to the restoring device by the terminal in a hosts manner, and then forwarded to the server.
Optionally, the processing unit is specifically configured to: classifying the web pages in the website according to the characteristic information of the URL of the web pages; and determining one webpage in each type of webpages as a test webpage, and acquiring the URL of the test webpage.
Optionally, the feature information includes path information of a URL of the test web page.
Optionally, the processing unit is further configured to: and deleting the cache of the test webpage on the browser used for testing.
Embodiments of the present application provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to implement performing any of the above methods.
An embodiment of the present application provides a computer device, including: a memory for storing program instructions; and the processor is used for calling the program instructions stored in the memory and executing any method according to the obtained program.
In the embodiment of the application, after the terminal acquires the URL of the content to be detected which is shielded by the shielding plug-in the test webpage and is not reduced by the reduction equipment, the terminal transmits the first request to the server, and under the condition that the shielding plug-in is not arranged, the terminal acquires the content to be detected from the first response transmitted by the server, so that the terminal can determine whether the content which cannot be reduced by the reduction equipment is the content which should be reduced by the reduction equipment according to whether the attribute information of the content to be detected accords with the preset attribute information, so that the reduction capability of the reduction equipment can be determined, technical personnel do not need to determine the reduction capability of the reduction equipment through comparison of naked eyes, the work complexity of the technical personnel is reduced, and meanwhile, the work efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a suitable system architecture according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a testing method for reduction equipment according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a testing method for reduction equipment according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a testing apparatus for reduction equipment according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and beneficial effects of the present application more clear and more obvious, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 exemplarily shows a system architecture diagram applicable to the embodiment of the present invention, as shown in fig. 1, which includes a terminal 101, a restoring device 102, and a server 103, after the terminal 101 obtains a URL of a test web page, the terminal 101 may send a second request to the restoring device 102 through a redirection technique, where the second request is an access request, and the restoring device 102 forwards the second request to the server 103. The server 103 returns the second response to the restoring device 102, and the restoring device 102 may analyze the resource included in the second response, restore the resource according to the rule of the shielding plug-in, and finally return the content included in the second response and the restored content to the terminal 101. The terminal 101 displays the test web page, and if the content which is not displayed on the display screen exists in the test web page, the terminal 101 determines that the content is the content to be tested. Further, the terminal 101 obtains a uniform resource locator URL of the content to be detected, and may send a first request to the server 102, and the terminal 101 obtains the content to be detected from a first response sent by the server 102 under the condition that the shielding plugin is not set, and determines the restoring capability of the restoring device according to whether the attribute information of the content to be detected meets preset attribute information.
Alternatively, the terminal 101 may be a desktop computer, a notebook computer, a mobile phone, a palm computer, or the like.
In the embodiment of the present application, the shielding plug-in and the restoring device may be targeted, for example, the shielding plug-in may be an advertisement shielding plug-in or a keyword shielding plug-in, and the restoring device may be an advertisement restoring device or a keyword restoring device.
Fig. 2 exemplarily shows a schematic flowchart of a testing method for a reduction device, which is applicable to the embodiment of the present application, and as shown in fig. 2, the testing method includes:
step 201, a terminal acquires a Uniform Resource Locator (URL) of content to be tested, wherein the content to be tested is content which is shielded by a shielding plug-in a test webpage and is not restored by restoring equipment;
step 202, a terminal sends a first request to a server; the first request comprises a URL of the content to be tested;
step 203, the terminal obtains the content to be tested from the first response sent by the server under the condition that the shielding plug-in is not arranged;
and 204, the terminal determines the reduction capability of the reduction equipment according to whether the attribute information of the content to be detected accords with the preset attribute information.
In the embodiment of the application, after the terminal acquires the URL of the content to be detected which is shielded by the shielding plug-in the test webpage and is not reduced by the reduction equipment, the terminal transmits the first request to the server, and under the condition that the shielding plug-in is not arranged, the terminal acquires the content to be detected from the first response transmitted by the server, so that the terminal can determine whether the content which cannot be reduced by the reduction equipment is the content which should be reduced by the reduction equipment according to whether the attribute information of the content to be detected accords with the preset attribute information, the reduction capability of the equipment can be accurately reduced, technical personnel do not need to determine the reduction capability of the reduction equipment through comparison of naked eyes, the work complexity of the technical personnel is reduced, and meanwhile the work efficiency is improved.
Step 201 and step 203 illustrate steps after it is determined that the content shielded by the shielded plug-in and not restored by the restoring device exists in the test webpage, then before step 201, the embodiment of the present application first describes determining whether the content shielded by the shielded plug-in and not restored by the restoring device exists in the test webpage. In an alternative embodiment, the terminal may obtain the URL of the test web page, and send a second request to the server, where the second request includes the URL of the test web page. And under the condition that the shielding plug-in is arranged, the terminal displays the test webpage according to a second response which is sent by the server and is restored by the restoring equipment, and if the content which is not displayed on the display screen exists in the test webpage, the terminal determines that the content which is not displayed on the display screen is the content to be tested. The above embodiments will be specifically described below.
First, how the terminal obtains the URL of the test website is described. After determining the website to be tested, in an alternative embodiment, the terminal may obtain the URL of the webpage on the website through a crawler script. For example, if the website is an online character, the first-level webpage may be a top page of the online character, the second-level webpage may be a webpage … … presented after any link (including pictures, characters, etc.) on the top page is clicked, and so on. Since the number of web pages on a website is huge, the web pages in the embodiment of the present application may be all secondary web pages. Therefore, the terminal acquires the URLs of the webpages on the website through the crawler script, namely acquiring the URLs of all secondary webpages on the website.
In a first optional implementation manner of determining the test web page, the terminal may determine all secondary web pages on the website as the test web pages, and obtain URLs of the test web pages, so that a subsequent terminal sends a second request to the server according to the URLs of the test web pages.
In a second optional implementation manner of determining a test webpage, since the number of secondary webpages on a website is huge and information of different secondary webpages may be repeated, in order to reduce workload of the terminal, the terminal may classify webpages in the website according to feature information of URLs of the webpages, that is, the terminal may classify the secondary webpages. Optionally, the feature information includes path information of a URL of the test web page. For example, can bewww.test.con/photo/1.jpgAndwww.test.con/photo/112233.jpgfall into a category, because all carry the photo characteristic information, canwww.test.con/news/112233.htmlAnd after the news … … terminal classifies all secondary web pages into a plurality of categories according to the preset rule, the terminal can determine one web page in each category of web pages as a test web page and acquire the URL of the test web page so that a subsequent terminal can send a second request to the server according to the URL of the test web page.
According to the method and the device, the content in the test webpage is restored through the restoring device according to the rule of the shielding plug-in, and then the restoring capability of the restoring device is determined through shielding of the shielding plug-in on the browser of the terminal, so that before the terminal sends a second request to the server, some modules, such as a loading monitoring module and the shielding plug-in, can be loaded on the browser of the terminal. The terminal sends the second request to the reduction equipment in a hosts mode, so that the reduction equipment receives the second request and forwards the second request to the server. The server receives the second request and then feeds back a second response, the second response must pass through the restoring device, so that the restoring device can analyze the content in the second response, restore some content in the second response according to the rule of the shielding plug-in, and then send the second response and the content restored by the restoring device to the terminal, so that the content restored by the restoring device can be displayed on a display screen of the terminal, and subsequent analysis can be performed on the basis.
Optionally, the shielding plugin may be an adblock or adblock plus plugin, and the shielding plugin may be selected from shielding plugins released by different companies.
In addition, if a test webpage is cached in a browser for testing on the terminal, even if the terminal sends a second request corresponding to the test webpage to the server, the terminal does not send the second request to the server to obtain the test webpage, but directly extracts the test webpage from the cache, so that the test webpage is not shielded by the shielding plug-in and cannot be restored by the restoring equipment, and the technical scheme of the application is deviated. In order to prevent this, in an alternative embodiment, the terminal may delete the cache of the test web page on the browser used for the test; or the terminal can delete the cache of all the web pages of the website on the browser used for testing.
In an optional implementation manner, the terminal generates the second request according to the URL of the test webpage, where the URL is a URL path of the second request, and the second request may be an HTTP request or an HTTPs request. Before the terminal sends the second request to the server, the monitoring module can be loaded, the browser on the terminal is automatically opened, the second request is sent to the server through the browser according to the determined URL of the test webpage, and meanwhile, the terminal can collect the sent second request through the monitoring module. Correspondingly, after receiving the second request, the server analyzes and obtains the URL of the test webpage, obtains the test webpage, generates a second response according to the test webpage and returns the second response to the terminal, and the terminal displays the test webpage according to the second response sent by the server.
In the embodiment of the application, the terminal can open the browser by using webdriver, and access the test webpage by using driver.
If the content which is not displayed on the display screen exists in the test webpage, the browser on the terminal can add an indication identifier before the second response, the indication identifier is used for indicating that the test webpage contains the content which is not restored by the restoring equipment after being shielded by the shielding plug-in, and the terminal determines that the content which is not displayed on the display screen is the content to be tested. The implementation is specifically illustrated by an example as follows:
assuming that the test webpage comprises nine pictures and one video advertisement, after receiving a second request corresponding to the test webpage, the server acquires the test webpage comprising the nine pictures and one video advertisement and then sends a second response to the terminal, wherein the second response comprises ten second sub-responses, including the second sub-responses of the nine pictures and the second sub-response of the video advertisement. And before the terminal displays the test webpage, the second response is shielded by the shielding plug-in and restored by the restoring equipment. It is assumed that nine pictures are displayed normally and video advertisements are not displayed normally, which indicates that the nine pictures are shielded by the shielding plug-in and successfully restored by the restoring device or are not shielded by the shielding plug-in at all, and the video advertisements are not successfully restored by the restoring device after being shielded by the shielding plug-in. Optionally, the terminal may define the normally displayed content in the test web page as an on Completed event, and define the content not displayed on the display screen as an on Error Occurred event.
Optionally, the browser may add the indicator to the second sub-response of the video advertisement, and the indicator is not added to the second sub-response of the nine pictures. Wherein, the indication mark can be expressed as net, ERR _ BLOCKED _ BY _ CLIENT, and can also be expressed as NS _ ERROR _ ABORT. For example, the second sub-response with the indication mark can be represented as:
!net::ERR_BLOCKED_BY_CLIENT!http://www.test.com/test.png
in this embodiment of the application, after the terminal receives the second response, it is determined whether there is a whole process of the content that is not displayed on the display screen, and the monitoring module can monitor the content. Moreover, the terminal can save the second sub-responses of the nine pictures and the second sub-responses of the video advertisements added with the indication marks to the storage area through the monitoring module. Alternatively, the storage area may be located in the browser's DOM.
The terminal may read the second sub-responses stored in the storage area, and optionally, may read all the second sub-responses by executing document. In this way, the terminal determines the content corresponding to the second sub-response with the indication mark as the content to be tested on the test webpage.
In the embodiment of the application, the reduction capability of the reduction equipment can be determined according to the number of the second sub-responses with the indication marks. The smaller the number of the second sub-responses with the indication marks is, the stronger the reduction capability of the reduction equipment is. Moreover, the scheme provides an automatic testing method, the current situations of complicated process and low efficiency in manual testing can be solved, the automatic testing replaces the original testing mode, the testing of the recovery equipment is efficiently and accurately carried out, and the progress of projects can be promoted.
In reality, the content on the test webpage comprises regular content (news, pictures and non-advertising videos) and advertising content, and some shielding plugins may shield not only the advertising content but also some regular content due to the inexorable shielding plugins on the market. And if the regular content on the test webpage is not restored, removing the second sub-response with the indication identifier corresponding to the regular content from the total second sub-response set with the indication identifier. If the advertisement content on the test webpage is not restored, the second sub-response with the indication mark corresponding to the advertisement content is not removed from the total second sub-response set with the indication mark, that is, the conventional content which is not restored is not the content which should be restored by the restoring device, and is not considered when calculating the restoring capability of the restoring device.
Based on the above considerations, the present application provides the technical solutions of steps 201 and 204.
In an implementation manner that an optional terminal obtains the uniform resource locator URL of the content to be detected, the terminal uses, as the content to be detected, the content (including the normal content and the advertisement content) that is shielded by the shielding plug-in and is not restored by the restoring device, and obtains the uniform resource locator URL of the content to be detected according to the second sub-response of the content to be detected.
The terminal generates a first request according to the URL of the content to be detected and sends the first request to the server. At the same time, the terminal unloads the shield insert.
In step 204, the attribute information of the content to be tested includes at least one of the following items: the format of the content, the data size of the content, or the keywords in the domain name corresponding to the content. In an implementation manner that the selectable attribute information conforms to the preset attribute information, the attribute information of the content to be tested conforming to the preset attribute information may include one or more of the following items: the format of the content conforms to a preset format; the data volume of the content is not less than the preset data volume; and combining the key characters in the domain name corresponding to the content with preset keys.
Firstly, the terminal device may obtain a format of a content to be detected, based on the format of the advertisement information, the advertisement information is generally a picture or video format, the preset format is "bmp", "gif", "jepg", "jpg", or "png", and the like, if the format of the content to be detected conforms to the preset format, it is indicated that the advertisement information is not successfully restored by the restoring device, and if the format of the content to be detected is "txt", it is indicated that the content which is not successfully restored by the restoring device is not the advertisement information, and the content to be detected is not used as a basis for determining the restoring capability of the restoring device.
Secondly, the terminal device may obtain the data volume of the content to be detected, and according to the empirical value, the data volume of the advertisement information is relatively large, and if the preset data volume is 2KB, the content to be detected with the data volume less than 2KB may be determined not to be the advertisement information and not to be used as the basis for determining the reduction capability of the reduction device.
Thirdly, the terminal device may obtain a keyword in a domain name corresponding to the content to be detected, and if it is assumed that the domain name corresponding to the advertisement information includes keywords such as baidu or taobao according to the delivery condition statistics of the advertisement information on the website, the preset keyword may be baidu or taobao, and if the keyword in the domain name corresponding to the content to be detected is google, it may be determined that the content to be detected is not the advertisement information, and the keyword is not a criterion for the reduction capability of the reduction device.
Therefore, the reduction capability of the equipment can be further accurately reduced through the three modes, so that technical personnel do not need to determine the reduction capability of the equipment through comparison of naked eyes, and the work complexity of the technical personnel is reduced.
Fig. 3 is a schematic flowchart illustrating a testing method for a reduction device, which is applicable to the embodiment of the present application, and as shown in fig. 3, the testing method includes:
301, the terminal acquires the URL of the test webpage and loads a shielding plug-in;
step 302, the terminal sends a second request to the restoring equipment through a redirection technology; the second request comprises the URL of the test webpage;
step 303, the restoring device sends the second request to the server;
step 304, the server feeds back a second response corresponding to the second request to the restoring equipment;
305, analyzing the content in the second response by the restoring equipment, and restoring according to the rule of the shielding plug-in to obtain restored content;
step 306, the reduction equipment sends the second response and the reduction content to the terminal;
step 307, the terminal judges whether the content which is not displayed on the display screen exists in the test webpage; if yes, go to step 308, otherwise, determine the reduction capability of the reduction equipment, and end the process.
Step 308, the terminal determines the content as the content to be detected; the content to be tested is the content which is shielded by the shielding plug-in the test webpage and is not restored by the restoring equipment;
309, the terminal acquires the uniform resource locator URL of the content to be detected and stops the execution of the shielding plug-in and the reduction equipment;
step 310, the terminal sends a first request to a server; the first request comprises a URL of the content to be tested;
step 311, the terminal receives a first response sent from the server;
step 312, the terminal obtains the content to be tested according to the first response sent by the server;
step 313, the terminal judges whether the attribute information of the content to be detected accords with preset attribute information; if yes, go to step 314; otherwise, the terminal does not determine the reduction capability of the reduction equipment according to the content to be tested;
and step 314, the terminal determines the reduction capability of the reduction equipment according to the content to be tested.
The step 301-.
Optionally, the first process and the second process may be performed on the same terminal, the shielding plugin needs to be loaded in the first process, and the restoration is performed by the restoration device, and when the second process is performed, the execution of the shielding plugin needs to be terminated, and the restoration by the restoration device is not needed.
Optionally, the first process may be performed on the first terminal, the second process may be performed on the second terminal, the first terminal always loads the shielding plug-in, and after the content to be detected is determined, the URL of the content to be detected is sent to the second terminal, and the second terminal does not load the shielding plug-in.
Based on the above embodiments and the same concept, a test apparatus for a recovery device provided in the embodiments of the present application is illustrated, and as shown in fig. 4, the test apparatus 400 may include a processing unit 401, a transmitting unit 402, and a receiving unit 403.
The embodiment of the application provides a testing arrangement to reduction equipment, and the device includes: the system comprises a processing unit, a receiving unit and a processing unit, wherein the processing unit is used for acquiring a Uniform Resource Locator (URL) of content to be detected, the content to be detected is content which is shielded by a shielding plug-in a test webpage and is not restored by restoring equipment, the receiving unit is used for sending a first request to a server, the first request comprises the URL of the content to be detected, the processing unit is also used for receiving a first response sent by the server through the receiving unit to acquire the content to be detected under the condition that the shielding plug-in is not arranged, and the restoring capability of the restoring equipment is determined according to the condition that whether attribute information of the content to be detected accords with.
In the embodiment of the application, the device acquires the URL of the content to be detected which is shielded by the shielding plug-in the test webpage and is not reduced by the reduction equipment, and then sends the first request to the server, and the device acquires the content to be detected from the first response sent by the server under the condition that the shielding plug-in is not arranged, so that the terminal can determine whether the content which cannot be reduced by the reduction equipment is the content which should be reduced by the reduction equipment according to whether the attribute information of the content to be detected accords with the preset attribute information, thereby determining the reduction capability of the reduction equipment, enabling technical personnel to determine the reduction capability of the reduction equipment without comparison of naked eyes, and further reducing the work complexity of the technical personnel.
In an optional implementation manner, the attribute information of the content to be tested includes at least one of the following items: the format of the content, the data size of the content or keywords in a domain name corresponding to the content; the attribute information conforms to preset attribute information and comprises one or more of the following items: the format of the content conforms to a preset format; the data volume of the content is not less than the preset data volume; and combining the key characters in the domain name corresponding to the content with preset keys.
In an optional embodiment, the system further comprises a display unit; the processing unit is also used for acquiring the URL of the test webpage; the sending unit is also used for sending a second request to the server; the second request comprises the URL of the test webpage; the display unit is used for displaying the test webpage according to a second response which is sent by the receiving unit from the server and passes through the restoration device under the condition that the shielding plug-in is arranged; and the processing unit is also used for determining the content as the content to be tested if the content which is not displayed on the display screen exists in the test webpage.
In an optional implementation manner, the second request is directed to the restoring device by the terminal in a hosts manner, and then forwarded to the server.
In an optional implementation manner, the processing unit is specifically configured to: classifying the web pages in the website according to the characteristic information of the URL of the web pages; and determining one webpage in each type of webpages as a test webpage, and acquiring the URL of the test webpage.
In an alternative embodiment, the characteristic information includes path information of a URL of the test web page.
In an optional implementation, the processing unit is further configured to: and deleting the cache of the test webpage on the browser used for testing.
For a specific description of the testing apparatus for the restoring device provided in the embodiment of the present application, reference may be made to the testing method for the restoring device provided in the above embodiment, and details are not described here again.
It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation. Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
In an embodiment of the present application, a computer apparatus may include a memory, a transceiver, and a processor.
The memory can be used for storing instructions and data, the memory can mainly comprise a storage instruction area and a storage data area, and the storage data area can store association relations; the storage instruction area can store an operating system, instructions required by at least one function and the like; the instructions may cause the processor to perform a method comprising: the method comprises the steps that a terminal obtains a Uniform Resource Locator (URL) of content to be tested, the content to be tested is content which is shielded by a shielding plug-in a test webpage and is not restored by restoring equipment, the terminal sends a first request to a server, the first request comprises the URL of the content to be tested, the terminal obtains the content to be tested from a first response sent by the server under the condition that the shielding plug-in is not arranged, and the terminal determines the restoring capacity of the restoring equipment according to whether attribute information of the content to be tested accords with preset attribute information.
The processor is a control center of the computer equipment, is connected with various parts of the whole mobile phone by various interfaces and lines, and executes various functions and processes data of the computer equipment by operating or executing instructions stored in the memory and calling data stored in the memory. Alternatively, the processor may include one or more processing units; optionally, the processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. In some embodiments, the processor and memory may be implemented on a single chip, or in some embodiments, they may be implemented separately on separate chips.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware or any combination thereof, and when the implementation is realized by a software program, all or part of the implementation may be realized in the form of a computer program product. The computer program product includes one or more instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The instructions may be stored in or transmitted from one computer storage medium to another, for example, instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. A computer storage medium may be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more available media. The usable medium may be a magnetic medium (e.g., a flexible Disk, a hard Disk, a magnetic tape, a magneto-optical Disk (MO), etc.), an optical medium (e.g., a CD, a DVD, a BD, an HVD, etc.), or a semiconductor medium (e.g., a ROM, an EPROM, an EEPROM, a nonvolatile memory (NAND FLASH), a Solid State Disk (SSD)), etc.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by instructions. These instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.

Claims (16)

1. A method of testing a reduction apparatus, the method comprising:
the terminal acquires a Uniform Resource Locator (URL) of the content to be detected; the content to be tested is the content which is shielded by the shielding plug-in the test webpage and is not restored by the restoring equipment;
the terminal sends a first request to a server; the first request comprises the URL of the content to be tested;
the terminal acquires the content to be detected from a first response sent by the server under the condition that the shielding plug-in is not arranged;
and the terminal determines the reduction capability of the reduction equipment according to whether the attribute information of the content to be detected accords with preset attribute information.
2. The method of claim 1, wherein the attribute information of the content to be tested includes at least one of: the format of the content, the data size of the content or keywords in a domain name corresponding to the content;
the attribute information conforms to preset attribute information and comprises one or more of the following items:
the format of the content conforms to a preset format;
the data volume of the content is not less than the preset data volume;
and combining the key characters in the domain name corresponding to the content with preset keys.
3. The method of claim 1, wherein before the terminal obtains the URL of the content to be tested, the method further comprises:
the terminal acquires the URL of the test webpage;
the terminal sends a second request to the server; the second request comprises the URL of the test webpage;
the terminal displays the test webpage according to a second response which is sent by the server and restored by the restoring equipment under the condition that the shielding plug-in is arranged;
and if the content which is not displayed on the display screen exists in the test webpage, the terminal determines that the content is the content to be tested.
4. The method of claim 3, wherein the second request is directed by the terminal to the restore device via hosts and forwarded to the server.
5. The method of claim 3, wherein the terminal obtaining the URL of the test webpage comprises:
the terminal classifies the web pages in the website according to the characteristic information of the URL of the web pages;
and determining one webpage in each type of webpages as the test webpage, and acquiring the URL of the test webpage.
6. The method of claim 5, wherein the characteristic information includes path information of a URL of the test web page.
7. The method of claim 3, wherein before the terminal sends the second request to the server, further comprising:
and the terminal deletes the cache of the test webpage on the browser used for testing.
8. A test apparatus for a reduction device, the apparatus comprising:
the processing unit is used for acquiring a Uniform Resource Locator (URL) of the content to be detected; the content to be tested is the content which is shielded by the shielding plug-in the test webpage and is not restored by the restoring equipment;
a receiving unit, configured to send a first request to a server; the first request comprises the URL of the content to be tested;
the processing unit is further configured to receive, through the receiving unit, a first response sent from the server to acquire the content to be tested, if the shielding plugin is not set; and determining the reduction capability of the reduction equipment according to whether the attribute information of the content to be detected conforms to the preset attribute information.
9. The apparatus of claim 8, wherein the attribute information of the content to be tested comprises at least one of: the format of the content, the data size of the content or keywords in a domain name corresponding to the content;
the attribute information conforms to preset attribute information and comprises one or more of the following items:
the format of the content conforms to a preset format;
the data volume of the content is not less than the preset data volume;
and combining the key characters in the domain name corresponding to the content with preset keys.
10. The apparatus of claim 8, further comprising a display unit;
the processing unit is further used for acquiring the URL of the test webpage;
the sending unit is further configured to send a second request to the server; the second request comprises the URL of the test webpage;
the display unit is used for displaying the test webpage according to a second response which is sent by the receiving unit from the server and passes through the restoration device under the condition that the shielding plug-in is arranged;
the processing unit is further configured to determine that the content is the content to be tested if the content which is not displayed on the display screen exists in the test webpage.
11. The apparatus of claim 10, wherein the second request is directed by the terminal to the restore device via hosts and forwarded to the server.
12. The apparatus as claimed in claim 10, wherein said processing unit is specifically configured to:
classifying the web pages in the website according to the characteristic information of the URL of the web pages;
and determining one webpage in each type of webpages as the test webpage, and acquiring the URL of the test webpage.
13. The apparatus of claim 12, wherein the characteristic information comprises path information of a URL of the test web page.
14. The apparatus as recited in claim 10, said processing unit to further:
and deleting the cache of the test webpage on the browser used for testing.
15. A computer-readable storage medium, characterized in that the storage medium stores instructions that, when executed on a computer, cause the computer to carry out the method of any one of claims 1 to 7.
16. A computer device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any of claims 1 to 7 in accordance with the obtained program.
CN201810857021.3A 2018-07-31 2018-07-31 Test method and device for reduction equipment Expired - Fee Related CN109002550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810857021.3A CN109002550B (en) 2018-07-31 2018-07-31 Test method and device for reduction equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810857021.3A CN109002550B (en) 2018-07-31 2018-07-31 Test method and device for reduction equipment

Publications (2)

Publication Number Publication Date
CN109002550A CN109002550A (en) 2018-12-14
CN109002550B true CN109002550B (en) 2020-10-02

Family

ID=64598445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810857021.3A Expired - Fee Related CN109002550B (en) 2018-07-31 2018-07-31 Test method and device for reduction equipment

Country Status (1)

Country Link
CN (1) CN109002550B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083536B (en) * 2019-04-25 2022-12-06 厦门网宿有限公司 Test resource allocation method and device, electronic equipment and storage medium
CN110058876B (en) * 2019-04-25 2022-12-06 厦门网宿有限公司 Method, device, server and storage medium for expanding compatibility of wireshark software
CN110096440B (en) * 2019-04-26 2023-04-18 厦门网宿有限公司 Log processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10121009B2 (en) * 2015-09-25 2018-11-06 Synack, Inc. Computer system for discovery of vulnerabilities in applications including guided tester paths based on application coverage measures
CN106095869B (en) * 2016-06-03 2020-11-06 腾讯科技(深圳)有限公司 Advertisement information processing method, user equipment, background server and system
CN106790463B (en) * 2016-12-08 2020-09-15 广州杰赛科技股份有限公司 Access method and system for Web configuration file reloading process
CN108243249B (en) * 2018-01-04 2020-05-22 网宿科技股份有限公司 Webpage advertisement anti-shielding method, content distribution network and client

Also Published As

Publication number Publication date
CN109002550A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
US7543068B2 (en) Filtering information at a data network based on filter rules associated with consumer processing devices
KR101748196B1 (en) Determining message data to present
CN110245069B (en) Page version testing method and device and page display method and device
KR102504075B1 (en) Matching and attributes of user device events
US20160140626A1 (en) Web page advertisement configuration and optimization with visual editor and automatic website and webpage analysis
CN104766014A (en) Method and system used for detecting malicious website
US9223895B2 (en) System and method for contextual commands in a search results page
CN109002550B (en) Test method and device for reduction equipment
US9754028B2 (en) Automatic crawling of encoded dynamic URLs
WO2007070405A2 (en) Remote module incorporation into a container document
WO2007070404A2 (en) Customized container document modules using preferences
CN103618696B (en) Method and server for processing cookie information
CN107480277A (en) Method and device for web log file collection
CN109829121A (en) A kind of method and apparatus clicking behavioral data and reporting
Ghasemisharif et al. Speedreader: Reader mode made fast and private
CN110929129B (en) Information detection method, equipment and machine-readable storage medium
CN103069418B (en) Information provider unit, information providing method, program and information recording carrier
CN109325192A (en) A kind of method and apparatus of the anti-shielding of advertisement
US20100007919A1 (en) Document management apparatus, document management method, and document management program
CN112307386A (en) Information monitoring method, system, electronic device and computer readable storage medium
CN115563423A (en) Data acquisition method and device, computer equipment and storage medium
KR101174398B1 (en) Apparatus and method for recommanding contents
CN110569424A (en) Information recommendation method and device
CN114553555A (en) Malicious website identification method and device, storage medium and electronic equipment
CN112035205A (en) Data processing method, device, equipment and storage medium

Legal Events

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

Effective date of registration: 20201125

Address after: 100083 Beijing Haidian District 39 Xueyuan Road 6 real estate building.

Patentee after: Beijing Mesh Technology Co.,Ltd.

Address before: 361003 Fujian Xiamen software park three phase 366 Chengyi street 0036 units

Patentee before: XIAMEN WANGSU Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201002

CF01 Termination of patent right due to non-payment of annual fee