CN107729249A - Browser compatibility method of testing, device, system and electronic equipment - Google Patents

Browser compatibility method of testing, device, system and electronic equipment Download PDF

Info

Publication number
CN107729249A
CN107729249A CN201710973048.4A CN201710973048A CN107729249A CN 107729249 A CN107729249 A CN 107729249A CN 201710973048 A CN201710973048 A CN 201710973048A CN 107729249 A CN107729249 A CN 107729249A
Authority
CN
China
Prior art keywords
tested
browser
test
webpage
compatibility
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
CN201710973048.4A
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710973048.4A priority Critical patent/CN107729249A/en
Publication of CN107729249A publication Critical patent/CN107729249A/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/3692Test management for test results analysis
    • 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/3684Test management for test design, e.g. generating new test cases

Abstract

The invention discloses a kind of browser compatibility method of testing, device, system, electronic equipment and computer-readable storage medium.Wherein, this method includes:Receive the configuration file of browser compatibility test;The configuration information generation test script for browser compatibility test corresponding with browser to be tested in configuration file;Webpage to be tested is opened using browser to be tested, the address field that test script is inputted to browser to be tested is run to be tested to treat test webpage, generates test result.Scheme based on the embodiment of the present invention, go for more money browsers, compatibility test can be carried out to most of browser, had a wide range of application, in addition, whole scheme is to perform completion automatically, not only saved human time's cost, also improve testing efficiency.

Description

Browser compatibility method of testing, device, system and electronic equipment
Technical field
The present invention relates to Internet technical field, and in particular to a kind of browser compatibility method of testing, device, system, Electronic equipment and computer-readable storage medium.
Background technology
Browser in the market up to hundreds of, except the difference of the difference of name of product, also version.Different Browser used in user simultaneously differs, even same user may also can install multiple browsers, with different clear Device of looking at opens same webpage.Therefore, a webpage is compatible in the energy of different browsers, is vital.
Webpage development finishes reach the standard grade before or the page function when have a modification, it is necessary to major browsers in the market Carry out page compatibility test.Conventional automation scheme mainly uses browser automated test frame (selenium), but Most of browser is not supported, is needed if testing other browsers a kind of for the generation of a browser Test case, and then cause labor intensive, testing cost high.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on The browser compatibility method of testing of problem, browser-safe system safety testing device, browser compatibility test system, electronics is stated to set Standby and computer-readable storage medium.
According to an aspect of the invention, there is provided a kind of browser compatibility method of testing, it includes:
Receive the configuration file of browser compatibility test;
The configuration information generation browser compatibility that is used for corresponding with browser to be tested in configuration file is tested Test script;
Webpage to be tested is opened using browser to be tested, test script is inputted to the address field fortune of browser to be tested Row is tested with treating test webpage, generates test result.
According to another aspect of the present invention, there is provided a kind of browser-safe system safety testing device, it includes:
Receiving module, suitable for receiving the configuration file of browser compatibility test;
Generation module, it is corresponding with browser to be tested for browsing suitable for the configuration information generation in configuration file The test script of device compatibility test;
Test module, suitable for opening webpage to be tested using browser to be tested, test script is inputted to be tested clear Look at device address field run with treat test webpage tested, generate test result.
According to another aspect of the present invention, there is provided a kind of browser compatibility test system, it includes:Above-mentioned at least one Individual browser-safe system safety testing device, dissemination system and report collector;
Dissemination system, suitable for obtaining the configuration file of browser compatibility test, configuration file is distributed at least one Browser-safe system safety testing device, treat test webpage at least one browser-safe system safety testing device and tested;
Collector is reported, suitable for collecting the test result of each browser-safe system safety testing device generation, generation test report Accuse.
According to another aspect of the invention, there is provided a kind of electronic equipment, including:Processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device above-mentioned Operated corresponding to browser compatibility method of testing.
In accordance with a further aspect of the present invention, there is provided a kind of computer-readable storage medium, be stored with the storage medium to A few executable instruction, the executable instruction make computing device be grasped as corresponding to above-mentioned browser compatibility method of testing Make.
According to scheme provided by the invention, the configuration file that browser compatibility is tested is received, according in configuration file The configuration information generation test script for browser compatibility test corresponding with browser to be tested, is browsed using to be tested Device opens webpage to be tested, and the address field that test script is inputted to browser to be tested is run to be surveyed with treating test webpage Examination, generate test result.Scheme based on the embodiment of the present invention, go for more money browsers, can be browsed to most of Device carries out compatibility test, has a wide range of application, in addition, whole scheme is to perform completion automatically, not only saving human time into This, also improves testing efficiency, and only seldom a part of browser can be tested so as to overcome prior art, can not be right Most of browser is tested, and causes to need to generate for a browser if testing other browsers A kind of test case, and then cause labor intensive, the defects of testing cost is high.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of schematic flow sheet of according to embodiments of the present invention one browser compatibility method of testing;
Fig. 2 shows a kind of schematic flow sheet of according to embodiments of the present invention two browser compatibility method of testing;
Fig. 3 shows a kind of structural representation of according to embodiments of the present invention three browser-safe system safety testing device;
Fig. 4 shows a kind of structural representation of according to embodiments of the present invention four browser-safe system safety testing device;
Fig. 5 shows a kind of structural representation of according to embodiments of the present invention five browser compatibility test system;
Fig. 6 shows the structural representation of according to embodiments of the present invention seven a kind of electronic equipment.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
Fig. 1 shows a kind of schematic flow sheet of according to embodiments of the present invention one browser compatibility method of testing.Such as Shown in Fig. 1, this method comprises the following steps:
Step S100, receive the configuration file of browser compatibility test.
Configuration file contains various configuration informations, wherein, configuration information is used to refer to browser compatibility test Lead, the browser compatibility that can determine which aspect to be carried out according to configuration information is tested, and the object to be tested.
In embodiments of the present invention, configuration file can be that user provides, for example, an interface can be provided a user, The interface provides configuration file upload function, and after user clicks on upload button, ejection configuration file uploads dialog box, Yong Huxuan The configuration file editted is selected, clicks on the upload button in dialog box, configuration file is completed and uploads.
Further, it is also possible to provide a user an interface, the interface is provided with various configuration informations, and user can be as needed After selecting corresponding configuration information, information selection to be configured to terminate, user clicks on confirming button, then configuration text corresponding to generation Part.
Step S101, the configuration information generation in configuration file are corresponding with browser to be tested simultaneous for browser The test script of capacitive test.
Before browser compatibility test is carried out, it is also necessary to which generation is corresponding with browser to be tested simultaneous for browser The test script of capacitive test, specifically, after the configuration file of browser compatibility test is received, in configuration file Configuration information parsed automatically, according to analysis result generation it is corresponding with browser to be tested be used for browser compatibility survey The test script of examination, wherein, the test script can be JS scripts.
Step S102, webpage to be tested is opened using browser to be tested, test script is inputted to browser to be tested Address field run with treat test webpage tested, generate test result.
Configuration information is provided with the URL of webpage to be tested, and the URL of webpage to be tested is automatically entered to browser to be tested Address field, open webpage to be tested, then, empty information in browser address bar to be tested, the test script that will be generated Automatically enter into the address field of browser to be tested, testing results script is tested accordingly to treat test webpage, is surveyed After examination terminates, test result corresponding to generation.
According to the above embodiment of the present invention provide method, receive browser compatibility test configuration file, according to The configuration information generation test script for browser compatibility test corresponding with browser to be tested in file is put, is utilized Browser to be tested opens webpage to be tested, and the address field that test script is inputted to browser to be tested is run with to be tested Webpage is tested, and generates test result.Scheme based on the embodiment of the present invention, go for more money browsers, can be right Most of browser carries out compatibility test, has a wide range of application, in addition, whole scheme is to perform completion automatically, not only saves Human time's cost, also improves testing efficiency, and only seldom a part of browser can be carried out so as to overcome prior art Test, can not be tested most of browser, and cause to need to be directed to one if testing other browsers Money browser generates a kind of test case, and then causes labor intensive, the defects of testing cost is high.
Embodiment two
Fig. 2 shows a kind of schematic flow sheet of according to embodiments of the present invention two browser compatibility method of testing.Such as Shown in Fig. 2, this method comprises the following steps:
Step S200, receive the configuration file of browser compatibility test.
In embodiments of the present invention, browser compatibility test refers specifically to open a certain webpage using different browsers When, whether under different browsers can realize, and shown on different browsers if testing the page elements of the webpage It is whether identical.
Configuration file contains various configuration informations, wherein, configuration information is used to refer to browser compatibility test Lead, the browser compatibility that can determine which aspect to be carried out according to configuration information is tested, and the object to be tested.
In embodiments of the present invention, configuration file can be that user provides, for example, an interface can be provided a user, The interface provides configuration file upload function, and after user clicks on upload button, ejection configuration file uploads dialog box, Yong Huxuan The configuration file editted is selected, clicks on the upload button in dialog box, configuration file is completed and uploads.
Further, it is also possible to provide a user an interface, the interface is provided with various configuration informations, and user can be as needed After selecting corresponding configuration information, information selection to be configured to terminate, user clicks on confirming button, then configuration text corresponding to generation Part.
Step S201, the configuration information generation in configuration file are corresponding with browser to be tested simultaneous for browser The test script of capacitive test.
Before browser compatibility test is carried out, it is also necessary to which generation is corresponding with browser to be tested simultaneous for browser The test script of capacitive test, specifically, after the configuration file of browser compatibility test is received, in configuration file Configuration information parsed automatically, according to analysis result generation it is corresponding with browser to be tested be used for browser compatibility survey The test script of examination, the test script generated for different browsers to be tested is different, the kernel with browser to be tested Correlation, wherein, the test script can be JS scripts, and configuration information includes:The operable element information of the page, webpage to be tested letter Breath and browser to be tested.
Specifically, browser to be tested can include:IE6 browser-IE11 browsers, Chrome browsers, Win10 Edge browsers, 360 secure browsers, 360 very fast browsers and some other double-core browsers, do not do arrange one by one here Lift;Info web to be tested can include:URL of webpage title to be tested and webpage to be tested etc.;For different webpages, The operable element of the page that it is included is different, for example, the operable element information of the page can include:Account input frame, password Input frame, page jump, trigger button etc. is logged in, be merely illustrative of here, without any restriction effect.
Step S202, webpage to be tested is opened using browser to be tested, positions the address field of browser to be tested.
Configuration information is provided with the URL of webpage to be tested, and the URL of webpage to be tested is automatically entered to browser to be tested Address field, the address field of browser to be tested can be positioned to open webpage to be tested, then, positioned here to be tested clear Look at device address field primarily to subsequently test script is inputted to the address field of browser to be tested, specifically, can adopt The address field of browser to be tested is positioned with following two methods:
Method one:The address field of browser to be tested is positioned by way of triggering default shortcut.
Generally, browser can provide some can fast positioning to the address field of browser shortcut, for example, Shortcut Alt+D or F6 or Ctrl+L, is merely illustrative of here, without any restriction effect, for the clear of different kernels Look at device, the shortcut that may be set simultaneously differs, and will not enumerate here.
After the shortcut of corresponding browser is known, can by triggering corresponding shortcut, such as F6 automatically, To navigate to the address field of browser to be tested.
Method two:The address field of browser to be tested is positioned according to predefined address field the window's position.
Some browsers are directed to it is of course also possible to exist, does not set and utilizes quick point fast positioning to the browser Address field function, for this kind of browser, the mode of window positioning can be utilized, specifically, according to predefined address Column the window's position positions the address field of browser to be tested.
Step S203, test script is inputted to the address field of browser to be tested, by calling browser to be tested Preset interface testing results script, tested with treating the operable element of the page of test webpage, generate test result.
After the address field of browser to be tested is navigated to, information in browser address bar to be tested is emptied, will be generated Test script automatically enter into the address field of browser to be tested, call the preset interface of browser to be tested and surveyed to run Training sheet, it can be realized by testing results script, for example, simulation click, simulation input etc., and then treat the page of test webpage The operable element in face is tested, and after test terminates, generates test result.
After test terminates, it is also necessary to the test mode of corresponding configuration information is updated, by test mode by not Test is changed to test, to facilitate follow-up judgement to test whether to terminate.
Step S204, judge to test whether to terminate according to the operable element information of the page and info web to be tested, if it is not, Then redirect and perform step S201, if so, then method terminates.
In once testing, it may be necessary to test multiple webpages, and the operable element of the page that each webpage needs are tested Have again a lot, and when testing webpage, typically webpage is tested one by one, that is to say, that for different nets Page, generates different test scripts, after each test terminates, is required for judging whether to have tested whole nets to be tested Page, certainly, it is also possible to the operable element of partial page of certain webpage to be tested is stored by the situation of test leakage, therefore, it is necessary to pin The operable element of the page and webpage to be tested are judged to test whether to terminate respectively, to ensure that test assignment is essentially fully completed, and Be not in the situation of test leakage, test does not terminate if judging, according to the operable element information of the page do not tested and to be tested Info web generates the test script for browser compatibility test, carries out follow-up test, if judging, test has terminated, Then method terminates.
The method provided according to the above embodiment of the present invention, goes for more money browsers, can be browsed to most of Device carries out compatibility test, has a wide range of application, in addition, whole scheme is to perform completion automatically, not only saving human time into This, also improves testing efficiency, and only seldom a part of browser can be tested so as to overcome prior art, can not be right Most of browser is tested, and causes to need to generate for a browser if testing other browsers A kind of test case, and then cause labor intensive, the defects of testing cost is high, in addition, according to the operable element information of the page and Info web to be tested judges to test whether to terminate, it can be ensured that test assignment is essentially fully completed, without the feelings of test leakage Condition.
Embodiment three
Fig. 3 shows a kind of structural representation of according to embodiments of the present invention three browser-safe system safety testing device.Such as Shown in Fig. 3, the device 300 includes:Receiving module 310, generation module 320, test module 330.
Receiving module 310, suitable for receiving the configuration file of browser compatibility test.
Generation module 320, be used for corresponding with browser to be tested is generated suitable for the configuration information in configuration file The test script of browser compatibility test.
Test module 330, suitable for opening webpage to be tested using browser to be tested, test script is inputted to be tested The address field of browser is run to be tested with treating test webpage, generates test result.
According to the above embodiment of the present invention provide device, receive browser compatibility test configuration file, according to The configuration information generation test script for browser compatibility test corresponding with browser to be tested in file is put, is utilized Browser to be tested opens webpage to be tested, and the address field that test script is inputted to browser to be tested is run with to be tested Webpage is tested, and generates test result.Scheme based on the embodiment of the present invention, go for more money browsers, can be right Most of browser carries out compatibility test, has a wide range of application, in addition, whole scheme is to perform completion automatically, not only saves Human time's cost, also improves testing efficiency, and only seldom a part of browser can be carried out so as to overcome prior art Test, can not be tested most of browser, and cause to need to be directed to one if testing other browsers Money browser generates a kind of test case, and then causes labor intensive, the defects of testing cost is high.
Example IV
Fig. 4 shows a kind of structural representation of according to embodiments of the present invention four browser-safe system safety testing device.Such as Shown in Fig. 4, the device 400 includes:Receiving module 410, generation module 420, test module 430, judge module 440.
Receiving module 410, suitable for receiving the configuration file of browser compatibility test.
Generation module 420, be used for corresponding with browser to be tested is generated suitable for the configuration information in configuration file The test script of browser compatibility test.
Wherein, configuration information includes:The operable element information of the page, info web to be tested, browser to be tested.
Test module 430 further comprises:Positioning unit 431, suitable for opening webpage to be tested using browser to be tested, Position the address field of browser to be tested.
Specifically, positioning unit 431 can utilize browser to be tested to open webpage to be tested, default quick by triggering The mode of key positions the address field of browser to be tested;Or positioning unit 431 can also utilize browser to be tested opening to treat Webpage is tested, the address field of browser to be tested is positioned according to predefined address field the window's position.
Test cell 432, it is to be tested clear by calling suitable for test script is inputted to the address field of browser to be tested Look at the preset interface testing results script of device, tested with treating the operable element of the page of test webpage, generation test knot Fruit.
Judge module 440, suitable for judging to test whether to tie according to the operable element information of the page and info web to be tested Beam.
Generation module 420 is further adapted for:If judging, test does not terminate, according to the operable element information of the page and treats Test info web generates the test script for browser compatibility test.
The device provided according to the above embodiment of the present invention, goes for more money browsers, can be browsed to most of Device carries out compatibility test, has a wide range of application, in addition, whole scheme is to perform completion automatically, not only saving human time into This, also improves testing efficiency, and only seldom a part of browser can be tested so as to overcome prior art, can not be right Most of browser is tested, and causes to need to generate for a browser if testing other browsers A kind of test case, and then cause labor intensive, the defects of testing cost is high, in addition, according to the operable element information of the page and Info web to be tested judges to test whether to terminate, it can be ensured that test assignment is essentially fully completed, without the feelings of test leakage Condition.
Embodiment five
Fig. 5 shows a kind of structural representation of according to embodiments of the present invention five browser compatibility test system.Such as Shown in Fig. 5, the system 500 includes:At least one browser-safe system safety testing device 400, dissemination system 510 and report collector 520。
Dissemination system 510, suitable for obtaining the configuration file of browser compatibility test, configuration file is distributed at least one Individual browser-safe system safety testing device 400, treat test webpage at least one browser-safe system safety testing device 400 and carry out Test.
In order to improve testing efficiency, employ each browser-safe system safety testing device and test a browser, so may be used Simultaneously and concurrently to perform the more money browsers of test, specifically, dissemination system 510 obtains the configuration text of browser compatibility test Part, configuration file is distributed at least one browser-safe system safety testing device 400, at least one browser compatibility test dress Put 400 treat test webpage tested, generate test result.
Collector 520 is reported, the test result generated suitable for collecting each browser-safe system safety testing device 400, generation Test report.
According to the above embodiment of the present invention provide system, receive browser compatibility test configuration file, according to The configuration information generation test script for browser compatibility test corresponding with browser to be tested in file is put, is utilized Browser to be tested opens webpage to be tested, and the address field that test script is inputted to browser to be tested is run with to be tested Webpage is tested, and generates test result.Scheme based on the embodiment of the present invention, go for more money browsers, can be right Most of browser carries out compatibility test, has a wide range of application, in addition, whole scheme is to perform completion automatically, not only saves Human time's cost, also improves testing efficiency, and only seldom a part of browser can be carried out so as to overcome prior art Test, can not be tested most of browser, and cause to need to be directed to one if testing other browsers Money browser generates a kind of test case, and then causes labor intensive, the defects of testing cost is high.
Embodiment six
The embodiment of the present application six provides a kind of nonvolatile computer storage media, the computer-readable storage medium storage There is an at least executable instruction, the computer executable instructions can perform the browser compatibility in above-mentioned any means embodiment Method of testing.
Embodiment seven
Fig. 6 shows the structural representation of according to embodiments of the present invention seven a kind of electronic equipment, present invention specific implementation Specific implementation of the example not to electronic equipment limits.
As shown in fig. 6, the electronic equipment can include:Processor (processor) 602, communication interface (Communications Interface) 604, memory (memory) 606 and communication bus 608.
Wherein:
Processor 602, communication interface 604 and memory 606 complete mutual communication by communication bus 608.
Communication interface 604, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..
Processor 602, for configuration processor 610, it can specifically perform above-mentioned browser compatibility method of testing embodiment In correlation step.
Specifically, program 610 can include program code, and the program code includes computer-managed instruction.
Processor 602 is probably central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes, can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 606, for depositing program 610.Memory 606 may include high-speed RAM memory, it is also possible to also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 610 specifically can be used for causing processor 602 to perform the method in embodiment one to embodiment two.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are realized in browser compatibility test equipment according to embodiments of the present invention Some or all parts some or all functions.The present invention is also implemented as being used to perform side as described herein The some or all equipment or program of device (for example, computer program and computer program product) of method.It is such Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The invention discloses:
A1, a kind of browser compatibility method of testing, it includes:
Receive the configuration file of browser compatibility test;
Configuration information generation in the configuration file corresponding with browser to be tested is used for browser compatibility The test script of test;
Webpage to be tested is opened using browser to be tested, the test script is inputted to the address of browser to be tested Column operation is tested with treating test webpage, generates test result.
A2. the method according to A1, wherein, it is described to open webpage to be tested using browser to be tested, pin will be tested This input is run to the address field of browser to be tested to be tested with treating test webpage, and generation test result is further wrapped Include:
Webpage to be tested is opened using browser to be tested, positions the address field of the browser to be tested;
The test script is inputted to the address field of the browser to be tested, by calling the browser to be tested Preset interface run the test script, tested with treating the operable element of the page of test webpage, generation test knot Fruit.
A3. the method according to A2, wherein, it is described to open webpage to be tested using browser to be tested, described in positioning The address field of browser to be tested further comprises:
Webpage to be tested is opened using browser to be tested, is positioned by way of triggering default shortcut described to be tested The address field of browser;Or
Webpage to be tested is opened using browser to be tested, is positioned according to predefined address field the window's position described to be measured Try the address field of browser.
A4. the method according to any one of A1-A3, wherein, the configuration information includes:The operable element letter of the page Breath, info web to be tested and browser to be tested.
A5. the method according to A4, wherein, methods described also includes:According to the operable element information of the page and Info web to be tested judges to test whether to terminate;
If it is not, then generated according to the operable element information of the page and info web to be tested for browser compatibility The test script of test.
B6, a kind of browser-safe system safety testing device, it includes:
Receiving module, suitable for receiving the configuration file of browser compatibility test;
Generation module, be used for corresponding with browser to be tested is generated suitable for the configuration information in the configuration file The test script of browser compatibility test;
Test module, suitable for opening webpage to be tested using browser to be tested, the test script is inputted to be measured The address field of examination browser is run to be tested with treating test webpage, generates test result.
B7. the device according to B6, wherein, the test module further comprises:
Positioning unit, suitable for opening webpage to be tested using browser to be tested, position the ground of the browser to be tested Location column;
Test cell, suitable for the test script is inputted to the address field of the browser to be tested, by calling The preset interface for stating browser to be tested runs the test script, is surveyed with treating the operable element of the page of test webpage Examination, generate test result.
B8. the device according to B7, wherein, the positioning unit is further adapted for:Opened using browser to be tested Webpage to be tested, the address field of the browser to be tested is positioned by way of triggering default shortcut;Or,
Webpage to be tested is opened using browser to be tested, is positioned according to predefined address field the window's position described to be measured Try the address field of browser.
B9. the device according to any one of B6-B8, wherein, the configuration information includes:The operable element letter of the page Breath, info web to be tested, browser to be tested.
B10. the device according to B9, wherein, described device also includes:Judge module, suitable for can according to the page Operation element information and info web to be tested judge to test whether to terminate;
The generation module is further adapted for:If judging, test does not terminate, is believed according to the operable element of the page Breath and info web to be tested generate the test script for browser compatibility test.
C11. a kind of browser compatibility test system, it includes:At least one browser described in any one of B6-B10 Device for testing compatibility, dissemination system and report collector;
Dissemination system, suitable for obtaining the configuration file of browser compatibility test, the configuration file is distributed at least One browser-safe system safety testing device, treat test webpage at least one browser-safe system safety testing device and carry out Test;
Collector is reported, suitable for collecting the test result of each browser-safe system safety testing device generation, generation test report Accuse.
D12. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, institute State memory and the communication interface and mutual communication is completed by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as Operated corresponding to browser compatibility method of testing any one of A1-A5.
E13. a kind of computer-readable storage medium, an at least executable instruction is stored with the storage medium, it is described to hold Row instruction makes operation corresponding to browser compatibility method of testing of the computing device as any one of A1-A5.

Claims (10)

1. a kind of browser compatibility method of testing, it includes:
Receive the configuration file of browser compatibility test;
The configuration information generation browser compatibility that is used for corresponding with browser to be tested in the configuration file is tested Test script;
Webpage to be tested is opened using browser to be tested, the test script is inputted to the address field fortune of browser to be tested Row is tested with treating test webpage, generates test result.
2. the method according to claim 11, wherein, it is described to open webpage to be tested using browser to be tested, it will test Script is inputted to the address field of browser to be tested to run and tested with treating test webpage, and generation test result is further wrapped Include:
Webpage to be tested is opened using browser to be tested, positions the address field of the browser to be tested;
The test script is inputted to the address field of the browser to be tested, by calling the pre- of the browser to be tested If interface runs the test script, tested with treating the operable element of the page of test webpage, generate test result.
3. the method according to claim 11, wherein, it is described to open webpage to be tested using browser to be tested, position institute The address field for stating browser to be tested further comprises:
Webpage to be tested is opened using browser to be tested, described to be tested browse is positioned by way of triggering default shortcut The address field of device;Or
Webpage to be tested is opened using browser to be tested, is positioned according to predefined address field the window's position described to be tested clear Look at the address field of device.
4. according to the method described in claim any one of 1-3, wherein, the configuration information includes:The operable element letter of the page Breath, info web to be tested and browser to be tested.
5. according to the method for claim 4, wherein, methods described also includes:According to the operable element information of the page Judge to test whether to terminate with info web to be tested;
Tested if it is not, then being generated according to the operable element information of the page and info web to be tested for browser compatibility Test script.
6. a kind of browser-safe system safety testing device, it includes:
Receiving module, suitable for receiving the configuration file of browser compatibility test;
Generation module, it is corresponding with browser to be tested for browsing suitable for the configuration information generation in the configuration file The test script of device compatibility test;
Test module, suitable for opening webpage to be tested using browser to be tested, the test script is inputted to be tested clear Look at device address field run with treat test webpage tested, generate test result.
7. device according to claim 6, wherein, the test module further comprises:
Positioning unit, suitable for opening webpage to be tested using browser to be tested, position the address field of the browser to be tested;
Test cell, suitable for the test script is inputted to the address field of the browser to be tested, by being treated described in calling The preset interface for testing browser runs the test script, is tested with treating the operable element of the page of test webpage, Generate test result.
8. a kind of browser compatibility test system, it includes:At least one browser compatibility described in claim 6 or 7 Test device, dissemination system and report collector;
Dissemination system, suitable for obtaining the configuration file of browser compatibility test, the configuration file is distributed at least one Browser-safe system safety testing device, treat test webpage at least one browser-safe system safety testing device and surveyed Examination;
Collector is reported, suitable for collecting the test result of each browser-safe system safety testing device generation, generates test report.
9. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as right will Ask and operated corresponding to the browser compatibility method of testing any one of 1-5.
10. a kind of computer-readable storage medium, an at least executable instruction, the executable instruction are stored with the storage medium Make operation corresponding to browser compatibility method of testing of the computing device as any one of claim 1-5.
CN201710973048.4A 2017-10-18 2017-10-18 Browser compatibility method of testing, device, system and electronic equipment Pending CN107729249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710973048.4A CN107729249A (en) 2017-10-18 2017-10-18 Browser compatibility method of testing, device, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710973048.4A CN107729249A (en) 2017-10-18 2017-10-18 Browser compatibility method of testing, device, system and electronic equipment

Publications (1)

Publication Number Publication Date
CN107729249A true CN107729249A (en) 2018-02-23

Family

ID=61211957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710973048.4A Pending CN107729249A (en) 2017-10-18 2017-10-18 Browser compatibility method of testing, device, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN107729249A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634844A (en) * 2018-11-06 2019-04-16 北京奇虎科技有限公司 JS code test method, device and electronic equipment
CN110275820A (en) * 2018-03-15 2019-09-24 阿里巴巴集团控股有限公司 Page compatibility test method, system and equipment
CN110297762A (en) * 2019-05-24 2019-10-01 平安银行股份有限公司 Plug-in type automatic test approach, device, computer equipment and storage medium
CN110413501A (en) * 2018-04-26 2019-11-05 腾讯科技(深圳)有限公司 Browser compatibility test method, device, system and readable storage medium storing program for executing
WO2020248505A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Website page test method and apparatus, and terminal device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309800A (en) * 2012-03-15 2013-09-18 腾讯科技(深圳)有限公司 Automatic webpage testing method and system
US20150186249A1 (en) * 2007-06-05 2015-07-02 Edward F. Miller Testing web pages using a document object model
CN105279076A (en) * 2014-06-17 2016-01-27 腾讯科技(深圳)有限公司 Webpage test method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150186249A1 (en) * 2007-06-05 2015-07-02 Edward F. Miller Testing web pages using a document object model
CN103309800A (en) * 2012-03-15 2013-09-18 腾讯科技(深圳)有限公司 Automatic webpage testing method and system
CN105279076A (en) * 2014-06-17 2016-01-27 腾讯科技(深圳)有限公司 Webpage test method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一坪海岸线Y: "浏览器地址栏运行JavaScript代码", 《HTTPS://WWW.CNBLOGS.COM/PCYY/P/5655542.HTML》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110413501A (en) * 2018-04-26 2019-11-05 腾讯科技(深圳)有限公司 Browser compatibility test method, device, system and readable storage medium storing program for executing
CN110413501B (en) * 2018-04-26 2022-02-18 腾讯科技(深圳)有限公司 Browser compatibility testing method, device and system and readable storage medium
CN109634844A (en) * 2018-11-06 2019-04-16 北京奇虎科技有限公司 JS code test method, device and electronic equipment
CN109634844B (en) * 2018-11-06 2023-12-22 三六零科技集团有限公司 JS code testing method and device and electronic equipment
CN110297762A (en) * 2019-05-24 2019-10-01 平安银行股份有限公司 Plug-in type automatic test approach, device, computer equipment and storage medium
WO2020248505A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Website page test method and apparatus, and terminal device and medium

Similar Documents

Publication Publication Date Title
CN107729249A (en) Browser compatibility method of testing, device, system and electronic equipment
US10061687B2 (en) Self-learning and self-validating declarative testing
US20200004798A1 (en) Method and system for automating web processes utilizing an abstractable underlying platform layer
CN105849691B (en) The method and apparatus generated for code virtualization and remote process call
US9753842B2 (en) System and method for creating universal test script for testing variants of software application
CN108628741A (en) Webpage test method, device, electronic equipment and medium
US20200201689A1 (en) System and method for determining a process flow of a software application and for automatically generating application testing code
CN104239206B (en) Webpage method of testing and device
CN110377522A (en) The test method for scene of trading, calculates equipment and medium at device
CN103714002B (en) Project testing method and device based on configuration system
CN107741904A (en) Test machine method of automatic configuration, device, equipment and storage medium
US20100070965A1 (en) Software Update Service with Compatibility Checking
CN110196809A (en) Interface test method and device
US20150089296A1 (en) Derivation of generalized test cases
CN108614762A (en) A kind of browser testing method and device
CN106126418A (en) A kind of banking terminal automatic test device, system and the method for mechanically-based arm
US20130073606A1 (en) Methods and Systems for Dynamically Generating and Reusing Dynamic Web Content
US20180210819A1 (en) System and method of controlling a web browser plug-in for testing analytics
US11422783B2 (en) Auto-deployment of applications
CN107656860A (en) Performance test methods, apparatus and system
CN107590387A (en) EL expression formula injection loopholes detection method, device and electronic equipment
CN106411881A (en) Method and device for buying ticket based on client
Segura et al. Automated variability analysis and testing of an E-commerce site. an experience report
Marenkov et al. Guideliner: A tool to improve web UI development for better usability
US9495175B2 (en) Deploying multi-channel or device agnostic applications

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

Application publication date: 20180223

RJ01 Rejection of invention patent application after publication