CN108334446A - A kind of method of calibration of web page template, device and computer readable storage medium - Google Patents

A kind of method of calibration of web page template, device and computer readable storage medium Download PDF

Info

Publication number
CN108334446A
CN108334446A CN201711486533.5A CN201711486533A CN108334446A CN 108334446 A CN108334446 A CN 108334446A CN 201711486533 A CN201711486533 A CN 201711486533A CN 108334446 A CN108334446 A CN 108334446A
Authority
CN
China
Prior art keywords
nextpage
line
die plate
face die
title
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.)
Pending
Application number
CN201711486533.5A
Other languages
Chinese (zh)
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711486533.5A priority Critical patent/CN108334446A/en
Publication of CN108334446A publication Critical patent/CN108334446A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The invention discloses a kind of method of calibration of web page template, device and computer readable storage mediums, wherein method includes:Determine whether the existing line nextpage face die plate selected;In the case where determining the existing line nextpage face die plate selected, line nextpage face die plate is verified by preset algorithm;In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent;Otherwise, the instruction for prompt of not reaching the standard grade is sent;The method, apparatus and computer readable storage medium of the present invention, it is automatically performed the verification to selected line nextpage face die plate by test script, without completing the verification to the line nextpage face die plate by manpower, not only realize saving human cost, the upper line mass of line nextpage face die plate can also be improved, on-line time is shortened and improves efficiency of reaching the standard grade, to evade the advertisement loss brought by upper wrong line nextpage face die plate and the injury to user experience.

Description

A kind of method of calibration of web page template, device and computer readable storage medium
Technical field
It can the present invention relates to a kind of auto-building html files field more particularly to method of calibration of web page template, device and computer Read storage medium.
Background technology
On the display page at the existing ends PC, needs that Page Template is first uploaded to page builder, then pass through page The Page Template of the upload is generated the page by surface generator, then by the page synchronization to aol server.
But it before the Page Template is generated the page by page builder, also needs to verify the template.And In the prior art, the verifying work is always by being accomplished manually.And people is susceptible to various factors in checking procedure, and lead Cause verification error.If verification error may result in the page of generation error, such as:Pekinese's city map template is uploaded The city map template of Lhasa, that will lead to the map page for being generated Lhasa of Pekinese's map page fault, this to Family experience influences advertisement dispensing that is extremely bad, while also affecting each service line.
Invention content
It is a primary object of the present invention to propose a kind of method of calibration of web page template, device and computer-readable storage medium Matter, it is intended to overcome the defect of Page Template check errors caused by often making a fault due to desk checking.
According to an aspect of the invention, there is provided a kind of method of calibration of web page template, is executed by test script The method includes:Determine whether the existing line nextpage face die plate selected;Determining the existing line nextpage face die plate selected In the case of, the line nextpage face die plate is verified by preset algorithm;In the case where verification passes through, transmission, which is reached the standard grade, to be carried The instruction shown;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
Optionally, described to determine whether the existing line nextpage face die plate selected, including:Monitoring is for selecting the line nextpage Whether the button of face die plate is clicked;In the case where monitoring that the button is clicked, determine under the existing line selected Page Template.
Optionally, described that the line nextpage face die plate is verified by preset algorithm, including:Obtain the existing choosing The title of fixed line nextpage face die plate;Title and the target pages institute of the line nextpage face die plate are determined by the preset algorithm Whether the title of the default Page Template needed matches;Needed for the title and the target pages for determining the line nextpage face die plate Default Page Template name-matches in the case of, send the instruction of prompt of reaching the standard grade;Otherwise, the finger for prompt of not reaching the standard grade is sent It enables.
Optionally, described that the line nextpage face die plate is verified by preset algorithm, including:Obtain the existing choosing The title of fixed line nextpage face die plate;Determine the title of the line nextpage face die plate with target pages by the preset algorithm Whether the title of Page Template matches on some lines;Have in the title for determining the line nextpage face die plate and the target pages Line on Page Template name-matches in the case of, send the instruction of prompt of reaching the standard grade;Otherwise, the finger for prompt of not reaching the standard grade is sent It enables.
Optionally, the preset algorithm includes:Regular expression.
Optionally, the test script is run on current system browser.
According to the second aspect of the invention, a kind of calibration equipment of web page template is provided, which is characterized in that the dress Set including:Chosen module is used to determine whether the existing line nextpage face die plate selected;Correction verification module, for determining existing choosing In the case of the fixed line nextpage face die plate, the line nextpage face die plate is verified by preset algorithm;Instruction module, For in the case where verification passes through, sending the instruction for prompt of reaching the standard grade;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
Optionally, the chosen module includes:Verification unit, for monitoring for selecting pressing for the line nextpage face die plate Whether button is clicked;Determination unit, in the case where monitoring that the button is clicked, determining the existing line selected Nextpage face die plate.
Optionally, the correction verification module includes:Name cell, for obtaining the existing line nextpage face die plate selected Title;Matching unit, for being determined by the preset algorithm needed for title and the target pages of the line nextpage face die plate Whether the title of default Page Template matches;Command unit, in the title for determining the line nextpage face die plate and the mesh In the case of the name-matches for marking the default Page Template needed for the page, the instruction for prompt of reaching the standard grade is sent;Otherwise, it sends on not The instruction of line prompt.
Optionally, the correction verification module includes:Title determination unit, for obtaining the existing line nextpage face mould selected The title of plate;Name-matches unit, title and page object for determining the line nextpage face die plate by the preset algorithm Whether the title of Page Template matches on the existing line in face;Template command unit, for determining the line nextpage face die plate In title and the existing line of the target pages in the case of the name-matches of Page Template, the instruction for prompt of reaching the standard grade is sent;It is no Then, the instruction for prompt of not reaching the standard grade is sent.
According to the third aspect of the present invention, a kind of computer readable storage medium is provided, it is described computer-readable to deposit Storage media is stored with one or more program, and one or more of programs can be executed by one or more processor, To realize a kind of method of calibration of above-mentioned Webpage template.
According to the fourth aspect of the present invention, it provides a kind of computer equipment, including memory, processor and is stored in On the memory and the computer program that can run on the processor, the processor are realized when executing described program A kind of method of calibration for the Webpage template stated.
The present invention has the beneficial effect that:The method of calibration of web page template that the embodiment of the present invention is provided a kind of, device and Computer readable storage medium can be automatically performed the verification to selected line nextpage face die plate by test script, without The verification to the line nextpage face die plate is completed by manpower, saving human cost is not only realized, line nextpage can also be improved The upper line mass of face die plate shortens on-line time and improves efficiency of reaching the standard grade, to evade because of upper wrong line nextpage face mould Plate and bring advertisement loss and the injury to user experience.
Description of the drawings
Fig. 1 is a kind of flow diagram of the method for calibration of web page template of first embodiment of the invention;
Fig. 2 is a kind of flow diagram of the method for calibration of web page template of second embodiment of the invention;
Fig. 3 is a kind of flow diagram of the method for calibration of web page template of third embodiment of the invention;
Fig. 4 is a kind of flow diagram of the method for calibration of web page template of fourth embodiment of the invention;
Fig. 5 is that a kind of web page template of region commercial circle software of sixth embodiment of the invention generates the flow diagram of the page;
Fig. 6 is a kind of schematic diagram of the selection line nextpage face die plate of region commercial circle software of sixth embodiment of the invention;
Fig. 7 is a kind of interception schematic diagram to button ID of region commercial circle software of sixth embodiment of the invention;
Fig. 8 is a kind of schematic diagram of the template matches of region commercial circle software of sixth embodiment of the invention;
Fig. 9 is a kind of prompt schematic diagram that region commercial circle software provides after matching of sixth embodiment of the invention;
Figure 10 is a kind of page prompts result signal of the region commercial circle software of sixth embodiment of the invention in successful match Figure;
Figure 11 is that a kind of page prompts result of the region commercial circle software of sixth embodiment of the invention when matching unsuccessful is shown It is intended to;
Figure 12 is a kind of schematic diagram of the system browser of region commercial circle software of sixth embodiment of the invention;
Figure 13 is a kind of structural schematic diagram of the calibration equipment of web page template of seventh embodiment of the invention.
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Embodiment to facilitate the understanding of the present invention carries out the implementation process of the present invention below by several specific embodiments Detailed elaboration.
First embodiment of the invention provides a kind of method of calibration of web page template, the method executed by test script Including:Determine whether the existing line nextpage face die plate selected;In the case where determining the existing line nextpage face die plate selected, The line nextpage face die plate is verified by preset algorithm;In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent; Otherwise, the instruction for prompt of not reaching the standard grade is sent.
With regard to this, the verification to selected line nextpage face die plate can be automatically performed by test script, without passing through people Power completes the verification to the line nextpage face die plate, not only realizes saving human cost, can also improve line nextpage face die plate Upper line mass, shorten on-line time and improve efficiency of reaching the standard grade, to evade band due to upper wrong line nextpage face die plate The advertisement loss come and the injury to user experience.
Fig. 1 is a kind of flow diagram of the method for calibration of web page template of first embodiment of the invention.Specifically, according to Fig. 1 Shown, a kind of method of calibration for web page template that first embodiment of the invention provides is based on test script comprising:
S1:Determine whether the existing line nextpage face die plate selected;
Test script needs first to determine whether the existing line nextpage face die plate selected, that is, determines whether to have selected line lower page Template.Wherein, line nextpage face die plate by page builder (or:Homepage generator) the corresponding page is produced, by the life At page uploading to aol server the page can be completed reach the standard grade work.
In addition, line nextpage face die plate is alternatively referred to as html file.HTML (application under standard generalized markup language) File is can be read by a variety of web browsers, generates all kinds of information files transmitted through webpage.Essentially, Internet (internet) is an a series of set being made of transport protocols and all kinds of documents, and html file is wherein One kind.These html files are stored in the server hard disc being distributed in all over the world, and by transport protocol, user can be remote Journey obtains the information and information that these files are conveyed, moreover, it is usually with .htm or .html (foreign language abbreviation) for extension name.
Moreover, in the present embodiment, test script is for completing the action of all monitorings to line nextpage face die plate.In this reality It applies in example, test script is not defined, it is only needed to meet the requirement of the embodiment of the present invention.Wherein, test script By taking JS scripts as an example.
JS is the abbreviation of JavaScript, is a kind of literal translation formula script, is a kind of regime type, weak type, base In the language of prototype, built-in support type.Its interpreter is referred to as JavaScript engine, is a part for browser, extensively The general script for client is clicked on HTML (application under standard generalized markup language) webpage earliest, For increasing dynamic function to html web page.
S2:In the case where determining the existing line nextpage face die plate selected, by preset algorithm to the line nextpage Face die plate is verified;
If it is determined that the existing line nextpage face die plate selected, that is, determine and selected line nextpage face die plate, in this situation Under, test script verifies the line nextpage face die plate by preset algorithm.
Optionally, the preset algorithm includes:Regular expression.Regular expression, also known as regular expression.(English: Regular Expression, are often abbreviated as regex, regexp or RE in code), a concept of computer science.Just Then expression formula is usually used to retrieval, replaces those texts for meeting some page module (rule).In the present embodiment, not The preset algorithm is defined, it is only needed to meet the requirement of the embodiment of the present invention.
S3:In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
In the case where passing through to the verification of the line nextpage face die plate, so that it may to determine that the line nextpage face die plate can be upper Reach page builder (or:Homepage generator) carry out the generation of the corresponding page.In the case, test script is sent out to system Serve the instruction of line prompt so that the page jumps out prompt message to remind user that can the line nextpage face die plate be uploaded to the page Generator (or:Homepage generator) carry out the generation of the corresponding page.
Certainly, in the case where not passing through to the verification of the line nextpage face die plate, that is, determine that the line nextpage face die plate can not Be uploaded to page builder (or:Homepage generator) carry out the generation of the corresponding page.To which test script is sent out to system Send the instruction for prompt of not reaching the standard grade so that the page jump out prompt message with remind the user selected line nextpage face die plate cannot on Line.
In addition, above-mentioned hint instructions are exported by the console of browser.
In the present embodiment, the verification to selected line nextpage face die plate can be automatically performed by test script, and nothing The verification to the line nextpage face die plate need to be completed by manpower, not only realized saving human cost, can also be improved under line The upper line mass of Page Template shortens on-line time and improves efficiency of reaching the standard grade, to evade because of upper wrong line lower page Template and bring advertisement loss and the injury to user experience.
Fig. 2 is a kind of flow diagram of the method for calibration of web page template of second embodiment of the invention.Specifically, according to fig. 2 Shown, a kind of method of calibration for web page template that second embodiment of the invention provides is based on test script comprising:
S1:Determine whether the existing line nextpage face die plate selected;
S2:In the case where determining the existing line nextpage face die plate selected, by preset algorithm to the line nextpage Face die plate is verified;
Optionally, the preset algorithm includes:Regular expression.Regular expression, also known as regular expression.(English: Regular Expression, are often abbreviated as regex, regexp or RE in code), a concept of computer science.Just Then expression formula is usually used to retrieval, replaces those texts for meeting some page module (rule).In the present embodiment, not The preset algorithm is defined, it is only needed to meet the requirement of the embodiment of the present invention.
S3:In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
In the present embodiment, step S1 includes:
S11:Monitoring is for selecting whether the button of the line nextpage face die plate is clicked;Monitoring the button by point In the case of hitting, the existing line nextpage face die plate selected is determined.
Specifically, in the present embodiment, test script is used to select the line nextpage face mould by examining that element obtains this The ID of the button of plate, and be monitored by detecting the ID to whether the button is clicked.
Here, it monitors whether the button belonging to the ID is clicked to ID by what examination element obtained by detecting, belongs to In the prior art, therefore not to repeat here.If the button is clicked, line nextpage face die plate is selected.If the button is not clicked on, Then unselected alignment lower page template.So the ID of button of the acquisition for choosing line nextpage face die plate is needed, then, by monitoring The ID can be completed to whether the existing line nextpage face die plate selected is monitored.Certainly, it is selection to select line lower page module The line nextpage face die plate being locally stored.
Fig. 3 is a kind of flow diagram of the method for calibration of web page template of third embodiment of the invention.Specifically, according to fig. 3 Shown, a kind of method of calibration for web page template that third embodiment of the invention provides is based on test script comprising:
S1:Determine whether the existing line nextpage face die plate selected;
S2:In the case where determining the existing line nextpage face die plate selected, by preset algorithm to the line nextpage Face die plate is verified;
Optionally, the preset algorithm includes:Regular expression.Regular expression, also known as regular expression.(English: Regular Expression, are often abbreviated as regex, regexp or RE in code), a concept of computer science.Just Then expression formula is usually used to retrieval, replaces those texts for meeting some page module (rule).In the present embodiment, not The preset algorithm is defined, it is only needed to meet the requirement of the embodiment of the present invention.
S3:In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
Optionally, step S1 includes:S11:Monitoring is for selecting whether the button of the line nextpage face die plate is clicked; In the case of monitoring that the button is clicked, the existing line nextpage face die plate selected is determined.
In the present embodiment, step S3 includes:
S31:Obtain the title of the existing line nextpage face die plate selected;It is determined under the line by the preset algorithm Whether the title of Page Template matches with the title of the default Page Template needed for target pages;Determining the line nextpage face mould In the case of the name-matches of default Page Template needed for the title of plate and the target pages, the finger for prompt of reaching the standard grade is sent It enables;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
I.e. after line nextpage face die plate has been selected in determination, need to verify the line nextpage face die plate.Specifically, the school The process of testing includes:
The title of the line nextpage face die plate is first obtained, then by preset algorithm by the title and mesh of the line nextpage face die plate The title of default Page Template needed for the mark page is matched.Wherein, after line nextpage face die plate verification passes through, under the line Page Template can be used as the default Page Template needed for the target pages, i.e.,:Pass through the page of the line lower page template generation The as target pages.
For the matching process, it is preferred that determine the title of the line nextpage face die plate and the default page needed for target pages Whether the title of face die plate is identical.It is if the title of the two is identical, successful match, i.e., logical to the verification of the line nextpage face die plate It crosses.If the title of the two is different, it fails to match, i.e., does not pass through to the verification of the line nextpage face die plate.
In the case where passing through to the verification of the line nextpage face die plate, so that it may to determine that the line nextpage face die plate can be upper Reach page builder (or:Homepage generator) carry out the generation of the corresponding page.In the case, test script is sent out to system Serve the instruction of line prompt so that the page jumps out prompt message to remind user that can the line nextpage face die plate be uploaded to the page Generator (or:Homepage generator) carry out the generation of the corresponding page.
Certainly, in the case where not passing through to the verification of the line nextpage face die plate, that is, determine that the line nextpage face die plate can not Be uploaded to page builder (or:Homepage generator) carry out the generation of the corresponding page.To which test script is sent out to system Send the instruction for prompt of not reaching the standard grade so that the page jump out prompt message with remind the user selected line nextpage face die plate cannot on Line.
Fig. 4 is a kind of flow diagram of the method for calibration of web page template of fourth embodiment of the invention.Specifically, according to Fig. 4 Shown, a kind of method of calibration for web page template that fourth embodiment of the invention provides is based on test script comprising:
S1:Determine whether the existing line nextpage face die plate selected;
S2:In the case where determining the existing line nextpage face die plate selected, by preset algorithm to the line nextpage Face die plate is verified;
Optionally, the preset algorithm includes:Regular expression.Regular expression, also known as regular expression.(English: Regular Expression, are often abbreviated as regex, regexp or RE in code), a concept of computer science.Just Then expression formula is usually used to retrieval, replaces those texts for meeting some page module (rule).In the present embodiment, not The preset algorithm is defined, it is only needed to meet the requirement of the embodiment of the present invention.
S3:In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
Optionally, step S1 includes:S11:Monitoring is for selecting whether the button of the line nextpage face die plate is clicked; In the case of monitoring that the button is clicked, the existing line nextpage face die plate selected is determined.
In the present embodiment, step S3 includes:
S32:Obtain the title of the existing line nextpage face die plate selected;It is determined under the line by the preset algorithm Whether the title of Page Template matches with the title of Page Template on the existing line of target pages;Determining the line nextpage face mould In the title of plate and the existing line of the target pages in the case of the name-matches of Page Template, the finger for prompt of reaching the standard grade is sent It enables;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
I.e. after line nextpage face die plate has been selected in determination, need to verify the line nextpage face die plate.Specifically, the school The process of testing includes:
The title of the line nextpage face die plate is first obtained, then by preset algorithm by the title and mesh of the line nextpage face die plate The title of Page Template is matched on the mark existing line of the page.Wherein, after line nextpage face die plate verification passes through, under the line Page Template will be used to substitute Page Template on the existing line of the target pages, i.e.,:Pass through the line lower page template generation The page be the target pages.
For the matching process, it is preferred that the title for determining the line nextpage face die plate and page on the existing line of target pages Whether the title of face die plate is identical.It is if the title of the two is identical, successful match, i.e., logical to the verification of the line nextpage face die plate It crosses.If the title of the two is different, it fails to match, i.e., does not pass through to the verification of the line nextpage face die plate.
In the case where passing through to the verification of the line nextpage face die plate, so that it may to determine that the line nextpage face die plate can be upper Reach page builder (or:Homepage generator) carry out the generation of the corresponding page.In the case, test script is sent out to system Serve the instruction of line prompt so that the page jumps out prompt message to remind user that can the line nextpage face die plate be uploaded to the page Generator (or:Homepage generator) carry out the generation of the corresponding page.
Certainly, in the case where not passing through to the verification of the line nextpage face die plate, that is, determine that the line nextpage face die plate can not Be uploaded to page builder (or:Homepage generator) carry out the generation of the corresponding page.To which test script is sent out to system Send the instruction for prompt of not reaching the standard grade so that the page jump out prompt message with remind the user selected line nextpage face die plate cannot on Line.
A kind of method of calibration for web page template that fifth embodiment of the invention provides is based on test script comprising:
S1:Determine whether the existing line nextpage face die plate selected;
S2:In the case where determining the existing line nextpage face die plate selected, by preset algorithm to the line nextpage Face die plate is verified;
Optionally, the preset algorithm includes:Regular expression.Regular expression, also known as regular expression.(English: Regular Expression, are often abbreviated as regex, regexp or RE in code), a concept of computer science.Just Then expression formula is usually used to retrieval, replaces those texts for meeting some page module (rule).In the present embodiment, not The preset algorithm is defined, it is only needed to meet the requirement of the embodiment of the present invention.
S3:In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
Optionally, step S1 includes:S11:Monitoring is for selecting whether the button of the line nextpage face die plate is clicked; In the case of monitoring that the button is clicked, the existing line nextpage face die plate selected is determined.
In the present embodiment, step S3 includes:
S31:Obtain the title of the existing line nextpage face die plate selected;It is determined under the line by the preset algorithm Whether the title of Page Template matches with the title of the default Page Template needed for target pages;Determining the line nextpage face mould In the case of the name-matches of default Page Template needed for the title of plate and the target pages, the finger for prompt of reaching the standard grade is sent It enables;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
Or, S32:Obtain the title of the existing line nextpage face die plate selected;Described in preset algorithm determination Whether the title of line nextpage face die plate matches with the title of Page Template on the existing line of target pages;Determining the line nextpage In the title of face die plate and the existing line of the target pages in the case of the name-matches of Page Template, prompt of reaching the standard grade is sent Instruction;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
In addition, the test script is run on current system browser.I.e. the test script does not depend on running environment, The system browser currently reached the standard grade can be run, and durability is very strong.With regard to this, system code knot is not generated to original page The destruction and secondary development of structure, alleviate the reconstruct to original system and development cost.Moreover, script flexible approach, not by upper Line system interference.
In order to more preferably illustrate the implementation process of the present embodiment the method, with reference to a concrete application example, to this Inventive embodiments the method illustrates.
A kind of method of calibration of the web page template for region commercial circle software that sixth embodiment of the invention provides is based on JS feet This comprising:
It for JS scripts, is illustrated, therefore it is not carried out in the present embodiment in the first embodiment of the invention It repeats.
Following explanation is carried out by taking the homepage page of the region commercial circle software as an example:
Fig. 5 is that a kind of web page template of region commercial circle software of sixth embodiment of the invention generates the flow diagram of the page. In Figure 5:RD:Research and Development engineer, research and develop engineer, the things that certain is not present into Row systematic research and the professional for developing and having certain experiences, or already existing things is improved to reach To the professional of optimization purpose.
QA:QA:QualtiyAssurance, the tester of quality guarantee, that is, product item.The major responsibility of QA is exactly Quality Assurance.
SVN:It is the abbreviation of Subversion, is the version control system of an open source code.
According to Fig.5, sixth embodiment of the invention specifically includes:
First step:Before reaching the standard grade, RD is required for the template file that will be reached the standard grade being submitted to svn line nextpage face die plate;
Second step:QA needs svn to pull the line lower page template file that will be reached the standard grade.
Third step:Generate system by the page and click template management module, in the page of displaying selection to be reached the standard grade Line cope plate is (i.e.:The existing template of target pages) modification is clicked after title, it needs to upload local line nextpage face die plate at this time File is replaced, and needs to verify template name in replacement process.
The content of four steps:After template file is replaced, the corresponding page is generated, then disposes the page of generation on line Server is reached the standard grade.
In the present embodiment, third step is the core entirely reached the standard grade, for recorded in third step to template The verification of title comprising:
Fig. 6 is a kind of schematic diagram of the selection line nextpage face die plate of region commercial circle software of sixth embodiment of the invention.According to Shown in Fig. 6:
One, is by examining that element gets the ID of " select file " button:”templatefile_add”.
Specifically, clicking " inspection " by right key in current browser, upper left corner icon is clicked in the debugging region of browser, so Afterwards by mouse picking to select file region, browser can show the ID of the button.Getting can be to this after the ID of the button Button is monitored subsequent operation, so that intercept process template verifies.
Select file:It is from the entrance for locally selecting line nextpage face die plate and being uploaded.
Fig. 7 is a kind of interception schematic diagram to button ID of region commercial circle software of sixth embodiment of the invention.According to Fig. 7 institutes Show:
Two, monitor the ID switching action of the button and are intercepted.
Monitoring and interception all realize that the triggering switching of ID is completed by clicking by JS scripts.The work of switching Be selection this ground wire lower page template.The effect of interception is can be monitored to switching action, then starts subsequent school It tests.
Fig. 8 is a kind of schematic diagram of the template matches of region commercial circle software of sixth embodiment of the invention.According to Fig.8,:
It is that three, remove matched line lower page template name by regular expression with line cope plate that is being reached the standard grade (i.e.:Page object The existing template in face) title.
Wherein, regular expression is usually used to retrieval, replaces those texts for meeting some pattern (rule).The two exists Line, which exists, matches unsuccessful situation, which can give pop-up prompt, inform that both QA titles are inconsistent, need to upload again New line nextpage face die plate.
Fig. 9 is a kind of prompt schematic diagram that region commercial circle software provides after matching of sixth embodiment of the invention.According to Fig. 9 It is shown:
If four, selection line lower page template name with the line cope plate to be reached the standard grade (i.e.:The existing mould of target pages Plate) title verification is consistent, then and give the prompt that can reach the standard grade, otherwise then gives prompt of not reaching the standard grade
Line lower page template source:The template that QA is pulled from svn.
Line nextpage face die plate and the line cope plate relationship to be reached the standard grade:Line nextpage face die plate replace the line cope plate to be reached the standard grade into Row is reached the standard grade.
Provide suggesting effect:QA is by prompt, to confirm whether line nextpage face die plate and the line cope plate to be reached the standard grade are consistent, If do not provided prompt, template can be caused to upload the risk of mistake, eventually lead to the page of generation error.
Five, implementing results.
Figure 10 is a kind of page prompts result signal of the region commercial circle software of sixth embodiment of the invention in successful match Figure.I.e.:When the title of line nextpage face die plate is consistent with the title of the line cope plate to be reached the standard grade, prompt pop-up can be popped up, specifically As shown in Figure 10.Moreover, if the two unanimously can be carried out four steps one, completion is reached the standard grade.
Figure 11 is that a kind of page prompts result of the region commercial circle software of sixth embodiment of the invention when matching unsuccessful is shown It is intended to.I.e.:When the title of line nextpage face die plate and the inconsistent title of the line cope plate to be reached the standard grade, prompt pop-up can be popped up, is had Shown in the 11 of body.
Figure 12 is a kind of schematic diagram of the system browser of region commercial circle software of sixth embodiment of the invention.It should be noted that It is:According to Figure 12, which does not depend on running environment, can be run in the system browser currently reached the standard grade.And it is multiple It is very strong with property.
Figure 13 is a kind of structural schematic diagram of the method for calibration of web page template of seventh embodiment of the invention.Specifically, according to Shown in Figure 13, a kind of calibration equipment for web page template that seventh embodiment of the invention provides, described device includes:Chosen module, It is used to determine whether the existing line nextpage face die plate selected;Correction verification module, for determining the existing line lower page selected In the case of template, the line nextpage face die plate is verified by preset algorithm;Instruction module, for what is passed through in verification In the case of, send the instruction for prompt of reaching the standard grade;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
Optionally, the chosen module includes:Verification unit, for monitoring for selecting pressing for the line nextpage face die plate Whether button is clicked;Determination unit, in the case where monitoring that the button is clicked, determining the existing line selected Nextpage face die plate.
Optionally, the correction verification module includes:Name cell, for obtaining the existing line nextpage face die plate selected Title;Matching unit, for being determined by the preset algorithm needed for title and the target pages of the line nextpage face die plate Whether the title of default Page Template matches;Command unit, in the title for determining the line nextpage face die plate and the mesh In the case of the name-matches for marking the default Page Template needed for the page, the instruction for prompt of reaching the standard grade is sent;Otherwise, it sends on not The instruction of line prompt.
Optionally, the correction verification module includes:Title determination unit, for obtaining the existing line nextpage face mould selected The title of plate;Name-matches unit, title and page object for determining the line nextpage face die plate by the preset algorithm Whether the title of Page Template matches on the existing line in face;Template command unit, for determining the line nextpage face die plate In title and the existing line of the target pages in the case of the name-matches of Page Template, the instruction for prompt of reaching the standard grade is sent;It is no Then, the instruction for prompt of not reaching the standard grade is sent.
A kind of computer readable storage medium that eighth embodiment of the invention provides, the computer readable storage medium are deposited One or more program is contained, one or more of programs can be executed by one or more processor, in realization A kind of method of calibration for the Webpage template stated.
Since a kind of method of calibration of web page template being described in detail in the first to the 5th embodiment, institute Not carry out repeating elaboration in the present embodiment to the implementation process of this method.
A kind of computer equipment that ninth embodiment of the invention provides, including memory, processor and it is stored in described deposit On reservoir and the computer program that can run on the processor, the processor realize above-mentioned one when executing described program The method of calibration of kind Webpage template.
Since a kind of method of calibration of web page template being described in detail in the first to the 5th embodiment, institute Not carry out repeating elaboration in the present embodiment to the implementation process of this method.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of method of calibration of web page template, which is characterized in that by test script execute the method includes:
Determine whether the existing line nextpage face die plate selected;
In the case where determining the existing line nextpage face die plate selected, by preset algorithm to the line nextpage face die plate into Row verification;
In the case where verification passes through, the instruction for prompt of reaching the standard grade is sent;
Otherwise, the instruction for prompt of not reaching the standard grade is sent.
2. according to the method described in claim 1, it is characterized in that, described determine whether the existing line nextpage face die plate selected, Including:
Monitoring is for selecting whether the button of the line nextpage face die plate is clicked;
In the case where monitoring that the button is clicked, the existing line nextpage face die plate selected is determined.
3. method according to claim 1 or 2, which is characterized in that it is described by preset algorithm to the line nextpage face mould Plate is verified, including:
Obtain the title of the existing line nextpage face die plate selected;
By the preset algorithm determine the line nextpage face die plate title and target pages needed for default Page Template Whether title matches;
In the title for determining the line nextpage face die plate and the name-matches of the default Page Template needed for the target pages In the case of, send the instruction for prompt of reaching the standard grade;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
4. method according to claim 1 or 2, which is characterized in that it is described by preset algorithm to the line nextpage face mould Plate is verified, including:
Obtain the title of the existing line nextpage face die plate selected;
The title for determining the line nextpage face die plate by the preset algorithm and Page Template on the existing line of target pages Whether title matches;
In the title for determining the line nextpage face die plate and the name-matches of Page Template on the existing line of the target pages In the case of, send the instruction for prompt of reaching the standard grade;
Otherwise, the instruction for prompt of not reaching the standard grade is sent.
5. according to the method described in claim 1, it is characterized in that, the test script is run on current system browser.
6. a kind of calibration equipment of web page template, which is characterized in that described device includes:
Chosen module is used to determine whether the existing line nextpage face die plate selected;
Correction verification module, in the case where determining the existing line nextpage face die plate selected, by preset algorithm to described Line nextpage face die plate is verified;
Instruction module, in the case where verification passes through, sending the instruction for prompt of reaching the standard grade;Otherwise, prompt of not reaching the standard grade is sent Instruction.
7. device according to claim 6, which is characterized in that the chosen module includes:
Verification unit, for monitoring for selecting whether the button of the line nextpage face die plate is clicked;
Determination unit determines the existing line nextpage face die plate selected in the case where monitoring that the button is clicked.
8. the device described according to claim 6 or 7, which is characterized in that the correction verification module includes:
Name cell, the title for obtaining the existing line nextpage face die plate selected;
Matching unit, it is pre- needed for the title and target pages for determining the line nextpage face die plate by the preset algorithm If whether the title of Page Template matches;
Command unit, in the title for determining the line nextpage face die plate and the default Page Template needed for the target pages Name-matches in the case of, send the instruction of prompt of reaching the standard grade;Otherwise, the instruction for prompt of not reaching the standard grade is sent.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple programs, one or more of programs can be executed by one or more processor, to realize in claim 1 to 5 A kind of method of calibration of Webpage template of any one of them.
10. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be The computer program run on the processor, the processor realize any one of claim 1 to 5 when executing described program A kind of method of calibration of the Webpage template.
CN201711486533.5A 2017-12-29 2017-12-29 A kind of method of calibration of web page template, device and computer readable storage medium Pending CN108334446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711486533.5A CN108334446A (en) 2017-12-29 2017-12-29 A kind of method of calibration of web page template, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711486533.5A CN108334446A (en) 2017-12-29 2017-12-29 A kind of method of calibration of web page template, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108334446A true CN108334446A (en) 2018-07-27

Family

ID=62924650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711486533.5A Pending CN108334446A (en) 2017-12-29 2017-12-29 A kind of method of calibration of web page template, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108334446A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968822A (en) * 2018-09-30 2020-04-07 阿里巴巴集团控股有限公司 Page detection method and device, electronic equipment and storage medium
CN111538547A (en) * 2020-04-29 2020-08-14 中国银行股份有限公司 Application page configuration method and device of application program
CN112685253A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 Front-end error log collection method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114226A (en) * 2007-08-28 2008-01-30 北京中企开源信息技术有限公司 Code automatically generating device based on model component, system and method
CN102096715A (en) * 2011-02-11 2011-06-15 深圳市同洲电子股份有限公司 Method and system for acquiring webpage template, and method and system for generating single website
WO2014018083A1 (en) * 2012-07-27 2014-01-30 Felice Curcelli A collaborative system and method for publishing multi-media interactive content
CN106201642A (en) * 2016-06-29 2016-12-07 微梦创科网络科技(中国)有限公司 A kind of template automatization based on NODEJS compiling loading method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114226A (en) * 2007-08-28 2008-01-30 北京中企开源信息技术有限公司 Code automatically generating device based on model component, system and method
CN102096715A (en) * 2011-02-11 2011-06-15 深圳市同洲电子股份有限公司 Method and system for acquiring webpage template, and method and system for generating single website
WO2014018083A1 (en) * 2012-07-27 2014-01-30 Felice Curcelli A collaborative system and method for publishing multi-media interactive content
CN106201642A (en) * 2016-06-29 2016-12-07 微梦创科网络科技(中国)有限公司 A kind of template automatization based on NODEJS compiling loading method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968822A (en) * 2018-09-30 2020-04-07 阿里巴巴集团控股有限公司 Page detection method and device, electronic equipment and storage medium
CN110968822B (en) * 2018-09-30 2023-04-18 阿里巴巴集团控股有限公司 Page detection method and device, electronic equipment and storage medium
CN111538547A (en) * 2020-04-29 2020-08-14 中国银行股份有限公司 Application page configuration method and device of application program
CN112685253A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 Front-end error log collection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10713149B2 (en) Processing automation scripts of software
CN103729285B (en) A kind of webpage test method, equipment and system
CN104391786B (en) Webpage automatization test system and its method
CN110442511B (en) Visual embedded point testing method and device
CN104077217B (en) The compiling dissemination method and system of code file
CN107992409A (en) Method for generating test case, device, computer equipment and storage medium
CN108959059B (en) Test method and test platform
CN106844217A (en) Control to applying bury method and device, readable storage medium storing program for executing a little
CN109460279A (en) Forms pages development approach, device, equipment and storage medium based on small routine
CN107608874A (en) Method of testing and device
CN105095059B (en) A kind of method and apparatus of automatic test
CN107832216A (en) One kind buries a method of testing and device
CN105446864B (en) Method and device for verifying influence of deletion of cache file and mobile terminal
CN108334446A (en) A kind of method of calibration of web page template, device and computer readable storage medium
CN106550038B (en) Data configuration diagnosis system and method of digital control system
CN108804305A (en) A kind of method and device of automatic test
CN106547687A (en) Application testing method, apparatus and system
CN106294171A (en) The test system of product automatic deployment, method and apparatus
CN106776319B (en) Automatic test method and device
CN111309505B (en) Page exception handling method and device and electronic equipment
CN104102578B (en) Test method and system and operation terminal
CN106649107A (en) Automated testing method and device for stability of Android system
CN104320793B (en) A kind of Automated testing method of cell phone short messages and system
CN103246601B (en) Method of testing and device
CN106326116A (en) Method and device for testing product

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180727

RJ01 Rejection of invention patent application after publication