CN103853654B - The system of selection of webpage test path and device - Google Patents

The system of selection of webpage test path and device Download PDF

Info

Publication number
CN103853654B
CN103853654B CN201210505507.3A CN201210505507A CN103853654B CN 103853654 B CN103853654 B CN 103853654B CN 201210505507 A CN201210505507 A CN 201210505507A CN 103853654 B CN103853654 B CN 103853654B
Authority
CN
China
Prior art keywords
webpage
block
interactive elements
test path
significance level
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.)
Expired - Fee Related
Application number
CN201210505507.3A
Other languages
Chinese (zh)
Other versions
CN103853654A (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.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
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 International Business Machines Corp filed Critical International Business Machines Corp
Priority to CN201210505507.3A priority Critical patent/CN103853654B/en
Publication of CN103853654A publication Critical patent/CN103853654A/en
Application granted granted Critical
Publication of CN103853654B publication Critical patent/CN103853654B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to webpage test, it discloses a kind of system of selection of webpage test path and device, the method includes:Current web page is divided into block;Carry out being operated into next webpage by the representative interactive elements comprising in block that user is paid close attention to;Above-mentioned steps are executed to next webpage iteration, terminates webpage until entering;Record is from start page to the webpage test path terminating webpage;Determine the significance level of described webpage test path and webpage test path to be tested is selected according to described significance level.The method and device can make webpage tester be efficiently completed system test task under limited resources supplIes.

Description

The system of selection of webpage test path and device
Technical field
The present invention relates to webpage test, more particularly, to a kind of system of selection of webpage test path and device.
Background technology
With the fast development of web technologies, increasing web application is developed and disposes, and wherein applies more wide General technology is Web 2.0 and HTML5, in order to ensure correctness and the accuracy of web application, the automatic test skill of webpage Art is more and more important.In order to improve testing efficiency, occur in that multiple instruments carrying out automatic test at present, used this When a little automated test tools carry out webpage test, generally under the recording mode of automated test tool, by tester to quilt The web application of test executes a series of operational motion.In this process, automated test tool will be held according to tester Test script is automatically recorded in the action of row, and tester uses testing tool playback operation step.
However, due to the restriction of resource and time, webpage tester it is practically impossible to enter in testing each time Row is tested comprehensively, and its result is likely to miss some great system vulnerabilities(Test hole), have a strong impact on the matter of web application Amount, is applied in Web technology with ASP, JSP, CSS and JavaScript, Web page is dynamic change, exhaustive testing (exhaustive test)It is impossible, test coverage(test coverage)Often rely on webpage tester's Experience and knowledge.Increasing test coverage needs to expend substantial amounts of manpower and time, and current instrument does not support that test path is known Maximize test coverage not and under limited resource and time conditions.
Accordingly, it would be desirable to a kind of technical scheme, webpage tester can be made under limited resources supplIes to be efficiently completed System test task.
Content of the invention
According to an aspect of the invention, it is provided a kind of system of selection of webpage test path, including:Root is by current net Page is divided into block;Carry out being operated into next webpage by the representative interactive elements comprising in block that user is paid close attention to;To next Webpage iteration executes above-mentioned steps, terminates webpage until entering;Record is from start page to the webpage test path terminating webpage; Determine the significance level of described webpage test path and webpage test path to be tested is selected according to described significance level.
According to another aspect of the present invention, there is provided a kind of selecting device of webpage test path, including:Piecemeal mould Block, is configured to for current web page to be divided into block, and the representative interactive elements comprising in the block to user's concern are operated into Next webpage, executes above-mentioned steps to next webpage iteration, terminates webpage until entering;Logging modle, be configured to record from Start page is to the webpage test path terminating webpage;Test path selection module, is configured to determine that described webpage test road The significance level in footpath simultaneously selects webpage test path to be tested according to described significance level.
The system of selection of webpage test path according to embodiments of the present invention and device, can be under limited resources supplIes Webpage tester is made to be efficiently completed system test task.
Brief description
By combining accompanying drawing, disclosure illustrative embodiments are described in more detail, the disclosure above-mentioned and its Its purpose, feature and advantage will be apparent from, wherein, in disclosure illustrative embodiments, identical reference number Typically represent same parts.
Fig. 1 shows the block diagram being suitable to the exemplary computer system/server 12 for realizing embodiment of the present invention.
Fig. 2 illustrates the system of selection of webpage test path according to embodiments of the present invention;
Fig. 3 illustrates the embodiment of a selection webpage test path of the present invention;
Fig. 4 illustrates the webpage state transition diagram of the embodiment of the present invention;And
Fig. 5 illustrates the selecting device 500 of webpage test path according to an embodiment of the invention.
Specific embodiment
It is more fully described the preferred implementation of the disclosure below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Preferred implementation, however, it is to be appreciated that may be realized in various forms the disclosure and the embodiment party that should not illustrated here Formula is limited.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and can be by the disclosure Scope intactly conveys to those skilled in the art.
Person of ordinary skill in the field knows, the present invention can be implemented as system, method or computer program. Therefore, the disclosure can be implemented as following form, that is,:Can be completely hardware, can also be completely software(Including Firmware, resident software, microcode etc.), can also be the form that hardware and software combines, referred to generally herein as " circuit ", " mould Block " or " system ".Additionally, in certain embodiments, the present invention is also implemented as in one or more computer-readable mediums In computer program form, comprise computer-readable program code in this computer-readable medium.
The combination in any of one or more computer-readable media can be adopted.Computer-readable medium can be calculated Machine readable signal medium or computer-readable recording medium.Computer-readable recording medium can be for example but not limit In the system of electricity, magnetic, optical, electromagnetic, infrared ray or quasiconductor, device or device, or arbitrarily above combination.Calculate The more specifically example of machine readable storage medium storing program for executing(Non exhaustive list)Including:There is the electrical connection, just of one or more wires Take formula computer disk, hard disk, random access memory(RAM), read only memory (ROM), the programmable read-only storage of erasable type Device (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer-readable recording medium can any be comprised or store journey The tangible medium of sequence, this program can be commanded execution system, device or device and use or in connection.
Computer-readable signal media can include the data signal in a base band or as carrier wave part propagation, Wherein carry computer-readable program code.The data signal of this propagation can take various forms, including but It is not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium beyond computer-readable recording medium, this computer-readable medium can send, propagate or Transmit for being used or program in connection by instruction execution system, device or device.
The program code comprising on computer-readable medium can with any suitable medium transmission, including but do not limit In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
The computer for executing present invention operation can be write with one or more programming language or a combination thereof Program code, described program design language includes object oriented program language such as Java, Smalltalk, C++, also Including conventional procedural programming language such as " C " language or similar programming language.Program code can be complete Ground executes on the user computer, partly executes on the user computer, executing, partly exist as an independent software kit Part execution or execution completely on remote computer or server on the remote computer on subscriber computer.It is being related to In the situation of remote computer, remote computer can include LAN (LAN) or wide area by the network of any kind Net (WAN) is connected to subscriber computer, or it may be connected to outer computer(For example utilize ISP Come by Internet connection).
Below with reference to the method for the embodiment of the present invention, device(System)With the flow chart of computer program and/or Block diagram describes the present invention.It should be appreciated that each square frame in each square frame of flow chart and/or block diagram and flow chart and/or block diagram Combination, can be realized by computer program instructions.These computer program instructions can be supplied to general purpose computer, special Computer or the processor of other programmable data processing unit, thus producing a kind of machine, these computer program instructions By computer or other programmable data processing unit execution, create rule in the square frame in flowchart and/or block diagram The device of fixed function/operation.
These computer program instructions can also be stored in and can make computer or other programmable data processing unit In the computer-readable medium working in a specific way, so, the instruction being stored in computer-readable medium just produces one Individual command device (the instruction including the function/operation specified in square frame in flowchart and/or block diagram Means manufacture)(manufacture).
Computer program instructions can also be loaded into computer, other programmable data processing unit or miscellaneous equipment Above so that executing series of operation steps on computer, other programmable data processing unit or miscellaneous equipment, in terms of producing The process that calculation machine is realized, so that the instruction of execution can provide flowchart on computer or other programmable device And/or the process of function/operation specified in the square frame in block diagram.
Fig. 1 shows the block diagram being suitable to the exemplary computer system/server 12 for realizing embodiment of the present invention. The computer system/server 12 that Fig. 1 shows is only an example, should not be to the function of the embodiment of the present invention and range Bring any restriction.
As shown in figure 1, computer system/server 12 is showed in the form of universal computing device.Computer system/service The assembly of device 12 can include but is not limited to:One or more processor or processing unit 16, system storage 28, connect Different system assembly(Including system storage 28 and processing unit 16)Bus 18.
Bus 18 represents one or more of a few class bus structures, including memory bus or Memory Controller, Peripheral bus, AGP, processor or using the arbitrarily bus-structured local bus in multiple bus structures.Lift For example, these architectures include but is not limited to industry standard architecture(ISA)Bus, MCA(MAC) Bus, enhancement mode isa bus, VESA(VESA)Local bus and periphery component interconnection(PCI)Bus.
Computer system/server 12 typically comprises various computing systems computer-readable recording medium.These media can be appointed What usable medium that can be accessed by computer system/server 12, includings volatibility and non-volatile media, movably with Immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as random access memory Memorizer(RAM)30 and/or cache memory 32.Computer system/server 12 may further include other removable Dynamic/immovable, volatile/non-volatile computer system storage medium.It is only used as illustrating, storage system 34 can be used for Read and write immovable, non-volatile magnetic media(Fig. 1 does not show, commonly referred to " hard disk drive ").Although not showing in Fig. 1 Go out it is provided that being used for removable non-volatile magnetic disk(Such as " floppy disk ")The disc driver of read-write, and to removable Anonvolatile optical disk(Such as CD-ROM, DVD-ROM or other optical medium)The CD drive of read-write.In these cases, Each driver can be connected with bus 18 by one or more data media interfaces.Memorizer 28 can include at least one Individual program product, this program product has one group(For example, at least one)Program module, these program modules are configured to perform The function of various embodiments of the present invention.
There is one group(At least one)Program/the utility 40 of program module 42, can be stored in such as memorizer 28 In, such program module 42 includes but is not limited to operating system, one or more application program, other program The realization of network environment is potentially included in module and routine data, each of these examples or certain combination.Program mould Block 42 generally executes function and/or method in embodiment described in the invention.
Computer system/server 12 can also be with one or more external equipments 14(Such as keyboard, sensing equipment, aobvious Show device 24 etc.)Communication, the equipment that also can enable a user to be interacted with this computer system/server 12 with one or more is led to Letter, and/or any set with enable that this computer system/server 12 communicated with one or more of the other computing device Standby(Such as network interface card, modem etc.)Communication.This communication can pass through input/output(I/O)Interface 22 is carried out.And And, computer system/server 12 can also be by network adapter 20 and one or more network(Such as LAN (LAN), wide area network(WAN)And/or public network, such as the Internet)Communication.As illustrated, network adapter 20 passes through bus 18 are communicated with other modules of computer system/server 12.It should be understood that although not shown in can be in conjunction with computer Systems/servers 12 use other hardware and/or software module, including but not limited to:At microcode, device driver, redundancy Reason unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Fig. 2 illustrates the system of selection of webpage test path according to embodiments of the present invention, including:In step S201, ought Front webpage is divided into block, and for example, the visualization feature according to current web page carries out piecemeal;In step S202, by paying close attention to user Block in the representative interactive elements that comprise carry out being operated into next webpage;In step S203, next webpage iteration is executed Above-mentioned steps, terminate webpage until entering;In step S204, record is from start page to the webpage test path terminating webpage; In step S205, determine the significance level of described webpage test path and select webpage to be tested to survey according to described significance level Examination path.
In step S201, current web page is divided into block, piecemeal, mesh can be carried out according to the structure of the dom tree of current web page Front application is more widely a kind of Web page block algorithm VIPS (Vision- of view-based access control model feature that Microsoft proposes Based Page Segmentation Algorithm), it utilizes the visual signature such as background color, font color of Web page With the distance between size, frame, logical block and logical block etc., carry out web page semantics piecemeal in conjunction with dom tree, VIPS algorithm is main Comprise three steps:Web page blocks are extracted, and divider extracts and semantic chunk reconstruct, and it extracts all of first from dom tree Suitable web page blocks, then detect all of dividing strip between them according to these web page blocks, include horizontal direction and vertical Nogata to dividing strip, be finally based on these dividing strips, the semantic structure of Web page will be reconstructed.For each language Adopted block can continue to be divided into less semantic chunk using VIPS algorithm again.
Webpage is first segmented into the larger semantic chunk of several ratio, records the level knot that these semantic chunks are formed simultaneously Structure.Piecemeal can be continued for the big semantic chunk of each detecting, until the degree of coherence DOC of semantic chunk again(Degree of Coherence)Value reaches permission degree of coherence PDOC set in advance(Permitted Degree of coherence)Value Till.In each iterative cycles, the DOM tree structure of current logic block and its visual information all will be acquired.Then, from The root node of dom tree starts, and view-based access control model information is started to start to detect web page blocks from dom tree by logical block detection process.Often One DOM node all can be examined it and can constitute single web page blocks.If it could not, so its child node will be held The same inspection of row.The web page blocks extracting for each, all can give according to the interior visible attribute of current web page block One DOC value.After all of web page blocks are all detected during the current iteration, they will be saved to webpage pond In.Based on these web page blocks, divider detection process will be started working.All horizontal subdivision bars between these web page blocks and hang down Straight divider is the most identified and gives certain width and height.Based on these dividers, rebuild webpage Layout hierarchy, some web page blocks will be merged, formed semantic chunk.Finally, all semantic chunks during current iteration are all incited somebody to action It is detected.
The need of proceeding depending on whether there is DOC value in the semantic chunk of this level less than PDOC in iterative process Semantic chunk.For those DOC>The semantic chunk of=PDOC, segmentation procedures will stop, and otherwise segmentation procedures continue.When all of language After adopted block is extracted, finally the blocking process of the view-based access control model feature of whole webpage completes.
It will be appreciated by those skilled in the art that carrying out piecemeal to current web page can have multiple implementations, the present invention is not It being made with any restriction, as long as achieving the piecemeal to current web page, that is, falling into protection scope of the present invention.
In step S202, carry out being operated into next net by the representative interactive elements comprising in block that user is paid close attention to Page, user can select the block paid close attention in the block of webpage as needed, and each block of webpage includes at least one interaction unit Element, even includes tens interactive elements in some blocks, interactive elements include hyperlink, interactive form, button, user's registration Table, files passe domain and textview field, according to embodiments of the invention, further include:Comprise in the block of identifying user concern Interactive elements;According to the destination object of interactive elements, interactive elements are classified;By interactive elements similar for destination object It is considered as same class interactive elements, for example, if the destination object of two or more interactive elements is the similar webpage that redirects, that is, jump Turn webpage and there is similar web page template or web page address, then two or more interactive elements can be classified as a class interaction unit Element;Select at least one interactive elements at random as representative interactive elements from same class interactive elements.According to the present invention's Embodiment, further includes:Record the operation that representative interactive elements are carried out;Operation according to record generates webpage test Script, for playing back in the future.
In step S203, above-mentioned steps are executed to next webpage iteration, terminate webpage until entering, next webpage is continued Continue and piecemeal carried out based on visual feature, and the representative interactive elements comprising in block are operated, enter next webpage, So move in circles, terminate webpage until entering.
In step S204, record from start page to the webpage test path terminating webpage, in user by selecting webpage The block of concern, the final webpage test path obtaining its concern, according to embodiments of the invention, user can select complete in webpage The block in portion, the block of part are it is also possible to be automatically selected by system.According to embodiments of the invention, further include:Record described net The state transition of page test path, and state transition is saved as state transition diagram.User can be by manual modification state Transition graph is changing or to remove some test paths or input data.Access next net by the representative interactive elements in block Page, the representative interactive elements due to choosing can represent the similar class interactive elements of destination object, therefore need not travel through complete Portion's interactive elements go to search webpage test path, simplify the search procedure of webpage test path, maximize webpage test simultaneously The coverage rate in path, will not omit any network test path in the range of choice.
In step S205, determine the significance level of described webpage test path and select to test according to described significance level Webpage test path, according to embodiments of the invention, determine the significance level of the webpage that webpage test path includes, according to The significance level of the webpage that webpage test path includes determines the significance level of webpage test path, wherein determines webpage test The significance level of the webpage that path includes includes:Determine the significance level of the block of user's concern;Block according to user's concern Significance level determines the significance level of the webpage that the representative interactive elements comprising in the block paid close attention to by user are accessed.Wherein use The significance level of block of family concern is to following at least one is related:The size of block, the position of block, the function of block, the visit of block Ask the error frequency of frequency and block, weight computing rule is set according to factors above, calculates the weights of each block in webpage. Under limited resources supplIes, can be tested with the high network test path of prioritizing selection significance level, thus improving network The testing efficiency of tester.
Fig. 3 illustrates the embodiment of one of present invention selection webpage test path, and user enters the Web page 1 by URL1, root Webpage 1 is divided into 5 pieces by the visualization feature according to webpage 1, and user's selection block 2, as the block of concern, identifies representativeness in block 2 Interactive elements are login frame, and input ID and password are logged in, and if logged on failure, then enter the Web page 2, and webpage 2 is knot Bundle webpage, if logged on success, then enters the Web page 3, webpage 3 is divided into 4 pieces by the visualization feature according to webpage 3, and user selects Block 3, as the block of concern, identifies that in block 3 representative interactive elements are URL2 and URL3, clicks on URL2 and enter the Web page 4, point Hit URL3 and enter the Web page 5, webpage 4 and webpage 5 are end webpage, and Fig. 4 illustrates the webpage state transition diagram of the embodiment of the present invention, Identify that webpage test path is:
Webpage test path 1:Webpage 1>Webpage 2;
Webpage test path 2:Webpage 1>Webpage 3>Webpage 4;
Webpage test path 3:Webpage 1>Webpage 3>Webpage 5
According to embodiments of the invention, it is the weight setting one simply rule of the block in webpage 1 and webpage 3, Weight(Block)The size * W of=block(The position of block), the size of wherein block refers to that block accounts for the ratio of whole webpage, the big I of block To be obtained by DOM API, block is bigger, and weights are bigger.W(The position of block)It is the weight of the position of block, webpage is divided into difference Region, zones of different gives different weights, and which region a block falls in, just obtains corresponding weights.Table 1 illustrates webpage The weights of 1 block, table 2 illustrates the weights of the block of webpage 2.
The weights of the block of table 1 webpage 1
Block 1 Block 2 Block 3 Block 4 Block 5
The size of block 0.05 0.05 0.1 0.75 0.05
W (the position of block) 3.0 3.0 2.0 4.0 1.0
Weight(Block) 0.15 0.15 0.2 3.0 0.05
The weights of the block of table 2 webpage 3
Block 1 Block 2 Block 3 Block 4
The size of block 0.05 0.15 0.75 0.05
W (the position of block) 3.0 3.0 4.0 1.0
Weight(Block) 0.15 0.45 3.0 0.05
Webpage test path 1 is:Webpage 1>Webpage 2;
For webpage 1 it is assumed that its weights are 1.0,
Because webpage 2 is to be accessed by the representative interactive elements in the block 2 of webpage 1, therefore the weights of webpage 2 are set It is set to the weights 0.15 of block 2,
The weights of webpage test path 1 are:W(path1)=1.0 × 0.15=0.15,
For webpage test path 2:Webpage 1>Webpage 3>Webpage 4;
For webpage 1 it is assumed that its weights are 1.0,
Webpage 3 is to be accessed by the representative interactive elements in the block 2 of webpage 1, by the weight setting of webpage 3 is therefore The weights 0.15 of the block 2 of webpage 1,
Webpage 4 is to be accessed by the representative interactive elements in the block 3 of webpage 3, by the weight setting of webpage 4 is therefore The weights 3.0 of the block 3 of webpage 3,
The weights of webpage test path 2 are:W(path2)=1.0×0.15×3.0=0.45
For webpage test path 3:Webpage 1>Webpage 3>Webpage 5
Webpage 3 is to be accessed by the representative interactive elements in the block 2 of webpage 1, by the weight setting of webpage 3 is therefore The weights 0.15 of the block 2 of webpage 1,
Webpage 4 is to be accessed by the representative interactive elements in the block 3 of webpage 3, by the weight setting of webpage 4 is therefore The weights 3.0 of the block 3 of webpage 3,
The weights of webpage test path 3 are:W(path3)=1.0×0.15×3.0=0.45
Therefore sort according to the significance level of webpage test path:
Webpage test path 2, webpage test path 3>Webpage test path 1,
Therefore in the case of resource-constrained, tester can be entered with the big webpage test path of prioritizing selection significance level Row test.
The present invention also proposes the selecting device of a webpage test path according to embodiments of the present invention, and Fig. 5 illustrates basis The selecting device 500 of the webpage test path of one embodiment of the invention, including:Piecemeal module 501, current web page is divided into Block, the representative interactive elements comprising in the block to user's concern carry out being operated into next webpage, and next webpage iteration is held Row above-mentioned steps, terminate webpage until entering;Logging modle 502, is configured to record from start page to the net terminating webpage Page test path;Test path selection module 503, is configured to determine that the significance level of described webpage test path and according to institute State significance level and select webpage test path to be tested.
According to embodiments of the invention, wherein piecemeal module 501 includes:Identification module, is configured to identifying user concern Block in the interactive elements that comprise;Sort module, is configured to the destination object according to interactive elements and interactive elements is carried out point Class, interactive elements similar for destination object are considered as same class interactive elements;Selecting module, is configured to from same class interaction unit At least one interactive elements is selected at random as representative interactive elements in element.
According to embodiments of the invention, wherein test path selection module is configured to:Determine bag in webpage test path The significance level of the webpage including;The significance level of the webpage being included according to webpage test path determines the weight of webpage test path Want degree.
According to embodiments of the invention, wherein test path selection module is configured to:Determine the weight of the block of user's concern Want degree;The significance level of the block according to user's concern determines that the representative interactive elements comprising in the block paid close attention to by user are visited The significance level of the webpage asked.
According to embodiments of the invention, the significance level of block of wherein user's concern is related at least one of: The size of block, the error frequency of the position of block, the access frequency of block and block.
According to embodiments of the invention, wherein piecemeal module 501 also includes:Operation note module, it is right to be configured to record The operation that representative interactive elements are carried out;Test script generation module, is configured to the operation according to record and generates webpage survey Training is originally.
According to embodiments of the invention, wherein logging modle is configured to:Record described webpage test path State transition, and state transition is saved as state transition diagram.
Flow chart in accompanying drawing and block diagram show the system of multiple embodiments according to the present invention, method and computer journey The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation A part for one module of table, program segment or code, a part for described module, program segment or code comprises one or more use Executable instruction in the logic function realizing regulation.It should also be noted that at some as in the realization replaced, being marked in square frame The function of note can also be to occur different from the order being marked in accompanying drawing.For example, two continuous square frames can essentially base Originally it is performed in parallel, they can also execute sometimes in the opposite order, this is depending on involved function.It is also noted that It is, the combination of each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart, can be with executing rule The special hardware based system of fixed function or operation, or can be with the group of specialized hardware and computer instruction realizing Close and to realize.
It is described above various embodiments of the present invention, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of the scope and spirit without departing from illustrated each embodiment, for this skill For the those of ordinary skill in art field, many modifications and changes will be apparent from.The selection of term used herein, purport Best explaining principle, practical application or the technological improvement to the technology in market of each embodiment, or this technology is made to lead Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (14)

1. a kind of system of selection of webpage test path, including:
Current web page is divided into block;
Carry out being operated into next webpage by the representative interactive elements comprising in block that user is paid close attention to;
Above-mentioned to the execution of next webpage iteration current web page is divided into block and the representativeness by comprising in block that user is paid close attention to Interactive elements carry out being operated into next webpage, terminate webpage until entering;
Record is from start page to the webpage test path terminating webpage;
Determine the significance level of described webpage test path and webpage test path to be tested is selected according to described significance level.
2. the representative interactive elements comprising in method according to claim 1, the wherein block to user's concern are grasped Work includes:
The interactive elements comprising in the block of identifying user concern;
According to the destination object of interactive elements, interactive elements are classified, interactive elements similar for destination object are considered as same Class interactive elements;
Select at least one interactive elements at random as representative interactive elements from same class interactive elements.
3. method according to claim 1 and 2, wherein determines that the significance level of described webpage test path includes:
Determine the significance level of the webpage that webpage test path includes;
The significance level of the webpage being included according to webpage test path determines the significance level of webpage test path.
4. method according to claim 3, wherein determines that the significance level of the webpage that webpage test path includes includes:
Determine the significance level of the block of user's concern;
The significance level of the block according to user's concern determines that the representative interactive elements comprising in the block paid close attention to by user are accessed Webpage significance level.
5. the significance level of block of method according to claim 4, wherein user concern and at least one of phase Close:The size of block, the error frequency of the position of block, the access frequency of block and block.
6. method according to claim 1, the wherein representative interactive elements by comprising in block that user is paid close attention to are entered Row is operated into next webpage and includes:
Record the operation that representative interactive elements are carried out;
Operation according to record generates webpage test script.
7. method according to claim 1, wherein records and enters one from start page to the webpage test path terminating webpage Step includes:Record the state transition of described webpage test path, and state transition is saved as state transition diagram.
8. a kind of selecting device of webpage test path, including:
Piecemeal module, is configured to for current web page to be divided into block, and the representative interactive elements comprising in the block to user's concern are entered Row is operated into next webpage, executes aforesaid operations to next webpage iteration, terminates webpage until entering;
Logging modle, is configured to record from start page to the webpage test path terminating webpage;
Test path selection module, is configured to determine that the significance level of described webpage test path and according to described significance level Selection webpage test path to be tested.
9. selecting device according to claim 8, wherein piecemeal module includes:
Identification module, is configured to the interactive elements comprise in the block of identifying user concern;
Sort module, is configured to according to the destination object of interactive elements, interactive elements be classified, and destination object is similar Interactive elements be considered as same class interactive elements;
Selecting module, is configured to select at least one interactive elements from same class interactive elements at random as representative interaction Element.
10. selecting device according to claim 8 or claim 9, wherein test path selection module is configured to:
Determine the significance level of the webpage that webpage test path includes;
The significance level of the webpage being included according to webpage test path determines the significance level of webpage test path.
11. selecting devices according to claim 10, wherein test path selection module is configured to:
Determine the significance level of the block of user's concern;
The significance level of the block according to user's concern determines that the representative interactive elements comprising in the block paid close attention to by user are accessed Webpage significance level.
The significance level of block of 12. selecting devices according to claim 11, wherein user concern with least following wherein One of correlation:The size of block, the error frequency of the position of block, the access frequency of block and block.
13. selecting devices according to claim 8, wherein piecemeal module also includes:
Operation note module, is configured to record the operation that representative interactive elements are carried out;
Test script generation module, is configured to the operation according to record and generates webpage test script.
14. selecting devices according to claim 8, wherein logging modle is configured to:Record described webpage to survey The state transition in examination path, and state transition is saved as state transition diagram.
CN201210505507.3A 2012-11-30 2012-11-30 The system of selection of webpage test path and device Expired - Fee Related CN103853654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210505507.3A CN103853654B (en) 2012-11-30 2012-11-30 The system of selection of webpage test path and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210505507.3A CN103853654B (en) 2012-11-30 2012-11-30 The system of selection of webpage test path and device

Publications (2)

Publication Number Publication Date
CN103853654A CN103853654A (en) 2014-06-11
CN103853654B true CN103853654B (en) 2017-03-01

Family

ID=50861332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210505507.3A Expired - Fee Related CN103853654B (en) 2012-11-30 2012-11-30 The system of selection of webpage test path and device

Country Status (1)

Country Link
CN (1) CN103853654B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834594B (en) * 2014-12-29 2017-11-17 平安科技(深圳)有限公司 Web system method of testing and device
CN106872811A (en) * 2015-12-10 2017-06-20 中国船舶工业系统工程研究院 A kind of TCH test channel distribution method based on signal characteristic
CN105740154A (en) * 2016-03-03 2016-07-06 北京白鹭时代信息技术有限公司 Webgame test script generation method and device
CN107357716A (en) * 2016-05-10 2017-11-17 富士通株式会社 Apparatus and method for choosing webpage
CN108228641A (en) * 2016-12-21 2018-06-29 中国移动通信集团辽宁有限公司 The method, apparatus and system of web data analysis
CN107402882B (en) * 2017-07-21 2020-11-06 杭州迪普科技股份有限公司 Web page testing method and device
CN109542764B (en) * 2018-10-17 2023-08-18 平安健康保险股份有限公司 Webpage automatic testing method and device, computer equipment and storage medium
CN109933530A (en) * 2019-03-14 2019-06-25 百度在线网络技术(北京)有限公司 Components testing method and device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593200A (en) * 2009-06-19 2009-12-02 淮海工学院 Chinese Web page classification method based on the keyword frequency analysis
CN101751438A (en) * 2008-12-17 2010-06-23 中国科学院自动化研究所 Theme webpage filter system for driving self-adaption semantics
CN102508859A (en) * 2011-09-29 2012-06-20 北京亿赞普网络技术有限公司 Advertisement classification method and device based on webpage characteristic
CN102768641A (en) * 2012-06-15 2012-11-07 深圳中兴网信科技有限公司 Webpage testing factor selecting device and webpage testing factor selecting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060064339A1 (en) * 2004-09-13 2006-03-23 Technology Transfer Office, Brigham Young University Methods and systems for conducting internet marketing experiments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751438A (en) * 2008-12-17 2010-06-23 中国科学院自动化研究所 Theme webpage filter system for driving self-adaption semantics
CN101593200A (en) * 2009-06-19 2009-12-02 淮海工学院 Chinese Web page classification method based on the keyword frequency analysis
CN102508859A (en) * 2011-09-29 2012-06-20 北京亿赞普网络技术有限公司 Advertisement classification method and device based on webpage characteristic
CN102768641A (en) * 2012-06-15 2012-11-07 深圳中兴网信科技有限公司 Webpage testing factor selecting device and webpage testing factor selecting method

Also Published As

Publication number Publication date
CN103853654A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN103853654B (en) The system of selection of webpage test path and device
US8041652B2 (en) Measuring web site satisfaction of information needs using page traffic profile
US20150169430A1 (en) Selecting webpage test paths
US8904350B2 (en) Maintenance of a subroutine repository for an application under test based on subroutine usage information
US8732666B2 (en) Automatic identification of subroutines from test scripts
US9311176B1 (en) Evaluating a set of storage devices and providing recommended activities
US20140059522A1 (en) Generating Test Cases for Covering Enterprise Rules and Predicates
CN104765745B (en) Loading data in database are carried out with the method and system of logic checking
CN105446864B (en) Method and device for verifying influence of deletion of cache file and mobile terminal
CN106649092A (en) Test script generation method, web page testing method, device and system
US20160171104A1 (en) Detecting multistep operations when interacting with web applications
WO2016130542A1 (en) Code relatives detection
WO2018093899A1 (en) Electronic form identification using spatial information
US8245084B2 (en) Two-level representative workload phase detection
CN103970646A (en) Automatic analysis method and system for operation sequence
CN104504331B (en) Virtualize safety detection method and system
US7536602B2 (en) Method and apparatus for evaluating paths in a state machine
US8850407B2 (en) Test script generation
CN110515758A (en) A kind of Fault Locating Method, device, computer equipment and storage medium
CN104580109A (en) Method and device for generating click verification code
KR102299525B1 (en) Product Evolution Mining Method And Apparatus Thereof
KR101648349B1 (en) Apparatus and method for calculating risk of web site
KR101186400B1 (en) Method and apparatus for detecting outlier based on graph
CN107077365A (en) Selectively load the head and/or its part of precompile
CN107783904A (en) Unit testing stake De-weight method, device, computer-readable recording medium and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170301

Termination date: 20201130