Multiple browser compatibility testing method and system

A compatibility test and multi-browser technology, applied in software testing/debugging, etc., can solve problems such as incomplete compatibility testing, inability to verify page operation behavior, and repeated operation behavior without improvement, so as to improve test efficiency, Effective monitoring to avoid boring effects

Active Publication Date: 2014-07-16
ALIBABA GRP HLDG LTD
View PDF3 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, some testing tools provide solutions that can quickly switch between various browsers, but this method only reduces the need for testers to prepare for resources such as machines and operating systems in order to install these browsers. There is no improvement, and it can only be tested under IE browser, which does not fu

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multiple browser compatibility testing method and system
  • Multiple browser compatibility testing method and system
  • Multiple browser compatibility testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0039] Example one

[0040] In the first embodiment, a server can be created to establish a communication channel between the currently operated browser and other browsers that have been started, and then through the Socket communication mechanism, the operation information related to the operation behavior It is sent to the server, and the API function of the browser automated test framework is called by the server to synchronize the operation information related to the operation behavior to other browsers, and simulate the execution operation behavior in the other browsers.

[0041] In specific implementation, the entire framework can be divided into Server and Client. See figure 2 The specific implementation process is as follows: First, inject the js script into the document of the web page opened in the browser that is actually operated, assign the port number for this connection, create the XMLHttpRequest object XHR, and register the hook function to bind mouse events and K...

Example Embodiment

[0126] Example two

[0127] In the second embodiment, JS can also be injected into the current page of the currently operated browser to monitor and capture information about the tester’s operation behavior, and then a hidden element can be created in the currently operated browser. Record the obtained message as its attribute, and notify the test program that the attribute of the hidden element has been updated through Flag flag bit and other methods. After the test program finds that the value of the flag bit is "true", it can hide according to the The ID of the element is located to the element, and the attribute value of the element is read, and then synchronized to other browsers through the Selenium-WebDriver extension or Waitr extension. That is to say, in this way, there is no need to create the server side, and the captured information about the operation behavior can be sent to other browsers. However, it should be noted that, for an operation behavior, the captured op...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The application discloses a multiple browser compatibility testing method and system. The method includes starting at least two browsers according to input parameters and opening a designated website in the at least two browsers; determining that one of the browsers is an actually-operated browser, monitoring the operation behavior of a user in the actually-operated browser, and obtaining operation information related to the operation behavior; calling application programming interface (API) functions of a web application automation testing framework, synchronizing the operation information related to the operation behavior to other browsers, and simulating to executing the operation behavior in other browsers so as to display corresponding interface in other browsers after the execution of the operation behavior. The multiple browser compatibility testing method and system can effectively improve testing efficiency and intuitively and effectively monitor the compatibility of every browser page.

Description

technical field [0001] The present application relates to the technical field of browser compatibility testing, in particular to a multi-browser compatibility testing method and system. Background technique [0002] The browser is the core software of the Internet product client, and it is also the necessary software for website access. Browsers from different vendors also have different support for Java, JS, ActiveX, and plin-ins. Even browsers from the same manufacturer may have different versions. For example, ActiveX is a product of Microsoft and is designed for Internet Explorer (IE); JS is a product of Netscape, etc. Also, frame and hierarchy styles are displayed differently in different browsers. Currently the most commonly used browser is IE, but due to operating habits and other issues, there are quite a few users who prefer Firefox browser, Google Chrome and so on. [0003] In view of this situation, webpage or web service developers should also formulate targe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
Inventor 金茜茜
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products