CN103593429B - Commodity template failure detection method and device - Google Patents

Commodity template failure detection method and device Download PDF

Info

Publication number
CN103593429B
CN103593429B CN201310553137.5A CN201310553137A CN103593429B CN 103593429 B CN103593429 B CN 103593429B CN 201310553137 A CN201310553137 A CN 201310553137A CN 103593429 B CN103593429 B CN 103593429B
Authority
CN
China
Prior art keywords
template
merchandise
webpage
information
commodity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310553137.5A
Other languages
Chinese (zh)
Other versions
CN103593429A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310553137.5A priority Critical patent/CN103593429B/en
Publication of CN103593429A publication Critical patent/CN103593429A/en
Priority to PCT/CN2014/090387 priority patent/WO2015067179A1/en
Application granted granted Critical
Publication of CN103593429B publication Critical patent/CN103593429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a commodity template failure detection method and device. The method and the device are used for solving the problem that due to the fact that a commodity template failure detection method in the prior art is low in efficiency and poor in accuracy, large-area online commodities are removed off shelves. According to the method, in a webpage to be detected, each commodity template contained in the webpage is recognized, matching is conducted between detection parameters corresponding to the commodity templates and content information contained in the corresponding positions of the templates obtained in the webpage, and if the matching is unsuccessful, it is determined that the commodity templates fail. The embodiment of the invention further provides a commodity template failure detection device. Due to the fact that the detection parameters corresponding to the commodity templates and the content information contained in the positions of the commodity templates obtained in the webpage are used for detecting the commodity templates, whether commodity templates fail or not is judged, automation of commodity template failure detection is achieved, and commodity template failure detection efficiency and accuracy are improved.

Description

A kind of method and device of detection commodity template failure
Technical field
The present invention relates to technical field of electronic commerce, more particularly, to a kind of method and device of detection commodity template failure.
Background technology
With the continuous development of electric business website, network is flooded with the commodity of magnanimity.User uploads in the information by commodity During in website, tend to rely on Merchandise Template.Merchandise Template can effectively reduce user when carrying out merchandise news typing Workload, it is to avoid the repetitive operation of user.When having multiple Merchandise Template under a domain name, the related data of Merchandise Template Geometric growth can be become, the monitoring work therefore carrying out Merchandise Template has very important significance.
In prior art, staff can regularly detect to Merchandise Template, judges commodity mould by manual type Whether plate lost efficacy.Because being completely dependent on manual type in the detection process of Merchandise Template, and workload during detecting Ratio is larger, and detection efficiency and correctness rely heavily on proficiency level and the working experience of staff, because can not Ensure the accuracy of detection, the efficiency in addition detecting is also very low, can not reach the purpose of accurate real-time detection.Therefore existing skill The failure detection mode efficiency of the Merchandise Template in art is low, accuracy is poor, the problems referred to above that may detect because of Merchandise Template, Lead to the large area undercarriage of commodity on line.
Content of the invention
Embodiments provide a kind of method and device of detection commodity template failure, in order to solve in prior art The failure detection mode efficiency of Merchandise Template is low, accuracy is poor, may lead to line because of the problems referred to above of Merchandise Template detection The problem of the large area undercarriage of upper commodity.
Embodiments provide a kind of method of detection commodity template failure, the method includes:
Obtain the URL of webpage to be detected, identify each Merchandise Template that this webpage comprises;
For each Merchandise Template identifying, according to the position identifying this Merchandise Template in webpage, in this webpage In relevant position obtain the content information that this webpage comprises;
According to the identification information of described Merchandise Template, determine the detection parameter of this Merchandise Template, and by this Merchandise Template The content information that detection parameter is comprised with this webpage obtaining is mated;
When the match is successful, determine this Merchandise Template effectively, otherwise, it determines this commodity template failure.
It is preferred that for the efficiency improving template identification, thus improve the efficiency of die plate failure detection.Described this net of identification Each Merchandise Template that page comprises includes:
Using canonical method, identify each Merchandise Template that this webpage comprises.
It is preferred that when detecting important goods die plate failure, in order to reduce the loss of user, improving Merchandise Template Experience Degree, after this commodity template failure of described determination, methods described also includes:
Judge whether the Merchandise Template of this inefficacy is identical with the template in important goods template base;
When the Merchandise Template losing efficacy is identical with the template in important goods template base, alert.
It is preferred that in order to effectively realize Merchandise Template detection automatization, according to the identification information of described merchandise module, really The detection parameter of this Merchandise Template fixed includes:
When the identification information according to described Merchandise Template, when determining this Merchandise Template for title template, determine this title mould Plate corresponding detection parameter is Word message;
When the identification information according to described Merchandise Template, when determining this Merchandise Template for price template, determine this price mould Plate corresponding detection parameter is digital information;
When the identification information according to described Merchandise Template, when determining this Merchandise Template for graphic template, determine this picture mould Plate corresponding detection parameter is pictorial information.
It is preferred that in order to effectively realize Merchandise Template detection automatization, the described detection parameter by this Merchandise Template with The content information that this webpage obtaining comprises is mated, and the match is successful includes:
When this Merchandise Template is title template, judge whether contain word in the content information that this webpage obtaining comprises Information, when in the content information that this webpage obtaining comprises containing Word message, determines that the match is successful;
When this Merchandise Template is price template, judge whether contain numeral in the content information that this webpage obtaining comprises Information, when in the content information that this webpage obtaining comprises containing digital information, determines that the match is successful;
When this Merchandise Template is graphic template, judge whether contain picture in the content information that this webpage obtaining comprises Information, when in the content information that this webpage obtaining comprises containing pictorial information, determines that the match is successful.
Embodiments provide a kind of device of detection commodity template failure, described device includes:
Identification module, for obtaining the URL of webpage to be detected, identifies each commodity that this webpage comprises Template;
Acquisition module, for for each Merchandise Template of identifying, according to identifying this Merchandise Template in webpage Position, relevant position in the web page obtains the content information that this webpage comprises;
Matching detection module, for the identification information according to described merchandise module, determines and the detection by this Merchandise Template The content information that parameter is comprised with this webpage obtaining is mated;When the match is successful, determine this Merchandise Template effectively, no Then, determine this commodity template failure.
It is preferred that for the efficiency improving template identification, thus improve the efficiency of die plate failure detection.Described identification mould Block, specifically for using canonical method, identifying each Merchandise Template that this webpage comprises.
It is preferred that when detecting important goods die plate failure, in order to reduce the loss of user, improving Merchandise Template Experience Degree, described device also includes:
Alarm module, for determining after matching detection module detection commodity template failure, judges the Merchandise Template of this inefficacy Whether identical with the template in important goods template base;When the Merchandise Template losing efficacy is identical with the template in important goods template base When, alert.
It is preferred that in order to effectively realize Merchandise Template detection automatization, described matching detection module, specifically for working as root According to the identification information of described Merchandise Template, when determining this Merchandise Template for title template, determine this corresponding detection of title template Parameter is Word message;When the identification information according to described Merchandise Template, when determining this Merchandise Template for price template, determining should Price template corresponding detection parameter is digital information;When the identification information according to described Merchandise Template, determine this Merchandise Template During for graphic template, determine that this graphic template corresponding detection parameter is pictorial information.
It is preferred that in order to effectively realize Merchandise Template detection automatization, described matching detection module, being somebody's turn to do specifically for working as When Merchandise Template is title template, judges whether contain Word message in the content information that this webpage obtaining comprises, work as acquisition The content information that comprises of this webpage in containing Word message when, determine that the match is successful;When this Merchandise Template is price template, Judge whether contain digital information in the content information that this webpage obtaining comprises, the content information comprising when this webpage obtaining In containing digital information when, determine the match is successful;When this Merchandise Template is graphic template, judge what this webpage obtaining comprised Whether contain pictorial information in content information, when in the content information that this webpage obtaining comprises containing pictorial information, determine The match is successful.
Embodiments provide a kind of method and device of detection commodity template failure, the method is in net to be detected In page, identify each Merchandise Template that this webpage comprises, according to this Merchandise Template corresponding detection parameter, and obtain in the page The content information that this template correspondence position taking comprises is mated, and when mating unsuccessful, determines this commodity template failure.By In in embodiments of the present invention be directed to Merchandise Template corresponding detection parameter, and in webpage the position of this Merchandise Template comprise interior Appearance information, detects to Merchandise Template, to judge whether Merchandise Template lost efficacy with this, it is achieved thereby that commodity template failure inspection The automatization surveying, improves detection efficiency and the accuracy of commodity template failure.
Brief description
Fig. 1 is a kind of detection commodity template failure process schematic provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of the set of URL conjunction of the webpage being detected provided in an embodiment of the present invention;
Fig. 3 is the hum pattern carrying out commodity template failure detection for a certain webpage provided in an embodiment of the present invention;
Fig. 4 A, Fig. 4 B are the test knot after the Merchandise Template for each webpage provided in an embodiment of the present invention is tested Fruit schematic diagram;
Fig. 4 C is the detailed implementation process schematic diagram of detection commodity template failure provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram of detection commodity template failure provided in an embodiment of the present invention.
Specific embodiment
Merchandise Template is used in the template during descriptive labelling is introduced, and is supplied to user's use after typically all designing One big code, that is, html code.Merchandise Template is only displayed in the page of introducing of product, and whatsoever user can make With not limiting.The information comprising in general merchandise template is exhibition information, description information, postage descriptive information etc..In webpage Middle commodity in use template, usually directly invokes in website, when adding commodity, as long as to the content in Merchandise Template Changed just permissible accordingly, editor need not be downloaded, therefore can be reduced the workload of user using Merchandise Template, improve and use The efficiency that family information is issued.
In order to improve the detection efficiency of commodity template failure, improve the accuracy of commodity template failure detection, it is to avoid commodity The large area undercarriage problem of commodity on the line non-timely leading to of die plate failure detection, embodiments provides a kind of inspection Survey the method and device of commodity template failure.
With reference to Figure of description, the embodiment of the present invention is described in detail.
Fig. 1 is a kind of detection commodity template failure process schematic provided in an embodiment of the present invention, and this process includes following Step:
S101:Obtain the uniform resource position mark URL of webpage to be detected, identify each Merchandise Template that this webpage comprises.
User carries out the editor of web page contents for convenience, and website typically can be supplied to a lot of Merchandise Template of user, user The Merchandise Template that itself needs can be selected as needed.Therefore typically include multiple Merchandise Template in webpage, such as hold Carry the title template of heading message, carry the price template of pricing information, carry the freight charges template of freightage information, carry picture letter The graphic template of breath, carries evaluating template of evaluation information etc..
In embodiments of the present invention whether Merchandise Template was lost efficacy when detecting, for each webpage, identified first Each Merchandise Template that each webpage comprises, the Merchandise Template identifying potentially include one, several, more than ten, by net The multiformity of page presenting content is determining.
S102:For each Merchandise Template identifying, according to the position identifying this Merchandise Template in webpage, at this Relevant position in webpage obtains the content information that this webpage comprises.
After identifying each Merchandise Template that webpage comprises in webpage, in order to examine to whether Merchandise Template lost efficacy Survey it is thus necessary to determine that in webpage the corresponding position of this Merchandise Template content information, if corresponding with this Merchandise Template detection ginseng Number coupling.Therefore, need the position for each Merchandise Template identifying in embodiments of the present invention, in the corresponding positions of webpage Put and obtain the content information that this webpage comprises.For example, identify that three templates are respectively title template, valency in a certain webpage altogether Grid template and freight charges template, after identifying each Merchandise Template, it is corresponding at each that the relevant position in webpage obtains this webpage The content information that position comprises.
S103:For each Merchandise Template identifying in the web page, according to the identification information of described Merchandise Template, really The detection parameter of this Merchandise Template fixed.
S104:The detection parameter of this Merchandise Template is mated with the content information that comprises of this webpage obtaining, when When being made into work(, carry out step S105, otherwise, carry out step S106.
Due to comprising multiple Merchandise Template in each webpage, the type of each Merchandise Template is different, and different commodity moulds Plate corresponding matching detection parameter is also different.Therefore when have identified Merchandise Template and the corresponding content information of each Merchandise Template When, in order to detect whether Merchandise Template lost efficacy, need to be determined according to the detection parameter of Merchandise Template.
Specifically, for convenience each Merchandise Template is detected, be directed to each commodity mould in embodiments of the present invention Plate, is provided with its corresponding detection parameter, specifically can preserve the identification information of Merchandise Template and the corresponding pass of detection parameter System.After identifying the Merchandise Template that it comprises in webpage, method when being write according to Merchandise Template is it may be determined that commodity mould The type of plate, may thereby determine that the identification information of each Merchandise Template, according to the identification information of this Merchandise Template, and preserve Corresponding relation is it may be determined that this trade mark template corresponding detection parameter.After determining the detection parameter of Merchandise Template, can adopt Whether this detection parameter is mated with corresponding content information, mated with corresponding content information according to detection parameter, determine Whether this Merchandise Template lost efficacy.
S105:Determine that this Merchandise Template effectively, carries out step S107 afterwards.
S106:Determine this commodity template failure, carry out step S107 afterwards.
S107:Judge that whether this Merchandise Template is last Merchandise Template to be detected of this webpage, work as judged result During for being, carrying out step S108, otherwise, carrying out step S103.
S108:Commodity template failure detection for this webpage terminates, and detects whether the Merchandise Template of next webpage lost efficacy.
Due in embodiments of the present invention be directed to Merchandise Template corresponding detection parameter, and in webpage this Merchandise Template position Put the content information comprising, Merchandise Template is detected, to judge whether Merchandise Template lost efficacy with this, it is achieved thereby that commodity The automatization of die plate failure detection, improves detection efficiency and the accuracy of commodity template failure.
Whether Merchandise Template was lost efficacy detect when, can carry out respectively for each webpage in website, but In website, the webpage of possible a lot of users is all based on identical Merchandise Template editor's.Therefore in order to reduce commodity template failure The workload of detection, improves commodity template failure detection efficiency, selects representative webpage to make in embodiments of the present invention For the webpage of detection, webpage will be selected as the basis carrying out commodity template failure detection, periodically to the commodity mould selecting webpage Plate is detected.
Fig. 2 is the schematic diagram of the set of URL conjunction of the webpage being detected provided in an embodiment of the present invention, is directed to a certain in Fig. 2 Website(Test set name)Tested, this website has been selected the webpage being detected, by the URL input of webpage to be detected To in detection means, as shown in Figure 2.When specifically being detected, can be as needed to the webpage being input in detection means URL modify operation, or the operation such as can carry out deleting, add.
After determining each webpage to be detected, obtain the URL of this webpage, using canonical method or Xpach method, mate Go out each Merchandise Template comprising in this webpage.Using canonical method or Xpach method, webpage matches Merchandise Template Process belongs to prior art, and here this process is not illustrated it is believed that those skilled in the art, can retouching according to the present invention State, determine specific embodiment.
For each webpage to be detected, after obtaining each Merchandise Template that this webpage comprises, first according to each business The identification information of product template, determines each Merchandise Template corresponding detection parameter, then obtains this commodity mould more in the web page The corresponding content information of plate.Specifically, when obtaining the corresponding content information of this Merchandise Template in webpage, can be according to identifying This Merchandise Template position, obtain the corresponding content information of this Merchandise Template in the correspondence position of webpage.Or, obtain this After each Merchandise Template that webpage comprises, obtain the corresponding content information of this Merchandise Template, then basis first in the web page The identification information of each Merchandise Template, determines each Merchandise Template corresponding detection parameter.
Obtain Merchandise Template corresponding detection parameter and webpage in corresponding content information when, can be according to above-mentioned side Formula, does not limit both acquisition orders, as long as before whether losing efficacy to Merchandise Template and detecting, obtain detection parameter and Content information.
Whether Merchandise Template was lost efficacy detect when, may the Merchandise Template that comprises of a certain webpage a lot, each When being detected, can be detected for each Merchandise Template it is also possible to be arranged as required to the business needing to be detected Product template, that is, in each detection process, can be detected for different Merchandise Template respectively.
Fig. 3 is the hum pattern carrying out commodity template failure detection for a certain webpage provided in an embodiment of the present invention, at this It is directed to webpage to be detected, the sample address in Fig. 3 in Fig. 3, in this webpage to be detected, detect the Merchandise Template of this webpage Including:Title template, price template, graphic template, navigation template 1,2 etc., and each Merchandise Template corresponding detection parameter As shown in figure 3, title template corresponding detection parameter is title(name)Information, price template corresponding detection parameter is price (price)Information, graphic template corresponding detection parameter is picture(image)Information, navigation template is corresponding to detect that parameter is Navigation(nav)Information etc..And have selected title template, price template, graphic template, navigation mould for this webpage in figure 3 Plate, that is, detect whether the title template in this webpage, price template, graphic template, navigation template lost efficacy.
When each Merchandise Template determining in webpage, for each Merchandise Template, determine the corresponding inspection of this Merchandise Template Survey parameter, in order to effectively realize Merchandise Template detection automatization, according to the identification information of described Merchandise Template, determine this commodity The detection parameter of template includes:
When the identification information according to described Merchandise Template, when determining this Merchandise Template for title template, determine this title mould Plate corresponding detection parameter is Word message;
When the identification information according to described Merchandise Template, when determining this Merchandise Template for price template, determine this price mould Plate corresponding detection parameter is digital information;
When the identification information according to described Merchandise Template, when determining this Merchandise Template for graphic template, determine this picture mould Plate corresponding detection parameter is pictorial information.
Determine the detection parameter of Merchandise Template, and after obtaining the corresponding content information in webpage, will detect parameter with Corresponding content information in webpage is mated, according to whether the match is successful, to determine whether Merchandise Template lost efficacy.Specifically will The content information that the detection parameter of this Merchandise Template is comprised with this webpage obtaining is mated, and the match is successful includes:As this business When product template is title template, judge whether contain Word message in the content information that this webpage obtaining comprises, when obtain When containing Word message in the content information that this webpage comprises, determine that the match is successful, this Merchandise Template is effective;When this Merchandise Template During for price template, judge whether contain digital information in the content information that this webpage obtaining comprises, when this webpage obtaining When containing digital information in the content information comprising, determine that the match is successful, this Merchandise Template is effective;When this Merchandise Template is picture During template, judge whether contain pictorial information in the content information that comprises of this webpage obtaining, when this webpage obtaining comprises When containing pictorial information in content information, determine that the match is successful, this Merchandise Template is effective.
Specifically, in embodiments of the present invention, when identify comprise title template in this webpage when, this title template correspond to Detection parameter be Word message because should be shown in the form of word as title, therefore mate in this webpage Whether the content information that correspondence position comprises comprises Word message, and when comprising Word message in this content information, the match is successful, Illustrate that user can enter the editor of row information by this title template, this title template is effective.
And when the Merchandise Template identifying is price template, this price template corresponding detection parameter is digital information, Because price is usually to represent with numeral, therefore mate whether the content information that in this webpage, correspondence position comprises comprises to count Word information, when comprising digital information in this content information, the match is successful, and this price template is effective.
And for graphic template, user edits typically in graphic template pictorial information, therefore graphic template is corresponding Detection parameter is pictorial information, mates in the content information of the correspondence position in this webpage whether include pictorial information, when this Include in content information that during pictorial information, the match is successful, this graphic template is effective.
Using said method, can be detected for each Merchandise Template identifying in webpage.It is preferred that in detection During important goods die plate failure, in order to reduce the loss of user, improve the Experience Degree of Merchandise Template, this commodity of described determination After die plate failure, methods described also includes:Judge the Merchandise Template of this inefficacy whether with important goods template base in template phase With;When the Merchandise Template losing efficacy is identical with the template in important goods template base, alert.
I.e. when detecting a certain commodity template failure, judge whether this Merchandise Template is important template, when this Merchandise Template During for important template, alert, to provide manager to be processed, it is to avoid commodity undercarriage on line.Specifically, Ke Yi It is provided with important goods template base in detection means, the information of important goods template can be preserved wherein, a certain when detecting During commodity template failure, determine whether this inefficacy Merchandise Template is important template according to this important goods template base, so that it is determined that Whether report to the police.When the insignificant template of this Merchandise Template, record the fail message of this Merchandise Template on weekdays in will, to manage Reason personnel consult in the later stage.
Fig. 4 A, Fig. 4 B are the test knot after the Merchandise Template for each webpage provided in an embodiment of the present invention is tested Fruit schematic diagram, when showing that the Merchandise Template for each webpage is detected in the figure, if important goods mould is detected Whether plate, have issued warning message for important goods template.For example to the Merchandise Template detection in front 5 webpages in Fig. 4 A When, all detect and wherein there is important goods die plate failure, mouse is moved at the corresponding chart of alarming result, meeting The information of output which commodity template failure specific, the display information of navigation template 2 inefficacy as shown in Figure 4 B.In Figure 4 A There is not important goods die plate failure in latter two webpage, therefore alarming result hurdle show for "×", and root " process " printed words according to record in action bar understand, have recorded the failure conditions of each Merchandise Template in this webpage.
Fig. 4 C is the detailed implementation process schematic diagram of detection commodity template failure provided in an embodiment of the present invention, this process bag Include following steps:
S401:Obtain the uniform resource position mark URL of webpage to be detected, identify each Merchandise Template that this webpage comprises.
S402:For each Merchandise Template identifying, according to the position identifying this Merchandise Template in webpage, at this Relevant position in webpage obtains the content information that this webpage comprises.
S403:For each Merchandise Template identifying in the web page, according to the identification information of described Merchandise Template, really The detection parameter of this Merchandise Template fixed.
S404:The detection parameter of this Merchandise Template is mated with the content information that comprises of this webpage obtaining, when When being made into work(, carry out step S405, otherwise, carry out step S406.
S405:Determine that this Merchandise Template is effective.
S406:Determine this commodity template failure.
S407:Judge whether the Merchandise Template of this inefficacy is identical with the template in important goods template base, works as judged result During for being, carrying out step S408, otherwise, carrying out step S409.
S408:Determine that this Merchandise Template is important Merchandise Template, alert.
S409:Determine the insignificant Merchandise Template of this Merchandise Template, record the information of this commodity template failure.
Due in embodiments of the present invention be directed to Merchandise Template corresponding detection parameter, and in webpage this Merchandise Template position Put the information comprising, Merchandise Template is detected, to judge whether Merchandise Template lost efficacy with this, it is achieved thereby that Merchandise Template The automatization of failure detection, improves detection efficiency and the accuracy of commodity template failure.
Fig. 5 is a kind of apparatus structure schematic diagram of detection commodity template failure provided in an embodiment of the present invention, described device Including:
Identification module 51, for obtaining the URL of webpage to be detected, identifies each business that this webpage comprises Product template;
Acquisition module 52, for for each Merchandise Template of identifying, according to identifying this Merchandise Template in webpage Position, relevant position in the web page obtains the content information that this webpage comprises;
Matching detection module 53, for the identification information according to described merchandise module, determines and the inspection by this Merchandise Template The content information that survey parameter is comprised with this webpage obtaining is mated;When the match is successful, determine this Merchandise Template effectively, no Then, determine this commodity template failure.
It is preferred that for the efficiency improving template identification, thus improve the efficiency of die plate failure detection.Described identification module 51, specifically for using canonical method, identifying each Merchandise Template that this webpage comprises.
It is preferred that when detecting important goods die plate failure, in order to reduce the loss of user, improving Merchandise Template Experience Degree, described device also includes:
Alarm module 54, for determining after matching detection module detection commodity template failure, judges the commodity mould of this inefficacy Whether plate is identical with the template in important goods template base;Template phase in the Merchandise Template losing efficacy with important goods template base Meanwhile, alert.
It is preferred that in order to effectively realize Merchandise Template detection automatization, described matching detection module 53, specifically for working as According to the identification information of described Merchandise Template, when determining this Merchandise Template for title template, determine this corresponding inspection of title template Survey parameter is Word message;When the identification information according to described Merchandise Template, when determining this Merchandise Template for price template, determine This price template corresponding detection parameter is digital information;When the identification information according to described Merchandise Template, determine this commodity mould When plate is graphic template, determine that this graphic template corresponding detection parameter is pictorial information.
It is preferred that in order to effectively realize Merchandise Template detection automatization, described matching detection module 53, specifically for working as When this Merchandise Template is title template, in the content information that comprises of this webpage judging acquisition, whether contain Word message, when obtaining When containing Word message in the content information that this webpage taking comprises, determine that the match is successful;When this Merchandise Template is price template When, judge whether contain digital information in the content information that this webpage obtaining comprises, the content comprising when this webpage obtaining When containing digital information in information, determine that the match is successful;When this Merchandise Template is graphic template, judge this webpage bag obtaining Whether pictorial information is contained in the content information containing, when in the content information that this webpage obtaining comprises containing pictorial information, Determine that the match is successful.
Embodiments provide a kind of method and device of detection commodity template failure, the method is in net to be detected In page, identify each Merchandise Template that this webpage comprises, according to this Merchandise Template corresponding detection parameter, and obtain in the page The content information that this template correspondence position taking comprises is mated, and when mating unsuccessful, determines this commodity template failure.By In in embodiments of the present invention be directed to Merchandise Template corresponding detection parameter, and in webpage the position of this Merchandise Template comprise interior Appearance information, detects to Merchandise Template, to judge whether Merchandise Template lost efficacy with this, it is achieved thereby that commodity template failure inspection The automatization surveying, improves detection efficiency and the accuracy of commodity template failure.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect Apply the form of example.And, the application can be using in one or more computers wherein including computer usable program code Usable storage medium(Including but not limited to disk memory, CD-ROM, optical memory etc.)The computer program of upper enforcement produces The form of product.
The application is with reference to according to the method for the embodiment of the present application, equipment(System), and computer program flow process Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to including excellent Select embodiment and fall into being had altered and changing of the application scope.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the application to the application God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprise these changes and modification.

Claims (10)

1. a kind of method of detection commodity template failure is it is characterised in that the method includes:
Obtain the URL of webpage to be detected, identify each Merchandise Template that this webpage comprises;
For each Merchandise Template identifying, according to the position identifying this Merchandise Template in webpage, in the web page Relevant position obtains the content information that this webpage comprises;
According to the identification information of described Merchandise Template, determine the detection parameter of this Merchandise Template, and the detection by this Merchandise Template The content information that parameter is comprised with this webpage obtaining is mated;
When the match is successful, determine this Merchandise Template effectively, otherwise, it determines this commodity template failure.
2. the method for claim 1 is it is characterised in that each Merchandise Template that this webpage of described identification comprises includes:
Using canonical method, identify each Merchandise Template that this webpage comprises.
3. the method for claim 1 is it is characterised in that after this commodity template failure of described determination, methods described is also wrapped Include:
Judge whether the Merchandise Template of this inefficacy is identical with the template in important goods template base;
When the Merchandise Template losing efficacy is identical with the template in important goods template base, alert.
4. the method for claim 1 is it is characterised in that according to the identification information of described merchandise module, determine this commodity The detection parameter of template includes:
When the identification information according to described Merchandise Template, when determining this Merchandise Template for title template, determine this title template pair The detection parameter answered is Word message;
When the identification information according to described Merchandise Template, when determining this Merchandise Template for price template, determine this price template pair The detection parameter answered is digital information;
When the identification information according to described Merchandise Template, when determining this Merchandise Template for graphic template, determine this graphic template pair The detection parameter answered is pictorial information.
5. the method for claim 1 it is characterised in that the described detection parameter by this Merchandise Template with obtain this net The content information that page comprises is mated, and the match is successful includes:
When this Merchandise Template is title template, judge in the content information that this webpage obtaining comprises, whether to contain word letter Breath, when in the content information that this webpage obtaining comprises containing Word message, determines that the match is successful;
When this Merchandise Template is price template, judge in the content information that this webpage obtaining comprises, whether to contain numeral letter Breath, when in the content information that this webpage obtaining comprises containing digital information, determines that the match is successful;
When this Merchandise Template is graphic template, judge in the content information that this webpage obtaining comprises, whether to contain picture letter Breath, when in the content information that this webpage obtaining comprises containing pictorial information, determines that the match is successful.
6. a kind of device of detection commodity template failure is it is characterised in that described device includes:
Identification module, for obtaining the URL of webpage to be detected, identifies each Merchandise Template that this webpage comprises;
Acquisition module, for for each Merchandise Template identifying, according to the position identifying this Merchandise Template in webpage, Relevant position in the web page obtains the content information that this webpage comprises;
Matching detection module, for the identification information according to described merchandise module, determines and the detection parameter by this Merchandise Template The content information being comprised with this webpage obtaining is mated;When the match is successful, determine this Merchandise Template effectively, otherwise, really This commodity template failure fixed.
7. device as claimed in claim 6 is it is characterised in that described identification module, specifically for using canonical method, identifying Each Merchandise Template that this webpage comprises.
8. device as claimed in claim 6 is it is characterised in that described device also includes:
Whether alarm module, for determining after matching detection module detection commodity template failure, judge the Merchandise Template of this inefficacy Identical with the template in important goods template base;When the Merchandise Template losing efficacy is identical with the template in important goods template base, Alert.
9. device as claimed in claim 6 is it is characterised in that described matching detection module, specifically for when according to described business The identification information of product template, when determining this Merchandise Template for title template, determines that this title template corresponding detection parameter is literary composition Word information;When the identification information according to described Merchandise Template, when determining this Merchandise Template for price template, determine this price template Corresponding detection parameter is digital information;When the identification information according to described Merchandise Template, determine that this Merchandise Template is picture mould During plate, determine that this graphic template corresponding detection parameter is pictorial information.
10. device as claimed in claim 6 is it is characterised in that described matching detection module, specifically for when this Merchandise Template During for title template, judge whether contain Word message in the content information that this webpage obtaining comprises, when this webpage obtaining When containing Word message in the content information comprising, determine that the match is successful;When this Merchandise Template is price template, judge to obtain The content information that comprises of this webpage in whether contain digital information, when in the content information that this webpage obtaining comprises containing number During word information, determine that the match is successful;When this Merchandise Template is graphic template, judge the content information that this webpage obtaining comprises In whether contain pictorial information, when in the content information that comprises of this webpage obtaining containing pictorial information, determine that the match is successful.
CN201310553137.5A 2013-11-07 2013-11-07 Commodity template failure detection method and device Active CN103593429B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310553137.5A CN103593429B (en) 2013-11-07 2013-11-07 Commodity template failure detection method and device
PCT/CN2014/090387 WO2015067179A1 (en) 2013-11-07 2014-11-05 Method and apparatus for detecting invalid commodity templates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310553137.5A CN103593429B (en) 2013-11-07 2013-11-07 Commodity template failure detection method and device

Publications (2)

Publication Number Publication Date
CN103593429A CN103593429A (en) 2014-02-19
CN103593429B true CN103593429B (en) 2017-02-15

Family

ID=50083570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310553137.5A Active CN103593429B (en) 2013-11-07 2013-11-07 Commodity template failure detection method and device

Country Status (2)

Country Link
CN (1) CN103593429B (en)
WO (1) WO2015067179A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593429B (en) * 2013-11-07 2017-02-15 北京奇虎科技有限公司 Commodity template failure detection method and device
CN105095463B (en) * 2015-07-30 2018-09-11 北京奇虎科技有限公司 Visiting method, the apparatus and system of material chained address
CN107329981B (en) * 2017-06-01 2021-05-25 北京京东尚科信息技术有限公司 Page detection method and device
CN109308251B (en) * 2017-07-27 2022-03-25 阿里巴巴集团控股有限公司 Test data verification method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200980A (en) * 2010-03-25 2011-09-28 北京搜狗科技发展有限公司 Method and system for providing network resources
CN102495847A (en) * 2011-11-16 2012-06-13 浙江盘石信息技术有限公司 Network commodity information extraction method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002202974A (en) * 2000-12-28 2002-07-19 Fujitsu Ltd Online shopping method and system
CN101727446A (en) * 2008-10-27 2010-06-09 国际商业机器公司 Method and system for accessing mobile Web, corresponding server and mobile equipment
CN102867053A (en) * 2012-09-12 2013-01-09 北京奇虎科技有限公司 Method, device and system for collecting effective information web pages in website information
CN103593429B (en) * 2013-11-07 2017-02-15 北京奇虎科技有限公司 Commodity template failure detection method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200980A (en) * 2010-03-25 2011-09-28 北京搜狗科技发展有限公司 Method and system for providing network resources
CN102495847A (en) * 2011-11-16 2012-06-13 浙江盘石信息技术有限公司 Network commodity information extraction method

Also Published As

Publication number Publication date
WO2015067179A1 (en) 2015-05-14
CN103593429A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN108897724B (en) Function completion progress determining method and device
CN102946616B (en) Internet of things middleware performance testing system and testing method
JP5522065B2 (en) Board inspection system
CN107992427A (en) Create method, apparatus, equipment and its storage medium of operational trials scene
CN103593429B (en) Commodity template failure detection method and device
CN104267964B (en) A kind of template generation device
CN107247637A (en) A kind of APP fault determination methods and device
CN109240874A (en) Website page method for detecting abnormality, apparatus and system
CN113868126A (en) Application debugging method, device and storage medium of equipment
CN106951495A (en) Method and apparatus for information to be presented
CN111522741A (en) Interface test code generation method and device, electronic equipment and readable storage medium
CN111159167B (en) Labeling quality detection device and method
CN112835776A (en) Page event reproduction method, page event acquisition method, page event reproduction device and electronic equipment
CN110908915B (en) Test coverage rate display method and device and computer system
CN110908907A (en) Web page testing method, device, equipment and storage medium
CN113342692B (en) Automatic test case generation method and device, electronic equipment and storage medium
CN105653441B (en) A kind of UI traversal test methods and system
US10152039B2 (en) Method and apparatus for the display of multiple errors on a human-machine interface
CN107180083A (en) A kind of analysis and processing method to investment project
CN108108175A (en) A kind of method and apparatus for gray scale issue
CN111832254B (en) Drawing annotation display processing method and device
US8255881B2 (en) System and method for calculating software certification risks
CN110971483B (en) Pressure testing method and device and computer system
CN115048302A (en) Front-end compatibility testing method and device, storage medium and electronic equipment
CN108270727A (en) Abnormal data analysis method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right