CN110351162A - Page availability monitor method, apparatus, computer equipment and storage medium - Google Patents
Page availability monitor method, apparatus, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110351162A CN110351162A CN201910461969.1A CN201910461969A CN110351162A CN 110351162 A CN110351162 A CN 110351162A CN 201910461969 A CN201910461969 A CN 201910461969A CN 110351162 A CN110351162 A CN 110351162A
- Authority
- CN
- China
- Prior art keywords
- page
- detected
- availability
- url
- opened
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000003860 storage Methods 0.000 title claims abstract description 30
- 238000001514 detection method Methods 0.000 claims abstract description 48
- 230000006870 function Effects 0.000 claims description 43
- 238000012544 monitoring process Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 17
- 230000002045 lasting effect Effects 0.000 claims description 11
- 230000009193 crawling Effects 0.000 claims description 5
- 238000007689 inspection Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 6
- 230000004044 response Effects 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 14
- 238000012360 testing method Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 12
- 238000012423 maintenance Methods 0.000 description 7
- 239000007788 liquid Substances 0.000 description 5
- 238000009877 rendering Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000008439 repair process Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003466 anti-cipated effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application provides a kind of page availability monitor method, apparatus, computer equipment and computer readable storage medium.The embodiment of the present application belongs to page processing technology field, when realizing page availability monitor, the URL of the page to be detected is obtained by the first predetermined manner, customized portal page may be implemented by URL, the page to be detected is crawled according to the URL and judges whether the page to be detected can be opened and the page to be detected is non-white screen, quickly traversal, which is carried out, based on crawler obtains the page inventory for needing to monitor, it can be realized the efficient response of APP page availability, if the page to be detected can be opened and the page to be detected is non-white screen, determine that the page to be detected has availability, if the page to be detected can not be opened or the page to be detected is white screen, determine that the page to be detected does not have availability, when carrying out availability detection in particular for a large amount of page, can be improved page availability monitor efficiency and Accuracy.
Description
Technical field
This application involves page processing technology field more particularly to a kind of page availability monitor method, apparatus, computer
Equipment and computer readable storage medium.
Background technique
If page availability refers to perhaps whether WEB page can normally open the APP page or WEB page to the APP page
It can normally open, if claiming the APP page, perhaps there is WEB page the availability APP page or WEB page can not normally beat
It opens, the APP page or WEB page is claimed not to have availability.In the conventional technology, page availability, which generally passes through, is manually examined
It surveys, or finds that the page is unavailable and then feeds back to the page is unavailable in user's use process, from feeding back for user
Know that the page is unavailable.But either either passing through user feedback by manually progress page availability monitor knows the page not
The availability detection efficiency of availability, the page is all relatively low.
Summary of the invention
The embodiment of the present application provides a kind of page availability monitor method, apparatus, computer equipment and computer-readable
Storage medium is able to solve the problem that page availability monitor is inefficient in traditional technology.
In a first aspect, the embodiment of the present application provides a kind of page availability monitor method, which comprises pass through
One predetermined manner obtains the URL of the page to be detected;The page to be detected is crawled according to the URL, by calling preset function
To judge whether the page to be detected can be opened, and it is described to be checked to judge to detect the RGB of the page to be detected
Survey whether the page is non-white screen;If the page to be detected can be opened and the page to be detected is non-white screen, determine
The page to be detected has availability;If the page to be detected can not be opened or the page to be detected is white
Screen determines that the page to be detected does not have availability.
Second aspect, the embodiment of the present application also provides a kind of page availability monitor devices, comprising: acquiring unit is used
In the URL for obtaining the page to be detected by the first predetermined manner;First judging unit, for according to the URL crawl it is described to
The page is detected, by calling preset function to judge whether the page to be detected can be opened, and is detected described to be checked
The RGB of the page is surveyed to judge whether the page to be detected is non-white screen;First judging unit, if being used for the page to be detected
It can be opened and the page to be detected is non-white screen, determine that the page to be detected has availability;Second determines list
Member determines the page to be detected if can not be opened for the page to be detected or the page to be detected is white screen
Face does not have availability.
The third aspect, the embodiment of the present application also provides a kind of computer equipments comprising memory and processor, it is described
Computer program is stored on memory, the processor realizes the page availability monitor when executing the computer program
Method.
Fourth aspect, it is described computer-readable to deposit the embodiment of the present application also provides a kind of computer readable storage medium
Storage media is stored with computer program, and the computer program makes the processor execute the page when being executed by processor can
With property monitoring method.
The embodiment of the present application provides a kind of page availability monitor method, apparatus, computer equipment and computer-readable
Storage medium.When the embodiment of the present application realizes page availability monitor, the page to be detected is obtained by the first predetermined manner
Customized portal page may be implemented by URL in URL, to realize the flexibility of APP page availability monitor, according to the URL
It crawls the page to be detected and judges whether the page to be detected can be opened and the page to be detected is non-white screen,
According to the customized entrance that user provides, quickly traversal is carried out based on crawler and obtains the page inventory for needing to monitor, can be realized
The efficient response of APP page availability determines if the page to be detected can be opened and the page to be detected is non-white screen
The page to be detected has availability, if the page to be detected can not be opened or the page to be detected is white screen, sentences
The fixed page to be detected does not have availability, to obtain the testing result of accurately page availability to be detected, especially
When carrying out availability detection for a large amount of page, the concurrently execution of multiple page availability monitors to be detected is realized based on URL,
The efficiency and accuracy of page availability monitor can greatly be improved.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of page availability monitor method provided by the embodiments of the present application;
Fig. 2 is another flow diagram of page availability monitor method provided by the embodiments of the present application;
Fig. 3 is the schematic block diagram of page availability monitor device provided by the embodiments of the present application;
Fig. 4 is another schematic block diagram of page availability monitor device provided by the embodiments of the present application;And
Fig. 5 is the schematic block diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen
Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Page availability monitor method provided by the embodiments of the present application can be applied to the computers such as terminal or server and set
In standby, the step of page availability monitor method is realized by the software being installed on terminal or server, wherein
The terminal can be that electronic equipments, the servers such as mobile phone, laptop, tablet computer or desktop computer can be
Cloud Server or server cluster etc..By taking terminal as an example, the tool of page availability monitor method provided by the embodiments of the present application
Body realizes that process is as follows: terminal obtains the URL of the page to be detected by the first predetermined manner;According to the URL crawl it is described to
The page is detected, by calling preset function to judge whether the page to be detected can be opened, and is detected described to be checked
The RGB of the page is surveyed to judge whether the page to be detected is non-white screen;If the page to be detected can be opened and institute
Stating the page to be detected is non-white screen, determines that the page to be detected has availability;If the page to be detected can not be beaten
It opens or the page to be detected is white screen, determine that the page to be detected does not have availability.
It should be noted that in the actual operation process, the application scenarios of above-mentioned page availability monitor method are only used
In illustrating technical scheme, it is not used to limit technical scheme.
Fig. 1 is the schematic flow chart of page availability monitor method provided by the embodiments of the present application.The page availability
Monitoring method is applied in terminal or server, to complete all or part of function of page availability monitor method.Please
Refering to fig. 1, as shown in Figure 1, this approach includes the following steps S101-S105:
S101, the URL that the page to be detected is obtained by the first predetermined manner.
Wherein, URL, English be Uniform Resource Locator, Chinese meaning be uniform resource locator, also by
Referred to as web page address is the address of the resource of standard on internet.
First predetermined manner includes obtaining URL from url database and receiving the URL of input equipment input.
Specifically, the embodiment of the present application is to realize the page availability monitor based on crawler, and the page includes APP pages
Perhaps the WEB page APP page or WEB page can be accessed by URL in face.Based on crawler, multiplicity is provided
The page availability monitor of change passes through the availability monitor for crawling and realizing to the page with crawler module.Crawler module passes through interface
Obtain the URL of the page to be detected, crawler module obtains the URL of the page to be detected, and there are two types of modes:
1) URL is obtained from url database.
Specifically, URL can be stored the URL of APP or Website page into database due to its stability,
Durings APP or website upgrading update etc., if necessary to detect the availability of the page, it can be obtained from url database
URL。
2) URL of input equipment input is received.
It specifically, be to portion if being safeguarded or being upgraded update to the page during APP perhaps website maintenance
The availability in paging face is monitored, and can receive input equipment by the portion for needing to carry out page availability monitor that is manually entered
The URL in paging face.Since user can customize portal page, the page availability monitor that the embodiment of the present application improves has
Flexibility.
Further, the URL that multiple pages to be detected are obtained by the first predetermined manner passes through according to multiple URL
It crawls while judging whether each page to be detected meets preset condition to realize while to multiple pages to be detected respectively
Concurrently execute page availability monitor.Specifically, if multiple interfaces are arranged in crawler module, by the URL of each page from difference
Interface to the page of the same APP or the page of website realize multiple pages and meanwhile carry out the page availability detect, can
To realize the concurrently detection of page availability, the detection for being completed in a short time a pages multiple or even up to ten thousand is supported, thus pole
The efficiency of big raising page availability monitor.
S102, the page to be detected is crawled according to the URL, by calling preset function to judge the page to be detected
Whether face can be opened, and detect the RGB of the page to be detected to judge whether the page to be detected is non-white screen.
Wherein, page availability refers to that the page can be it is anticipated that normal open to be used, and page availability includes institute
Stating the page to be detected can open and the non-white screen of the page to be detected.Detect whether the page to be measured can be opened, it can be with
Judged by corresponding preset function in programming, for example, using function function in JScript
IsUrlValidURL () judges whether the page can normally be opened, if it is exactly that can open that the function, which returns to " True ", if the function
Returning to " False " is that cannot open.White screen refers to that the page can be opened but show blank page, that is, the page opened does not have
There is any content, be a kind of not available performance of the page, can be judged by detecting the RGB of the page, wherein RGB is generation
Table red (English is RED), green (English is GREEN), blue (English is BLUE) three channels color.
Specifically, availability detection is carried out to the page, exactly detects whether the page can be opened and white screen detects, is exactly
According to the corresponding URL of each page, detect whether the URL can be opened and whether the page can normally show, such as should
Whether size, shape and position of the title of the page etc. meet pre-set condition, for example detect the size of the title, shape
Whether meet preset condition with the quantity of pixel shared by position and position or at a distance from frame.It should be noted that with mark
For the preset condition that topic needs to meet, it is to preset and store data which, which meets availability to need the condition met,
Benchmark in library to judge as title availability.Detect whether the corresponding page of the URL is white screen, the detection of white screen is namely
It detects whether the page is sleazy blank page, can be carried out by the profile of page pixel and brightness or background structure
Judgement, for example, showing that the page is white screen if the numerical value in RGB in full page is 0.According to the URL of acquisition, to root
Availability is carried out by all pages that crawler crawls according to the URL and white screen detects, until the availability of the page crawled
And until white screen detection finishes, improve the versatility, ease for use and high efficiency of page availability monitor.Due to being mentioned according to user
The entrance of confession, crawler carries out quickly traversal and obtains the page inventory for needing to monitor, therefore the page that the embodiment of the present application improves can
Have high efficiency, particularly with the numerous large-scale APP of page quantity or website, can more efficiently realize pair with property monitoring
The detection of page availability.
Further, described by calling preset function to judge whether the page to be detected can be opened, and
The RGB of the page to be detected is detected to judge that the step of whether page to be detected is non-white screen includes:
The preset value returned by detection preset function is to judge whether the page to be detected can be opened, and leads to
It crosses and detects whether the RGB of the page to be detected is non-zero to judge whether the page to be detected is non-white screen, it is described default
Value includes the first preset value and the second preset value;
If the preset value that the preset function is returned is first preset value, and the RGB of the page to be detected is
Non-zero determines that the page to be detected meets the preset condition;
If the preset value that the preset function is returned is the RGB of second preset value or the page to be detected
It is zero, determines that the page to be detected is unsatisfactory for the preset condition.
Specifically, whether preset value is returned to judge whether the page to be detected can be opened by preset function,
And whether the RGB by detecting the page to be detected is non-zero to judge whether the page to be detected is non-white screen, it is described
Preset value includes first preset value and the second preset value, if the preset function returns to first preset value to judge
Stating the page to be detected can be opened, and it to judge the page to be detected is non-white that the RGB of the page to be detected, which is non-zero,
Screen determines that the page to be detected meets the preset condition, if the preset function returns to second preset value to judge
The page to be detected can not be opened or the RGB of the page to be detected is zero to judge that the page to be detected is
White screen determines that the page to be detected is unsatisfactory for the preset condition.
Detect whether the page to be detected can be opened, it can be by calling corresponding function in programming language to carry out
Judgement, for example, judging whether the page can normally be beaten using function function isUrlValidURL () in JScript
Open, if the first preset value is " True ", if the function return " True " be exactly can open, if the second preset value for " False " if
It is that cannot open that the function, which returns to " False ",.
Detect whether the page to be detected is white screen, can be sentenced by detecting the rgb value in the page to be detected
Whether the page to be detected that breaks is white screen, if the numerical value in the RGB in full page is 0, shows that the page is white screen, if
Rgb value in the entire page to be detected is not all 0, shows that the page is non-white screen.Further, if detect it is entire described to
The RGB detected in the page more than preset quantity is 0, also may determine that there are white screens for the page to be detected, further,
If detecting, continuing to exceed the RGB of preset quantity in the entire page to be detected is 0, also may determine that the page to be detected
There are white screens in face.For example, continuing to exceed 80%, 50% or more than 30% if detecting in the entire page to be detected
RGB is 0, due in normal Pages Design, unless individual cases, under normal circumstances, seldom Pages Design will use greatly
Therefore the white background of area continues to exceed 50% or more than 30% if detecting in the entire page to be detected
RGB is 0, it can be determined that the abnormal conditions of part white screen occurs in the page to be detected, to improve the accurate of white screen detection
Property, and this white screen situation is fed back into maintenance personnel's confirmation to safeguard, to ensure the normal display of the page to be detected.
Further, detect whether the page to be detected is white screen, that is, whether detection webpage can normally show
Show, needs to parse the corresponding page of URL.There are two types of formats for the page, and one is XML, one is HTML, the corresponding solution to the page
There are two types of analysis also, and one is XML parsing, another kind is HTML parsing.
XML parsing includes the modes such as DOM parsing, SAX parsing and PULL parsing.Wherein, DOM is parsed, and is referred to and is passed through parsing
The html file, and the corresponding dom tree of the html file is constructed according to the html file after parsing, it is obtained by dom tree
Each attribute of an element in the page, the attributes such as size, color, shape, position including each element, passes through the category of each element
Property can further know size, shape and position of the page etc., for example obtain root element from the dom tree of web document, according to
It is secondary to draw out root element element " head " and element " content " included below, wherein " head " includes node " title ", node
" title " includes child node " attribute " etc., such as the attributes such as " title " position, shape, size and color, to realize to the page
The extraction of element, the attribute of preset corresponding element in the element of extraction and its attribute and database is compared you can learn that
Whether the page can normally show.SAX, English are simpleAPI forXML, are a kind of alternative of XML parsing, phase
Than in DOM, SAX be a kind of speed faster, more effective way, it progressively scans document, parses while scanning.Pull solution
Analysis is similar with sax parsing, is all based on the mode of flow of event, and the jar packet of pull parsing has been carried in Android.
HTML parsing includes HTMLSucker parsing and Jsoup parsing.HTMLSucker is one and is used to from a webpage
The middle small tool packet for extracting article information, such as article title, author, issuing time, surface plot and text are extracted from webpage
Chapter body matter is to carry out HTML parsing based on the library Jsoup.Jsoup is the html parser of a Java, can directly parse certain
The html text content of a address URL, it provides a set of very labour-saving API, by DOM, CSS and can be similar to
The operating method of jQuery is taken out and operation data.Pass through may be implemented for Jsoup:
1) HTML is parsed from a URL, file or character string;
2) it searched using DOM or CSS selector, take out data;
3) HTML element, attribute, text can be operated.
If S103, the page to be detected can be opened and the page to be detected is non-white screen, determine it is described to
The detection page has availability;
If S104, the page to be detected can not be opened or the page to be detected is white screen, determine it is described to
The detection page does not have availability;
S105, the availability testing result for obtaining the page to be detected.
Specifically, judge the availability of the page according to testing result, if that is, the page to be detected can be beaten
It opens and the page to be detected is non-white screen, determine that the page to be detected has availability, if the page to be detected is not
It can be opened or the page to be detected is white screen, determine that the page to be detected does not have availability, to obtain institute
State the availability testing result of the page to be detected.If the page to be detected is not openable or white screen, show the page to be detected
It is Questions page, further data the problem of the Questions page can be stored, pass through the Questions page so as to subsequent
Predetermined manner feeds back to relevant person in charge and carries out the amendment of page problem, if judging, the page has availability, that is, this is to be checked
Surveying the page can normally open and normally show, the page data is stored to database.
When the embodiment of the present application realizes page availability monitor, the URL of the page to be detected is obtained by the first predetermined manner,
Customized portal page may be implemented by URL, to realize the flexibility of APP page availability monitor, crawled according to the URL
The page to be detected simultaneously judges whether the page to be detected can be opened and the page to be detected is non-white screen, according to
The customized entrance that user provides carries out quickly traversal based on crawler and obtains the page inventory for needing to monitor, can be realized APP pages
The efficient response of face availability, if the page to be detected can be opened and the page to be detected is non-white screen, described in judgement
The page to be detected has availability, if the page to be detected can not be opened or the page to be detected is white screen, determines institute
It states the page to be detected and does not have availability, so that the testing result of accurately page availability to be detected is obtained, in particular for
When a large amount of page carries out availability detection, the concurrently execution of multiple page availability monitors to be detected is realized based on URL, it can be with
Greatly improve the efficiency and accuracy of page availability monitor.
In one embodiment, before described the step of crawling the page to be detected according to the URL, further includes:
If the URL be it is multiple, judge in multiple URL whether there is duplicate URL;
Duplicate URL if it exists only retains one of them in duplicate URL.
Specifically, for complicated APP or website, since the page being related to is relatively more, the URL for including can also compare
It is more, therefore the URL for needing to detect the page of availability can be got in batches under normal circumstances, it is also possible to it is obtained from different data sources
The URL of the page to be detected is got, in order to avoid carrying out availability detection to the duplicate page, needs to carry out at duplicate removal the page
The URL of the page is carried out duplicate removal by reason, and duplicate removal, which refers to, removes duplicate URL, and duplicate removal processing refers to whether compare two URL
It is identical, if two URL are just the same, it is judged as duplicate URL, for duplicate URL, only retains one of URL.It goes
Refer to again and remove duplicate URL, to avoid repeatability monitoring, saves monitoring resource, improve monitoring efficiency.
In one embodiment, if the page to be detected can be opened and the page to be detected is non-white
Screen, after determining that the page to be detected has the step of availability, further includes:
To having determined that the page to be detected that has availability carries out periodical availability inspection according to the first predetermined period
It surveys with the availability of the lasting monitoring page to be detected.
Specifically, it in order to guarantee that the page has the availability of duration, needs to detection normal storage for the first time to database
In data be polled detection availability and white screen situation, detection availability and white screen are polled to the page in database
To realize the maintenance to page availability, for example, the detection of every 5 minutes polls is primary.It is smart in time that scanning result is monitored by poll
Quasi- feedback, if finding the problem the page, can be solved the problems, such as with subsequent timely driving related personnel, can be improved the maintenance of page availability
Timeliness, to guarantee the available accuracy of the page.
In one embodiment, if the page to be detected can be opened and the page to be detected is non-white
Screen, after determining that the page to be detected has the step of availability, further includes:
To having determined that the preset content that has the page to be detected of availability carries out the period according to the second predetermined period
Property detection problem whether there is with the lasting monitoring page to be detected, the preset content include JS mistake, page performance and
Page flow.
Wherein, JS mistake is properly termed as JSERROR, such as JS syntax error etc..
Page performance refers to the performances such as page response time.For example, although page availability is out of question, when being more than default
It grows and is also not switched on the page, that is, the response time of page open is too long, it can be determined that there are problems for page performance.The page
Can problem the problems such as referring to the page response time, although being more than that preset duration is also not switched on for example, page availability is out of question
The page, it can be determined that there are problems for page performance.
Page flow refers to the flow that the page expends.If the flow that the page expends is more than preset flow threshold value, can also sentence
The page break there are problems of liquid flow, referred to as page problems of liquid flow, the problems such as page problems of liquid flow refers to the flow that the page expends, if
The flow that the page expends is more than preset flow threshold value, also may determine that there are problems of liquid flow for the page.
Specifically, in addition to detection the page availability other than, on the basis of availability, to the page with availability into
Row poll detects the problems such as JSERROR, performance and flow.The page can be polled detect whether there are JSERROR, whether
There is a problem of that page performance issue and page flow are excessive with the presence or absence of flow, to find page problem, problems early
It is the further deep content of page availability, to be optimized to the page.
Judge the problems such as page is with the presence or absence of JSERROR, performance and flow, JSERROR, performance and flow etc. are asked if it exists
Topic, for the page of problems, the data the problem of page are stored and are timely feedbacked so as to tie up by storage problem data
Shield personnel safeguard, monitor scanning result by poll and precisely feed back in time, and tester drives shareholder to solve to ask in time
If it does not exist the problems such as JSERROR, performance and flow, the process for continuing poll is entered to the page stored in database for topic
In detected.
In one embodiment, before described the step of crawling the page to be detected according to the URL, further includes:
The URL is configured by the second predetermined manner to associated corresponding responsible person according to presetting, described second
Predetermined manner includes responsible person's mailbox or responsible person's account.
Specifically, presetting is to be associated the page with corresponding responsible person, so as to subsequent that page problem is timely
Corresponding responsible person is fed back to by the second predetermined manner to safeguard.The page is carried out with corresponding responsible person according to presetting
Association, refers to and matches page responsible person corresponding with the page by the second predetermined manner, for example, by the page and responsible person
Mailbox bound with by lettergram mode by the URL of the page and there are the problem of be sent to responsible person's mailbox, or by the page
With responsible person's account bound with by the circulation of the program of application software by the URL of the page and there are the problem of circulate to corresponding
Responsible person application client, responsible person by application client receive the page and the page there are the problem of after
The page is safeguarded.If the APP or website include the large number of page, since the maintenance workload to the page compares
Greatly, different people can be distributed to according to page properties to the maintenance of the page to safeguard, for example, according in front-end and back-end
Appearance distributes to different people, and the content of front-end and back-end can be finely divided again.It can also be according to the arrangement of workload and personnel
It is matched, such as the functional module that website includes, different personnel safeguard different modules, either according to APP or website
The corresponding responsible person's distribution of the division of labor page in development process.The page and the matching relationship of corresponding responsible person are defeated by user
Enter to carry out it is pre-set, obtain URL after the page can be subjected to corresponding responsible person's matching according to presetting.
In one embodiment, have determined that the preset content for having the page to be detected of availability according to for described pair
Two predetermined periods were periodically detected with the lasting monitoring page to be detected after the step of with the presence or absence of problem, were also wrapped
It includes:
If the page to be detected does not have availability or the detection page, there are described problems, pass through described second
The problem of page to be detected and page to be detected, is fed back to corresponding responsible person so that described be responsible for by predetermined manner
People safeguards the page to be detected.
Specifically, problem is prompted to related personnel by modes such as mail early warning, so that related personnel repairs problem
Just.For Questions page, other than being stored problem data, corresponding responsible person is also sent to by the second predetermined manner
So that related personnel repairs Questions page.For example, by preset responsible person's mailbox with mail he by Questions page
The problem of data be sent to responsible person, which is prompted to responsible person, and can be by problem data using pre-
The form of alarm announcement or list perhaps various diagrams is prompted early warning report or warning reports can be using default template
It is generated, early warning diagram needs that calling diagram generation method is taken to generate, and simple, intuitive is reported in early warning, to make mentioning for problem
Show with intuitive, can quickly confirm orientation problem, tester is made to drive shareholder to solve the problems, such as in time, particularly with quantity
Numerous page availability monitors can greatly improve the efficiency of page availability monitor.
Further, early warning report can be generated according to testing result with presetting method.
Specifically, it will test result and generate early warning report, may be implemented to prompt page monitoring personnel page by intuitionistic form
The testing result of face availability monitor, especially when there are when problem, will test precaution alarm of the result by intuitionistic form for the page
Announcement is presented to monitoring personnel, can make the rapid orientation problem of monitoring personnel to carry out the subsequent processing of page problem, to improve
The treatment effeciency of page monitoring.Will test result generation early warning report can be by way of it will test result and generate chart to obtain
It is reported to early warning.
Further, the method that chart is generated in Android system is numerous, for example, encountering chart in Android APP exploitation
Pattern, generally first inquire the Open Framework on GitHub, this frame MPAndroidChart frame uses ready-made open source
Frame can save the cost of exploitation, improve the efficiency of exploitation.Meanwhile generation chart can also pass through rendering engine and key
Renderer path (Critical Rendering Path).The thing that rendering engine is done is that request content is presented to us, default
Support HTML, XML and picture type, render engine renders process is as follows after being loaded into html file by network module, this
Commonly referred to as crucial renderer path (Critical Rendering Path):
1) it constructs dom tree (DOM tree): parsing html document from top to bottom and generate DOM node tree (DOM tree),
It is content tree (contenttree);
2) building CSSOM (CSS ObjectModel) tree: load parsing pattern generates CSSOM tree;
3) it executes JavaScript: loading and execute JavaScript code (including inline code or external connection
JavaScript file);
4) it constructs render tree (rendertree): according to dom tree and CSSOM tree, generating render tree (render tree);
Render tree refers to the series of rectangular shown in order on the screen, these rectangles have font, color and size
Etc. perceptual properties.
5) it is laid out (layout): the correct position according to render tree by each node layout of node tree on the screen;
6) draw (painting): traversal render tree draws all nodes, is applicable in corresponding pattern for each node, this
One process is completed by UI rear module.
The intuitive of page detection result may be implemented by early warning report, early warning is reported simple, intuitive, can quickly be confirmed
Orientation problem.A large amount of page inventory to be monitored, passes through page availability monitor provided by the embodiments of the present application in APP
Mode can quickly and effectively find page availability issue and positioning webpage availability issue, improve page availability prison
The accuracy and efficiency of control specifically brings the following benefit of page availability monitor:
1) can quickly find the page there are the problem of;
2) can be accurately positioned the page there are the problem of;
3) to guarantee the continual and steady available of the page.
Referring to Fig. 2, another process that Fig. 2 is page availability monitor method provided by the embodiments of the present application is illustrated
Figure.As shown in Fig. 2, this approach includes the following steps S201-S208:
S201, the URL for obtaining multiple pages to be detected.
Specifically, crawler module is arranged multiple interfaces, passes through each page by the URL for obtaining multiple pages to be detected
URL carries out the page while realizing each page or the various pieces page to the same APP or website from different interfaces
Availability detection, may be implemented the concurrently detection of a large amount of pages, support the poll for being completed in a short time a pages up to ten thousand.
S202, the URL is carried out to duplicate removal, while configures the URL by the second predetermined manner according to presetting
To associated corresponding responsible person, second predetermined manner includes responsible person's mailbox or responsible person's account.
Specifically, for complicated APP or website, since the page being related to is relatively more, the URL for including can also compare
It is more, such as the rear end page that the page can be divided into the front end page of Front End staff development and rear end application developer develops
Face, therefore the URL for needing to detect the page of availability can be got in batches under normal circumstances, it is also possible to it is obtained from different data sources
The URL of the page to be detected is got, in order to avoid carrying out availability detection to the duplicate page, needs to carry out at duplicate removal the page
Reason, if two URL are just the same, is judged as duplicate URL, for duplicate URL, only retains a URL.
The page is subjected to corresponding responsible person's distribution according to presetting, refer to by page responsible person corresponding with the page into
Row matching.It is different according to the division of labor if the APP or website include the large number of page, such as front end page and rear end page
Face can distribute the page to corresponding responsible person.
S203, can the page to be detected progress be opened and whether the detection for the first time of non-white screen.
Specifically, availability for the first time is carried out to the page and white screen detects, be exactly according to the corresponding URL of each page, detection
Whether the URL can open and whether the page can normally show.The availability of the page is judged according to testing result, if should
The page cannot open either white screen, show that the page is Questions page, enter step S207, by number the problem of the Questions page
According to being stored, the problem is fed back into relevant person in charge progress page problem amendment by predetermined manner so as to subsequent.If sentencing
The page break with availability, can normally open and normally show, the page data is stored to database, is entered step
S204。
If S204, the page to be detected can open and non-white screen, by the data of the page to be detected store to
Database.
Specifically, the availability of the page is judged according to testing result, if judging, the page has availability, can be normal
It opens and normally shows, the page data is stored to database, be that the normal, page data with availability is deposited by the page
Storage is to database, and page data includes that URL, the page correspond to responsible person, and according to the URL of the URL page crawled, into step
Rapid S205.
It is S205, periodically available to having determined that the page to be detected that has availability according to the first predetermined period and carrying out
Property detection with the availability of the lasting monitoring page to be detected.
Specifically, that is, to the page in database detection availability and white screen are polled.In order to guarantee that the page has
There is the availability of duration, needs to be polled data of the detection normal storage into database for the first time detection availability and white
Shield situation, to realize the maintenance to page availability, if being polled detection to the data in database, due to supporting concurrently to hold
Row, can support the poll for being completed in a short time a pages up to ten thousand, can be improved the efficiency of page monitoring, judge data again
Whether the page in library can be used and non-white screen, and there are problems for the page in Test database, enters step S207.
S206, to having determined that the page to be detected for having availability is periodically detected according to the second predetermined period
JS mistake, page performance and the page flow of the detection page whether there is problem.
Specifically, in order to realize the optimization to the page, other than the availability of the detection page, on the basis of availability
On, detection JSERROR, performance and problems of liquid flow can be polled to the page, it is such to find corresponding page problem early
Problem is the further deep content of page availability, to optimize to the page.If there is no problem for the page, according to second
Predetermined period is persistently detected the superperformance to guarantee the page, due to supporting concurrently to execute, can be supported in a short time
The poll for completing a pages up to ten thousand, the efficiency that can be improved page monitoring enter step S207 if there are problems for the page.
If the problem of S207, the page to be detected there are problem, store the page to be detected data.
Specifically, for the page of problems, that is, Questions page, by data the problem of the page store with
Monitoring and detection record are carried out, detection data is retained.
S208, the problem of page to be detected and page to be detected is sent to the correspondence responsible person so that described
Responsible person safeguards the page to be detected.
Specifically, for Questions page, other than being stored problem data, correspondence is also sent to by predetermined manner
Responsible person so that related personnel repairs Questions page.For example, presetting mailbox by responsible person will be asked with mail he
The problem of inscribing page data are sent to responsible person, are prompted to responsible person the page problem, and can be by problem data
Prompted early warning report or warning reports can be using pre- in the form of early warning report or list perhaps various diagrams
If template is generated, early warning diagram needs that calling diagram generation method is taken to generate, and simple, intuitive is reported in early warning, to make to ask
The prompt of topic has intuitive, can quickly confirm orientation problem, tester is made to drive shareholder to solve the problems, such as in time, especially right
In large number of page availability monitor, the efficiency of page availability monitor can be greatly improved.
It should be noted that page availability monitor method described in above-mentioned each embodiment, can according to need will not
Re-start combination with the technical characteristic for including in embodiment, with obtain combination after embodiment, but all this application claims
Protection scope within.
Referring to Fig. 3, Fig. 3 is the schematic block diagram of page availability monitor device provided by the embodiments of the present application.It is corresponding
In above-mentioned page availability monitor method, the embodiment of the present application also provides a kind of page availability monitor device.As shown in figure 3,
The page availability monitor device includes the unit for executing above-mentioned page availability monitor method, which can be configured
In the computer equipments such as terminal or server.Specifically, referring to Fig. 3, the page availability monitor device 300 includes obtaining
Take unit 301, the first judging unit 302, the first judging unit 303 and the second judging unit 304.
Wherein, acquiring unit 301, for obtaining the URL of the page to be detected by the first predetermined manner;
First judging unit 302, for crawling the page to be detected according to the URL, by call preset function with
Judge whether the page to be detected can be opened, and it is described to be detected to judge to detect the RGB of the page to be detected
Whether the page is non-white screen;
First judging unit 303, if can be opened for the page to be detected and the page to be detected be it is non-
White screen determines that the page to be detected has availability;
Second judging unit 304, if can not be opened for the page to be detected or the page to be detected is
White screen determines that the page to be detected does not have availability.
Referring to Fig. 4, Fig. 4 is another schematic frame of page availability monitor device provided by the embodiments of the present application
Figure.As shown in figure 4, in this embodiment, the page availability monitor device 300 further include:
Second judgment unit 305, if for the URL be it is multiple, judge in multiple URL whether there is it is duplicate
URL;
Stick unit 306 only retains one of them in duplicate URL for duplicate URL if it exists.
Please continue to refer to Fig. 4, as shown in figure 4, first judging unit 302 includes:
Judgment sub-unit 3021, the preset value for being returned by detection preset function is to judge the page to be detected
Whether can be opened, and whether the RGB by detecting the page to be detected is that non-zero is to judge the page to be detected
No is non-white screen, and the preset value includes the first preset value and the second preset value;
First determines subelement 3022, if being first preset value for the preset value that the preset function is returned,
And the RGB of the page to be detected is non-zero, determines that the page to be detected meets the preset condition;
Second determines subelement 3023, if being second preset value for the preset value that the preset function is returned,
Or the RGB of the page to be detected is zero, determines that the page to be detected is unsatisfactory for the preset condition.
Please continue to refer to Fig. 4, as shown in figure 4, the page availability monitor device 300 further include:
First poll units 307, for default all according to first to the page to be detected for having availability is had determined that
Phase carries out periodical availability detection with the availability of the lasting monitoring page to be detected;
Second poll units 308, for have determined that the preset content for having the page to be detected of availability according to
Second predetermined period is periodically detected with the lasting monitoring page to be detected with the presence or absence of problem, the preset content packet
Include JS mistake, page performance and page flow;
Configuration unit 309 presets for basis and configures the URL to associated correspondence by the second predetermined manner
Responsible person, second predetermined manner include responsible person's mailbox or responsible person's account;
Feedback unit 310, if not having described in availability or detection page presence for the page to be detected
The problem of page to be detected and the page to be detected, is fed back to corresponding bear by second predetermined manner by problem
People is blamed so that the responsible person safeguards the page to be detected.
It should be noted that it is apparent to those skilled in the art that, above-mentioned page availability monitor dress
Set the specific implementation process with each unit, can with reference to the corresponding description in preceding method embodiment, for convenience of description and
Succinctly, details are not described herein.
Meanwhile in the above-mentioned page availability monitor device division of each unit and connection type be only used for for example,
In other embodiments, page availability monitor device can be divided into different units as required, the page can also be can be used
Each unit takes the different order of connection and mode in property monitoring device, to complete the whole of above-mentioned page availability monitor device
Or partial function.
Above-mentioned page availability monitor device can be implemented as a kind of form of computer program, which can be with
It is run in computer equipment as shown in Figure 5.
Referring to Fig. 5, Fig. 5 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The computer
Equipment 500 can be desktop computer, and perhaps the computer equipments such as server are also possible to component or portion in other equipment
Part.
Refering to Fig. 5, which includes processor 502, memory and the net connected by system bus 501
Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program
5032 are performed, and processor 502 may make to execute a kind of above-mentioned page availability monitor method.
The processor 502 is for providing calculating and control ability, to support the operation of entire computer equipment 500.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should
When computer program 5032 is executed by processor 502, processor 502 may make to execute a kind of above-mentioned page availability monitor side
Method.
The network interface 505 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Fig. 5
The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme
The restriction of computer equipment 500 thereon, specific computer equipment 500 may include more more or fewer than as shown in the figure
Component perhaps combines certain components or with different component layouts.For example, in some embodiments, computer equipment can
Only to include memory and processor, in such embodiments, reality shown in the structure and function and Fig. 5 of memory and processor
It is consistent to apply example, details are not described herein.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following step
It is rapid: the URL of the page to be detected is obtained by the first predetermined manner;The page to be detected is crawled according to the URL, passes through calling
Preset function detects the RGB of the page to be detected to judge whether the page to be detected can be opened to judge
Whether the page to be detected is non-white screen;If the page to be detected can be opened and the page to be detected is non-white
Screen determines that the page to be detected has availability;If the page to be detected can not be opened or the page to be detected
Face is white screen, determines that the page to be detected does not have availability.
In one embodiment, the processor 502 is realizing the step that the page to be detected is crawled according to the URL
Before rapid, also perform the steps of
If the URL be it is multiple, judge in multiple URL whether there is duplicate URL;
Duplicate URL if it exists only retains one of them in duplicate URL.
In one embodiment, the processor 502 is described by calling preset function described to be detected to judge in realization
Whether the page can be opened, and detect the RGB of the page to be detected to judge whether the page to be detected is non-white
When the step of screen, following steps are implemented:
The preset value returned by detection preset function is to judge whether the page to be detected can be opened, and leads to
It crosses and detects whether the RGB of the page to be detected is non-zero to judge whether the page to be detected is non-white screen, it is described default
Value includes the first preset value and the second preset value;
If the preset value that the preset function is returned is first preset value, and the RGB of the page to be detected is
Non-zero determines that the page to be detected meets the preset condition;
If the preset value that the preset function is returned is the RGB of second preset value or the page to be detected
It is zero, determines that the page to be detected is unsatisfactory for the preset condition.
In one embodiment, if the processor 502 is realizing that the page to be detected can be opened and institute
Stating the page to be detected is non-white screen, after determining that the page to be detected has the step of availability, is also performed the steps of
To having determined that the page to be detected that has availability carries out periodical availability inspection according to the first predetermined period
It surveys with the availability of the lasting monitoring page to be detected.
In one embodiment, if the processor 502 is realizing that the page to be detected can be opened and institute
Stating the page to be detected is non-white screen, after determining that the page to be detected has the step of availability, is also performed the steps of
To having determined that the preset content that has the page to be detected of availability carries out the period according to the second predetermined period
Property detection problem whether there is with the lasting monitoring page to be detected, the preset content include JS mistake, page performance and
Page flow.
In one embodiment, the processor 502 is realizing the step that the page to be detected is crawled according to the URL
Before rapid, also perform the steps of
The URL is configured by the second predetermined manner to associated corresponding responsible person according to presetting, described second
Predetermined manner includes responsible person's mailbox or responsible person's account.
In one embodiment, the processor 502 has determined that the page to be detected for having availability for described pair in realization
The preset content in face is periodically detected to whether there is with the lasting monitoring page to be detected according to the second predetermined period and be asked
After the step of topic, also perform the steps of
If the page to be detected does not have availability or the detection page, there are described problems, pass through described second
The problem of page to be detected and page to be detected, is fed back to corresponding responsible person so that described be responsible for by predetermined manner
People safeguards the page to be detected.
It should be appreciated that in the embodiment of the present application, processor 502 can be central processing unit (Central
ProcessingUnit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices
Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
The processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process,
It is that can be completed by computer program, which can be stored in a computer readable storage medium.The computer
Program is executed by least one processor in the computer system, to realize the process step of the embodiment of the above method.
Therefore, the application also provides a kind of computer readable storage medium.The computer readable storage medium can be non-
The computer readable storage medium of volatibility, the computer-readable recording medium storage have computer program, the computer program
Processor is set to execute following steps when being executed by processor:
A kind of computer program product, when run on a computer, so that computer executes in the above various embodiments
The step of described page availability monitor method.
The computer readable storage medium can be the internal storage unit of aforementioned device, such as the hard disk or interior of equipment
It deposits.What the computer readable storage medium was also possible to be equipped on the External memory equipment of the equipment, such as the equipment
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the computer readable storage medium can also both include the inside of the equipment
Storage unit also includes External memory equipment.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set
The specific work process of standby, device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The computer readable storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), the various computer readable storage mediums that can store program code such as magnetic or disk.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond scope of the present application.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.This Shen
Please the unit in embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the application
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in one storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing skill
The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that an electronic equipment (can be individual
Computer, terminal or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
The above, the only specific embodiment of the application, but the bright protection scope of the application is not limited thereto, and is appointed
What those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or
Replacement, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope Ying Yiquan of the application
Subject to the protection scope that benefit requires.
Claims (10)
1. a kind of page availability monitor method, which is characterized in that the described method includes:
The URL of the page to be detected is obtained by the first predetermined manner;
The page to be detected is crawled according to the URL, by calling preset function to judge that the page to be detected whether can
It is enough opened, and detects the RGB of the page to be detected to judge whether the page to be detected is non-white screen;
If the page to be detected can be opened and the page to be detected is non-white screen, the page tool to be detected is determined
Standby availability;
If the page to be detected can not be opened or the page to be detected is white screen, the page to be detected is determined not
Has availability.
2. page availability monitor method according to claim 1, which is characterized in that it is described crawled according to the URL it is described
Before the step of page to be detected, further includes:
If the URL be it is multiple, judge in multiple URL whether there is duplicate URL;
Duplicate URL if it exists only retains one of them in duplicate URL.
3. page availability monitor method according to claim 1, which is characterized in that described by calling preset function to sentence
Whether the page to be detected that breaks can be opened, and detect the RGB of the page to be detected to judge the page to be detected
The step of whether face is non-white screen include:
The preset value returned by detection preset function is to judge whether the page to be detected can be opened, and passes through inspection
Whether the RGB for surveying the page to be detected is non-zero to judge whether the page to be detected is non-white screen, the preset value packet
Include the first preset value and the second preset value;
If the preset value that the preset function is returned is first preset value, and the RGB of the page to be detected is non-zero,
Determine that the page to be detected meets the preset condition;
If the preset value that the preset function is returned is zero for the RGB of second preset value or the page to be detected,
Determine that the page to be detected is unsatisfactory for the preset condition.
4. any one of -3 page availability monitor method according to claim 1, which is characterized in that if described to be detected
The page can be opened and the page to be detected is non-white screen, determine the page to be detected have the step of availability it
Afterwards, further includes:
To have determined that the page to be detected that has availability according to the first predetermined period carry out periodical availability detection with
Persistently monitor the availability of the page to be detected.
5. any one of -3 page availability monitor method according to claim 1, which is characterized in that if described to be detected
The page can be opened and the page to be detected is non-white screen, determine the page to be detected have the step of availability it
Afterwards, further includes:
To having determined that the preset content that has the page to be detected of availability carries out periodical inspection according to the second predetermined period
It surveys and problem whether there is with the lasting monitoring page to be detected, the preset content includes JS mistake, page performance and the page
Flow.
6. page availability monitor method according to claim 5, which is characterized in that it is described crawled according to the URL it is described
Before the step of page to be detected, further includes:
It is preset according to presetting by the second predetermined manner to configure the URL to associated corresponding responsible person, described second
Mode includes responsible person's mailbox or responsible person's account.
7. page availability monitor method according to claim 6, which is characterized in that described pair has determined that have availability
The preset content of the page to be detected is periodically detected according to the second predetermined period with the lasting monitoring page to be detected
Face whether there is after the step of problem, further includes:
If the page to be detected does not have availability or the detection page, there are described problems, default by described second
The problem of page to be detected and page to be detected, is fed back to corresponding responsible person so that the responsible person couple by mode
The page to be detected is safeguarded.
8. a kind of page availability monitor device characterized by comprising
Acquiring unit, for obtaining the URL of the page to be detected by the first predetermined manner;
First judging unit is judged described for crawling the page to be detected according to the URL by calling preset function
Whether the page to be detected can be opened, and detect the RGB of the page to be detected whether to judge the page to be detected
For non-white screen;
First judging unit, if can be opened for the page to be detected and the page to be detected be non-white screen, sentence
The fixed page to be detected has availability;
Second judging unit, if can not be opened for the page to be detected or the page to be detected be white screen, sentence
The fixed page to be detected does not have availability.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and is connected with the memory
Processor;The memory is for storing computer program;The processor is based on running and storing in the memory
Calculation machine program, to execute as described in claim any one of 1-7 the step of page availability monitor method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey
Sequence, the computer program make the processor execute the page as described in any one of claim 1-7 when being executed by processor
The step of availability monitor method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910461969.1A CN110351162A (en) | 2019-05-30 | 2019-05-30 | Page availability monitor method, apparatus, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910461969.1A CN110351162A (en) | 2019-05-30 | 2019-05-30 | Page availability monitor method, apparatus, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110351162A true CN110351162A (en) | 2019-10-18 |
Family
ID=68174473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910461969.1A Pending CN110351162A (en) | 2019-05-30 | 2019-05-30 | Page availability monitor method, apparatus, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110351162A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114610580A (en) * | 2022-03-17 | 2022-06-10 | 北京火山引擎科技有限公司 | Page white screen monitoring method, device, equipment and medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060294052A1 (en) * | 2005-06-28 | 2006-12-28 | Parashuram Kulkami | Unsupervised, automated web host dynamicity detection, dead link detection and prerequisite page discovery for search indexed web pages |
CN105955884A (en) * | 2016-04-27 | 2016-09-21 | 上海携程商务有限公司 | Method and device for checking white screen of App (Application) page |
CN105975526A (en) * | 2016-04-29 | 2016-09-28 | 国家计算机网络与信息安全管理中心 | URL link validity verification method |
US20160349937A1 (en) * | 2010-06-04 | 2016-12-01 | Apple Inc. | Reader Mode Presentation of Web Content |
CN107832428A (en) * | 2017-11-14 | 2018-03-23 | 北京知行锐景科技有限公司 | Webpage method for monitoring state and system based on Website page |
CN107918575A (en) * | 2016-10-08 | 2018-04-17 | 北京京东尚科信息技术有限公司 | The monitoring method and device of a kind of page status |
CN109344343A (en) * | 2018-08-24 | 2019-02-15 | 深圳壹账通智能科技有限公司 | Online Article Surveillance method, apparatus, equipment and storage medium Internet-based |
-
2019
- 2019-05-30 CN CN201910461969.1A patent/CN110351162A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060294052A1 (en) * | 2005-06-28 | 2006-12-28 | Parashuram Kulkami | Unsupervised, automated web host dynamicity detection, dead link detection and prerequisite page discovery for search indexed web pages |
US20160349937A1 (en) * | 2010-06-04 | 2016-12-01 | Apple Inc. | Reader Mode Presentation of Web Content |
CN105955884A (en) * | 2016-04-27 | 2016-09-21 | 上海携程商务有限公司 | Method and device for checking white screen of App (Application) page |
CN105975526A (en) * | 2016-04-29 | 2016-09-28 | 国家计算机网络与信息安全管理中心 | URL link validity verification method |
CN107918575A (en) * | 2016-10-08 | 2018-04-17 | 北京京东尚科信息技术有限公司 | The monitoring method and device of a kind of page status |
CN107832428A (en) * | 2017-11-14 | 2018-03-23 | 北京知行锐景科技有限公司 | Webpage method for monitoring state and system based on Website page |
CN109344343A (en) * | 2018-08-24 | 2019-02-15 | 深圳壹账通智能科技有限公司 | Online Article Surveillance method, apparatus, equipment and storage medium Internet-based |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114610580A (en) * | 2022-03-17 | 2022-06-10 | 北京火山引擎科技有限公司 | Page white screen monitoring method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11216453B2 (en) | Data visualization in a dashboard display using panel templates | |
CN108108297B (en) | Method and device for automatic testing | |
US20210318851A1 (en) | Systems and Methods for Dataset Merging using Flow Structures | |
US8601438B2 (en) | Data transformation based on a technical design document | |
US20190303269A1 (en) | Methods and systems for testing visual aspects of a web page | |
US8533684B2 (en) | Source identification of compliance errors in a web page with custom widgets | |
CN107992427A (en) | Create method, apparatus, equipment and its storage medium of operational trials scene | |
US8365079B2 (en) | Collaborative development of visualization dashboards | |
US8316353B2 (en) | Problem analysis via matching contiguous stack trace lines to symptom rules | |
US20160132679A1 (en) | System and method for detecting sensitive user input leakages in software applications | |
CN103530564A (en) | Method and system for testing and verifying SQL injection vulnerability | |
US20220350857A1 (en) | Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors | |
CN108958959A (en) | The method and apparatus for detecting hive tables of data | |
US9355125B2 (en) | Operation management support device, operation management support method, and recording medium | |
CN105487859A (en) | Template based WEB deployment method for big data components | |
CN113032244A (en) | Interface testing method, device, computer system and computer readable storage medium | |
CN111427577A (en) | Code processing method and device and server | |
CN113535567B (en) | Software testing method, device, equipment and medium | |
CN114217789A (en) | Function component expansion method, device, equipment, storage medium and program product | |
US9104573B1 (en) | Providing relevant diagnostic information using ontology rules | |
CN104657248A (en) | Java thread stack analysis method and system | |
CN110351162A (en) | Page availability monitor method, apparatus, computer equipment and storage medium | |
US11570230B1 (en) | System and method for creating a protocol-compliant uniform resource locator | |
CN115481025A (en) | Script recording method and device for automatic test, computer equipment and medium | |
CN114021756A (en) | Fault analysis method and device and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |