CN112559375B - Method for parallel automatic test by using multiple different browsers - Google Patents
Method for parallel automatic test by using multiple different browsers Download PDFInfo
- Publication number
- CN112559375B CN112559375B CN202011557693.6A CN202011557693A CN112559375B CN 112559375 B CN112559375 B CN 112559375B CN 202011557693 A CN202011557693 A CN 202011557693A CN 112559375 B CN112559375 B CN 112559375B
- Authority
- CN
- China
- Prior art keywords
- browsers
- browser
- focus
- frame
- parallel
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 61
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000012545 processing Methods 0.000 claims abstract description 8
- 230000005856 abnormality Effects 0.000 claims description 14
- 230000002159 abnormal effect Effects 0.000 claims description 13
- 238000011161 development Methods 0.000 description 2
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
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
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a parallel automatic testing method using a plurality of different browsers, and relates to the technical field of parallel automatic testing of browsers. The invention comprises the following steps: the start-up procedure: opening a plurality of browsers and loading different websites; a plurality of browsers offer tests: the plurality of browsers simultaneously perform automatic test actions, and operations such as clicking, inputting, selecting dates, selecting drop-down boxes and the like; the robbery focus phenomenon occurs in browser processing: when the browser robs the focus phenomenon under the concurrent scene of the browser, the following two conditions exist, a new popup frame is popped up, and a page element is clicked to enable the browser to be set at the top. According to the method, the robbery focus phenomenon generated during the automatic test of different browsers can be processed under the parallel condition, so that the website test can be rapidly performed, the automatic test is performed in a parallel mode, the test speed of the website is further improved, and the workload of testers is reduced.
Description
Technical Field
The invention belongs to the technical field of browser parallel automatic testing, and particularly relates to a method for parallel automatic testing by using a plurality of different browsers.
Background
A web browser is an application software that displays files within a web server or file system and allows a user to interact with the files. It is used to display text, images and other information within the world wide web or local area network, etc. These text or images, which may be hyperlinks to other web sites, allow the user to quickly and easily view a variety of information. Most of the web pages are in an HTML format, and some web pages can be correctly displayed only by a specific browser, so that with the high popularization of the mobile Internet, the establishment of the standard of the HTML5 specification and the technical maturity, and the gradual development of the hardware performance and the browser kernel of each terminal device, webApp or WebApp micro-websites and micro-services based on the HTML5 become important components of the mobile Internet application. The Html5 WebApp has the characteristics of easy development, rapid iteration, easy propagation and the like, and is widely applied to various fields of mobile electronics, mobile offices, news information, video games and the like. However, as various personalized demands exist on mobile phone terminals of mobile internet users, the web app browser is browsed and used, applications such as WebApp and microblog are embedded into the browser, and the browser presents diversity, so that a series of UI and functional compatibility problems with different degrees are caused by different browser cores. The compatibility problem of Android is particularly remarkable due to the open ecology of the Android, the IOS research and development ecology and the system are relatively closed, and the WebApp is basically based on a Safari browser and a corresponding kernel, so that the compatibility problem is less.
The patent application with publication number CN106407119A discloses a browser compatibility testing method based on automatic testing, which belongs to the technical field of browser compatibility testing methods, and divides the 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 the multi-browser operation process, the manual image viewing realizes automatic comparison and analysis of pictures, and the pictures with differences are manually analyzed. The invention improves the efficiency and accuracy of browser compatibility test, and solves the problem that the manual operation of the browser can manually monitor the influence of the artificial factors on the test process and the test result in the test process. However, most of test software for parallel automatic test of multiple different browsers does not support automatic test of IE browser, more supports firefox and chrome browser, and most of test of IE browser relies on manual test of testers, so that the test cost is high, although the test software is provided with an automatic browser test module, the parallel automatic test cannot be realized for different browsers, and the testers need to manually conduct concurrent test, but the test efficiency is low because of the problems of top placement of some pages/bullets and the like.
Disclosure of Invention
The invention aims to provide a method for parallel automatic testing by using a plurality of different browsers, by which the phenomenon of robbery focus generated during the automatic testing of different browsers can be processed under the parallel condition, so that the website test can be rapidly performed, and the automatic testing is performed in a parallel mode, so that the testing speed of the website is further improved, the workload of testers is reduced, and the problems in the prior art are solved.
In order to achieve the purpose, the invention is realized by the following technical scheme:
A method for parallel automated testing using a plurality of different browsers, comprising the steps of:
The start-up procedure: opening a plurality of browsers and loading different websites;
a plurality of browsers offer tests: the plurality of browsers simultaneously perform automatic test actions, and operations such as clicking, inputting, selecting dates, selecting drop-down boxes and the like;
the robbery focus phenomenon occurs in browser processing: when the browser robs the focus phenomenon under the concurrent scene of the browser, the following two conditions exist, a new popup frame is popped up, and page elements are clicked to set the top of the browser;
Page elements are not found, or manual intervention: judging the number of abnormality times, if the abnormality reaches an upper limit, ending the parallel abnormal tasks, outputting a result, and if the abnormality does not reach the upper limit, refreshing a page and executing a flow newly;
Outputting a test result;
ending the operation.
Optionally, when a new popup frame is popped up, the popup frame is a file storage prompt frame, and the popup frame is a webpage prompt.
Optionally, when the new bullet frame belongs to the file saving prompt frame, the preemptive focus operation of other browsers is locked, the file saving bullet frame handle is obtained, the file prompt frame or the virtual key is saved through sendmessage, the window is processed, and after the processing is finished, the preemptive focus operation of other browsers is unlocked, so that the process is executed next.
Optionally, when the new popup frame belongs to the new webpage content, the operation of preempting the focus by other browsers is locked, the window is switched to the new webpage to operate, the popup frame is closed after the operation is finished, and the operation of preempting the focus by other browsers is unlocked, so that the process is executed next.
Optionally, clicking on a page element causes its browser to set up on top in the following two cases, other browsers need to input text, and other browsers need to capture a screenshot.
Optionally, when other browsers need to input characters, the top-setting preemption focus action is locked first to finish the input of the characters by the browser, and when the input of the characters is finished, the preemption focus action is unlocked to finish the execution of the process.
Optionally, when other browsers need screenshot, the top-setting preemption focus action is locked first, so that the browser finishes the screenshot, and finally the preemption focus action is unlocked, so that the process is executed next.
Optionally, the page is refreshed under the following two conditions, and the refresh is abnormal and the refresh is not abnormal.
Optionally, when the refresh is abnormal, judging whether the browser is closed, and when the browser is closed, directly opening the corresponding browser, and opening the corresponding website to continue the operation flow.
Optionally, when no abnormality occurs in the refresh, the browser flow continues to operate.
The embodiment of the invention has the following beneficial effects:
According to the method, the robbery focus phenomenon generated during the automatic test of different browsers can be processed under the parallel condition, so that the website test can be rapidly performed, the automatic test is performed in a parallel mode, the test speed of the website is further improved, and the workload of testers is reduced.
Of course, it is not necessary for any one product to practice the invention to achieve all of the advantages set forth above at the same time.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
FIG. 1 is a business flow diagram of an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
In order to keep the following description of the embodiments of the present invention clear and concise, the detailed description of known functions and known components thereof have been omitted.
Referring to fig. 1, in this embodiment, a method for parallel automated testing using a plurality of different browsers is provided, including the following steps:
The start-up procedure: opening a plurality of browsers and loading different websites;
a plurality of browsers offer tests: the plurality of browsers simultaneously perform automatic test actions, and operations such as clicking, inputting, selecting dates, selecting drop-down boxes and the like;
the robbery focus phenomenon occurs in browser processing: when the browser robs the focus phenomenon under the concurrent scene of the browser, the following two conditions exist, a new popup frame is popped up, and page elements are clicked to set the top of the browser;
Page elements are not found, or manual intervention: judging the number of abnormality times, if the abnormality reaches an upper limit, ending the parallel abnormal tasks, outputting a result, and if the abnormality does not reach the upper limit, refreshing a page and executing a flow newly;
Outputting a test result;
ending the operation.
The application of one aspect of the embodiment is: when the browser needs to be tested in parallel, a plurality of browsers are opened and loaded with different websites, the plurality of browsers simultaneously perform automatic test actions, click, input, select dates, select drop-down frames and the like, when the browser is robbed to focus under the concurrent scene of the browser, the following two conditions exist, a new bullet frame is popped up, page elements are clicked to set the top of the browser, the abnormal times are judged, if the abnormality reaches the upper limit, the parallel abnormal tasks are ended, the result is output, if the abnormality does not reach the upper limit, the page is refreshed, the test result is output from the new execution flow, and the operation is ended.
According to the method, the robbery focus phenomenon generated during the automatic test of different browsers can be processed under the parallel condition, so that the website test can be rapidly performed, the automatic test is performed in a parallel mode, the test speed of the website is further improved, and the workload of testers is reduced.
When the new bullet frame is ejected, the following two conditions exist, the bullet frame is a file storage prompt frame, and the bullet frame is a webpage prompt.
When the new bullet frame belongs to the file saving prompt frame, the preemptive focus operation of other browsers is locked, the file saving bullet frame handle is obtained, the file prompt frame or the virtual key mode is saved through sendmessage to process the window, and after the processing is finished, the preemptive focus operation of other browsers is unlocked, so that the process is executed next.
When the new popup frame belongs to new webpage content, other browser preemptive focus operations are locked first, windows are switched to the new webpage to operate, the popup frame is closed after the operation is completed, and other browser preemptive focus operations are unlocked to enable the process to be executed next.
Clicking on the page element in this embodiment causes the browser to set the top to have the following two conditions, the other browser needs to input text, and the other browser needs to capture a screenshot.
In this embodiment, when other browsers need to input characters, the top-setting preemptive focus action is locked first to complete the input of characters by the browser, and when the input of characters is completed, the preemptive focus action is unlocked to execute the process.
When other browsers of the embodiment need screenshot, the top-setting preemption focus action is locked first, so that the browser finishes the screenshot, and finally the preemption focus action is unlocked, so that the process is executed next.
The refresh page of this embodiment has the following two cases, that is, the refresh is abnormal and the refresh is not abnormal.
When the refreshing of the embodiment is abnormal, whether the browser is closed or not is judged, and when the browser is closed, the corresponding browser is directly opened, and the corresponding website is opened to continue the operation flow.
When no abnormality occurs in the refresh of the embodiment, the browser flow continues to operate.
The above embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein.
In the description of the present invention, it should be understood that the azimuth or positional relationships indicated by the azimuth terms such as "front, rear, upper, lower, left, right", "lateral, vertical, horizontal", and "top, bottom", etc., are generally based on the azimuth or positional relationships shown in the drawings, merely to facilitate description of the present invention and simplify the description, and these azimuth terms do not indicate and imply that the apparatus or elements referred to must have a specific azimuth or be constructed and operated in a specific azimuth, and thus should not be construed as limiting the scope of protection of the present invention; the orientation word "inner and outer" refers to inner and outer relative to the contour of the respective component itself.
Claims (4)
1. A method for parallel automated testing using a plurality of different browsers, comprising the steps of:
The start-up procedure: opening a plurality of browsers and loading different websites;
the multiple browsers begin testing: the plurality of browsers simultaneously perform automatic test actions, click, input, select date and select drop-down frame operations;
the robbery focus phenomenon occurs in browser processing: when the browser robs the focus phenomenon under the concurrent scene of the browser, the following two conditions exist, a new popup frame is popped up, and page elements are clicked to set the top of the browser;
Page elements are not found, or manual intervention: judging the number of abnormality times, if the abnormality reaches an upper limit, ending the parallel abnormal tasks, outputting a result, and if the abnormality does not reach the upper limit, refreshing a page and executing a flow newly;
Outputting a test result;
Ending the operation;
when a new popup frame is popped up, the popup frame is a file storage prompt frame and is a webpage prompt;
When the new bullet frame belongs to the file storage prompt frame, the preemptive focus operation of other browsers is locked, the file storage bullet frame handle is obtained, the file prompt frame or the virtual key mode is stored for processing the window through sendmessage, and after the processing is finished, the preemptive focus operation of other browsers is unlocked, so that the process is executed next;
When the new popup frame belongs to new webpage content, the operation of preempting the focus by other browsers is firstly locked, the window is switched to the new webpage to operate, the popup frame is closed after the operation is finished, and the operation of preempting the focus by other browsers is unlocked, so that the process is executed next;
clicking the page element to set the top of the browser is performed under the following two conditions, other browsers need to input characters, and other browsers need to capture a picture;
when other browsers need to input characters, firstly locking the top-setting preemptive focus action to finish the input of the characters, and after finishing the input of the characters, unlocking the preemptive focus action to finish the process;
when other browsers need screenshot, the top-setting preemption focus action is locked first, so that the browser finishes the screenshot, and finally the preemption focus action is unlocked, so that the process is executed next.
2. The method for parallel automated testing using a plurality of different browsers according to claim 1, wherein the refreshing of the page is performed in two cases, wherein the refreshing is abnormal and the refreshing is not abnormal.
3. The method for parallel automated testing using a plurality of different browsers of claim 2, wherein when an abnormality occurs in the refresh, it is determined whether the browser is closed, and when the browser is closed, the corresponding browser is opened directly, and the operation flow is continued by opening the corresponding web address.
4. A method for parallel automated testing using a plurality of disparate browsers as recited in claim 2, wherein the browser flow continues to operate when no anomaly has occurred in the refresh.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011557693.6A CN112559375B (en) | 2020-12-23 | 2020-12-23 | Method for parallel automatic test by using multiple different browsers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011557693.6A CN112559375B (en) | 2020-12-23 | 2020-12-23 | Method for parallel automatic test by using multiple different browsers |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112559375A CN112559375A (en) | 2021-03-26 |
CN112559375B true CN112559375B (en) | 2024-05-10 |
Family
ID=75034125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011557693.6A Active CN112559375B (en) | 2020-12-23 | 2020-12-23 | Method for parallel automatic test by using multiple different browsers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112559375B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113553525A (en) * | 2021-07-20 | 2021-10-26 | 上海众源网络有限公司 | Interface control request processing method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927253A (en) * | 2013-01-11 | 2014-07-16 | 阿里巴巴集团控股有限公司 | Multiple browser compatibility testing method and system |
CN104572473A (en) * | 2015-01-29 | 2015-04-29 | 无锡江南计算技术研究所 | Compatibility testing method of Web applications supporting multi-type and multi-version browsers |
CN106407119A (en) * | 2016-09-28 | 2017-02-15 | 浪潮软件集团有限公司 | Browser compatibility testing method based on automatic testing |
CN106897204A (en) * | 2015-12-17 | 2017-06-27 | 中国电信股份有限公司 | The automatic monitoring method and system of operation flow |
CN107885662A (en) * | 2017-11-09 | 2018-04-06 | 郑州云海信息技术有限公司 | A kind of method of testing based on more browser multi-version compatibility sex chromosome mosaicisms |
CN109656804A (en) * | 2018-09-27 | 2019-04-19 | 深圳壹账通智能科技有限公司 | Automated testing method, equipment, storage medium and device |
CN110297751A (en) * | 2018-03-22 | 2019-10-01 | 博彦科技(上海)有限公司 | Detection method, device, storage medium and the processor of page elements |
CN110955509A (en) * | 2019-12-11 | 2020-04-03 | 深圳迅策科技有限公司 | Finance concurrent transaction processing apparatus |
CN111695076A (en) * | 2020-06-15 | 2020-09-22 | 荆门汇易佳信息科技有限公司 | Cross-browser webpage compatibility standard construction method based on hypertext 5 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10467127B2 (en) * | 2018-03-23 | 2019-11-05 | Lendingclub Corporation | Unified UI/UX and API testing of web applications |
-
2020
- 2020-12-23 CN CN202011557693.6A patent/CN112559375B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927253A (en) * | 2013-01-11 | 2014-07-16 | 阿里巴巴集团控股有限公司 | Multiple browser compatibility testing method and system |
CN104572473A (en) * | 2015-01-29 | 2015-04-29 | 无锡江南计算技术研究所 | Compatibility testing method of Web applications supporting multi-type and multi-version browsers |
CN106897204A (en) * | 2015-12-17 | 2017-06-27 | 中国电信股份有限公司 | The automatic monitoring method and system of operation flow |
CN106407119A (en) * | 2016-09-28 | 2017-02-15 | 浪潮软件集团有限公司 | Browser compatibility testing method based on automatic testing |
CN107885662A (en) * | 2017-11-09 | 2018-04-06 | 郑州云海信息技术有限公司 | A kind of method of testing based on more browser multi-version compatibility sex chromosome mosaicisms |
CN110297751A (en) * | 2018-03-22 | 2019-10-01 | 博彦科技(上海)有限公司 | Detection method, device, storage medium and the processor of page elements |
CN109656804A (en) * | 2018-09-27 | 2019-04-19 | 深圳壹账通智能科技有限公司 | Automated testing method, equipment, storage medium and device |
CN110955509A (en) * | 2019-12-11 | 2020-04-03 | 深圳迅策科技有限公司 | Finance concurrent transaction processing apparatus |
CN111695076A (en) * | 2020-06-15 | 2020-09-22 | 荆门汇易佳信息科技有限公司 | Cross-browser webpage compatibility standard construction method based on hypertext 5 |
Non-Patent Citations (2)
Title |
---|
X-BROT: Prototyping of Compatibility Testing Tool for Web Application Based on Document Analysis Technology;Hiroshi Tanaka;《2019 International Conference on Document Analysis and Recognition Workshops (ICDARW)》;20191107;第18-21页 * |
基于变异的Web浏览器兼容性测试及效率研究;秦丹;《cnki优秀硕士学位论文全文库 信息科技辑》;20180415(第04期);第I139-564页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112559375A (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2017302249B8 (en) | Visual regression testing tool | |
US9003423B1 (en) | Dynamic browser compatibility checker | |
US9584504B2 (en) | Auto login method and device | |
CN102855318B (en) | Method and system for preloading of webpages | |
US10963138B1 (en) | Webpage testing tool | |
US20060101403A1 (en) | Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface | |
CN104699604B (en) | Method and device for testing the Android application that kernel is browsed based on customization | |
US9262311B1 (en) | Network page test system and methods | |
CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
US10951486B2 (en) | Terminal device, UI expansion method, and UI expansion program | |
CN103793436A (en) | Page browsing method and browser | |
CN112559375B (en) | Method for parallel automatic test by using multiple different browsers | |
CN113515453A (en) | Webpage testing system | |
CN111880789A (en) | Page rendering method, device, server and computer-readable storage medium | |
US20150324479A1 (en) | Identifying a browser for rendering an electronic document | |
CN115080433A (en) | Testing method and device based on flow playback | |
CN113535577B (en) | Application testing method and device based on knowledge graph, electronic equipment and medium | |
CN105956173A (en) | Page content acquisition method and apparatus | |
CN109324822B (en) | PWA (public warning assistant) item detection method, computer-readable storage medium and terminal device | |
CN114490320A (en) | Automatic testing method and device, electronic equipment and storage medium | |
CN110569198A (en) | Method and device for automatically testing service function | |
CN115145674A (en) | Page jump method, device, equipment and medium based on dynamic anchor point | |
CN112100086B (en) | Software automation test method, device, equipment and computer readable storage medium | |
CN110175058B (en) | Method, module, system and medium for fast retention based on data exception information | |
Alamin et al. | A Survey on Mobile Forensic for Android Smartphones |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |