CN103853659A - Browser compatibility testing method and device - Google Patents

Browser compatibility testing method and device Download PDF

Info

Publication number
CN103853659A
CN103853659A CN201210519730.3A CN201210519730A CN103853659A CN 103853659 A CN103853659 A CN 103853659A CN 201210519730 A CN201210519730 A CN 201210519730A CN 103853659 A CN103853659 A CN 103853659A
Authority
CN
China
Prior art keywords
functional module
state
browser
compatibility
dom
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.)
Granted
Application number
CN201210519730.3A
Other languages
Chinese (zh)
Other versions
CN103853659B (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210519730.3A priority Critical patent/CN103853659B/en
Publication of CN103853659A publication Critical patent/CN103853659A/en
Application granted granted Critical
Publication of CN103853659B publication Critical patent/CN103853659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a browser compatibility testing method. The browser compatibility testing method comprises the following steps: 1) performing static compatibility scanning on a tested object and outputting a function module set required to be tested; 2) aiming at all function modules in the function module set, generating state machines that the function modules respectively operate under various browsers to obtain a plurality of state conversion functions of the function modules respectively corresponding to the browsers; 3) comparing the state functions to determine functional difference of the function modules on the browsers. The invention correspondingly and additionally discloses a browser compatibility testing device. The browser compatibility testing method and the browser compatibility testing device provided by the embodiment of the invention have the advantages that the full-automatic intelligent testing of function compatibility problems can be realized, and not only can the testing efficiency be improved, but also the failure in report can be avoided to the utmost extent and the testing quality is improved accordingly.

Description

The detection method of browser compatibility and device
Technical field
The application relates to networking technology area, relates in particular to a kind of for webpage or program are moved to method and the device that produced compatibility issue detects between many browsers.
Background technology
Increasing along with the network user, the web browser kind designing for meeting the needs of different users is also more and more, common browser comprises IE (Internet Explorer), Firefox (red fox), Chrome (Google's browser) etc., the kernel of these browsers is different, thereby for supportive being also not quite similar of various webpages and webapp (based on the application program of web), just bring thus the compatibility issue of browser.For this reason, before website (or webpage) or webapp issue, conventionally the compatibility that all need to move on various browsers for this website or webapp is tested, thereby to it is adjusted and guarantees trouble-free operation on different browsers.The compatibility issue of above-mentioned browser generally comprises the compatibility issue of pattern and the compatibility issue of function, the former generally can manually test by developer, if the latter utilizes manual test, have that workload is large, efficiency and quality is low and test period is a long problem, therefore need the compatible detection method of robotization.
In correlation technique, generally include following two kinds of modes for the automatic test of above-mentioned functions compatibility.Be the automatic test based on use-case, for example specifically comprise and construct automatic test cases with tool software such as selenium, watir, capabara, then in multiple browser, carry out use-case to detect compatibility issue; The method is the main flow detection scheme of current many browser functions compatibility issue, its shortcoming is to realize universalization, and writes, safeguards robotization use-case and will expend a large amount of artificial owing to needing to drop into a large amount of time for each application (webpage or webapp); In addition, when robotization use-case quality or quantity are when inadequate, be easy to produce the problem of failing to report.The automatic test mode of another kind of functional compatibility is automatic state machine, specifically comprise and will generate finite state machine to the operation of the page (page of webpage or webapp) and state with automated method, then find out by the equality of finite state machine relatively the difference that functional issues is carried out on multiple browsers; The rate of failing to report of this method is very little, but because the space of state machine is in actual applications larger, therefore execution efficiency and validity are not high.
Summary of the invention
The application's embodiment aims to provide a kind of detection method and device of browser compatibility, to solve the problem that in above-mentioned correlation technique, automatic test mode exists.
For achieving the above object, the application's embodiment provides a kind of detection method of browser compatibility, detects for the compatibility issue that measurand is moved on multiple browser, and described measurand comprises webpage or application program, wherein, the method comprises the following steps:
S1. described measurand is carried out to the compatible scanning of static state, the functional module set that output need to detect;
S2. for the each functional module in described functional module set, generate the state machine that this functional module is moved respectively under described multiple browser, obtain the multiple states that this functional module corresponds respectively to each browser and transform functions;
S3. described multiple function of states are compared to determine the functional aberrancy of described functional module on described multiple browsers.
The application's embodiment also provides a kind of pick-up unit of browser compatibility, detects for the compatibility issue that measurand is moved on multiple browser, and described measurand comprises webpage or Web page application program, and wherein, this device comprises:
Static scanning unit, for carrying out the compatible scanning of static state, the functional module set that output need to detect to described measurand;
State machine generation unit, for the each functional module for described functional module set, generates the state machine that this functional module is moved respectively under described multiple browser, obtains the multiple states that this functional module corresponds respectively to each browser and transforms functions;
State machine comparing unit, compares to determine the functional aberrancy of described functional module on described multiple browsers to described multiple function of states.
As shown from the above technical solution, browser compatibility detection method and device that the embodiment of the present application provides, by measurand is carried out, intelligence is decomposed scanning and then the automatic generation of state machine is carried out for each functional module in part, fully-automatic intelligent that can practical function compatibility issue detects, not only improved detection efficiency, thereby can also avoid to greatest extent failing to report improves detection quality.
Accompanying drawing explanation
Fig. 1 is detection method embodiment mono-process flow diagram of the application's browser compatibility;
Fig. 2 is detection method embodiment bis-process flow diagrams of the application's browser compatibility;
Fig. 3 is the pick-up unit embodiment block diagram of the application's browser compatibility.
Embodiment
Below by the specific embodiment of DETAILED DESCRIPTION The present application.It should be noted that the embodiments described herein, only for illustrating, is not limited to the application.
The detection method of the application's browser compatibility, detects for the compatibility issue that measurand is moved on multiple browser.In one embodiment, the measurand here comprises webpage or Web page application program (web app), and the compatibility issue here relates generally to the compatibility issue in function, and does not relate to the compatibility issue on pattern.Fig. 1 is detection method embodiment mono-process flow diagram of the application's browser compatibility, and as shown in the figure, the detection method of the present embodiment comprises the following steps S101-S103.
S101, measurand is carried out to the compatible scanning of static state, the functional module set that output need to detect;
The page (for example, certain page when certain page of website or webapp operation) generating when the automatic state machine test mode of mentioning in background technology part above is normally carried out on each browser take measurand carries out generation and the comparison of state machine as unit, but page level comprises multiple mac function conventionally, and the receivable input of the page be varied (for example, can be from mouse, keyboard, the input of the various devices such as touch-screen) and uncertain, and then the state conversion kind that caused by these inputs of the page also quantity is various, even can comprise a large amount of insignificant states and transform type, thereby the state machine space of causing this test mode to obtain is excessive, there is the problem that testing efficiency is not high.
Compared with test mode in above-mentioned correlation technique, the detection method of the application's browser compatibility is to detect take the functional module of measurand as unit.For this reason, in this step, be first that whole measurand is decomposed and divided, (for example need the functional module set of test and the reference address of correspondence thereof by static compatibility scanning output, be http://www.xxx.com/login for reference address corresponding to login feature module), specifically can the vide infra description of embodiment bis-of the compatible scanning technique of described static state.
S102, for the each functional module in functional module set, generate the state machine that this functional module is moved respectively under multiple browser, obtain the multiple states that this functional module corresponds respectively to each browser and transform functions;
As described above, different from the unit that general automatic state machine test mode generates take full page as state, first the detection method of the present embodiment is, by static compatible scanning, measurand is resolved into multiple functional modules, carries out the generation of state machine in this step for these functional modules.Particularly, can realize by analyzing DOM (Document Object Module, DOM Document Object Model) structure corresponding to these functional modules.Describe the effect of page composition structure based on DOM, a page can be regarded as to the dom tree structure being formed by multiple DOM nodes (or being called DOM control) each other with the complex relationship such as level, father and son's (succession); In the time that wherein certain DOM node comprises multiple child node, these child nodes can be referred to as the child control of this DOM node.Similarly, for certain functional module on the page, also can be decomposed into one or more DOM controls and child control thereof, the cooperatively interacted corresponding function of this module of these controls; Take login feature module as example, for example can be decomposed into the DOM controls such as user name input control, code input control, verification control (login feature module is for father DOM control in this example, and user name input control, code input control, verification control etc. are its child control).Get back to DOM structure corresponding to analytic function module mentioned above, for example can comprise following content, first the DOM control that refers to this function is analyzed, its type is set up to corresponding state machine model, hierarchical structure, the inheritance etc. of DOM are taken into account together, then the state based on DOM and child control thereof generates state machine simultaneously.Be different from the above-mentioned full page of mentioning, for a DOM control, state variation can be very not large, and therefore state machine capacity neither be very large, and this has just guaranteed the execution efficiency that the present embodiment is higher.
S103, multiple function of states are compared to determine the functional aberrancy of functional module on multiple browsers.
Above-mentioned steps S102 based on each functional module corresponding DOM control generate after the state machine under each browser, nature can obtain the state of each DOM control under different browsers and transform function, transform the similarities and differences of functions by comparing these states,, find out by state machine comparison algorithm the state there are differences between each browser and transform function, just can obtain the functional aberrancy of DOM control on multiple browsers, this is the compatibility issue in function.
Fig. 2 is detection method embodiment bis-process flow diagrams of the application's browser compatibility, and as shown in the figure, the detection method of the present embodiment comprises the following steps S201-S205:
S201, the code of measurand is scanned, to obtain in code each functional module and to generate the corresponding relation between the page;
Carry out entire scan by the code to measurand (or code collection), obtain the corresponding relation between code and the initial generation page of each functional module, for example, code A is designated in the DOM control of div id=' login ' and uses in login.html, is expressed as with formalization method:
Mapping(“function?A”)={web?page(http:// www.xxx.com/login.html)DOM(div?id=’login’),position(top,left,bottom,right)}
S202, compatibility rules based on default scan each functional module, may have the set of the functional module of compatibility issue to obtain;
This step is corresponding to the compatible scanning of static state of embodiment mono-above, in one embodiment, its content comprises that compatibility rules based on the default code (being mainly javascript wherein) to functional module scans, obtain three result sets by the scanning to code: determine the code collection (result_ok) without compatibility issue, define the code collection (result_error) of compatibility issue, and may have the code collection (result_suspious) of compatibility issue.
In one embodiment, above-mentioned default compatibility rules refers to the corresponding common source of a large amount of compatibility issues based on accumulating in existing compatibility test and the regular collection that arranges out.For example, if whether in javascript language, use for each circulation time known be not that sky processes and will in Firefox browser, produce the compatibility issue in function to loop body interior element, corresponding such static scanning compatibility rules just can be set: all for each circulation in scan code, and check whether whether it be that sky is processed to loop body element, if do not processed,, because it is certain to cause compatibility issue, therefore this code is included into result_error set; If processed, owing to temporarily can't determining whether this processing can cause compatibility issue, therefore this code is included into result_suspious set.Be appreciated that based on above description, the compatible scanning of static state of this step can be preset multiple compatibility rules according to actual conditions, concrete application as for rule is identical with Principle of Process described above, those skilled in the art can be implemented completely based on the open of instructions, repeat no more herein.
Continue, be appreciated that in conjunction with above-mentioned rule application process, the compatible scanning result of this step not must obtain these three complete set of result_ok, result_error and result_suspious, and for example likely has to, to one of them or two (above-mentioned for each scan round rule only obtains result_error and two set of result_suspious wherein).What need here to further illustrate is, for three set that obtain after all default compatibility rules scanning of this step, thereby wherein the code in result_ok set can directly be judged and not exist compatibility issue to return to the information that for example test is passed through to tester, and code in result_error set can directly judge that thereby existing compatibility issue to return to for example test crash to tester (and then needs code revision, the processing such as debugging, in the application, do not relate to this partial content) information, thereby only has code in result_suspious set due to the uncertain further processing that whether can exist compatibility issue need to carry out subsequent step S203-S205, determine whether to have compatibility issue with the state machine comparison algorithm by last.
S203, to the corresponding relation obtaining with may there be the functional module set of compatibility issue to merge, with the functional module set that obtains detecting;
As mentioned above, step S201 obtains all functions module and the initial corresponding relation generating between the page, step S202 finds those functional modules that may have compatibility issue by static compatible scanning, thereby this step S203 merges the corresponding relation between functional module and its generation page that obtains having compatibility issue by both results.Also can understand thus, between above-mentioned steps S201 and S202, there is no strict ordinal relation, in one embodiment, also can be the functional module that first obtains having compatibility issue by step S202, then obtain the corresponding relation between these functional modules and its generation page by step S201.
In summary, by the scanning result of step S201 and step S202 is merged, obtain the functional module set that need to further detect, and set it as the input Input[1 that succeeding state machine generates, 2 ..., n], its expression formula is for example:
Input[1,2,...,n]=[(webpage?1,DOM?1,Location?1,function?1),(webpage?2,DOM?2,Location?2,function?2)...,(webpage?n,dom?n,location?n,function?n)]
Wherein function represents code corresponding to this functional module (or code collection), DOM represents DOM control corresponding to this functional module (comprising its child control), webpage represent this functional module the corresponding page generating, Location represents the absolute position of DOM control on screen, and 1-n is the sequence number of presentation function module in set.
S204, in functional module set, traversal is chosen functional module;
The functional module set Input[1 obtaining from step S203,2 ..., n] in choose successively a functional module and carry out follow-up state machine and generate step, and after generating, the state machine that completes current selected functional module continues to choose functional module set Input[1,2 ..., n] in next functional module, until complete functional module set Input[1,2 ..., n] in the traversal of all functions module.Below with the current functional module set Input[1 that chooses, 2 ..., n] in first functional module Input[1] (webpage 1, DOM 1, Location 1, function 1) describe for example.
The state that S205, DOM Document Object Model DOM control based on corresponding with the current functional module of choosing are carried out respectively under multiple browsers generates multiple state machines, and the state unit of state machine comprises: multiple state sets, input set (∑) and state transform function (δ);
Particularly, the generating algorithm of state machine is as described below.
First, definition comprises five-tuple state machine (∑, S, the s of five state units 0, δ, s f), wherein:
∑ is input set, and its nonempty finite set for operation is closed; In one embodiment, described operational example is as included but not limited to click (mouse click), mouseover (mouse suspension), set (input on the page is set), select (the selection operation on the page) etc.;
S is that the nonempty finite set of DOM control show state is closed;
S 0be the original state that DOM control shows, in the time defining unique original state, it is element of S, and original state its subset that is S when not unique;
δ is that state transforms function, and its expression formula is δ: S × ∑ → S;
S fthe set of the end-state of DOM control demonstration, its subset that is S.
Continue, travel through for the each DOM in current selected functional module, with Input[1] (webpage 1, DOM 1, Location 1, function 1) be example, collects data to produce following S tuple thereby refer to travel through DOM1:
S=[
Tagname, the title of #DOM
Type, the classification of #DOM, for example button (button), list (list), table (list) etc.
Id, the unique identifier of #DOM
Xpath #xpath path
Text message hash (Hash) value of text #DOM
The absolute position of location #DOM on screen
The father node ID of parent #DOM
Sibling # brother and children's node ID
Whether visible # is visible
Whether disable # is forbidden
]
In above-mentioned tuple, xpath is that one is used for determining XML (ExtensiveMakeup Language on ordinary meaning, extend markup language) the XML path language of the position of certain part in document, it is used for determining the position of DOM control in page dom tree structure in the present embodiment; And, xpath and text afterwards, location, parent, sibling, visible and disable philosophy represent a certain attribute of DOM control, they are all used for describing the state of DOM control in the present embodiment, and then in follow-up state machine comparison algorithm, are used for carrying out the comparison of state.
Continue, according to the classification of DOM obtained above, determine corresponding input set ∑.For example, in the time that the type of this DOM is button (button), its input set ∑ comprises { click, mouseover}; In the time that type is text input frame, its input set ∑ comprises { set, click, mouseover}; In the time that type is drop-down menu, its input set ∑ comprises { click, select, mouseover}.
Continue, by ∑ and S, the state that obtains this DOM transforms function δ: S × ∑ → S.Here, previous S represents the state set before input generation effect in ∑, and a rear S represents the state set after the input generation effect in ∑, and both belong to the subset of S but the content difference that comprises each other; For example, s described above 0and s fall can regard as respectively the subset (or element) of S, the previous S that state transforms in function expression here obviously only comprises s 0and do not comprise s f, in like manner, wherein a rear S only comprises s fand do not comprise s 0.
Continue, repeat above step and travel through the child control of this DOM, transform function δ until generate complete state.
Finally, the state that repeats above-mentioned DOM under multiple browsers transforms the generative process of function δ, transforms function δ from obtaining multiple states, for example, comprise corresponding to the state of IE browser and transform function δ iE, transform function δ corresponding to the state of Firefox browser ff, transform function δ corresponding to the state of Chrome browser cHetc., and then the state that utilizes state machine comparison algorithm to find out to there are differences between each browser transforms function δ diff, this is the functional aberrancy of the corresponding functional module of current DOM control on multiple browsers.The state machine comparison algorithm here can directly adopt existing state machine comparison algorithm, cites a plain example, and can compare one by one the variation series of state, in the time having state different, just this state recording is got off.For example, for " original state → state after click → click → click " this variation series of DOM1, in ie browser, after click, state is S (ie), in Firefox browser, after click, state is S (ff), for example, if when there is inconsistent attribute field (text different or location difference) in S (ff) in S (ie), determine that both there are differences, and then determine that this functional module exists the compatibility issue in function; Otherwise, if both all properties fields are all consistent, determine that this functional module does not exist compatibility issue.
Determine the functional aberrancy between the many browsers of each leisure by all functional modules in the functional module set for obtaining in step S203, and then gathered and just can obtain the functional compatibility problem of measurand entirety between many browsers.
As shown from the above technical solution, the browser compatibility detection method that the application provides, by measurand is carried out, intelligence is decomposed scanning and then the automatic generation of state set is carried out for each functional module in part, fully-automatic intelligent that can practical function compatibility issue detects, not only improved detection efficiency, thereby can also avoid to greatest extent failing to report improves detection quality.
Corresponding with the detection method of above-described embodiment browser compatibility, the application's embodiment also proposes a kind of pick-up unit of browser compatibility, and it detects for the compatibility issue that measurand is moved on multiple browser.In one embodiment, the measurand here comprises webpage or Web page application program (webapp), and the compatibility issue here relates generally to the compatibility issue in function, and does not relate to the compatibility issue on pattern.Fig. 3 is the pick-up unit embodiment block diagram of the application's browser compatibility, and as shown in the figure, the pick-up unit of the present embodiment browser compatibility comprises: static scanning unit 31, state machine generation unit 32 and state machine comparing unit 33.Wherein, static scanning unit 31 is for carrying out the compatible scanning of static state, the functional module set that output need to detect to measurand; State machine generation unit 32, for the each functional module for above-mentioned functions module collection, generates respectively the state machine that this functional module is moved under multiple browser, obtains respectively this functional module and transforms function corresponding to multiple states of each browser; Above-mentioned multiple function of states that state machine comparing unit 33 obtains state machine generation unit 32 compare to determine the functional aberrancy of functional module on multiple browsers.
Continue as shown in the figure, in one embodiment, above-mentioned static scanning unit 31 comprises: corresponding relation obtains subelement 311, set is obtained subelement 312 and merged subelement 313.Wherein, corresponding relation obtains subelement 311 and scans for the code to measurand, to obtain each functional module in code and to generate the corresponding relation between the page; Set is obtained subelement 312 and for the compatibility rules based on default, each functional module is scanned, and may have the set of the functional module of compatibility issue to obtain; Merge 313, subelement and obtain for the described corresponding relation that corresponding relation obtained to subelement 311 and obtain and set the functional module set that may have compatibility issue that subelement 312 obtains and merge, the functional module set detecting to obtain above-mentioned needs.
Further as shown in the figure, in one embodiment, above-mentioned state machine generation unit 32 comprises: traversal subelement 321 and generation subelement 322.Wherein, traversal subelement 321 is for choosing functional module in functional module set traversal; The state that generation subelement 322 is carried out respectively in order to the DOM Document Object Model DOM control based on corresponding with the current functional module of choosing under described multiple browsers generates multiple state machines.
In one embodiment, the state unit of above-mentioned state machine comprises: multiple state sets, input set (∑) and described state transform function (δ).Wherein, described multiple state set comprises state general collection (S), original state collection (s 0) and set of final state (s f), wherein s 0and s ffor the subset of S, and the expression formula of state conversion function is: δ=S × ∑ → S.In one embodiment, the element of above-mentioned state general collection comprises the type of DOM control, correspondingly, generates subelement 322 also in order to determine input set (∑) according to the type of this DOM control.
In sum, browser compatibility detection method and device that the embodiment of the present application provides, by measurand (webpage or web page program) is carried out, intelligence is decomposed and static compatible scanning, and then the automatic generation of state machine is carried out for each functional module in part, fully-automatic intelligent that can practical function compatibility issue detects, not only improved detection efficiency, thereby can also avoid to greatest extent failing to report improves detection quality.And from above-described embodiment, on the one hand, each step of the application's browser compatibility detection method and entirety thereof, can be corresponding to being stored in computer executable instructions in computer-readable recording medium and the computer executable program of composition thereof; And on the other hand, the application's browser compatibility pick-up unit, can be corresponding to the each several part computer hardware in order to carry out this computer executable program or instruction and the set of hardware of composition thereof.
Although described the application with reference to several exemplary embodiments, should be appreciated that term used is explanation and exemplary and nonrestrictive term.Because can specifically implementing in a variety of forms, the application do not depart from spirit or the essence of application, so be to be understood that, above-described embodiment is not limited to any aforesaid details, and explain widely in the spirit and scope that should limit in the claim of enclosing, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.

Claims (10)

1. a detection method for browser compatibility, detects for the compatibility issue that measurand is moved on multiple browser, and described measurand comprises webpage or Web page application program, and wherein, the method comprises the following steps:
S1. described measurand is carried out to the compatible scanning of static state, the functional module set that output need to detect;
S2. for the each functional module in described functional module set, generate the state machine that this functional module is moved respectively under described multiple browser, obtain the multiple states that this functional module corresponds respectively to each browser and transform functions;
S3. described multiple function of states are compared to determine the functional aberrancy of described functional module on described multiple browsers.
2. the detection method of browser compatibility as claimed in claim 1, wherein, described step S1 comprises:
Code to described measurand scans, to obtain each functional module in described code and to generate the corresponding relation between the page;
Compatibility rules based on default scans described each functional module, may have the set of the functional module of compatibility issue to obtain;
To the described corresponding relation obtaining and described in have the functional module set of compatibility issue to merge, the functional module set detecting to obtain described needs.
3. the detection method of browser compatibility as claimed in claim 1, wherein, described step S2 comprises:
S21. in described functional module set, traversal is chosen functional module;
S22. the state that the DOM Document Object Model DOM control based on corresponding with the current functional module of choosing is carried out respectively under described multiple browsers generates multiple state machines, and the state unit of described state machine comprises: multiple state sets, input set (∑) and described state transform function (δ).
4. the detection method of browser compatibility as claimed in claim 3, wherein, described multiple state sets comprise state general collection (S), original state collection (s 0) and set of final state (s f), wherein s 0and s ffor the subset of S, and the expression formula of described state conversion function is: δ=S × ∑ → S.
5. the detection method of the browser compatibility as described in claim 3 or 4, wherein, the element of described state general collection comprises the type of described DOM control, in described step S22, also comprises:
Determine described input set according to the type of described DOM control.
6. a pick-up unit for browser compatibility, detects for the compatibility issue that measurand is moved on multiple browser, and described measurand comprises webpage or Web page application program, and wherein, this device comprises:
Static scanning unit, for carrying out the compatible scanning of static state, the functional module set that output need to detect to described measurand;
State machine generation unit, for the each functional module for described functional module set, generates the state machine that this functional module is moved respectively under described multiple browser, obtains the multiple states that this functional module corresponds respectively to each browser and transforms functions;
State machine comparing unit, compares to determine the functional aberrancy of described functional module on described multiple browsers to described multiple function of states.
7. the pick-up unit of browser compatibility as claimed in claim 6, wherein, described static scanning unit comprises:
Corresponding relation obtains subelement, scans, to obtain each functional module in described code and to generate the corresponding relation between the page for the code to described measurand;
Subelement is obtained in set, for the compatibility rules based on default, described each functional module is scanned, and may have the set of the functional module of compatibility issue to obtain;
Merge subelement, obtain the functional module set that may have compatibility issue that subelement obtains and merge, the functional module set detecting to obtain described needs for described corresponding relation being obtained to described corresponding relation that subelement obtains and described set.
8. the pick-up unit of browser compatibility as claimed in claim 6, wherein, described state machine generation unit comprises:
Traversal subelement, for choosing functional module in described functional module set traversal;
Generate subelement, the state of carrying out under described multiple browsers respectively in order to the DOM Document Object Model DOM control based on corresponding with the current functional module of choosing generates multiple state machines, and the state unit of described state machine comprises: multiple state sets, input set (∑) and described state transform function (δ).
9. the pick-up unit of browser compatibility as claimed in claim 8, wherein, described multiple state sets comprise state general collection (S), original state collection (s 0) and set of final state (s f), wherein s 0and s ffor the subset of S, and the expression formula of described state conversion function is: δ=S × ∑ → S.
10. the pick-up unit of browser compatibility as claimed in claim 8 or 9, wherein, the element of described state general collection comprises the type of described DOM control, correspondingly, described generation subelement is also in order to determine described input set according to the type of described DOM control.
CN201210519730.3A 2012-12-06 2012-12-06 Browser compatibility testing method and device Active CN103853659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210519730.3A CN103853659B (en) 2012-12-06 2012-12-06 Browser compatibility testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210519730.3A CN103853659B (en) 2012-12-06 2012-12-06 Browser compatibility testing method and device

Publications (2)

Publication Number Publication Date
CN103853659A true CN103853659A (en) 2014-06-11
CN103853659B CN103853659B (en) 2017-01-18

Family

ID=50861336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210519730.3A Active CN103853659B (en) 2012-12-06 2012-12-06 Browser compatibility testing method and device

Country Status (1)

Country Link
CN (1) CN103853659B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055471A (en) * 2016-05-20 2016-10-26 深圳天珑无线科技有限公司 Testing method and terminal
CN104156307B (en) * 2014-07-03 2017-04-05 安徽景行信息科技有限公司 A kind of browser compatibility detection method and system
CN108920370A (en) * 2018-07-02 2018-11-30 北京百度网讯科技有限公司 Compatibility issue detection method, device and equipment
CN108959057A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 Test method, test device, storage equipment and the network equipment
CN109542501A (en) * 2018-10-25 2019-03-29 平安科技(深圳)有限公司 Browser table compatibility method, device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050108571A1 (en) * 2003-09-29 2005-05-19 Axalto Inc. Secure networking using a resource-constrained device
CN102043709A (en) * 2009-10-22 2011-05-04 上海杉达学院 Software test system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050108571A1 (en) * 2003-09-29 2005-05-19 Axalto Inc. Secure networking using a resource-constrained device
CN102043709A (en) * 2009-10-22 2011-05-04 上海杉达学院 Software test system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
乐海勇: "嵌入式系统中WAP浏览器的设计与实现", 《中国优秀硕士学位论文全文数据库》 *
冯雅丽: "基于有限状态机理论的Web功能自动化测试技术研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156307B (en) * 2014-07-03 2017-04-05 安徽景行信息科技有限公司 A kind of browser compatibility detection method and system
CN106055471A (en) * 2016-05-20 2016-10-26 深圳天珑无线科技有限公司 Testing method and terminal
CN108959057A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 Test method, test device, storage equipment and the network equipment
CN108920370A (en) * 2018-07-02 2018-11-30 北京百度网讯科技有限公司 Compatibility issue detection method, device and equipment
CN108920370B (en) * 2018-07-02 2022-08-16 北京百度网讯科技有限公司 Compatibility problem detection method, device and equipment
CN109542501A (en) * 2018-10-25 2019-03-29 平安科技(深圳)有限公司 Browser table compatibility method, device, computer equipment and storage medium
CN109542501B (en) * 2018-10-25 2022-04-15 平安科技(深圳)有限公司 Browser table compatibility method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103853659B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
US10824691B2 (en) Page rendering method, device, and data storage medium
Gulwani et al. Inductive programming meets the real world
US9207952B2 (en) Semantic mapping of objects in a user interface automation framework
Nakandala et al. A tensor compiler for unified machine learning prediction serving
US8397159B2 (en) Method and apparatus for solving UI style conflicts in web application composition
CN105095067A (en) User interface element object identification and automatic test method and apparatus
CN109684584B (en) Intelligent switching method and device for browser kernel, terminal and storage medium
CN103853659A (en) Browser compatibility testing method and device
US20150026666A1 (en) Analysis system, analysis method, and computer program product
WO2016078442A1 (en) Advertisement filtering method and device
US9372683B2 (en) Automatic generation of class identifiers from source code annotations
US9367433B2 (en) Generating input values for a test dataset from a datastore based on semantic annotations
Li et al. Classification of software defect detected by black-box testing: An empirical study
CN103019925A (en) Selector acquisition method and device
CN111767217B (en) JS unit test case generation method and device
Laaz et al. A model-driven approach for generating RIA interfaces using IFML and ontologies
CN111508562A (en) Visual display method, device, equipment and medium of flow descriptive language
WO2016122508A1 (en) Test generation for browser-based user interface
Chowdhury Assisting end-user development in browser-based mashup tools
US20230195825A1 (en) Browser extension with automation testing support
CN111427760B (en) Page test method, device, equipment and storage medium
Konur Towards Light‐Weight Probabilistic Model Checking
Chen et al. A Selenium based approach to automatic test script generation for refactoring JavaScript code
Anderson et al. Supporting analysis of SQL queries in PHP AiR
Silva et al. Characterizing the control logic of web applications’ user interfaces

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant