Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for multi-browser compatibility testing

A compatibility test and multi-browser technology, applied in software testing/debugging, etc., can solve problems such as incomplete compatibility testing, repeated operation behaviors not improved, and failure to verify page operation behaviors, etc., to improve test efficiency, Effective monitoring to avoid boring effects

Active Publication Date: 2017-04-19
ALIBABA GRP HLDG LTD
View PDF3 Cites 3 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 fully meet the requirements of compatibility testing
There are also automated testing tools that can provide screenshots of pages in different browsers, and testers can verify these screenshots. Through page screenshots, you can only see the static page display effect in each browser, but cannot verify the page. operational behavior, etc.

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
  • Method and system for multi-browser compatibility testing
  • Method and system for multi-browser compatibility testing
  • Method and system for multi-browser compatibility testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] In the first embodiment, a server can be created to establish a communication channel between the currently operated browser and other activated browsers, and then through the Socket communication mechanism, the operation information related to the operation behavior After sending to the server, the server calls the API function of the browser automation test framework to synchronize the operation information related to the operation behavior to other browsers, and simulate the execution of the operation behavior in other browsers.

[0041] In specific implementation, the whole framework can be divided into Server side and Client side. see figure 2 , the specific implementation process is as follows: First, inject the js script into the webpage document opened in the browser to be operated, assign the port number for this connection, create the XMLHttpRequest object XHR, and register the hook function to bind the mouse event and Input events such as keyboard events an...

Embodiment 2

[0127] In the second embodiment, it is also possible to inject JS into the current page of the currently operated browser to monitor and capture information related to 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 the Flag flag, etc. After the test program finds that the value of the flag is "true", it can hide it according to the hidden element. The ID of the element locates the element, reads the attribute value of the element, and then synchronizes it to other browsers through the Selenium-WebDriver extension or the Waitr extension. That is to say, in this way, the captured operation behavior-related information can be sent to other browsers without creating a server. However, it should be noted that for an operation behavior, the captured operation information generally ne...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 金茜茜
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products