CN109828928A - A kind of webpage defect rapid detection method and system - Google Patents

A kind of webpage defect rapid detection method and system Download PDF

Info

Publication number
CN109828928A
CN109828928A CN201910123063.9A CN201910123063A CN109828928A CN 109828928 A CN109828928 A CN 109828928A CN 201910123063 A CN201910123063 A CN 201910123063A CN 109828928 A CN109828928 A CN 109828928A
Authority
CN
China
Prior art keywords
webpage
defect
detection
page
statistic
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
CN201910123063.9A
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.)
Guangdong Power Grid Co Ltd
Information Center of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Information Center of Guangdong Power Grid 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 Guangdong Power Grid Co Ltd, Information Center of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN201910123063.9A priority Critical patent/CN109828928A/en
Publication of CN109828928A publication Critical patent/CN109828928A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of webpage defect rapid detection method and system, method includes carrying out batch to the webpage for needing to carry out defects detection detection is repeated several times;It obtains each webpage and detects generated relevant information each time;Relevant information is analyzed, the statistic that there is High relevancy with defect that may be present is obtained;Judge webpage with the presence or absence of defect according to the value of statistic;Testing result backtracking is carried out to the webpage of existing defects, positions defect Producing reason;The page of existing defects is repaired.Compared with prior art, without carrying out artificial packet capturing test page by page, in the case where webpage enormous amount, reduce labor workload, detection process need to take considerable time caused by avoiding due to testing staff's technical capability and detection experience deficiency and result does not have informative drawback, and the defects detection of webpage is made to expend less manpower and time, accelerate detection speed, testing result is reduced to the technology dependence of testing staff, testing result more standardizes.

Description

A kind of webpage defect rapid detection method and system
Technical field
The present embodiments relate to web technologies field more particularly to a kind of webpage defect rapid detection method and systems.
Background technique
With popularizing for web application, Internet resources are more presented in the form of a web page, and various web development technologies layers go out not Thoroughly, the characteristics of composition of webpage is presented diversification, complicates.This variation so that the resource that gets of user is more abundant, but Difficulty also is brought to the detection work of webpage defect simultaneously.
Existing webpage defect inspection process is as follows:
1, the packet capturing plug-in unit or other page detection tools that tester is carried using browser carry out one by one network address Detection;
2, the relevant informations such as page constitution element, the element load time of each webpage are obtained;
3, tester analyzes these information, judges the page with the presence or absence of defect;
4, to being judged as that the page of existing defects repairs;
5, repetitive process 1 is acceptable without repairing up to defect pages or defect are not detected to process 4.
Since webpage defects detection is not sought unity of standard, process is instructed in the webpage detection for lacking architecture, and tests work Diversified feature is presented in tool, and existing webpage defect inspection method does not form specification.Lack strong testing tool, surveys Examination personnel are usually tested by the process that direct analog subscriber browses webpage, assist obtaining access using some packet catchers Response time of process, webpage the information such as constitution element, according to these information manual analyses and find to influence web page access Factor.Webpage to be tested is needed for each, all needs to carry out this process, and large-scale web application, especially enterprise-level Often webpage enormous amount, detection process need to expend a large amount of manpowers and time, and the confidence level of testing result to web application Professional skill level and experience dependent on tester.
Summary of the invention
The present invention provides a kind of webpage defect rapid detection method and system, so as to solve the deficiencies in the prior art.
To achieve the above object, the present invention provides technical solution below:
In a first aspect, the present invention provides a kind of webpage defect rapid detection method, comprising:
Batch is carried out to the webpage for needing to carry out defects detection using page detection tool, detection is repeated several times;
It obtains each webpage and detects generated relevant information each time, and carry out unified storage;
The relevant information is analyzed by statistical analysis technique, obtains having with defect that may be present and is by force associated with The statistic of property;
Judge webpage with the presence or absence of defect according to the value of the statistic;
Testing result backtracking is carried out to the webpage for being judged as existing defects, positions defect Producing reason;
The page of existing defects is repaired.
Further, described that the webpage for needing to carry out defects detection is carried out using page detection tool in the method The step of detecting is repeated several times in batches includes:
Obtain the network address for needing to carry out the webpage of defects detection;
Batch is carried out to the network address using page detection tool, detection is repeated several times.
Further, in the method, the relevant information includes page load time, whole page load times, head Byte time, DNS time, picture size, css file size, js file size and picture number.
Further, in the method, the value according to the statistic judges the step of webpage is with the presence or absence of defect Include:
Obtain web page quality corresponding with the value of the statistic;
The value of the statistic is judged whether in the normal range (NR) of the web page quality, if it is not, then judging the page Existing defects.
Second aspect, the present invention provide a kind of webpage defect rapid detection system, comprising:
Page detection module, it is multiple for carrying out batch to the webpage for needing to carry out defects detection using page detection tool It repeats to detect;
Data obtaining module detects generated relevant information for obtaining each webpage each time, and carries out unification Storage;
Information analysis module, for being analyzed by statistical analysis technique the relevant information, obtaining and may being deposited Defect have High relevancy statistic;
Defect dipoles module, for judging webpage with the presence or absence of defect according to the value of the statistic;
Defect location module, for the webpage progress testing result backtracking to existing defects are judged as, positioning defect is generated The reason of;
Defect repair module is repaired for the page to existing defects.
Further, in the system, the page detection module includes:
Network address acquiring unit needs to carry out the network address of the webpage of defects detection for obtaining;
Network address detection unit is detected for carrying out batch multiplicating to the network address using page detection tool.
Further, in the system, the relevant information includes page load time, whole page load times, head Byte time, DNS time, picture size, css file size, js file size and picture number.
Further, in the system, the defect dipoles module includes:
Web page quality acquiring unit, for obtaining web page quality corresponding with the value of the statistic;
Defect dipoles unit, for judge the value of the statistic whether in the normal range (NR) of the web page quality, if It is no, then judge the page existing defects.
A kind of webpage defect rapid detection method provided in an embodiment of the present invention and system are not required to compared with prior art To carry out artificial packet capturing test page by page and greatly reduce labor workload in the case where webpage enormous amount, avoid due to Testing staff's technical capability and detection experience are insufficient, caused by detection process needs take considerable time and result do not have can Informative drawback accelerates detection speed, reduces testing result so that the defects detection of webpage expends less manpower and time To the technology dependence of testing staff, testing result is more standardized;In addition, reflecting the excellent of webpage by the statistical result repeatedly tested It is bad, it is higher compared to single detection confidence.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram for webpage defect rapid detection method that the embodiment of the present invention one provides;
Fig. 2 is page defect batch detection flow chart in the embodiment of the present invention one;
Fig. 3 is a kind of structural schematic diagram of webpage defect rapid detection system provided by Embodiment 2 of the present invention.
Specific embodiment
In order to completely describe technical solution provided in an embodiment of the present invention, and it is easy to be easily absorbed on a cognitive level by the user, below with reference to The present invention is described in further detail for drawings and examples.It is understood that specific embodiment described herein is only For explaining only the invention, rather than limitation of the invention.It also should be noted that for ease of description, in attached drawing only Show part related to the present invention rather than entire infrastructure.
Embodiment one
Attached drawing 1 is please referred to, for a kind of process signal for webpage defect rapid detection method that the embodiment of the present invention one provides Figure, this method are suitable for carrying out the scene of webpage defects detection, and this method is executed by webpage defect rapid detection system, the dress Setting can be by software and or hardware realization.This method specifically comprises the following steps:
S101, batch multiplicating detection is carried out to the webpage for needing to carry out defects detection using page detection tool.
Specifically, the step S101 further comprises:
(1) network address for needing to carry out the webpage of defects detection is obtained;
(2) batch is carried out to the network address using page detection tool and detection is repeated several times.
S102, obtain each webpage detect each time caused by relevant information, and carry out unified storage.
Wherein, the relevant information enumerates several aspects such as time, size, compression ratio, quantity, specifically includes the page and adds Load time, whole page load times, first byte time, DNS (name server) time, picture size, css file (are used for Fill the text file of CSS code) size, js file (formatted file that JS is webpage) size and picture number.
S103, the relevant information is analyzed by statistical analysis technique, obtains having with defect that may be present The statistic of High relevancy.
Illustratively, a few statistic obtained such as mean value, variance.
S104, judged webpage with the presence or absence of defect according to the value of the statistic.
Specifically, the step S104 further comprises:
(1) web page quality corresponding with the value of the statistic is obtained;
(2) value of the statistic is judged whether in the normal range (NR) of the web page quality, if it is not, then judging the page Face existing defects.
S105, the webpage progress testing result backtracking to existing defects are judged as, position defect Producing reason.
S106, the page of existing defects is repaired.
Preferably, step S102 to step S106 is repeated, until defect pages or the acceptable nothing of defect is not detected Until need to repairing.
A kind of webpage defect rapid detection method provided in an embodiment of the present invention does not need page by page compared with prior art It carries out artificial packet capturing test and greatly reduces labor workload in the case where webpage enormous amount, avoid due to detecting people Member's technical capability and detection experience are insufficient, caused by detection process needs take considerable time and result does not have the property of can refer to The drawbacks of, so that the defects detection of webpage expends less manpower and time, accelerate detection speed, reduces testing result to detection The technology dependence of personnel, testing result more standardize;In addition, reflecting the superiority and inferiority of webpage, phase by the statistical result repeatedly tested It is higher compared with single detection confidence.
Embodiment two
As shown in figure 3, second embodiment of the present invention provides a kind of webpage defect rapid detection system, the system comprises:
Page detection module 21 is more for carrying out batch to the webpage for needing to carry out defects detection using page detection tool It is secondary to repeat to detect;
Data obtaining module 22 detects generated relevant information for obtaining each webpage each time, and unites One storage;
Information analysis module 23 obtains and possible for being analyzed by statistical analysis technique the relevant information Existing defect has the statistic of High relevancy;
Defect dipoles module 24, for judging webpage with the presence or absence of defect according to the value of the statistic;
Defect location module 25, for the webpage progress testing result backtracking to existing defects are judged as, positioning defect is produced Raw reason;
Defect repair module 26 is repaired for the page to existing defects.
Preferably, the page detection module includes:
Network address acquiring unit needs to carry out the network address of the webpage of defects detection for obtaining;
Network address detection unit is detected for carrying out batch multiplicating to the network address using page detection tool.
Preferably, when the relevant information includes page load time, whole page load times, first byte time, DNS Between, picture size, css file size, js file size and picture number.
Preferably, the defect dipoles module includes:
Web page quality acquiring unit, for obtaining web page quality corresponding with the value of the statistic;
Defect dipoles unit, for judge the value of the statistic whether in the normal range (NR) of the web page quality, if It is no, then judge the page existing defects.
A kind of webpage defect rapid detection system provided in an embodiment of the present invention does not need page by page compared with prior art It carries out artificial packet capturing test and greatly reduces labor workload in the case where webpage enormous amount, avoid due to detecting people Member's technical capability and detection experience are insufficient, caused by detection process needs take considerable time and result does not have the property of can refer to The drawbacks of, so that the defects detection of webpage expends less manpower and time, accelerate detection speed, reduces testing result to detection The technology dependence of personnel, testing result more standardize;In addition, reflecting the superiority and inferiority of webpage, phase by the statistical result repeatedly tested It is higher compared with single detection confidence.
Method provided by any embodiment of the invention can be performed in above system, has the corresponding functional module of execution method And beneficial effect.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (8)

1. a kind of webpage defect rapid detection method characterized by comprising
Batch is carried out to the webpage for needing to carry out defects detection using page detection tool, detection is repeated several times;
It obtains each webpage and detects generated relevant information each time, and carry out unified storage;
The relevant information is analyzed by statistical analysis technique, obtains that there is High relevancy with defect that may be present Statistic;
Judge webpage with the presence or absence of defect according to the value of the statistic;
Testing result backtracking is carried out to the webpage for being judged as existing defects, positions defect Producing reason;
The page of existing defects is repaired.
2. the method according to claim 1, wherein it is described using page detection tool to needing to carry out defect inspection The webpage of survey carries out that the step of detecting is repeated several times in batches
Obtain the network address for needing to carry out the webpage of defects detection;
Batch is carried out to the network address using page detection tool, detection is repeated several times.
3. the method according to claim 1, wherein the relevant information includes page load time, whole pages Face load time, first byte time, DNS time, picture size, css file size, js file size and picture number.
4. the method according to claim 1, wherein the value according to the statistic judges whether webpage is deposited Include: in the step of defect
Obtain web page quality corresponding with the value of the statistic;
The value of the statistic is judged whether in the normal range (NR) of the web page quality, if it is not, then judging that the page exists Defect.
5. a kind of webpage defect rapid detection system characterized by comprising
Page detection module, for carrying out batch multiplicating to the webpage for needing to carry out defects detection using page detection tool Detection;
Data obtaining module detects generated relevant information for obtaining each webpage each time, and carries out unified storage;
Information analysis module, for being analyzed by statistical analysis technique the relevant information, obtain with it is that may be present Defect has the statistic of High relevancy;
Defect dipoles module, for judging webpage with the presence or absence of defect according to the value of the statistic;
Defect location module, for the webpage progress testing result backtracking to existing defects are judged as, the original that positioning defect generates Cause;
Defect repair module is repaired for the page to existing defects.
6. system according to claim 5, which is characterized in that the page detection module includes:
Network address acquiring unit needs to carry out the network address of the webpage of defects detection for obtaining;
Network address detection unit is detected for carrying out batch multiplicating to the network address using page detection tool.
7. system according to claim 5, which is characterized in that the relevant information includes page load time, whole pages Face load time, first byte time, DNS time, picture size, css file size, js file size and picture number.
8. system according to claim 5, which is characterized in that the defect dipoles module includes:
Web page quality acquiring unit, for obtaining web page quality corresponding with the value of the statistic;
Defect dipoles unit, for judging the value of the statistic whether in the normal range (NR) of the web page quality, if it is not, then Judge the page existing defects.
CN201910123063.9A 2019-02-15 2019-02-15 A kind of webpage defect rapid detection method and system Pending CN109828928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910123063.9A CN109828928A (en) 2019-02-15 2019-02-15 A kind of webpage defect rapid detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910123063.9A CN109828928A (en) 2019-02-15 2019-02-15 A kind of webpage defect rapid detection method and system

Publications (1)

Publication Number Publication Date
CN109828928A true CN109828928A (en) 2019-05-31

Family

ID=66862200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910123063.9A Pending CN109828928A (en) 2019-02-15 2019-02-15 A kind of webpage defect rapid detection method and system

Country Status (1)

Country Link
CN (1) CN109828928A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2648106A1 (en) * 2012-04-05 2013-10-09 CoreMedia AG Method and web content management system for A/B testing or multivariate testing of websites on computers being connected to a web content management system
CN104750471A (en) * 2013-12-30 2015-07-01 上海格尔软件股份有限公司 WEB page performance detection and analysis plug-in and method based on browser
CN105335246A (en) * 2015-10-27 2016-02-17 北京大学 Method for automatically repairing program crash defect based on question-answer website analysis

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2648106A1 (en) * 2012-04-05 2013-10-09 CoreMedia AG Method and web content management system for A/B testing or multivariate testing of websites on computers being connected to a web content management system
CN104750471A (en) * 2013-12-30 2015-07-01 上海格尔软件股份有限公司 WEB page performance detection and analysis plug-in and method based on browser
CN105335246A (en) * 2015-10-27 2016-02-17 北京大学 Method for automatically repairing program crash defect based on question-answer website analysis

Similar Documents

Publication Publication Date Title
Zhang et al. Compatibility testing service for mobile applications
US8381184B2 (en) Dynamic test coverage
CN102141962B (en) Safety distributed test framework system and test method thereof
CN101241467B (en) Automatized white box test system and method facing to WEB application
CN104717337B (en) A kind of method of batch testing mobile phone application and its equipment used
CN107506303A (en) Method, apparatus and system for automatic test
CN106933745A (en) WEB automatic interface testing methods and system
CN108345532A (en) A kind of automatic test cases generation method and device
CN109633351B (en) Intelligent IT operation and maintenance fault positioning method, device, equipment and readable storage medium
CN108536593A (en) CS Framework Softwares automated testing method based on UI and system
CN104301175A (en) WEB service system simulation monitoring method based on browser
Zhang et al. Environmental modeling for automated cloud application testing
CN107193730A (en) A kind of interface test method of automation
CN108959065A (en) The verification method and system of software interface test parameter
CN114064473A (en) Vehicle machine system testing method and system, vehicle and computer readable storage medium
CN116483730A (en) Service system automatic test method based on domestic software and hardware and open source test tool
CN101765129A (en) Network access test system and method for data value-added service
CN109032937B (en) Data selection method and system based on webpage
CN111176995B (en) Test method and test system based on big data test case
CN109828928A (en) A kind of webpage defect rapid detection method and system
CN110515829A (en) Application testing method, device, equipment and computer readable storage medium
CN108154392A (en) A kind of data analysing method, device and medium
CN113157556A (en) Industry building software defect management method based on selected principal component identification
CN112838938B (en) Test system of Internet of things platform
CN114064469A (en) Interface automation test method and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190531

RJ01 Rejection of invention patent application after publication