CN108549601A - A kind of more browser compatibility automated testing methods - Google Patents
A kind of more browser compatibility automated testing methods Download PDFInfo
- Publication number
- CN108549601A CN108549601A CN201810284520.8A CN201810284520A CN108549601A CN 108549601 A CN108549601 A CN 108549601A CN 201810284520 A CN201810284520 A CN 201810284520A CN 108549601 A CN108549601 A CN 108549601A
- Authority
- CN
- China
- Prior art keywords
- script
- test
- browser
- performer
- control centre
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
Abstract
The invention belongs to browser compatibility technical field of measurement and test, and in particular to a kind of more browser compatibility automated testing methods, including:(10)The browser of pretest is installed in initialization in PC equipment;(20)Start script performer 1, script performer 2 by control centre;(30)Perform script, and sectional drawing output is judged whether there is, it exports, enters step if any sectional drawing(40);Otherwise, it enters step(60);(40)By Image Comparator, sectional drawing is compareed with reference chart, and export image comparison result;(50)Result is preserved to test report;(60)Judge whether script is finished, if script is finished, exports test report, terminate test;Otherwise, return to step(30).The application can be quickly found out the problem of page, increase substantially the efficiency of compatibility test, and two hang-up of interface checkpoint and manual test inefficiency can not be arranged by solving traditional test script.
Description
Technical field
The invention belongs to browser compatibility technical field of measurement and test, and in particular to a kind of more browser compatibility automation surveys
Method for testing.
Background technology
Existing automatization testing technique has been widely used for the functional test of web application, it can be prior
A script is customized, is played back on different browsers later.Such as application No. is the patent applications of CN2014108412279 to disclose
A kind of more browser compatibility test methods and system can reduce test job amount, improve working efficiency.The program passes through note
It records and is doing the operation behavior performed by browser, operational order is synchronized to synchronism detection browser by formation operation instruction, to
The operational order is simulated on synchronism detection browser, realizes the automatic test of browser compatibility.
A kind of more browser compatibility test methods are disclosed application No. is the patent of invention of CN2013100120206 and are
System can capture operation behavior of the tester in certain browser by this method, and by calling browser automation to survey
The api function for trying frame, the relevant operation information of operation behavior is simultaneously sent in other browsers, and in other browsers
The execution of middle simulated operation behavior avoids tester and carries out the uninteresting of same operation respectively in different browsers, simultaneously
Testing efficiency is effectively promoted, and can intuitively, effectively monitor the compatibility of each browser page.
Both the above scheme is by customizing a script in advance, being played back on different browsers later, but it is tested
In terms of the checkpoint of card can only be functionality, the problems such as interface layout, pattern, background color, can not be surveyed by automation
Examination.
Therefore it provides a kind of more browser compatibility automated testing methods, are very necessary.
Invention content
It is low and automatic it is an object of the invention to solve the browser compatibility manual test efficiency of existing web application
Change test in can not Checkpointing problem, a kind of more browser compatibility automated testing methods are provided.
To achieve the above object, the present invention provides following technical scheme:
A kind of more browser compatibility automated testing methods, including:
(10)The browser of pretest is installed in initialization in PC equipment;
(20)Start script performer 1, script performer 2 by control centre;
(30)Perform script, and sectional drawing output is judged whether there is, it exports, enters step if any sectional drawing(40);Otherwise, it enters step
(60);
(40)By Image Comparator, sectional drawing is compareed with reference chart, and export image comparison result;
(50)Result is preserved to test report;
(60)Judge whether script is finished, if script is finished, exports test report, terminate test;Otherwise, it returns
Step(30).
Further, step(20)Including:
(21)Control centre sends out automatic test instruction;
(22)Script performer 1, script performer 2 receive the order of control centre respectively;
(23)Browser, and perform script is respectively started in script performer 1, script performer 2.
In this step, script performer 1, script performer 2 are started by control centre's program, wherein control centre controls
The operational process entirely automated, script performer start browser and perform script by receiving the order of control centre.
Further, step(40)Middle Image Comparator extracts image texture characteristic by image processing program and carries out pair
Than.The image processing program used in this step is image matching technology and validation check point program.
Further, step(60)Middle control centre after having executed a script and having carried out picture relatively, runs automatically
Next script, after institute's execution script in need is completed to execute operation, control centre exports test report, and terminates to survey
Examination.In this step, control centre, which can guarantee, has executed institute's execution script in need.
Compared with prior art, the beneficial effects of the invention are as follows:
A kind of more browser compatibility automated testing methods provided by the invention, using image matching technology and automatic test
The existing more browser compatibility test methods of technical optimization, wherein script performer 1, script performer 2 refer at two
The script that automatic test is carried out on browser, can shift to an earlier date and be write according to system interface, function is write using Java code
Code realize automation test browser each function of system compatibility.The application is carried out by image matching technology
Setting and validation check point, increase substantially the efficiency of compatibility test at the problem of capable of being quickly found out the page, solve
Traditional test script can not be arranged two hang-up of interface checkpoint and manual test inefficiency.
In addition, the method for the present invention principle is reliable, step is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention with substantive distinguishing features outstanding and significantly improving, implementation
Advantageous effect be also obvious.
Description of the drawings
Fig. 1 is a kind of flow chart of more browser compatibility automated testing methods provided by the invention.
Specific implementation mode
Present invention is further described in detail below in conjunction with the accompanying drawings:
As shown in Figure 1, a kind of more browser compatibility automated testing methods provided by the invention, including:
(10)The browser of pretest is installed in initialization in PC equipment;
(20)Start script performer 1, script performer 2 by control centre;
(30)Perform script, and sectional drawing output is judged whether there is, it exports, enters step if any sectional drawing(40);Otherwise, it enters step
(60);
(40)By Image Comparator, sectional drawing is compareed with reference chart, and export image comparison result;
(50)Result is preserved to test report;
(60)Judge whether script is finished, if script is finished, exports test report, terminate test;Otherwise, it returns
Step(30).
In the present embodiment, step(20)Including:
(21)Control centre sends out automatic test instruction;
(22)Script performer 1, script performer 2 receive the order of control centre respectively;
(23)Browser, and perform script is respectively started in script performer 1, script performer 2.
In the present embodiment, script performer 1, script performer 2, wherein control centre are started by control centre's program
The operational process entirely automated is controlled, script performer is by receiving the order startup browser of control centre and executing foot
This.
In the present embodiment, step(40)Middle Image Comparator extracts image texture characteristic by image processing program and carries out
Comparison.
In the present embodiment, the image processing program used is image matching technology and validation check point program.
In the present embodiment, step(60)Middle control centre automatically after having executed a script and having carried out picture relatively,
Next script is run, after institute's execution script in need is completed to execute operation, control centre exports test report, and terminates
Test.
In the present embodiment, control centre, which can guarantee, has executed institute's execution script in need.
A kind of more browser compatibility automated testing methods provided by the invention, using image matching technology and automation
Measuring technology optimizes existing more browser compatibility test methods, wherein script performer 1, script performer 2 refer to
The script that automatic test is carried out on two browsers, can shift to an earlier date and be write according to system interface, and function is to utilize Java code
The code write realizes compatibility of the test browser in each function of system of automation.The application passes through image matching technology
It is configured with validation check point, the problem of page can be quickly found out, increases substantially the efficiency of compatibility test,
Two hang-up of interface checkpoint and manual test inefficiency can not be arranged by solving traditional test script.
Above-mentioned technical proposal is one embodiment of the present invention, for those skilled in the art, at this
On the basis of disclosure of the invention application process and principle, it is easy to make various types of improvement or deformation, be not limited solely to this
Invent method described in above-mentioned specific implementation mode, therefore previously described mode is only preferred, and and without limitation
The meaning of property.
Claims (4)
1. a kind of more browser compatibility automated testing methods, which is characterized in that including:
(10)The browser of pretest is installed in initialization in PC equipment;
(20)Start script performer 1, script performer 2 by control centre;
(30)Perform script, and sectional drawing output is judged whether there is, it exports, enters step if any sectional drawing(40);Otherwise, it enters step
(60);
(40)By Image Comparator, sectional drawing is compareed with reference chart, and export image comparison result;
(50)Result is preserved to test report;
(60)Judge whether script is finished, if script is finished, exports test report, terminate test;Otherwise, it returns
Step(30).
2. a kind of more browser compatibility automated testing methods as described in claim 1, which is characterized in that step(20)Packet
It includes:
(21)Control centre sends out automatic test instruction;
(22)Script performer 1, script performer 2 receive the order of control centre respectively;
(23)Browser, and perform script is respectively started in script performer 1, script performer 2.
3. a kind of more browser compatibility automated testing methods as described in claim 1, which is characterized in that step(40)In
Image Comparator extracts image texture characteristic by image processing program and is compared.
4. a kind of more browser compatibility automated testing methods as described in claim 1, it is characterised in that:Step(60)In
Control centre after having executed a script and having carried out picture relatively, runs next script automatically, when execution in need
Script is completed after executing operation, and control centre exports test report, and terminates to test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284520.8A CN108549601A (en) | 2018-04-02 | 2018-04-02 | A kind of more browser compatibility automated testing methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284520.8A CN108549601A (en) | 2018-04-02 | 2018-04-02 | A kind of more browser compatibility automated testing methods |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108549601A true CN108549601A (en) | 2018-09-18 |
Family
ID=63513811
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810284520.8A Pending CN108549601A (en) | 2018-04-02 | 2018-04-02 | A kind of more browser compatibility automated testing methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108549601A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109446105A (en) * | 2018-11-23 | 2019-03-08 | 贵州医渡云技术有限公司 | Web application test method, device, readable medium and electronic equipment |
CN111143188A (en) * | 2018-11-02 | 2020-05-12 | 中移(杭州)信息技术有限公司 | Method and equipment for automatically testing application |
CN111314298A (en) * | 2020-01-16 | 2020-06-19 | 北京金堤科技有限公司 | Verification identification method and device, electronic equipment and storage medium |
CN112685284A (en) * | 2019-10-18 | 2021-04-20 | 中移动信息技术有限公司 | Test video generation method and device, electronic equipment and computer storage medium |
CN112965907A (en) * | 2021-03-11 | 2021-06-15 | 南京爱奇艺智能科技有限公司 | VR APP automatic test method and device |
CN113238959A (en) * | 2021-06-03 | 2021-08-10 | 上海中通吉网络技术有限公司 | Browser page compatibility detection method |
CN113238926A (en) * | 2021-04-14 | 2021-08-10 | 北京信安世纪科技股份有限公司 | Database script detection method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110078663A1 (en) * | 2009-09-29 | 2011-03-31 | International Business Machines Corporation | Method and Apparatus for Cross-Browser Testing of a Web Application |
CN104461900A (en) * | 2014-12-19 | 2015-03-25 | 北京奇虎科技有限公司 | User interface testing method, center control server, test terminal and system |
CN104731694A (en) * | 2013-12-18 | 2015-06-24 | 中国银联股份有限公司 | Browser compatibility test analyzing method and system |
-
2018
- 2018-04-02 CN CN201810284520.8A patent/CN108549601A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110078663A1 (en) * | 2009-09-29 | 2011-03-31 | International Business Machines Corporation | Method and Apparatus for Cross-Browser Testing of a Web Application |
CN104731694A (en) * | 2013-12-18 | 2015-06-24 | 中国银联股份有限公司 | Browser compatibility test analyzing method and system |
CN104461900A (en) * | 2014-12-19 | 2015-03-25 | 北京奇虎科技有限公司 | User interface testing method, center control server, test terminal and system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143188A (en) * | 2018-11-02 | 2020-05-12 | 中移(杭州)信息技术有限公司 | Method and equipment for automatically testing application |
CN111143188B (en) * | 2018-11-02 | 2023-09-22 | 中移(杭州)信息技术有限公司 | Method and equipment for automatically testing application |
CN109446105A (en) * | 2018-11-23 | 2019-03-08 | 贵州医渡云技术有限公司 | Web application test method, device, readable medium and electronic equipment |
CN112685284A (en) * | 2019-10-18 | 2021-04-20 | 中移动信息技术有限公司 | Test video generation method and device, electronic equipment and computer storage medium |
CN111314298A (en) * | 2020-01-16 | 2020-06-19 | 北京金堤科技有限公司 | Verification identification method and device, electronic equipment and storage medium |
CN111314298B (en) * | 2020-01-16 | 2020-12-29 | 北京金堤科技有限公司 | Verification identification method and device, electronic equipment and storage medium |
CN112965907A (en) * | 2021-03-11 | 2021-06-15 | 南京爱奇艺智能科技有限公司 | VR APP automatic test method and device |
CN113238926A (en) * | 2021-04-14 | 2021-08-10 | 北京信安世纪科技股份有限公司 | Database script detection method and device, electronic equipment and storage medium |
CN113238926B (en) * | 2021-04-14 | 2023-11-10 | 北京信安世纪科技股份有限公司 | Database script detection method and device, electronic equipment and storage medium |
CN113238959A (en) * | 2021-06-03 | 2021-08-10 | 上海中通吉网络技术有限公司 | Browser page compatibility detection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108549601A (en) | A kind of more browser compatibility automated testing methods | |
CN103914375B (en) | A kind of test method and device for drawing interface software certainly | |
CN104102574B (en) | Applied program testing method and device | |
CN102624576A (en) | Method for automatically testing webpage downloading time of browser and system thereof | |
CN108307021B (en) | Parallel following test equipment, cloud real machine and method for mobile terminal | |
CN104717337A (en) | Method for testing mobile application in batch and equipment used in method | |
US20070079288A1 (en) | System and method for capturing filtered execution history of executable program code | |
CN103268289B (en) | Record the method and system of application testing script on mobile terminals | |
CN110377347A (en) | A kind of automatic inspection method and system of Redfish setting BIOS option | |
CN104375937A (en) | Continuous integration method and system of automated testing results | |
CN104133771A (en) | Testing method and device | |
CN101799506A (en) | Chip test method, device and system based on script control | |
CN105183632A (en) | Automatic testing method for video playback starting | |
CN106528429A (en) | UI testing method and device | |
CN107704376B (en) | Game automation testing method and system | |
CN105227949A (en) | A kind of Android Set Top Box automated testing method | |
CN103577290B (en) | Test script playback rhythm control method and system | |
CN110928787B (en) | Automatic test script recording and playback method, device, equipment and storage medium | |
KR102106618B1 (en) | System, terminal device, verification apparatus, method and computer-readable medium for testing application performance | |
CN110309059A (en) | UI interface detection method, system, computer equipment and storage medium | |
CN102779090A (en) | Performance measuring method and system for desktop virtualization systems | |
CN109115999A (en) | A kind of method of test fabric performance parameters | |
CN113515457B (en) | Internet of things equipment firmware security detection method and device | |
CN113746977A (en) | Method and system for testing starting time of mobile phone application | |
CN105183599A (en) | Script recording system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180918 |