CN106407119A - Browser compatibility testing method based on automatic testing - Google Patents

Browser compatibility testing method based on automatic testing Download PDF

Info

Publication number
CN106407119A
CN106407119A CN201610859799.9A CN201610859799A CN106407119A CN 106407119 A CN106407119 A CN 106407119A CN 201610859799 A CN201610859799 A CN 201610859799A CN 106407119 A CN106407119 A CN 106407119A
Authority
CN
China
Prior art keywords
picture
test
browser
automatic
manually
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
CN201610859799.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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201610859799.9A priority Critical patent/CN106407119A/en
Publication of CN106407119A publication Critical patent/CN106407119A/en
Pending legal-status Critical Current

Links

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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a browser compatibility testing method based on automatic testing, which belongs to the technical field of browser compatibility testing methods and comprises the steps of dividing a testing process into two stages, namely a Web function automatic testing stage and a manual image viewing stage, wherein the Web function automatic testing stage realizes screenshot and storage of a multi-browser operation process, the manual image viewing stage realizes automatic comparison and analysis of pictures, and the manual analysis is carried out on different pictures. The invention improves the efficiency and the accuracy of the compatibility test of the browser, and solves the problem that the manual factors in the test process and the test result are influenced by manually operating the browser and manually monitoring the test process.

Description

A kind of browser compatibility method of testing based on automatic test
Technical field
The present invention relates to the method for testing technical field of browser compatibility, specifically one kind are based on automatic test Browser compatibility method of testing.
Background technology
Browser compatibility is tested, and refers in different browsers, goal systems be tested, and finds in page exhibition Show and the mistake on function event response.
Most common method is matrix method, and abscissa is selected different browsers, and vertical coordinate is selected test target, The part record test result intersected.By manually completing same operation in different browsers, to complete test matrix.Whole Individual process is entirely artificial operation, and in the case that function number is certain, workload is multiplied with the quantity of abscissa browser, Anthropic factor also have impact on the accuracy of test.
Through inquiring about patent network, there is a browser compatibility test patent, mainly realize many browsers simultaneously operating instruction. Its inventive principle is to open multiple browsers simultaneously, and one of them is master browser, while artificial operation test process, operation It is converted into instruction, is synchronized to other browsers, realize the synchronization to other browsers.Advantage is to achieve automatization, only needs A browser operates one time, shortcoming be need manually real-time, whole all browsers are monitored, test mesh The change of each page of target and function event response also rely on artificial judgment, and automatization makes these change synchronizations carry out, One people is difficult to take into account all browsers it is necessary to more personnel participate in test process in the same time, and testing efficiency carries Rise limited, and have limitation.
Content of the invention
The technical assignment of the present invention is for above weak point, provides a kind of browser-safe based on automatic test Property method of testing, improve efficiency and the accuracy of browser compatibility test, solve artificial operate browser, manual monitoring is tested During anthropic factor to test process and test result impact.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of browser compatibility method of testing based on automatic test, test process is divided into two stages, and Web function is certainly Dynamicization test phase and manually see the figure stage,.The Web Function Test Automation stage is realized many browser executions process being carried out cut Scheme and preserve, manually see that figure achieves the automatic comparison analysis to picture, manual analyses are carried out to discrepant picture again.Divide After two stages, realize respectively.The output object screenshot capture in Web Function Test Automation stage, as manually seeing figure rank The input of section, the bridge being connected as two benches by sectional drawing.Browser compatibility be mainly presented with two, the displaying of the page Render and the response to event.Based on Web method for automatically testing functions, if the functional test script of design can correctly execute Pass through, show that event response is compatible.The displaying of the page renders can pass through sectional drawing, and each page and its change are carried out cutting Figure, then picture is analyzed, thus the compatibility that test page displaying renders.
First, the Web Function Test Automation stage, adoptable existing Web Function Test Automation scheme has a lot.As Fruit has suitable scheme it is not necessary to self-developing is realized.While for realizing carrying out many browser function tests, complete to the page Sectional drawing, simultaneously as far as possible improve execution efficiency, should from support many browsers Web Function Test Automation scheme(Must Want condition), meet the scheme that distributed can execute, have screenshotss function as far as possible.Here from the selenium increasing income as Web Function Test Automation instrument, supports Android, blackberry, chrome, edge, firefox, ie, opera, safari Multiple browsers, meet requirements above.Respectively each sectional drawing is numbered and preserve, using as the input manually seeing the figure stage.
2nd, manually see the figure stage, realize the management to sectional drawing and analysis.Develop and see drawing system, major function includes:Base The foundation of line chart valut and maintenance, picture automatic comparison, manually see figure.
1st, baseline picture library is complete set, correct sectional drawing, and the sectional drawing that test process produces will be in baseline picture library In corresponding picture compare.The foundation of baseline picture library is to be tested by execution, produces sectional drawing, artificial judgment sectional drawing Correctness.Baseline labelling is carried out to correct picture, incorrect picture is carried out again with sectional drawing and correction, can build through excessive wheel Erect initial baseline picture library.The maintenance of baseline picture library, when having sectional drawing to increase newly, changing, delete, is marked, updates Baseline picture library, maintains integrity and the correctness of baseline picture.
2nd, picture automatic comparison, realizes the comparison of two pictures, carries out Special display to the place finding differences.Principle It is to get two pictures needing to compare, tone is carried out to wherein one pictures and negates, then with 0.5 interpolation by two Picture mixes.If two pictures are just the same, the new figure producing after mixing should be a color(Lycoperdon polymorphum Vitt), if there are difference, Then can distinctly display.
3rd, manually see figure, through previous step, automatically analyze out discrepant picture, and generate the interpolation graphs of a mixing Piece.Method by manually seeing map analysis, judges to discrepant picture, if be mistake, or needs to update baseline chart Piece.The step for labor workload focuses primarily on, with respect to conventional test methodologies, greatly reduces the degree of artificial participation.
A kind of browser compatibility method of testing based on automatic test of the present invention compared to the prior art, have with Lower beneficial effect:
The core of this method of testing is that test process is divided into two stages, the Web Function Test Automation stage with manually see figure Stage.Web Function Test Automation, has broken away to artificial dependence, can arrange to complete on one's own time, manually sees that figure has certainly Dynamicization assists, and only difference pictures are carried out with manual analyses, reduces the artificial workload participating in.This method of testing is improving test effect While rate, it also avoid omission and the misjudgement of anthropic factor, improve the accuracy of test.
Specific embodiment
With reference to specific embodiment, the invention will be further described.
A kind of browser compatibility method of testing based on automatic test, test process is divided into two stages, Web work( Can automatic test stage and manually see the figure stage,.The Web Function Test Automation stage realizes many browser executions process is entered Row sectional drawing simultaneously preserves, and manually sees that figure achieves the automatic comparison analysis to picture, carries out manual analyses again to discrepant picture. After drawing in two stages, realize respectively.The output object screenshot capture in Web Function Test Automation stage, as manually seeing The input in figure stage, the bridge being connected as two benches by sectional drawing.Browser compatibility be mainly presented with two, the page Show and render and the response to event.Based on Web method for automatically testing functions, if the functional test script of design can be correct Execution is passed through, and shows that event response is compatible.The displaying of the page renders can pass through sectional drawing, to each page and its change into Row sectional drawing, then picture is analyzed, thus the compatibility that test page displaying renders.
First, the Web Function Test Automation stage, adoptable existing Web Function Test Automation scheme has a lot.As Fruit has suitable scheme it is not necessary to self-developing is realized.While for realizing carrying out many browser function tests, complete to the page Sectional drawing, simultaneously as far as possible improve execution efficiency, should from support many browsers Web Function Test Automation scheme(Must Want condition), meet the scheme that distributed can execute, have screenshotss function as far as possible.Here from the selenium increasing income as Web Function Test Automation instrument, supports Android, blackberry, chrome, edge, firefox, ie, opera, safari Multiple browsers, meet requirements above.Respectively each sectional drawing is numbered and preserve, using as the input manually seeing the figure stage.
2nd, manually see the figure stage, realize the management to sectional drawing and analysis.Develop and see drawing system, major function includes:Base The foundation of line chart valut and maintenance, picture automatic comparison, manually see figure.
1st, baseline picture library is complete set, correct sectional drawing, and the sectional drawing that test process produces will be in baseline picture library In corresponding picture compare.The foundation of baseline picture library is to be tested by execution, produces sectional drawing, artificial judgment sectional drawing Correctness.Baseline labelling is carried out to correct picture, incorrect picture is carried out again with sectional drawing and correction, can build through excessive wheel Erect initial baseline picture library.The maintenance of baseline picture library, when having sectional drawing to increase newly, changing, delete, is marked, updates Baseline picture library, maintains integrity and the correctness of baseline picture.
2nd, picture automatic comparison, realizes the comparison of two pictures, carries out Special display to the place finding differences.Principle It is to get two pictures needing to compare, tone is carried out to wherein one pictures and negates, then with 0.5 interpolation by two Picture mixes.If two pictures are just the same, the new figure producing after mixing should be a color(Lycoperdon polymorphum Vitt), if there are difference, Then can distinctly display.
3rd, manually see figure, through previous step, automatically analyze out discrepant picture, and generate the interpolation graphs of a mixing Piece.Method by manually seeing map analysis, judges to discrepant picture, if be mistake, or needs to update baseline chart Piece.The step for labor workload focuses primarily on, with respect to conventional test methodologies, greatly reduces the degree of artificial participation.
This method of testing is the method that browser compatibility is tested, in conjunction with automatic test mode with manually see figure Mode, effectively improves efficiency and the accuracy of test.Test process is divided into two stages by the present invention, and Web function automatization surveys The examination stage with manually see the figure stage.Web Function Test Automation achieves the sectional drawing to many browser executions process and preserves, people Work is seen that the figure stage achieves and picture automatic comparison is analyzed, and carries out manual analyses to discrepant picture.The method have the advantages that Web Function Test Automation, has broken away to artificial dependence, can arrange to complete on one's own time, and artificial Kan Tuyou automatization is auxiliary Help, only difference pictures are carried out with manual analyses, reduce the artificial workload participating in.This method of testing is improving the same of testing efficiency When, it also avoid omission and the misjudgement of anthropic factor, improve the accuracy of test.
By specific embodiment above, described those skilled in the art can readily realize the present invention.But should Work as understanding, the present invention is not limited to above-mentioned specific embodiment.On the basis of disclosed embodiment, described technical field Technical staff can the different technical characteristic of combination in any, thus realizing different technical schemes.
In addition to technical characteristic described in except description, it is the known technology of those skilled in the art.

Claims (5)

1. a kind of browser compatibility method of testing based on automatic test is it is characterised in that be divided into two ranks by test process Section, Web Function Test Automation stage and manually seeing the figure stage, the Web Function Test Automation stage is realized to many browsers fortune Row process carries out sectional drawing and preserves, and manually sees that figure realizes the automatic comparison analysis to picture, enters pedestrian again to discrepant picture Work point is analysed.
2. a kind of browser compatibility method of testing based on automatic test according to claim 1 it is characterised in that Manually see that the figure stage includes the foundation of baseline picture library and maintenance, picture automatic comparison and manually sees figure.
3. a kind of browser compatibility method of testing based on automatic test according to claim 2 it is characterised in that Baseline picture library is complete set, correct sectional drawing, sectional drawing and corresponding picture in baseline picture library that test process produces Compare.
4. a kind of browser compatibility method of testing based on automatic test according to claim 2 it is characterised in that Picture automatic comparison, realizes the comparison of two pictures, carries out Special display to the place finding differences.
5. a kind of browser compatibility method of testing based on automatic test according to claim 2 it is characterised in that Manually see figure, through previous step, automatically analyze out discrepant picture, and generate the interpolation picture of a mixing.
CN201610859799.9A 2016-09-28 2016-09-28 Browser compatibility testing method based on automatic testing Pending CN106407119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610859799.9A CN106407119A (en) 2016-09-28 2016-09-28 Browser compatibility testing method based on automatic testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610859799.9A CN106407119A (en) 2016-09-28 2016-09-28 Browser compatibility testing method based on automatic testing

Publications (1)

Publication Number Publication Date
CN106407119A true CN106407119A (en) 2017-02-15

Family

ID=58015718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610859799.9A Pending CN106407119A (en) 2016-09-28 2016-09-28 Browser compatibility testing method based on automatic testing

Country Status (1)

Country Link
CN (1) CN106407119A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943698A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of DMI information and FRU synchronizing informations automated testing method and system
CN108170606A (en) * 2018-01-03 2018-06-15 中国工商银行股份有限公司 The test system and method for system software upgrading class application
CN109656643A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 More browser compatibility test methods, storage medium, electronic equipment and system
CN110275820A (en) * 2018-03-15 2019-09-24 阿里巴巴集团控股有限公司 Page compatibility test method, system and equipment
CN112559375A (en) * 2020-12-23 2021-03-26 深圳迅策科技有限公司 Method for parallel automatic testing by using multiple different browsers
CN112685284A (en) * 2019-10-18 2021-04-20 中移动信息技术有限公司 Test video generation method and device, electronic equipment and computer storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656643A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 More browser compatibility test methods, storage medium, electronic equipment and system
CN107943698A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of DMI information and FRU synchronizing informations automated testing method and system
CN108170606A (en) * 2018-01-03 2018-06-15 中国工商银行股份有限公司 The test system and method for system software upgrading class application
CN110275820A (en) * 2018-03-15 2019-09-24 阿里巴巴集团控股有限公司 Page compatibility test method, system and equipment
CN110275820B (en) * 2018-03-15 2023-11-21 阿里巴巴集团控股有限公司 Page compatibility testing method, system and equipment
CN112685284A (en) * 2019-10-18 2021-04-20 中移动信息技术有限公司 Test video generation method and device, electronic equipment and computer storage medium
CN112559375A (en) * 2020-12-23 2021-03-26 深圳迅策科技有限公司 Method for parallel automatic testing by using multiple different browsers
CN112559375B (en) * 2020-12-23 2024-05-10 深圳迅策科技有限公司 Method for parallel automatic test by using multiple different browsers

Similar Documents

Publication Publication Date Title
CN106407119A (en) Browser compatibility testing method based on automatic testing
CN104252481B (en) The dynamic check method and apparatus of master-slave database consistency
CN106022619A (en) Automobile repair and maintenance process monitoring and displaying system and method based on internet of things
CN106649127A (en) Automatic testing method and model suitable for software agile development
CN108508477B (en) Seismic data acquisition system and method
CN104216823B (en) A kind of automated testing method and master control set
CN111782556A (en) Automatic test method and device
CN106815147A (en) A kind of test script generation method and device
JP6310527B1 (en) Object analysis apparatus, object analysis method, and program
CN105574178B (en) Satellite test basic database and batch satellite test device and method
CN116796552B (en) Simulation thinking asynchronous cooperative processing method and device
CN108763081A (en) A kind of data library test method and its device, computer readable storage medium
Haidu What Is Technical Geography
US10288679B2 (en) System and method for providing temporal visualization of signal relationships in a coherent time-domain ATE test execution environment
CN108268379B (en) Distributed automatic testing method and device
CN104967920B (en) It is a kind of to compile single dissemination method and device
CN106445772B (en) Multi-data association analysis method and system
CN112488410A (en) Production equipment performance optimization method and device based on equipment comprehensive efficiency
US20110289473A1 (en) Software modification estimate method and software modification estimate system
CN112181906A (en) Test data synchronization method, device and system based on combined data acquisition instrument
CN110062403A (en) Message processing method, device, equipment and storage medium
CN108597465B (en) Display method of liquid crystal display screen and electric energy meter manufactured by same
CN110321276A (en) The generation method and device of test case
CN109460918A (en) A kind of maintenance work evaluation method and system
CN111061599B (en) Method for generating check point of interface test environment

Legal Events

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

Application publication date: 20170215

WD01 Invention patent application deemed withdrawn after publication