CN107995191A - A kind of cloud application browser compatibility detection method based on automatic test - Google Patents

A kind of cloud application browser compatibility detection method based on automatic test Download PDF

Info

Publication number
CN107995191A
CN107995191A CN201711248948.9A CN201711248948A CN107995191A CN 107995191 A CN107995191 A CN 107995191A CN 201711248948 A CN201711248948 A CN 201711248948A CN 107995191 A CN107995191 A CN 107995191A
Authority
CN
China
Prior art keywords
page
request
platform
detection
events
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
CN201711248948.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.)
Jiangsu Run He Software Inc Co
Original Assignee
Jiangsu Run He Software Inc Co
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 Jiangsu Run He Software Inc Co filed Critical Jiangsu Run He Software Inc Co
Priority to CN201711248948.9A priority Critical patent/CN107995191A/en
Publication of CN107995191A publication Critical patent/CN107995191A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Invention is related to a kind of cloud application browser compatibility detection method based on automatic test.The event capturing stage record Web apply with reference to browser platform operation caused by various non-deterministic events simultaneously by proxy server caches access data, then playback phase by remote control in browser platform to be measured replay event and using proxy server caches data;Local region of variation is proposed, localized variation region is obtained by data processing, usually avoids repeating to detect using the member changed in the region detection page;Ensure that Web is applied and had identical execution on different browsers platform, improves Detection accuracy by capture/reproducing process, the compatible detection algorithm based on increment type, improves the efficiency of detection.

Description

A kind of cloud application browser compatibility detection method based on automatic test
Technical field
The present invention relates to a kind of cloud application browser compatibility detection method based on automatic test, belong to software technology Field.
Background technology
With the fast development of internet and Web technologies, Web is applied to as acquisition of information in people's daily life and friendship The platform of stream, due to its professional platform independence, user only needs a browser just can be applied using all kinds of Web.As Web is applied Popularization and development, there is miscellaneous browser in the market, and user selects different browsers according to the custom of itself, And application developer then wish developed application can in different browser platforms normal use.But due to different clear Device of looking at realizes the difference of technology and the difference to standard degree of support, and Web is using there may be browser-cross incompatibility. Web application browser-cross incompatibility refer to Web apply in different browser platforms use when there is behavior and the page Show the inconsistent of aspect.X-PERT(Roy Choudhary S, Prasad M R, Orso A. X-PERT: accurate identification of cross-browser issues in web applications [C] //Proc of the 2013 International Conference on Software Engineering. NJ: IEEE, 2013: 702- 711.)Will such issues that be divided into three classes:Behavior incompatibility, structure incompatibility and content incompatibility.Behavior XBI refers to the page The disabler of middle element;Structure XBI refers in the page element in terms of topology layout the problem of;Content XBI can be further divided into Text XBI and visual XBI, wherein, text XBI refers to that the text of element is different, and visual XBI refers to element in visualization side The difference in face, such as rendering effect of the same element on different browsers have differences.
There are substantial amounts of instrument and technology currently on the market(Mesbah A, Prasad M R. Automated cross- browser compatibility testing [C] //Proc of the 33rd International Conference on Software Engineering. New York: ACM, 2011: 561-570.)For solve Web application across clear Look at device compatibility issue.Most of these instruments need the participation of personnel, some instruments, which provide compatibility table, makes developer manual Whether the application for searching oneself exploitation is supported that some instruments provide different browser platform by specific browser, allows exploitation Person, which observes Web in different browsers and applies, whether there is compatibility issue.These technology labor intensives, and easily go out It is wrong.Academia proposes the compatible detection technique of automation, and current newest technology can be summarized as two stages:The page is visited Survey compared with the page.The page detection phase, automatically detects Web applications on different browsers, and extracts the page Related data(Choudhary S R, Versee H, Orso A. WEBDIFF: Automated identification of cross-browser issues in web applications [C] //Software Maintenance (ICSM), 2010 IEEE International Conference on. Timisoara: IEEE, 2010: 1-10.; Choudhary S R, Prasad M R, Orso A. Crosscheck: Combining crawling and differencing to better detect cross-browser incompatibilities in web applications [C] //Software Testing, Verification and Validation (ICST), 2012 IEEE Fifth International Conference on. Montreal: IEEE, 2012: 171-180.);The page Comparison phase, by being compared to the page data of collection, to find the XBI of Web applications(V. Dallmeier, M. Burger, T. Orth, and A. Zeller, “Webmate: a tool for testing web 2.0 applications,” in Proceedings of the Workshop on JavaScript Tools (JSTools). ACM, June 2012, pp. 11–15.).
There are following 2 points deficiencies for existing test technique automatic:It can not ensure that Web is applied on different browsers There is identical execution, cause page comparative result to have and largely report by mistake and fail to report;It is local to have ignored modern interactive Web applications The characteristic of refreshing, detects complete page data, causes detection efficiency to reduce every time(Semenenko N, Dumas M, Saar T. Browserbite: accurate cross-browser testing via machine learning over image features [C] //2013 IEEE International Conference on Software Maintenance. Eindhoven: IEEE, 2013: 528-531.).The present invention is ground emphatically for existing methods deficiency Study carefully following two problems, 1)How to ensure that Web is applied and had identical execution on different browsers, avoid inconsistent because performing And cause and report and fail to report 2 by mistake)How the efficiency of compatibility detection is improved using the characteristic of Web application Local hydrodynamic units.
The content of the invention
The purpose of the present invention:Ensure that Web is applied and had identical hold on different browsers platform by capture/reproducing process OK, Detection accuracy is improved, the compatible detection algorithm based on increment type, improves the efficiency of detection.
The principle of the present invention:Applied in event capturing stage record Web each with reference to caused by browser platform operation Kind of non-deterministic event simultaneously accesses data by proxy server caches, then in playback phase by remote control to be measured clear Look in device platform replay event and using the data of proxy server caches;Local region of variation is proposed, at data Reason obtains localized variation region, usually avoids repeating to detect using the member changed in the region detection page.
The technology of the present invention solution:A kind of cloud application browser compatibility detection method based on automatic test, its Feature is to realize that step is as follows:
Step 1:User passes through web front end and initiates detection request, it is necessary to which link that content includes Web applications, with reference to platform and treat Survey platform lists.In addition, the application for needing login authentication, need to provide username and password and username and password input Id the or name attributes of frame;
Step 2:Server receives request, distributes unique testCaseId for the detection, is then closed according to reference to platform selecting Suitable capture client simultaneously sends capture request, and request content has:TestCaseId, Web application link, with reference to platform;
Step 3:Capture client receives request, starts ginseng according to the automatic detecting module of request selecting or manual detecting module Browser is examined, sets and acts on behalf of and access Web applications, automatic detecting module detects Web applications to be measured, manual detecting module etc. automatically Treat that user detects Web applications;
Step 4:Proxy server intercepts the request in acquisition procedure, distributes unique logId for new sequence of events, and be The response implantation sequence of events logging modle of " html " type(Record.js), then with logId, page id, requesting method, Request URL } it is the response that key caches the request;
Step 5:Capture client and the sequence of events detected in Web application processes is recorded by sequence of events logging modle, every During the sequence of events of record is uploaded onto the server during secondary page jump.After detection, client is notified that server is caught The stage of obtaining terminates.
Step 6:After server receives the ending request of capture client, according to reference to platform and platform to be measured to multiple heavy Put client and initiate playback request, request content has:TestCaseId, sequence of events logId, reset link replayUrl, be somebody's turn to do The corresponding page number pageNum of sequence of events, platform information;
Step 7:Playback client starts corresponding browser and sets agency, then resets the sequence of events of each page page by page;
Step 8:Proxy server intercepts the request in playback procedure, is with { logId, page id, requesting method, request URL } Key obtains the response of caching, and response injection event replay module and page data collection module to " html " type (Replay.js);
Step 9:An event is often reset, page data collection module can record event information and collect the DOM letters of current page Breath, layout information and page screenshot.A page is reset, playback client uploads onto the server the page data of record. After all pages are all reset, client is notified that server playback phase terminates.
Step 10:At the end of server learns all playbacks of the detection, analysis request is initiated to analysis client.Please Have in asking:TestCaseId, page data list [{ logId, pageNum }], with reference to platform, platform lists to be measured;
Step 11:Analyze client using with reference to platform page data as standard detection platform to be measured page data, finally to Server submits compatibility issue report;
Step 12:The web front end visualization technique of server shows compatibility issue to user.
The present invention has the following advantages that compared with prior art:
Brief description of the drawings
Fig. 1 is cloud application browser compatibility detecting system Organization Chart;
Embodiment
Below in conjunction with specific embodiments and the drawings, the present invention is described in detail, cloud application browser compatibility detecting system frame Composition is as shown in Figure 1, system architecture includes server, capture client, playback client, proxy server and analysis client End, each several part major function are as follows:
Server:The entrance of system and control centre.Web front end is interacted for user with system, should for initiating detection Web With the request of compatibility issue and check examining report;Client manager module control captures client, playback client and divides Analysis client completes the detection of Web application compatibility issues jointly;Data collection module collects the processing knot from each client Fruit, e.g., captures the sequence of events of client, the page data of playback client and the analysis result for analyzing client.
Capture client:The capture request from server is received, returns to the sequence of events of Web applications to be measured.It is automatic to visit Module is surveyed to start particular browser according to request and detect Web applications to be measured automatically;Manual detecting module starts special according to request Determine browser and access Web applications, wait user to detect Web applications manually;In sequence of events logging modle record detection process The sequence of events of generation, including customer incident and browser internal event, the module is by being injected into the JavaScript of Web page Realize in storehouse.
Playback client:The playback request from server is received, Web to be measured is returned and applies the page on different browsers Face data.Sequence of events playback module starts the sequence of events of particular browser and playback of recorded according to request;Page data is received Collect page info, event information and the page data during module record reproducing, page data includes dom tree, page layout Information and page screenshot.
Behaviour can be included to the information of system where server registration itself on startup by capturing client and playback client Make system information and mounted browser information, information format:CHROME_45_WINDOWS_8.1_64, represents to browse respectively Device, browser version, operating system, operating system version and operating system digit.
Proxy server:Agency's capture client and playback client access the request and response of application.Request intercepts mould Block intercepts the request and response passed through, for Web applications distribution id and implantation JavaScript code storehouse;Message caching module caches Acquisition phase type is the response of " html ", is used for playback time, ensures that multiple playback time has access to the identical page with this Content.
Analyze client:The analysis request from server is received, returns to the compatibility issue report of Web application browser-cross Accuse.The problem of compatibility issue analysis module, using the detection algorithm of increment type, improves the efficiency of detection, which detects Including behavior XBI, structure XBI and content XBI.

Claims (1)

1. method characteristic is to realize that step is as follows:
The first step, initializes testing process:User initiates detection request by web front end, it is necessary to which content includes the chain of Web applications Connect, with reference to platform and platform lists to be measured, the application for needing login authentication, need to provide username and password and user name With id the or name attributes of Password Input frame;
Second step, sequence of events capture:Server receives request, unique ID is distributed for the detection, according to reference to platform selecting Suitable capture client simultaneously sends capture request;Capture client receives request, according to the automatic detecting module of request selecting Or manual detecting module starts with reference to browser, sets and act on behalf of and access Web applications, automatic detecting module detects to be measured automatically Web is applied, and manual detecting module waits user to detect Web applications;Proxy server intercepts the request in acquisition procedure, is new Sequence of events distributes unique logId, and is implanted into sequence of events logging modle for the response of " html " type(Record.js), Then the response of the request is cached for key with { logId, page id, requesting method, request URL };Capture client passes through event Sequence of events in sequential recording module record detection Web application processes, in each page jump by the sequence of events of record In uploading onto the server;
3rd step, sequence of events are reset:System collects page data at this stage, and the end that server receives capture client please After asking, playback request is initiated to multiple playback clients according to reference to platform and platform to be measured, request content has: TestCaseId, sequence of events logId, reset link replayUrl, the corresponding page number pageNum of the sequence of events, platform Information;Playback client starts corresponding browser and sets agency, then resets the sequence of events of each page page by page;Agency service Device intercepts the request in playback procedure, obtains the response of caching for key with { logId, page id, requesting method, request URL }, And response injection event replay module and page data collection module to " html " type(Replay.js);Often reset one A event, page data collection module can record event information and collect DOM information, layout information and the page section of current page Figure;
4th step, compatibility detection:At the end of server learns all playbacks of the detection, analysis is initiated to analysis client Request, including testCaseId, page data list [{ logId, pageNum }], with reference to platform, platform lists to be measured;Analysis Page data of the client using the page data with reference to platform as standard detection platform to be measured, finally submits compatibility to server Problem report;The web front end visualization technique of server shows compatibility to user.
CN201711248948.9A 2017-12-01 2017-12-01 A kind of cloud application browser compatibility detection method based on automatic test Pending CN107995191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711248948.9A CN107995191A (en) 2017-12-01 2017-12-01 A kind of cloud application browser compatibility detection method based on automatic test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711248948.9A CN107995191A (en) 2017-12-01 2017-12-01 A kind of cloud application browser compatibility detection method based on automatic test

Publications (1)

Publication Number Publication Date
CN107995191A true CN107995191A (en) 2018-05-04

Family

ID=62034947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711248948.9A Pending CN107995191A (en) 2017-12-01 2017-12-01 A kind of cloud application browser compatibility detection method based on automatic test

Country Status (1)

Country Link
CN (1) CN107995191A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684220A (en) * 2018-12-26 2019-04-26 苏州博纳讯动软件有限公司 A kind of browser compatibility analysis method based on event replay
CN111752663A (en) * 2020-06-29 2020-10-09 广东电网有限责任公司 Method and device for repairing layout compatibility problem in Web application
CN113495841A (en) * 2021-06-28 2021-10-12 北京百度网讯科技有限公司 Compatibility detection method, device, equipment, storage medium and program product
CN114422528A (en) * 2022-01-19 2022-04-29 杭州笨马网络技术有限公司 Method for requesting data synchronization based on desktop end and Web application

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684220A (en) * 2018-12-26 2019-04-26 苏州博纳讯动软件有限公司 A kind of browser compatibility analysis method based on event replay
CN111752663A (en) * 2020-06-29 2020-10-09 广东电网有限责任公司 Method and device for repairing layout compatibility problem in Web application
CN111752663B (en) * 2020-06-29 2023-06-30 广东电网有限责任公司 Method and device for repairing layout compatibility problem in Web application
CN113495841A (en) * 2021-06-28 2021-10-12 北京百度网讯科技有限公司 Compatibility detection method, device, equipment, storage medium and program product
CN113495841B (en) * 2021-06-28 2023-11-17 北京百度网讯科技有限公司 Compatibility detection method, device, equipment, storage medium and program product
CN114422528A (en) * 2022-01-19 2022-04-29 杭州笨马网络技术有限公司 Method for requesting data synchronization based on desktop end and Web application

Similar Documents

Publication Publication Date Title
CN107995191A (en) A kind of cloud application browser compatibility detection method based on automatic test
CN106503134B (en) Browser jumps to the method for data synchronization and device of application program
CN105468779B (en) A kind of client Web application capture and playback system and method towards browser compatibility detection
CN101635826B (en) Method for acquiring addresses of network video programs
US7770068B2 (en) Systems and methods for website monitoring and load testing via simulation
US9798446B2 (en) Standard commands for native commands
JP4940791B2 (en) Test support program, test support apparatus, and test support method
CN103618696B (en) Method and server for processing cookie information
WO2004099933A2 (en) Network meeting system
CN105721578B (en) A kind of user behavior data acquisition method and system
CN104301175A (en) WEB service system simulation monitoring method based on browser
WO2017063274A1 (en) Method for automatically determining malicious-jumping and malicious-nesting offensive websites
CN108667770A (en) A kind of loophole test method, server and the system of website
JP2017027208A (en) Dialogue information providing system, information processing unit and program
CN108111547B (en) Domain name health monitoring method and system
CN111414614B (en) Override detection method and auxiliary device
US20090183022A1 (en) Failure response support apparatus and failure response support method
Choudhary et al. A cross-browser web application testing tool
CN107147662A (en) The method that Domain Hijacking is found
US20060168467A1 (en) Load testing methods and systems with transaction variability and consistency
US9881516B1 (en) System and method for detecting cheating while administering online assessments
CN105282150B (en) A kind of login assistant system of web oriented system
CN109684220A (en) A kind of browser compatibility analysis method based on event replay
CN115514677A (en) Server dial testing method and system
CN111698475B (en) Student experiment examination-based management system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180504