CN113238959A - Browser page compatibility detection method - Google Patents

Browser page compatibility detection method Download PDF

Info

Publication number
CN113238959A
CN113238959A CN202110619916.5A CN202110619916A CN113238959A CN 113238959 A CN113238959 A CN 113238959A CN 202110619916 A CN202110619916 A CN 202110619916A CN 113238959 A CN113238959 A CN 113238959A
Authority
CN
China
Prior art keywords
different
picture
pictures
browser page
browsers
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
CN202110619916.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.)
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Zhongtongji Network 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 Shanghai Zhongtongji Network Technology Co Ltd filed Critical Shanghai Zhongtongji Network Technology Co Ltd
Priority to CN202110619916.5A priority Critical patent/CN113238959A/en
Publication of CN113238959A publication Critical patent/CN113238959A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a method for detecting browser page compatibility, which belongs to the technical field of computers and comprises the following steps: by running UI automation scripts in different browsers; when the automatic script is operated, screenshot operation is carried out according to the steps to obtain pictures corresponding to different browsers; storing pictures corresponding to different browsers in a file server, and recording storage addresses of files; calling a picture comparison tool according to pictures corresponding to different browsers and/or storage addresses of files, and comparing picture parameters to obtain a result of whether the pictures of different browser pages are consistent; if the different browser page pictures are consistent, the record is passed; and if the different browser page pictures are consistent, performing browser page compatibility analysis on the comparison result, and outputting a browser page compatibility report. The method can quickly acquire the image comparison result, and quickly reveal the problem of browser page compatibility when generating a corresponding test report.

Description

Browser page compatibility detection method
Technical Field
The application belongs to the technical field of computers, and particularly relates to a browser page compatibility detection method.
Background
Browser compatibility issues, also known as web page compatibility or website compatibility issues, refer to compatibility issues between browsers and web pages caused by the fact that the display of web pages on various browsers may not be consistent.
In the design and manufacture of the website, the compatibility of browsers is well made, and the website can be normally displayed under different browsers. For the development and design of browser software, better compatibility of the browser to the standard can provide better use experience for users, and therefore page compatibility needs to be detected.
At present, when a tester writes a UI (user interface) automation script, mainly used are selenium, airtest, appnium and the like. These frameworks support run and assertion, but when multiple ports are run simultaneously, it is not possible to pinpoint if there is a compatibility problem. The same UI automation script is run on different devices, and the running results may be different, such as the dislocation of page elements, the clicking error of elements and the like, so that the problem of browser page compatibility cannot be quickly and accurately found.
Disclosure of Invention
In order to overcome the problems in the related technology at least to a certain extent, the application provides a chronic case feature classification processing method, a device and a terminal, which are beneficial to quickly and accurately obtaining auxiliary decision information for the graded diagnosis and treatment of chronic diseases.
In order to achieve the purpose, the following technical scheme is adopted in the application:
a method for browser page compatibility detection, the method comprising:
running UI automation scripts in different browsers;
when the UI automation script is operated, screenshot operation is carried out according to the steps to obtain pictures corresponding to different browsers;
storing the pictures corresponding to the different browsers in a file server, and recording the storage addresses of the files;
calling a picture comparison tool according to pictures corresponding to the different browsers and/or storage addresses of the files, and comparing picture parameters to obtain a result of whether the pictures of the different browsers are consistent;
if the different browser page pictures are consistent, the record is passed;
and if the different browser page pictures are consistent, performing browser page compatibility analysis on the comparison result, and outputting a browser page compatibility report.
Further, the different browser comprises:
different browsers on computers and/or different browsers on mobile terminals.
Further, the picture parameter includes a resolution of the picture, and/or a position of a button in the picture, and/or a size of the picture.
Furthermore, screenshot operation is carried out according to the steps, pictures corresponding to different browsers in different steps are obtained, and picture names are marked on the pictures corresponding to the different browsers in the different steps.
Further, the calling a picture comparison tool to perform picture parameter comparison includes:
and the picture comparison tool classifies the pictures corresponding to the different browsers in the different steps according to the picture names.
This application adopts above technical scheme, possesses following beneficial effect at least:
according to the method for detecting the page compatibility of the browser, UI automation scripts are run in different browsers; when the automatic script is operated, screenshot operation is carried out according to the steps to obtain pictures corresponding to different browsers; storing pictures corresponding to different browsers in a file server, and recording storage addresses of files; calling a picture comparison tool according to pictures corresponding to different browsers and/or storage addresses of files, and comparing picture parameters to obtain a result of whether the pictures of different browser pages are consistent; if the different browser page pictures are consistent, the record is passed; and if the different browser page pictures are consistent, performing browser page compatibility analysis on the comparison result, and outputting a browser page compatibility report. The method can quickly acquire the picture comparison result, generate a corresponding test report in the system and quickly disclose the problem of browser page compatibility.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for browser page compatibility detection, according to an example embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail below. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for detecting browser page compatibility according to an exemplary embodiment, where as shown in fig. 1, the method for detecting browser page compatibility includes the following steps:
step S101, running UI automation scripts in different browsers;
step S102, when the automation script is operated, screenshot operation is carried out according to the steps to obtain pictures corresponding to different browsers;
and marking picture names of pictures corresponding to different browsers in different steps.
Step S103, storing the pictures corresponding to the different browsers in a file server, and recording the storage addresses of the files;
step S104, calling a picture comparison tool according to pictures corresponding to different browsers and/or storage addresses of the files, and comparing picture parameters to obtain a result of whether the pictures of different browser pages are consistent;
the picture parameter includes the resolution of the picture, and/or the position of a button in the picture, and/or the size of the picture.
Specifically, the picture comparison tools classify the pictures corresponding to the different browsers in the different steps according to the picture names, and the multiple comparison tools can run simultaneously and process the pictures rapidly. And analyzing the picture by using technologies such as big data or artificial intelligence. Including but not limited to the position of each button in the picture, whether the page pictures are consistent, whether the pictures are missing, etc., thereby judging whether the compatibility problem of the page exists.
Step S105, if the different browser page pictures are consistent, the record is passed;
and S106, if the different browser page pictures are consistent, performing browser page compatibility analysis on the comparison result, and outputting a browser page compatibility report.
In the prior art, page compatibility detection tools are as follows: beyond company, et al, in contrast to the picture itself, e.g., pixels, problems, etc. It is impossible to analyze in more detail whether there is a compatibility problem. Meanwhile, such tools cannot be called through an interface layer and cannot be packaged in an automation script.
According to the technical scheme provided by the application, UI automation scripts are operated in different browsers; when the automatic script is operated, screenshot operation is carried out according to the steps to obtain pictures corresponding to different browsers; storing pictures corresponding to different browsers in a file server, and recording storage addresses of files; calling a picture comparison tool according to pictures corresponding to different browsers and/or storage addresses of files, and comparing picture parameters to obtain a result of whether the pictures of different browser pages are consistent; if the different browser page pictures are consistent, the record is passed; and if the different browser page pictures are consistent, performing browser page compatibility analysis on the comparison result, and outputting a browser page compatibility report. And dynamically judging whether the browser page compatibility problem exists or not by analyzing the difference among a large number of pictures, and returning a specific compatibility report. By the method and the device, the compatibility problem of the browser can be quickly positioned and found, and corresponding testers are reminded to solve the problem in time.
As a further refinement of the above-described embodiments, in some embodiments,
the different browser, comprising:
different browsers on computers and/or different browsers on mobile terminals.
It can be understood that by executing the script of the present invention on different devices and performing the picture analysis, the problem of browser compatibility between the same script on different devices can be discovered. It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, the meaning of "plurality" means at least two unless otherwise specified.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present; when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present, and further, as used herein, connected may include wirelessly connected; the term "and/or" is used to include any and all combinations of one or more of the associated listed items.
Any process or method descriptions in flow charts or otherwise described herein may be understood as: represents modules, segments or portions of code which include one or more executable instructions for implementing specific logical functions or steps of a process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (5)

1. A method for browser page compatibility detection, the method comprising:
running UI automation scripts in different browsers;
when the automatic script is operated, screenshot operation is carried out according to the steps to obtain pictures corresponding to different browsers;
storing the pictures corresponding to the different browsers in a file server, and recording the storage addresses of the files;
calling a picture comparison tool according to pictures corresponding to the different browsers and/or storage addresses of the files, and comparing picture parameters to obtain a result of whether the pictures of the different browsers are consistent;
if the different browser page pictures are consistent, the record is passed;
and if the different browser page pictures are consistent, performing browser page compatibility analysis on the comparison result, and outputting a browser page compatibility report.
2. The method of claim 1, wherein the different browser comprises:
different browsers on computers and/or different browsers on mobile terminals.
3. The method according to claim 1, wherein the picture parameters comprise a resolution of the picture, and/or a position of a button in the picture, and/or a picture size.
4. The method according to claim 1, wherein screenshot operation is performed according to steps to obtain pictures corresponding to different browsers in different steps, and the step of marking the picture names of the pictures corresponding to the different browsers in the different steps comprises.
5. The method of claim 4, wherein the invoking of the picture comparison tool for picture parameter comparison comprises:
and the picture comparison tool classifies the pictures corresponding to the different browsers in the different steps according to the picture names.
CN202110619916.5A 2021-06-03 2021-06-03 Browser page compatibility detection method Pending CN113238959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110619916.5A CN113238959A (en) 2021-06-03 2021-06-03 Browser page compatibility detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110619916.5A CN113238959A (en) 2021-06-03 2021-06-03 Browser page compatibility detection method

Publications (1)

Publication Number Publication Date
CN113238959A true CN113238959A (en) 2021-08-10

Family

ID=77136554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110619916.5A Pending CN113238959A (en) 2021-06-03 2021-06-03 Browser page compatibility detection method

Country Status (1)

Country Link
CN (1) CN113238959A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2805885A1 (en) * 2012-02-13 2013-08-13 Accenture Global Services Limited Browser and operating system compatibility
CN108446227A (en) * 2018-03-12 2018-08-24 广东睿江云计算股份有限公司 A kind of virtual machine browser compatibility test method based on selenium
CN108549601A (en) * 2018-04-02 2018-09-18 郑州云海信息技术有限公司 A kind of more browser compatibility automated testing methods
CN110825651A (en) * 2019-12-11 2020-02-21 北京海益同展信息科技有限公司 Webpage compatibility testing method, device, system and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2805885A1 (en) * 2012-02-13 2013-08-13 Accenture Global Services Limited Browser and operating system compatibility
CN108446227A (en) * 2018-03-12 2018-08-24 广东睿江云计算股份有限公司 A kind of virtual machine browser compatibility test method based on selenium
CN108549601A (en) * 2018-04-02 2018-09-18 郑州云海信息技术有限公司 A kind of more browser compatibility automated testing methods
CN110825651A (en) * 2019-12-11 2020-02-21 北京海益同展信息科技有限公司 Webpage compatibility testing method, device, system and storage medium

Similar Documents

Publication Publication Date Title
US9612937B2 (en) Determining relevant events in source code analysis
CN107025174B (en) Method, device and readable storage medium for user interface anomaly test of equipment
US9535821B1 (en) Displaying violated coding rules in source code
TWI533123B (en) Method and system for automated test and result comparison
US20120324428A1 (en) Content design tool
TW201732789A (en) Disk failure prediction method and apparatus
GB2492874A (en) Using the differences between screen images to automate the execution of graphical interface applications
US20150242380A1 (en) Checking testing coverage
CN107526676B (en) Cross-system test method and device
CN111190825A (en) Automatic test method, system and robot
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
US20180004648A1 (en) Defect reporting in application testing
WO2020068701A2 (en) Automated determination of web page rendering performance
WO2021129335A1 (en) Operation monitoring method and apparatus, operation analysis method and apparatus
EP4148587B1 (en) End-user device testing of websites and applications
US11182279B1 (en) Optimizing test case execution
US20180336122A1 (en) Generating application flow entities
CN111427760A (en) Page testing method, device, equipment and storage medium
CN117370203A (en) Automatic test method, system, electronic equipment and storage medium
CN116662197A (en) Automatic interface testing method, system, computer and readable storage medium
CN113238959A (en) Browser page compatibility detection method
CN111428691A (en) Chip debugging method, chip debugging device, storage medium and processor
Vontell Bility: automated accessibility testing for mobile applications
US20240143347A1 (en) Systems and methods for encoding and rendering generic visualizations of a gui of a client application
JP6916327B1 (en) Derived test equipment, derived test methods, and derived test programs

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