[go: up one dir, main page]

CN106708726A - Page compatibility testing system and method - Google Patents

Page compatibility testing system and method Download PDF

Info

Publication number
CN106708726A
CN106708726A CN201510789336.5A CN201510789336A CN106708726A CN 106708726 A CN106708726 A CN 106708726A CN 201510789336 A CN201510789336 A CN 201510789336A CN 106708726 A CN106708726 A CN 106708726A
Authority
CN
China
Prior art keywords
file
request
scanning
compatibility
report
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
CN201510789336.5A
Other languages
Chinese (zh)
Inventor
林伟腾
陈中兵
曾晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510789336.5A priority Critical patent/CN106708726A/en
Publication of CN106708726A publication Critical patent/CN106708726A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page compatibility testing system. The page compatibility testing system comprises a front end module and a rear end module, wherein the front end module is used for capturing requests which are generated in an operation process to a testing page and meet preset requirements, filtering out files in preset types from the captured requests, and transmitting the filtered-out files to the rear end module by Fiddler insert in the time quantum from the time beginning to scan and the time finishing scanning which are set by a user; and the rear end module is used for compatibly scanning the filtered-out files to obtain a compatibility testing result. Meanwhile, the invention discloses a page compatibility testing method. By the scheme, the testing efficiency and the like can be improved.

Description

A kind of page compatibility test system and method
Technical field
The present invention relates to internet arena, more particularly to a kind of page compatibility test system and method.
Background technology
The electric business platform mobile terminal H5 pages, are that can be applied to a variety of terminal devices and software version etc., Needs carry out compatibility test respectively in advance.
In the prior art, mainly the compatibility of following aspects is carried out by the way of user (tester) is manual Test:Operating system/platform compatibility, browser-safe, screen size/resolution ratio compatibility etc..
But, this test mode is than relatively time-consuming, and repeated workload is very big, so as to cause testing efficiency low.
The content of the invention
In view of this, the invention provides a kind of page compatibility test system and method, it is possible to increase testing efficiency.
In order to achieve the above object, the technical proposal of the invention is realized in this way:
A kind of page compatibility test system, including:Front-end module and rear module;
The front-end module, starts scanning to terminating to scan in this time period, using Fiddler for what is set in user Plug-in unit carries out following treatment:Crawl carries out the produced request for meeting pre-provisioning request in operating process to test page, And the file of predefined type is filtered out from the request for grabbing, each file that will filter out is sent to the rear module;
The rear module, for carrying out compatible scanning to each file for filtering out, obtains compatibility test result.
A kind of page compatibility test method, including:
Start scanning to terminating to scan in this time period in user's setting, using the crawl of Fiddler plug-in units to test sheets Face carries out the produced request for meeting pre-provisioning request in operating process, and predetermined class is filtered out from the request for grabbing The file of type;
Each file to filtering out carries out compatible scanning, obtains compatibility test result.
It can be seen that, using scheme of the present invention, compatibility issue that may be present can be quickly scanned, so as to improve Testing efficiency, and, substantial amounts of human cost is saved, in addition, scheme of the present invention implements simple side Just, consequently facilitating being popularized and being promoted.
Brief description of the drawings
Fig. 1 is the composition structural representation of page compatibility test system embodiment of the present invention.
Fig. 2 is the demo figures of Fiddler plug-in units of the present invention.
Fig. 3 is the flow chart of page compatibility test method embodiment of the present invention.
Specific embodiment
In order that technical scheme is clearer, clear, develop simultaneously embodiment referring to the drawings, to the present invention The scheme is described in further detail.
Fig. 1 is the composition structural representation of page compatibility test system embodiment of the present invention, as shown in figure 1, including: Front-end module and rear module.
Front-end module, scanning is started to terminating to scan in this time period for what is set in user, is inserted using Fiddler Part carries out following treatment:Crawl carries out the produced request for meeting pre-provisioning request in operating process to test page, and The file of predefined type is filtered out from the request for grabbing, each file that will filter out is sent to rear module;
Rear module, for carrying out compatible scanning to each file for filtering out, obtains compatibility test result.
Wherein, the request for meeting pre-provisioning request may include:HTTP (http) conditional code in response bag is 2xx and inclusion content are not empty request.
The file of predefined type may include one below or any combination:HTML (HTML) file, CSS (CSS) file, JS (JavaScript) file.
As shown in figure 3, be may particularly include in rear module again:Scanning submodule and report submodule.
Scanning submodule, for for each file for filtering out, respectively according to the compatibility issue knowledge base for previously generating Compatibility analysis are carried out to this document, analysis result is obtained;The scan report of predetermined format is generated according to each analysis result Material, is sent to report submodule;
Report submodule, for being preserved to the scan report material for receiving, when user's request checks compatible survey During test result, the scan report material is loaded into the report template for previously generating, is presented on the browser of user In.
In addition, Fiddler plug-in units can be further used for, each file to filtering out is compressed packing, by what is obtained Compressed package is sent to scanning submodule;
Accordingly, scanning submodule can be further used for, before compatible scanning is carried out to each file for filtering out, Compressed package to receiving is decompressed, each file for being filtered out.
With reference to above-mentioned introduction, Fiddler plug-in units and implementing for rear module are carried out further in detail individually below Explanation.
(1) Fiddler plug-in units
Fig. 2 is the demo figures of Fiddler plug-in units of the present invention, as shown in Fig. 2 user clicks on " starting scanning ", And test page can be accessed (such as by APP or mobile phone browser etc.http://www.jd.com) and operated, such as Input keyword is scanned for, and after the completion of operation, can be clicked on " terminating scanning ".
In addition, user can in advance choose the file type for needing scanning, as shown in Fig. 2 " all scanning " therein Representing needs to be scanned html file, CSS files and JS files, it is assumed that chosen in the present embodiment " complete Scan in portion ".
From scanning is started to terminating to scan in this time period, Fiddler plug-in units can be captured to carry out operating to test page The produced request for meeting pre-provisioning request in journey, is in 2xx and inclusion mainly to the http conditional codes in response bag Hold not for empty request is captured, and Content-Type fields that can be in head response carry out file type judgement, Html file, CSS files and JS files needed for filtering out, preferably, can also enter to each file for filtering out Row Gzip compression packings, the compressed package that will be obtained is sent to rear module.
Fiddler is that a http protocol debugging acts on behalf of instrument, to realize function of the present invention, it is necessary to existing Fiddler It is extended, specific extended mode is as follows:
Client aspect, Fiddler extensions are carried out using .net frame languages, and specific manifestation form is to use interface description language (IDE) a class libraries project of C# is set up, dynamic link library (DLL) file is generated, Fiddler is put it to Scripts files in installation file;
The interface of Fiddler related expandings can be used, the OnLoad () method such as in IAutoTamper interfaces provides related using Family interface (UI) extends, in addition, provided in IFiddlerExtension interfaces and each http/https being sent and being connect Calling for request is received, can be changed, recorded, or other operations.
(2) rear module
As it was previously stated, be may particularly include in rear module:Scanning submodule and report submodule.
After scanning submodule receives the compressed package that Fiddler plug-in units send, it can be decompressed, be filtered out Each file, and can further recognize whether the type of each file is HTML, CSS or JS, and ignoring to be carried out File of scanning etc., afterwards, can be directed to each file, respectively according to the compatibility issue knowledge base for previously generating to this File carries out compatibility analysis, i.e., code analysis are carried out to this document and is carried out with the content in compatibility issue knowledge base Matching etc., obtains analysis result, and the scan report material of predetermined format is generated according to each analysis result, is sent to report Accuse submodule.
Feedback, collection etc. in the main compatibility issue accumulated from industry of compatibility issue knowledge base and real work The product problem for obtaining is analyzed and is transformed, and support is updated at any time to compatibility issue knowledge base.Compatibility is asked Content in topic knowledge base can be divided into two classes, i.e. regular expression and detection script, wherein, regular expression is main Analyzed by row for code, detection script is mainly used in problem of the identification by row analysis None- identified.
How analysis result is obtained for prior art, in addition, the predetermined format can be extensible markup language (XML) Form or Json forms etc., how the scan report material for generating predetermined format according to each analysis result is similarly existing skill Art.
Report submodule can be preserved to the scan report material for receiving, while preserving the report mould for previously generating , when user's request checks compatibility test result, can be loaded into scan report material in report template by version, present In the browser of user.As shown in Fig. 2 when user clicks on " checking result ", corresponding unification can be jumped to The corresponding page of URLs (URL) carries out test result displaying.
Certainly, these are only for example, in actual applications, it would however also be possible to employ other manner, such as property of would be compatible with are surveyed Test result is sent directly in the mailbox that user specifies, so that user checks.
Based on above-mentioned introduction, the present invention discloses a kind of page compatibility test method.
Fig. 3 is the flow chart of page compatibility test method embodiment of the present invention, as shown in figure 3, comprising the following steps 31~32.
Step 31:Start scanning to terminating to scan in this time period in user's setting, captured using Fiddler plug-in units The produced request for meeting pre-provisioning request in operating process is carried out to test page, and is filtered from the request for grabbing Go out the file of predefined type.
Wherein, the request for meeting pre-provisioning request may include:Http conditional codes in response bag are for 2xx and inclusion content is not It is empty request.
The file of predefined type may include one below or any combination:Html file, CSS files, JS files.
Step 32:Each file to filtering out carries out compatible scanning, obtains compatibility test result.
In this step, each file for filtering out can be directed to, respectively according to the compatibility issue knowledge base for previously generating to this File carries out compatibility analysis, obtains analysis result;The scan report material of predetermined format is generated according to each analysis result;
When user's request checks compatibility test result, the scan report material can be loaded into the report for previously generating Accuse in masterplate, be presented in the browser of user.
In actual applications, support to update compatibility issue knowledge base at any time.
In a word, using scheme of the present invention, compatibility issue that may be present can be quickly scanned, so as to improve Testing efficiency, and, save substantial amounts of human cost, in addition, by compatibility issue knowledge base carried out with Shi Gengxin, it is ensured that the correctness of compatibility scanning simultaneously expands sweep limits, further, scheme of the present invention is realized Come simple and convenient, consequently facilitating being popularized and being promoted.
In sum, presently preferred embodiments of the present invention is these are only, is not intended to limit the scope of the present invention. All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in this Within the protection domain of invention.

Claims (11)

1. a kind of page compatibility test system, it is characterised in that including:Front-end module and rear module;
The front-end module, starts scanning to terminating to scan in this time period, using Fiddler for what is set in user Plug-in unit carries out following treatment:Crawl carries out the produced request for meeting pre-provisioning request in operating process to test page, And the file of predefined type is filtered out from the request for grabbing, each file that will filter out is sent to the rear module;
The rear module, for carrying out compatible scanning to each file for filtering out, obtains compatibility test result.
2. system according to claim 1, it is characterised in that
The request for meeting pre-provisioning request includes:HTTP http conditional codes in response bag for 2xx and Inclusion content is not empty request.
3. system according to claim 1, it is characterised in that
The file of the predefined type includes one below or any combination:HTML html file, layer Stacking style table CSS files, JS files.
4. the system according to claim 1,2 or 3, it is characterised in that
The rear module includes:Scanning submodule and report submodule;
The scanning submodule, for for each file for filtering out, being known according to the compatibility issue for previously generating respectively Know storehouse carries out compatibility analysis to this document, obtains analysis result;The scanning of predetermined format is generated according to each analysis result Report material, is sent to the report submodule;
The report submodule, for being preserved to the scan report material, when user's request checks compatible survey During test result, the scan report material is loaded into the report template for previously generating, is presented on the browser of user In.
5. system according to claim 4, it is characterised in that
The Fiddler plug-in units are further used for, and each file to filtering out is compressed packing, the compressed package that will be obtained It is sent to the scanning submodule;
The scanning submodule is further used for, before compatible scanning is carried out to each file for filtering out, to receiving To compressed package decompressed, each file for being filtered out.
6. system according to claim 4, it is characterised in that
Support is updated to the compatibility issue knowledge base.
7. a kind of page compatibility test method, it is characterised in that including:
Start scanning to terminating to scan in this time period in user's setting, using the crawl of Fiddler plug-in units to test sheets Face carries out the produced request for meeting pre-provisioning request in operating process, and predetermined class is filtered out from the request for grabbing The file of type;
Each file to filtering out carries out compatible scanning, obtains compatibility test result.
8. method according to claim 7, it is characterised in that
The request for meeting pre-provisioning request includes:HTTP http conditional codes in response bag for 2xx and Inclusion content is not empty request.
9. method according to claim 7, it is characterised in that
The file of the predefined type includes one below or any combination:HTML html file, layer Stacking style table CSS files, JS files.
10. the method according to claim 7,8 or 9, it is characterised in that
The described pair of each file for filtering out carries out compatible scanning, and obtaining compatibility test result includes:
For each file for filtering out, compatibility is carried out to this document according to the compatibility issue knowledge base for previously generating respectively Property analysis, obtain analysis result;The scan report material of predetermined format is generated according to each analysis result;
When user's request checks compatibility test result, the scan report material is loaded into the report for previously generating In masterplate, it is presented in the browser of user.
11. methods according to claim 10, it is characterised in that
Support is updated to the compatibility issue knowledge base.
CN201510789336.5A 2015-11-17 2015-11-17 Page compatibility testing system and method Pending CN106708726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510789336.5A CN106708726A (en) 2015-11-17 2015-11-17 Page compatibility testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510789336.5A CN106708726A (en) 2015-11-17 2015-11-17 Page compatibility testing system and method

Publications (1)

Publication Number Publication Date
CN106708726A true CN106708726A (en) 2017-05-24

Family

ID=58932513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510789336.5A Pending CN106708726A (en) 2015-11-17 2015-11-17 Page compatibility testing system and method

Country Status (1)

Country Link
CN (1) CN106708726A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032705A (en) * 2018-07-05 2018-12-18 腾讯科技(深圳)有限公司 Execution method, apparatus, electronic equipment and the readable storage medium storing program for executing of application program
CN110716856A (en) * 2019-08-23 2020-01-21 北京顺丰同城科技有限公司 Distributed system submodule interaction testing method and device
CN110808868A (en) * 2019-09-12 2020-02-18 中国平安财产保险股份有限公司 Test data acquisition method and device, computer equipment and storage medium
CN111159045A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Compatibility problem detection method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927253A (en) * 2013-01-11 2014-07-16 阿里巴巴集团控股有限公司 Multiple browser compatibility testing method and system
CN103942137A (en) * 2013-01-23 2014-07-23 腾讯科技(深圳)有限公司 Browser compatibility testing method and device
CN104331369A (en) * 2014-11-21 2015-02-04 北京奇虎科技有限公司 Browser-based webpage detection method and device, and server
CN104750604A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 Generating method and device for browser compatibility test case

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927253A (en) * 2013-01-11 2014-07-16 阿里巴巴集团控股有限公司 Multiple browser compatibility testing method and system
CN103942137A (en) * 2013-01-23 2014-07-23 腾讯科技(深圳)有限公司 Browser compatibility testing method and device
CN104750604A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 Generating method and device for browser compatibility test case
CN104331369A (en) * 2014-11-21 2015-02-04 北京奇虎科技有限公司 Browser-based webpage detection method and device, and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
龙恩0707: ""Fiddler实战深入研究(二)"", 《HTTPS://WWW.CNBLOGS.COM/TUGENHUA0707/P/4637771.HTML》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032705A (en) * 2018-07-05 2018-12-18 腾讯科技(深圳)有限公司 Execution method, apparatus, electronic equipment and the readable storage medium storing program for executing of application program
CN110716856A (en) * 2019-08-23 2020-01-21 北京顺丰同城科技有限公司 Distributed system submodule interaction testing method and device
CN110808868A (en) * 2019-09-12 2020-02-18 中国平安财产保险股份有限公司 Test data acquisition method and device, computer equipment and storage medium
CN110808868B (en) * 2019-09-12 2023-04-07 中国平安财产保险股份有限公司 Test data acquisition method and device, computer equipment and storage medium
CN111159045A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Compatibility problem detection method, device and storage medium
CN111159045B (en) * 2019-12-31 2024-04-19 中国银行股份有限公司 Compatibility problem detection method, device and storage medium

Similar Documents

Publication Publication Date Title
CN107885848B (en) Webpage screen capturing method based on web technology
KR101219228B1 (en) System and method for delivering informaiton using image code
US20110035435A1 (en) Method and system for converting desktop application to web application
CN110928767B (en) Webpage analysis method, device, equipment and storage medium
CN106708726A (en) Page compatibility testing system and method
CN104573131B (en) Generate the method and terminal installation of item detail page data
CN108415804B (en) Method for acquiring information, terminal device and computer readable storage medium
CN111177623A (en) Information processing method and device
CN101520796A (en) Method and system for extracting uniform resource locators from web page content
CN104657499A (en) Webpage loading method and device of client-side APP (Application)
CN104899212B (en) Web page display method, server and system
CN101963992A (en) Method and browser for increasing webpage display speed
JP2016507803A (en) Homepage forming method, peripheral device, and homepage forming system
CN110768860B (en) Test method, test device and electronic equipment
CN109271323B (en) Page element processing method and device, test equipment and storage medium
CN103458065A (en) Method for extracting video address based on Webkit kernel under HTML5 standard
CN106649109A (en) Web testing method and system of intelligent terminal
CN111523065A (en) Rich text data processing method and device, electronic equipment and computer storage medium
CN113778883B (en) Interface document, test and simulation generation method and device, and computer storage medium
CN107239265B (en) Binding method and device of Java function and C function
CN105025065B (en) Web site is converted to the method, apparatus and system of Web application
US11843679B2 (en) Automated dependency management based on page components
CN112150431A (en) UI visual walkthrough method and device, storage medium and electronic device
CN105468636A (en) Dynamic web page picture loading method, apparatus and system
CN103491451A (en) Method and device for obtaining webpage data

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: 20170524