CN105988933A - Interface operable node identification method and application test method, device and system - Google Patents
Interface operable node identification method and application test method, device and system Download PDFInfo
- Publication number
- CN105988933A CN105988933A CN201610067809.5A CN201610067809A CN105988933A CN 105988933 A CN105988933 A CN 105988933A CN 201610067809 A CN201610067809 A CN 201610067809A CN 105988933 A CN105988933 A CN 105988933A
- Authority
- CN
- China
- Prior art keywords
- node
- operable
- alternation
- bed
- type
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Embodiments of the invention provide an interface operable node identification method and an application test method, device and system, wherein the interface operable node identification method comprises: determining all nodes in a current application interface; determining effective nodes from all of the nodes according to attributes and types of the nodes; determining an interactive layer from the effective nodes; traversing subnodes of the interactive layer; and selecting operation-possible target nodes from the subnodes of the interactive layer according to attributes and types of the subnodes; using the target nodes as an operable node set of the current application interface. The interface operable node identification method provided in the embodiments of the invention can identify operation-possible nodes in the current application interface, providing test basis for subsequent application compatibility testing.
Description
Technical field
The present invention relates to technical field of data processing, be specifically related to a kind of interface operable node recognition methods,
Application testing method, Apparatus and system.
Background technology
With the development of the intelligent operating system such as Android, IOS, load the intelligent terminal of intelligent operating system
Species gets more and more, and as a example by the smart mobile phone loading Android operation system, its type has just reached thousands of money,
And type newly developed is also increasing progressively;The hardware that used by different types of intelligent terminal and
Software is all different, and therefore when application and development, can test be needed to apply on the intelligent terminal of main flow
Normal operation, the compatibility test namely applied.
By hand trip application as a example by, with smart mobile phone species get more and more, hand trip on stream and
Need before listing to carry out compatibility test, to verify that can hand trip transport on main flow smart mobile phone normally
OK, the exploitation engine such as Cocos2d-x engine etc. of hand trip.
The principle of application compatibility test is mainly, by clicking on the node in applying, node such as UI (User
Interface, user interface) control etc., collect the response results to clicked node for the application and generate compatibility
Property test report.
For promoting efficiency and the precision of application compatibility test, the present inventor considers to be worked as by identification
The node that can be operated in front application interface, carries out follow-up node clicking operation;But, current
Technology is only capable of all of node of identification application, and cannot be to the node that can be operated in current application interface
It is identified, therefore how to provide a kind of interface operable node recognition methods, with to current application interface
In the node that can be operated be identified, the compatibility test for subsequent applications provides test basis, becomes
The problem that those skilled in the art need to consider.
Content of the invention
In view of this, the embodiment of the present invention provides a kind of interface operable node recognition methods, application test
Method, Apparatus and system, to be identified the node that can be operated in current application interface, be follow-up
The compatibility test of application provides test basis.
For achieving the above object, the following technical scheme of embodiment of the present invention offer:
A kind of interface operable node recognition methods, comprising:
Determine all nodes in current application interface;
Attribute according to node and type, determine effective node from described all nodes;
Determining from described effective node can alternation of bed;
Traversal described can the child node of alternation of bed, the attribute according to child node and type, from described can be mutual
The child node of layer is chosen the destination node with operation possibility;
Using described destination node as the operable node set at described current application interface.
The embodiment of the present invention also provides a kind of application testing method, based on the operable joint in interface described above
Point recognition methods, described application testing method includes:
Obtaining the operable node set at current application interface, described operable node set represents described and works as
Front application interface has the node of operation possibility;
Giving the first weighted value for the node in described operable node set, obtain after assignment is operable
Node set;
According to the operable node set after assignment, determine object run node;
Operate described object run node.
The embodiment of the present invention also provides a kind of interface operable node identification device, comprising:
All node determining modules, for determining all nodes in current application interface;
Effective node determining module, for the attribute according to node and type, from described all nodes really
Fixed effective node;
Can alternation of bed determining module, for from described effective node determine can alternation of bed;
Destination node determining module, for travel through described can the child node of alternation of bed, according to the genus of child node
Property and type, from described can choosing the child node of alternation of bed, there is the destination node of operation possibility;
Operable node set determining module, is used for described destination node as described current application interface
Operable node set.
The embodiment of the present invention also provides a kind of application test device, based on the operable joint in interface described above
Point identifies device, and described application test device includes:
Operable node set acquisition module, for obtaining the operable node set at current application interface,
Described operable node set represents that described current application interface has the node of operation possibility;
Weight assignment module, for giving the first weighted value for the node in described operable node set,
Obtain the operable node set after assignment;
Object run node determining module, for according to the operable node set after assignment, determines target
Running node;
Operation module, is used for operating described object run node.
The embodiment of the present invention also provides a kind of application test systems, comprising: testing and control equipment and application set
Standby;
Wherein, described testing and control equipment, obtains current application interface for sending to described application apparatus
The request of operable node set, receive the operable of the current application interface that described application apparatus sends
Node set, described operable node set represents that described current application interface has the joint of operation possibility
Point;Giving the first weighted value for the node in described operable node set, obtain after assignment is operable
Node set;According to the operable node set after assignment, determine object run node;Operate described mesh
Mark running node;
Described application apparatus, for receiving the acquisition current application interface that described testing and control equipment sends
The request of operable node set;Determine all nodes in current application interface;Attribute according to node
And type, from described all nodes, determine effective node;Determining from described effective node can alternation of bed;
Traversal described can the child node of alternation of bed, the attribute according to child node and type, from described can alternation of bed
Child node is chosen the destination node with operation possibility;Described destination node currently should as described
By the operable node set at interface;To the described operable node set of described testing and control equipment feedback.
Based on technique scheme, the interface operable node recognition methods that the embodiment of the present invention provides includes:
Determine all nodes in current application interface;Attribute according to node and type, from described all nodes
The effective node of middle determination;Determining from described effective node can alternation of bed;Traversal is described can the son of alternation of bed
Node, the attribute according to child node and type, from described can choosing the child node of alternation of bed, there is operation
The destination node of possibility;Thus using described destination node as the operable joint at described current application interface
Point set, identifies the operable node at current application interface.It can be seen that the embodiment of the present invention provides
Interface operable node recognition methods, all nodes in current application interface can be identified process,
Thus draw the node in current application interface with operation possibility, based on the current application being identified
Having the node of operation possibility in interface, the follow-up application compatibility test carrying out is carrying out node click
During operation, will be more targeted so that the compatibility test of subsequent applications can be carried out more smoothly.
The interface operable node recognition methods that the embodiment of the present invention provides, can have behaviour in current application interface
The node making possibility is identified, and the compatibility test for subsequent applications provides test basis.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
The accompanying drawing executing required use in example or description of the prior art is briefly described, it should be apparent that below,
Accompanying drawing in description is only embodiments of the invention, for those of ordinary skill in the art, not
On the premise of paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing providing.
The flow chart of the interface operable node recognition methods that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the schematic diagram of application interface interior joint;
Fig. 3 is the method flow of all nodes in embodiment of the present invention offer settled front application interface really
Figure;
The method flow diagram determining effective node from all nodes that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 is the operable node set of Cocos2d-x hand one application interface of trip;
Another flow chart of the interface operable node recognition methods that Fig. 6 provides for the embodiment of the present invention;
Fig. 7 is the schematic diagram of pop-up box;
The flow chart of the application testing method that Fig. 8 provides for the embodiment of the present invention;
Another flow chart of the application testing method that Fig. 9 provides for the embodiment of the present invention;
Another flow chart of the application testing method that Figure 10 provides for the embodiment of the present invention;
The structured flowchart of the interface operable node identification device that Figure 11 provides for the embodiment of the present invention;
The structured flowchart of effective node determining module that Figure 12 provides for the embodiment of the present invention;
Figure 13 for the embodiment of the present invention provide can the structured flowchart of alternation of bed determining module;
The structured flowchart of the destination node determining module that Figure 14 provides for the embodiment of the present invention;
The structured flowchart of all node determining modules that Figure 15 provides for the embodiment of the present invention;
The structured flowchart of the application test device that Figure 16 provides for the embodiment of the present invention;
The structured flowchart of the weight assignment module that Figure 17 provides for the embodiment of the present invention;
The structured flowchart of the object run node determining module that Figure 18 provides for the embodiment of the present invention;
Another structured flowchart of the application test device that Figure 19 provides for the embodiment of the present invention;
The structured flowchart of the application test systems that Figure 20 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
The every other embodiment being obtained under the premise of going out creative work, broadly falls into the scope of protection of the invention.
The flow chart of the interface operable node recognition methods that Fig. 1 provides for the embodiment of the present invention, the method can
Be applied to be mounted with in the application apparatus of application to be tested, application apparatus such as intelligent terminal or for exploitation application
And the equipment etc. with data capability arranging;Idiographic flow can be by the SDK loading in application apparatus
(Software Development Kit, SDK) performs, and SDK can beat with application to be tested
Compile together during bag, as SDK can with Cocos2d-x hand trip packing when together with compile;
With reference to Fig. 1, the interface operable node recognition methods that the embodiment of the present invention provides may include that
Step S100, all nodes determining in current application interface;
The bottom that optional node may be considered UI control represents, the node in application interface specifically includes that
Scene (scene), layer (layer), smart (sprite), and menu (menu), menu item (menultem),
ParticIe system (particle system) etc.;
Fig. 2 shows the schematic diagram of application interface interior joint, as in figure 2 it is shown, the joint in current application interface
Point is a kind of tree-shaped hierarchical structure, can also have child node under node, such as next of scenario node
Hierarchy node is layer, and next hierarchy node of node layer is spirit, menu, particIe system etc., and menu saves
Next hierarchy node of point is menu item etc..
Step S110, according to the attribute of node and type, from described all nodes, determine effective node;
Optionally, the node of the nodal community of embodiment of the present invention definable invalid node, and invalid node
Type, based on nodal community and the node type of defined invalid node, from described all nodes really
Make invalid node, and then from described all nodes, remove invalid node, obtain effective node;
The nodal community of invalid node and node type can according to the type of application and exploitation engine definitions, and
Not fixing, the embodiment of the present invention can adjust the node to invalid node according to actual applicable cases to be tested and belong to
Property and the definition of node type.
Step S120, from described effective node determine can alternation of bed;
Optionally, embodiment of the present invention definable can the node type of alternation of bed, hand over based on defined
The node type of alternating layers, determining from effective node can alternation of bed;Can the node type of alternation of bed can root
According to type and the exploitation engine definitions of application, not fixing, the embodiment of the present invention can be to be tested according to reality
Applicable cases adjusts to can the definition of node type of alternation of bed.
Step S130, traversal described can the child node of alternation of bed, the attribute according to child node and type, from
Described the child node of alternation of bed can be chosen the destination node with operation possibility;
Optionally, embodiment of the present invention definable has attribute and the type of the child node of operation possibility,
Based on the defined attribute of child node with operation possibility and type, from can the child node of alternation of bed
In determine have operation possibility destination node;
There is attribute and the type of the child node of operation possibility, can be according to the type of application and exploitation engine
Definition, does not fix, and the embodiment of the present invention can adjust to having operation according to actual applicable cases to be tested
The nodal community of the child node of possibility and the definition of type;
Destination node refers to can have, in the child node of alternation of bed, the node operating possibility, and having operation can
The node of energy property such as has the operable node of 100% operation possibility;On the other hand, destination node is permissible
Comprise the operable node with 100% operation possibility, and, although operation possibility not up to 100% but
Reach to set the node of percent value.
Step S140, using described destination node as the operable node set at described current application interface.
Determined by the quantity of destination node be multiple, gathering the plurality of destination node can be as working as
The operable node set of front application interface.
The interface operable node recognition methods that the embodiment of the present invention provides comprises determining that current application interface
In all nodes;Attribute according to node and type, determine effective node from described all nodes;
Determining from described effective node can alternation of bed;Traversal described can the child node of alternation of bed, according to child node
Attribute and type, from described can choosing the child node of alternation of bed, there is the destination node of operation possibility;
Thus using described destination node as the operable node set at described current application interface, identify current
The operable node of application interface.
It can be seen that the interface operable node recognition methods that the embodiment of the present invention provides, can answer to current
It is identified processing with all nodes in interface, thus draw and current application interface has operation possibility
Property node, based on the current application interface identified has operation possibility node, follow-up enter
The application compatibility test of row, when carrying out node clicking operation, will be more targeted so that subsequent applications
Compatibility test can carry out more smoothly.The operable node in interface that the embodiment of the present invention provides is known
Other method, can be identified to the node in current application interface with operation possibility, be subsequent applications
Compatibility test provide test basis.
Optionally, below by Cocos2d-x engine exploitation application as a example by (as Cocos2d-x hand trip), right
The interface operable node recognition methods that the embodiment of the present invention provides illustrates;
The application engines such as Cocos2d-x provide director's class, and director's class can associate all of application interface
Scene, the embodiment of the present invention can be determined the scene at current application interface, and then pass through by this director's class
Node layer level structure belonging to the scene at current application interface, all nodes in traversal current application interface,
Determine all nodes at current application interface;
Corresponding, Fig. 3 shows all nodes in embodiment of the present invention offer settled front application interface really
Method flow diagram, with reference to Fig. 3, the method may include that
Step S200, the scene of all of application interface according to director's class association, determine with described currently
The corresponding scene of application interface;
Determined by step S210, traversal, the node layer level structure associated by scene, determines current application circle
All nodes in face.
Optionally, in the case of Cocos2d-x engine, the embodiment of the present invention having in determining all nodes
During effect node, definition invalid node is established rules then really, really establishes rules with invalid node, determines all joints
After invalid node in point, the invalid node in all nodes is removed, then can get effective node;
Invalid node is established rules really, can be attribute and the type defining invalid node, invalid node
The observability of nodal community such as node, state of activation etc., the type of invalid node can be each shown in Fig. 2
One or more defined in the node type of class;Concrete, the embodiment of the present invention can be defined as follows invalid
Node is established rules then really, when node meets following any bar, it is determined that node is invalid;
1st, the attribute of node is sightless;
2nd, the type of node is Menu, MenuItem or UIWidget (UI widget), and isEnable
For false;
If node is temporarily invalid, then can arrange isEnable (enable information) is false (false),
Pop-up box in such as application interface is to exist in UI control, but isEnable is arranged to false.
3rd, there is no child node.
Based on this, Fig. 4 shows the side determining effective node from all nodes that the embodiment of the present invention provides
Method flow chart, with reference to Fig. 4, the method may include that
Step S300, from described all nodes determine invalid node, invalid node is that the attribute of node is
Sightless node, and/or, the type of node is Menu, MenuItem or UIWidget, and isEnable
For the node of false, and/or, there is no the node of child node;
Step S310, from described all nodes, remove described invalid node, obtain effective node.
Optionally, from effective node determine can alternation of bed when, embodiment of the present invention definable can be mutual
Layer is established rules then really, can alternation of bed really establish rules, and can be that define can the node type of alternation of bed;Tool
Body, when meeting following any bar, it is determined that effective node is can alternation of bed;
1st, the type of node is UIWidget or Layer, and isTouchEnabled (touching enable information)
For true (very);
2nd, non-CCLayer (cloth background layer class) node is comprised under Layer.
Optionally, the destination node with operation possibility can be can grasping in the child node of alternation of bed
Making node (as clicked on node), what operable node represented is the node with 100% operation possibility,
It necessarily can be performed the operations such as click;
The operable node of embodiment of the present invention definable is established rules then really, and operable node is really established rules and then may be used
To be attribute and the type defining operable node;Concrete, the embodiment of the present invention can be by can alternation of bed
Child node node attribute be visible and activate, and node type be Button (button) or
(CCControlButton is the UI that Cocos2d-x newly encapsulates to CCControlButton, the UI of similar OC
Or CCScale9Sprite (CCScale9Sprite to as if the deformation of a kind of CCSprite object) Button)
Child node be defined as operable node;Determined by operable node can arrange Button mark;
Optionally, there is the destination node of operation possibility in addition to comprising operable node, can also wrap
Containing potential operable node;Potential operable node refers to that operation possibility is less than 100%, but operates
Possibility reaches to set percent value, however not excluded that may be performed the node of the operation such as click, such as picture or
The node of person's literal type, in some application interface the node of picture or literal type be set in order to
Can click on, but in some application interface, the node of picture or literal type is only the expression of picture or word;
The potential operable node of embodiment of the present invention definable is established rules then really, potential operable node
Really establish rules, can be attribute and the type defining potential operable node;Concrete, the present invention
Embodiment the child node node attribute of alternation of bed can will can be visible and activate, and node type is picture
Or the child node of word is defined as potential operable node;Determined by potential operable node permissible
The marks such as IMG, TXT or OTHER are set.
Optionally, after determining operable node and potential operable node, the embodiment of the present invention can
Operable node and potential operable node are defined as the operable node set at current application interface;
Fig. 5 shows the operable node set of Cocos2d-x hand one application interface of trip, can refer to, with Fig. 5 institute
Show operable node set, it can be seen that the operable node set at current application interface is tree-shaped control
Tree construction.
Preferably, being identified as application with the operable node in interface swimming Cocos2d-x hand, Fig. 6 shows this
Another flow chart of the interface operable node recognition methods that inventive embodiments provides, with reference to Fig. 6, the method
May include that
Step S400, the scene of all of application interface associating according to director's class, determine and current application
The corresponding scene in interface;
Determined by step S410, traversal, the node layer level structure associated by scene, determines current application circle
All nodes in face;
Step S420, from described all nodes determine invalid node, invalid node is that the attribute of node is
Sightless node, and/or, the type of node is Menu, MenuItem or UIWidget, and isEnable
For the node of false, and/or, there is no the node of child node;
Step S430, from described all nodes, remove described invalid node, obtain effective node;
Step S440, from described effective node determine can alternation of bed, can alternation of bed be described effective node
The type of interior joint is UIWidget or Layer, and the node that isTouchEnabled is true, or, described
Effective node comprises the Layer of non-CCLayer node;
Step S450, traversal described can child node under alternation of bed, by can the child node interior joint of alternation of bed
Attribute is visible and activates, and node type be Button or CCControlButton or
The child node of CCScale9Sprite is defined as operable node;By can the child node node attribute of alternation of bed
It is visible and activates, and node type is that the child node of picture or word is defined as potential operable node;
Step S460, build operable node with described operable node and described potential operable node
Set.
Optionally, the embodiment of the present invention can extract the node name of operable node, potential operable node
Node name, by the node famous prime minister set of the node name of operable node and potential operable node, structure
Build out operable node set;
Further, obtained operable node set can be presented in list;Optionally, this
Bright embodiment can arrange operable node listing, with described operable node and described potential operable joint
Point builds operable node listing, thus represents described operable node set with operable node listing.
After obtaining operable node set, the embodiment of the present invention can be entered according to described operable node set
Row application compatibility test.For ease of explanation the embodiment of the present invention provide application compatibility test with existing
The difference of compatibility test, below the process of first brief introduction existing application compatibility test.
In prior art, application compatibility test is first to determine all of UI control of application, then writes note
Record has the script of each control click order, and then carrys out the UI clicking in application sequentially by performing this script
Control, obtains compatibility test report by the response results of application after click UI control, reaches application
Compatibility test purpose;
But during performing script, there is the situation of pop-up box, pop-up box is as it is shown in fig. 7, and eject
This control of frame is not in the control click order of script logging, owing to pop-up box is by the control of covering part
Part content, it would be possible to next control that need to click on causing script originally to record is ejected frame and covers, and causes
Script cannot perform need to click on the click of control to next forever so that the compatibility test of application exists different
Often, it is impossible to perform smoothly.
Based on the problem of existing application compatibility test, the embodiment of the present invention can be applied at any one time
It during compatibility test, is both needed to based on interface provided above operable node recognition methods, determine current
The operable node set of application interface, then decision-making currently should operate in this operable node set
Which node (i.e. control), thus operate the node that decision-making goes out, and then based on the response results of application,
The compatibility test that is applied is reported;Due to each node in operable node set be all there is operation can
Can property, therefore need running node based on this operable node set institute decision-making, what it can be operated can
Energy property is very big, improves the possibility that application compatibility test performs smoothly.
Corresponding, Fig. 8 shows the flow chart of the application testing method that the embodiment of the present invention provides, the method
Can be based on the operable node recognition methods of above-described interface;The application test that the embodiment of the present invention provides
Method can be applicable to testing and control equipment (such as PC), testing and control equipment can be mounted with application to be tested
Application apparatus communicate, by sending test instruction to the application apparatus being mounted with application to be tested, real
The compatibility test now applied;
Optionally, if the data-handling capacity being mounted with the application apparatus of application to be tested sufficiently strong (as
There is multiple data processing core), then the application testing method that the embodiment of the present invention provides also apply be applicable to
It is mounted with the application apparatus of application to be tested;
With reference to Fig. 8, the application testing method that the embodiment of the present invention provides may include that
Step S500, the operable node set obtaining current application interface, described operable node set
Represent that described current application interface has the node of operation possibility;
Optionally, testing and control equipment can send operable to the application apparatus being mounted with application to be tested
The request of node set;Application apparatus can be based on operable node recognition methods (tool in interface mentioned above
Body process corresponding part as detailed above, here is omitted), identify the operable of current application interface
Node set, and feed back to testing and control equipment.
Step S510, give the first weighted value for the node in described operable node set, obtain assignment
After operable node set;
The embodiment of the present invention can be according to the type of node, node number of operations, and the rendering order of node is
Node gives the first weighted value;First weighted value only represents by the type of node, node number of operations,
The rendering order of node is this class weighted value determined by node, is not to determine specific weight numerical value
Justice.
Step S520, according to the operable node set after assignment, determine object run node;
Optionally, the embodiment of the present invention can be according to the power of each node in the operable node set after assignment
Weight values, determines object run node;
Preferably, for making the compatibility test of application and user wish that the node of operation fits, this
Bright also can setting user-defined wishes running node set, by the operable node set after assignment and institute
State after wishing that running node set combines, with the node weight weight values in the set after combination, determine target
Running node.
Step S530, operate described object run node.
Optionally, testing and control equipment is after determining object run node, operable described object run
Node.
Optionally, if after operation object run node, there is application crashes, without abnormal conditions such as responses,
Then can determine that test is abnormal, report abnormal conditions, and pull-up application test again;If operation target behaviour
After making node, apply properly functioning and fed back response results, then can just corresponding with response results applying
Interface (next current application interface), again carries out application test, circulates according to this, then may be used with Fig. 8 method
Draw the response results after operating different object run nodes, provide comprehensive compatibility test
Report.
The application testing method providing due to the embodiment of the present invention, can operable based on current application interface
Node set selects the object run node that need to operate, and operable node set indicates described and currently should
Have the node of operation possibility with interface, therefore selected object run node can be performed click etc.
The possibility of operation greatly (contains the situation that selected object run node is pop-up box), promotes
The possibility that application compatibility test performs smoothly.
Optionally, when giving the first weighted value for the node in described operable node set, the present invention
Embodiment can be according to the type of node, node number of operations, and the rendering order of node is carried out;
Concrete, the corresponding type weight of each node type of embodiment of the present invention definable, thus for grasping
Make each node in node set and give type weight corresponding with node type;Such as Button type node
Type weight the highest (corresponding above-described operable node), type weight next for IMG and TXT
Type node (corresponding above-described potential operable node), type weight again for other classes
Type node;Concrete node type corresponding particular type weight, can define according to actual conditions;
Embodiment of the present invention definable degree of node weight, with the increasing of number of operations of node,
Degree of node weight reduces therewith;If a certain degree of node weight is 10, when this node clicked
When secondary, then degree of node weight is reduced to 9 by 10;
Embodiment of the present invention definable node render weight, the rendering order of node is more forward, renders power
Heavily bigger, it is less that the rendering order of node then renders weight more rearward;Rendering order is more forward more is possible to
It is pop-up box;
Therefore, the embodiment of the present invention is for each node in operable node set, can be according to node type
Determining type weight, according to node number of operations determined number weight, the rendering order according to node is true
Surely weight is rendered;In conjunction with the type weight of node, number of times weight is defined as what node gave with rendering weight
First weighted value;Optionally, the embodiment of the present invention can directly by the type weight of node, number of times weight and
Render weight to be added, as the first weighted value of node, it is clear that be also not excluded for other calculation.
Preferably, the operable node set at current application interface can wish running node with user-defined
Set combines so that the final object run node determining with user desired operation more press close to,
So that the compatibility test of application is wished to fit with user.
Corresponding, Fig. 9 shows another flow chart of the application testing method that the embodiment of the present invention provides, ginseng
According to Fig. 9, the method may include that
Step S600, the operable node set obtaining current application interface, described operable node set
Indicate that described current application interface has the node of operation possibility;
Step S610, give the first weighted value for the node in described operable node set, obtain assignment
After operable node set;
For in operable node set node give the first weighted value concrete mode can refer to above-mentioned accordingly
Part;
Optionally, the embodiment of the present invention also can arrange blacklist node, for described operable node set
In node give the first weighted value when, can from before the operable node set after assignment or assignment can
Running node set filters out blacklist node.
Step S620, by the operable node set after assignment, with the hope running node set pre-seting
Merge mutually, determine node set to be operated;
Wish that running node collection is combined into the set of the user-defined node being desired with operation, in it is concrete
Hold the information of the mainly user-defined node wishing operation, and user is for wishing the node definition of operation
The second weighted value;Second weighted value only represents that user is weighted value defined in the node wishing operation,
And refer not to specific weighted value;
The preset mode wishing running node set can be: obtains to be measured by the SDK of application to be tested
(it is pre-that the UI control tree of i.e. default application interface includes this to the UI control tree of the default application interface of examination application
If all nodes of application interface), and the position that the UI control in UI control tree is in this default application interface
Put (i.e. position in default application interface for the node);And then choose uncommon from acquired UI control tree
Hope the UI control (i.e. choosing the node wishing operation from all nodes of default application interface) of operation,
The quantity of UI control wishing operation can be at least one;Test rule are set to selected UI control again
Then (i.e. node definition the second weighted value to selected hope operation), running node is wished to be formed
Set;
Visible, the embodiment of the present invention can obtain presetting of application to be tested by the SDK of application to be tested should
With all nodes at interface;The node wishing operation is chosen from all nodes of described default application interface;
Each node definition the second weighted value to selected hope operation, forms and wishes running node set.
Optionally, by the operable node set after assignment, with the hope running node set phase pre-seting
The detailed process merging can be: by the operable node set after assignment with described wish running node collection
Node identical in conjunction is unified, and the weight arranging unified node is corresponding second weighted value,
Retain the operable node set after assignment and the described different nodes wished in running node set simultaneously,
Retain the former weighted value of variant node;
The former weighted value retaining different node refers to, for the running node set after assignment and described system
Different nodes in running node set, if node belong to assignment after running node set, then node
Retaining former first weighted value, if node belongs to wishes running node set, then node retains the former second power
Weight values;
For example: the operable node set after assignment has two nodes of A and B, and first weighted value of A
For a, first weighted value of B is b1;And wish that running node set has two nodes of B and C, node B
The second weighted value be b2, second weighted value of node C is c;
By the operable node set after assignment with when wishing that running node set merges, can unite one or two
The node B all having in set, only retains a B, the simultaneously weight with the second weighted value b2 definition node B;
Prime information be can all retain for different node A and node C in two set, node A and weight i.e. retained
Value does not become a, retains node C and weight does not become c, and then determines and include A (weight is a), B (power
It is heavily b2) and the node set to be operated of C (weight is c);
Optionally, after the hope running node set pre-seting can first filter out blacklist node, then with tax
Operable node set phase after value merges.
Step S630, the weighted value according to node set interior joint to be operated, determine object run node;
Optionally, the node that the embodiment of the present invention can be treated in running node set with the size of weighted value enters
Row sequence, weighted value is bigger, then node sequencing is more before examination, and weighted value is less, then node sequencing is more rearward,
Thus according to the clooating sequence of node, determine that the node that clooating sequence conforms to a predetermined condition is object run joint
Point, as determined, the node that clooating sequence is first is that object run node (i.e. determines the joint of weighted value maximum
Point is object run node);
Optionally, the embodiment of the present invention is for each node in node set to be operated, it may be determined that node weight
The weight ratio of total weighted value of weight values and node set to be operated, total weighted value is each node in set
Weighted value sum, thus using determined by node weight ratio as node be targeted operation joint
The probability of point, thus it is targeted the probability of running node with each node, at random from node to be operated
Set is determined object run node.
Step S640, operate described object run node.
If after operation object run node, there is application crashes, without abnormal conditions such as responses, then can be true
Location survey examination is abnormal, reports abnormal conditions, and pull-up application test again;If operation object run node
After, apply properly functioning and fed back response results, then can just application interface corresponding with response results (under
One current application interface), again carry out application test with Fig. 9 method, circulate according to this, then can draw to not
With object run node operate after response results, provide comprehensive compatibility test report.
Optionally, the process operating object run node may is that the node name determining object run node
Claim, determine corresponding virtual render with described nodename, determine with described virtual render corresponding
bounding box;Obtain the scaling of object run node according to described bounding box;According to institute
State scaling and calculate object run size of node, described size is converted into world coordinates, by described
World coordinates is converted to the screen coordinate of application apparatus;
After the screen coordinate obtaining object run node, the embodiment of the present invention can described screen coordinate
Central point is as operating position, thus realizes the operation to object run node;
Optionally, the Action Events such as click for screen, the embodiment of the present invention can be carried by cocos2d-x
System interface handleTouchesBegin, handleTouchesMove and handleTouchesEnd of confession,
Process the Action Events such as screen taps at engine layers.
Preferably, Figure 10 has gone out another flow chart of the application testing method that the embodiment of the present invention provides, ginseng
According to Figure 10, the method may include that
Step S700, the operable node set obtaining current application interface, described operable node set
Represent that described current application interface has the node of operation possibility;
Step S710, for each node in operable node set, determine that type is weighed according to node type
Weight, according to node number of operations determined number weight, the rendering order determination according to node renders weight;
Step S720, for each node in operable node set, in conjunction with the type weight of node, secondary
Number weight is defined as, with rendering weight, the first weighted value that node gives, and obtains the operable node after assignment
Set;
Step S730, transfer preset hope running node set, described wish running node set expression
The node of preset hope operation, and for wishing the second weighted value of the node definition of operation;
Step S740, by the operable node set after assignment and phase in preset hope running node set
Same node is unified, and the weight arranging node after reunification is corresponding second weighted value, retains institute
State the operable node set after assignment and the described different nodes wished in running node set, and retain
The former weighted value of different nodes, obtains node set to be operated;
Step S750, for each node in node set to be operated, calculate node weight weight values with to be operated
The weight ratio of total weighted value of node set, using determined by the weight ratio of node as node by really
Be set to the probability of object run node, be targeted the probability of running node with each node, at random from
Node set to be operated is determined object run node;
Step S760, operate described object run node.
The application testing method that the embodiment of the present invention provides can obtain the operable set of node at current application interface
Close, and give weighted value for the node in operable node set, and then grasping of weighted value will be imparted
Make node set to merge with preset hope running node set, obtain node set to be operated, from
And with the weighted value of each node in node set to be operated, random chooses mesh from node set to be operated
Mark running node, in order to operate object run node, it is achieved the compatibility test of application, promotes
The possibility that application compatibility test performs smoothly.
Optionally, after the operable node set determining current application interface, the embodiment of the present invention also may be used
Write script based on the operable node set at current application interface, by the nodal operation of record in script
Sequentially, realize the operation of node, reach the compatibility test of application;And it is not limited to mentioned above determining
Plan currently should operate the mode of which node in operable node set, or node set to be operated.
The interface operable node identification device providing the embodiment of the present invention below is introduced, and hereafter retouches
The interface operable node identification device stated, can be with above-described interface operable node recognition methods phase
Mutually to should refer to.
The structured flowchart of the interface operable node identification device that Figure 11 provides for the embodiment of the present invention, this dress
Put the application apparatus that can be applicable to be mounted with application to be tested, application apparatus such as intelligent terminal or for exploitation should
With and the equipment etc. with data capability that arranges;
With reference to Figure 11, the interface operable node identification device that the embodiment of the present invention provides may include that
All node determining modules 100, for determining all nodes in current application interface;
Effective node determining module 110, for the attribute according to node and type, from described all nodes
Determine effective node;
Can alternation of bed determining module 120, for from described effective node determine can alternation of bed;
Destination node determining module 130, for travel through described can the child node of alternation of bed, according to child node
Attribute and type, have the destination node of operation possibility from described can choosing the child node of alternation of bed;
Operable node set determining module 140, is used for described destination node as described current application circle
The operable node set in face.
Optionally, Figure 12 shows that the one of effective node determining module 110 that the embodiment of the present invention provides can
Selecting structure, with reference to Figure 12, this effective node determining module 110 may include that
Invalid node determining unit 111, for the nodal community according to predefined invalid node and node class
Type, determines invalid node from described all nodes;
Removal unit 112, for removing invalid node from described all nodes, obtains effective node.
Optionally, under the applicable cases developed with Cocos2d-x engine, invalid node determining unit 111
Be particularly used in, from described all nodes determine invalid node, invalid node be the attribute of node be not
Visible node, and/or, the type of node is Menu, MenuItem or UIWidget, and isEnable
For the node of false, and/or, there is no the node of child node.
Optionally, Figure 13 show that the embodiment of the present invention provides can the one of alternation of bed determining module 120 can
Select structure, with reference to Figure 13, can alternation of bed determining module 120 may include that
Alternation of bed can determine performance element 121, for according to predefined can the node type of alternation of bed, from
Determining in described effective node can alternation of bed.
Optionally, under the applicable cases developed with Cocos2d-x engine, alternation of bed performance element can be determined
121 are particularly used in, determine from described effective node can alternation of bed, can alternation of bed be the type of node
It is UIWidget or layer Layer, and the node that isTouchEnabled is true.
Optionally, Figure 14 shows that the one of the destination node determining module 130 that the embodiment of the present invention provides can
Selecting structure, with reference to Figure 14, destination node determining module 130 may include that
Destination node determines performance element 131, for according to the predefined child node with operation possibility
Attribute and type, from the child node of alternation of bed can be determined the destination node with operation possibility.
Optionally, under the applicable cases developed with Cocos2d-x engine, destination node determines performance element
131 are particularly used in, from can determine have the operable of 100% operation possibility the child node of alternation of bed
Node, described operable node is for the child node node attribute of alternation of bed can being visible and activate, and joint
Vertex type is the child node of Button or CCControlButton or CCScale9Sprite;
And, from the child node of alternation of bed can determine potential operable node, described potential operable
Node is for the child node node attribute of alternation of bed can being visible and activate, and node type is picture or literary composition
The child node of word.
Optionally, under the applicable cases developed with Cocos2d-x engine, Figure 15 shows that the present invention implements
The optional structure of one of all node determining modules 100 that example provides, with reference to Figure 15, all nodes determine mould
Block 100 may include that
Scene determining unit 101, for the scene of all of application interface according to director's class association, determines
The corresponding scene with described current application interface;
Node traverses unit 102, for the node layer level structure associated by scene determined by traversal, determines
All nodes at current application interface.
The application test device providing the embodiment of the present invention below is introduced, and application described below is surveyed
Electricity testing device can be with above-described application testing method mutually to should refer to.
The structured flowchart of the application test device that Figure 16 provides for the embodiment of the present invention, the embodiment of the present invention carries
The application test device of confession can be based on interface operable node identification device mentioned above, and the present invention implements
The application test device that example provides can be applicable to testing and control equipment, and testing and control equipment can need with loading
The application apparatus of test application communicates, by sending test to the application apparatus being mounted with application to be tested
Instruction, it is achieved the compatibility test of application;
With reference to Figure 16, the application test device that the embodiment of the present invention provides may include that
Operable node set acquisition module 200, for obtaining the operable set of node at current application interface
Closing, described operable node set represents that described current application interface has the node of operation possibility;
Weight assignment module 210, for giving the first weight for the node in described operable node set
Value, obtains the operable node set after assignment;
Object run node determining module 220, for according to the operable node set after assignment, determines mesh
Mark running node;
Operation module 230, is used for operating described object run node.
Optionally, Figure 17 shows the optional knot of one of the weight assignment module 210 that the embodiment of the present invention provides
Structure, with reference to Figure 17, weight assignment module 210 may include that
Assignment performance element 211, for for each node in described operable node set, according to node
Type, node number of operations, the rendering order of node be node give the first weighted value.
Optionally, assignment performance element 211 is particularly used in, for each joint in operable node set
Point, according to the corresponding type weight of predefined each node type, gives corresponding to node type for node
Type weight;For each node in operable node set, according to node number of operations, for joint
Point gives number of times weight, and wherein as the number of operations of node increases, degree of node weight subtracts therewith
Little;For each node in operable node set, according to the rendering order of node, give wash with watercolours for node
Dye weight, wherein, the rendering order of node is more forward, renders weight bigger, and the rendering order of node is got over
Then render weight rearward less;For each node in operable node set, in conjunction with the type power of node
Weight, number of times weight is defined as, with rendering weight, the first weighted value that node gives.
Optionally, Figure 18 shows the one of the object run node determining module 220 that the embodiment of the present invention provides
Planting optional structure, with reference to Figure 18, object run node determining module 220 may include that
Combining unit 221, for by the operable node set after assignment, with the hope operation joint pre-seting
Point set is harmonious simultaneously, determines node set to be operated;Described wish running node set expression wish operation
The information of node, and for wishing the second weighted value of the node definition of operation;
Object selection unit 222, for the weighted value according to node set interior joint to be operated, determines target
Running node.
Optionally, combining unit 221 is particularly used in, by the operable node set after assignment and described uncommon
Hope that in running node set, identical node is unified, and the weight arranging unified node is corresponding
Operable node set after second weighted value, and reservation assignment is wished in running node set with described
Different nodes, retain the former weighted value of variant node, obtain node set to be operated.
Optionally, Object selection unit 222 is particularly used in, in described node set to be operated
Each node, determines the weight ratio of node weight weight values and total weighted value of node set to be operated;For institute
State each node in node set to be operated, using determined by the weight ratio of node be determined as node
Probability for object run node;It is targeted the probability of running node with each node, at random from institute
State and node set to be operated is determined object run node.
Optionally, Figure 19 shows that another structured flowchart of device is tested in the application that the embodiment of the present invention provides,
In conjunction with shown in Figure 16 and Figure 19, this application test device can also include:
Abnormality processing module 240, if after for operation object run node, application is abnormal, it is determined that survey
Examination is abnormal, reports abnormal conditions, and pull-up application test again;
Circulation trigger module 250, if after for operation object run node, applying properly functioning and feed back
Response results, then carry out application test to next current application interface.
The application test systems providing the embodiment of the present invention below is introduced, and application described below is surveyed
Test system can be with the operable node recognition methods of above-described interface, and application testing method is mutually corresponding
Reference.
The structured flowchart of the application test systems that Figure 20 provides for the embodiment of the present invention, with reference to Figure 20, application
Test system may include that testing and control equipment 10 and application apparatus 20;
Testing and control equipment 10, obtains the operable of current application interface for sending to described application apparatus
The request of node set, receives the operable node set at the current application interface that described application apparatus sends,
Described operable node set represents that described current application interface has the node of operation possibility;For described
Node in operable node set gives the first weighted value, obtains the operable node set after assignment;
According to the operable node set after assignment, determine object run node;Operate described object run node;
Application apparatus 20, for receive described testing and control equipment send acquisition current application interface can
The request of running node set;Determine all nodes in current application interface;Attribute according to node and
Type, determines effective node from described all nodes;Determining from described effective node can alternation of bed;
Traversal described can the child node of alternation of bed, the attribute according to child node and type, from described can alternation of bed
Child node is chosen the destination node with operation possibility;Described destination node currently should as described
By the operable node set at interface;To the described operable node set of described testing and control equipment feedback.
The node in current application interface with operation possibility can be identified by the embodiment of the present invention, makes
When must carry out application compatibility test, selected running node can be performed the possibility of the operations such as click
Greatly, the possibility that application compatibility test performs smoothly is improved.
In this specification, each embodiment uses the mode gone forward one by one to describe, and each embodiment stresses
Being the difference with other embodiments, between each embodiment, identical similar portion sees mutually.
For device disclosed in embodiment, owing to it corresponds to the method disclosed in Example, so describing
Fairly simple, related part sees method part and illustrates.
Professional further appreciates that, respectively shows in conjunction with what the embodiments described herein described
The unit of example and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in,
In order to clearly demonstrate the interchangeability of hardware and software, general according to function in the above description
Describe composition and the step of each example.These functions perform with hardware or software mode actually,
Depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can be specific to each
Should be used for use different methods to realize described function, but this realize it is not considered that beyond this
The scope of invention.
The method describing in conjunction with the embodiments described herein or the step of algorithm can directly use hardware,
The software module that processor performs, or the combination of the two implements.Software module can be placed in and deposit at random
Reservoir (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electric erasable can
In programming ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field known
In any other form of storage medium.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses
The present invention.Multiple modifications to these embodiments will be aobvious and easy for those skilled in the art
See, generic principles defined herein can without departing from the spirit or scope of the present invention,
Realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein,
And it is to fit to the wide scope consistent with principles disclosed herein and features of novelty.
Claims (23)
1. the operable node recognition methods in an interface, it is characterised in that include:
Determine all nodes in current application interface;
Attribute according to node and type, determine effective node from described all nodes;
Determining from described effective node can alternation of bed;
Traversal described can the child node of alternation of bed, the attribute according to child node and type, from described can be mutual
The child node of layer is chosen the destination node with operation possibility;
Using described destination node as the operable node set at described current application interface.
2. the operable node in interface according to claim 1 recognition methods, it is characterised in that described
Attribute according to node and type, determine that effective node includes from described all nodes:
Nodal community according to predefined invalid node and node type, determine from described all nodes
Go out invalid node;
Remove invalid node from described all nodes, obtain effective node;
Described determine from described effective node and can alternation of bed include:
According to predefined can the node type of alternation of bed, determining from described effective node can alternation of bed.
3. the operable node in interface according to claim 1 recognition methods, it is characterised in that described
Attribute according to child node and type, have operation possibility from described can choosing the child node of alternation of bed
Destination node include:
According to the predefined attribute of child node with operation possibility and type, from can the son of alternation of bed
Node is determined the destination node with operation possibility.
4. the operable node in interface according to claim 1 recognition methods, it is characterised in that described
Determine that all nodes in current application interface include:
The scene of all of application interface according to director's class association, determines and described current application interface pair
The scene answered;
Node layer level structure associated by scene determined by traversal, determines all joints at current application interface
Point.
5. the operable node in interface according to claim 2 recognition methods, it is characterised in that described
Nodal community according to predefined invalid node and node type, determine nothing from described all nodes
Effect node includes:
From described all nodes determine invalid node, invalid node be the attribute of node be sightless joint
Point, and/or, the type of node is menu Menu, menu item MenuItem or UI widget
UIWidget, and the node that information isEnable that enables is false false, and/or, there is no the node of child node.
6. the operable node in interface according to claim 2 recognition methods, it is characterised in that described
According to predefined can the node type of alternation of bed, determine and can alternation of bed include from described effective node:
Determine from described effective node can alternation of bed, can alternation of bed be the type of node be UIWidget
Or layer Layer, and touch the node that enable information isTouchEnabled is true true.
7. the operable node in interface according to claim 3 recognition methods, it is characterised in that described
According to the predefined attribute of child node with operation possibility and type, from can the child node of alternation of bed
In determine have operation possibility destination node include:
From the child node of alternation of bed can determine the operable node with 100% operation possibility, described can
Running node is for the child node node attribute of alternation of bed can being visible and activate, and node type is
The child node of Button or CCControlButton or CCScale9Sprite;
And, from the child node of alternation of bed can determine potential operable node, described potential operable
Node is for the child node node attribute of alternation of bed can being visible and activate, and node type is picture or literary composition
The child node of word.
8. an application testing method, it is characterised in that based on the boundary described in any one of claim 1-7
Face operable node recognition methods, described application testing method includes:
Obtaining the operable node set at current application interface, described operable node set represents described and works as
Front application interface has the node of operation possibility;
Giving the first weighted value for the node in described operable node set, obtain after assignment is operable
Node set;
According to the operable node set after assignment, determine object run node;
Operate described object run node.
9. application testing method according to claim 8, it is characterised in that described grasp for described
Make imparting the first weighted value of the node in node set to include:
For each node in described operable node set, according to the type of node, node has operated secondary
Number, the rendering order of node is that node gives the first weighted value.
10. application testing method according to claim 9, it is characterised in that described for described
Each node in operable node set, according to the type of node, node number of operations, the wash with watercolours of node
Dye order gives the first weighted value for node and includes:
For each node in operable node set, according to the corresponding type of predefined each node type
Weight, gives type weight corresponding with node type for node;
For each node in operable node set, according to node number of operations, give secondary for node
Number weight, wherein as the number of operations of node increases, degree of node weight reduces therewith;
For each node in operable node set, according to the rendering order of node, give wash with watercolours for node
Dye weight, wherein, the rendering order of node is more forward, renders weight bigger, and the rendering order of node is got over
Then render weight rearward less;
For each node in operable node set, in conjunction with the type weight of node, number of times weight and wash with watercolours
Dye weight is defined as the first weighted value that node gives.
11. application testing methods described in-10 any one according to Claim 8, it is characterised in that described
According to the operable node set after assignment, determine that object run node includes:
By the operable node set after assignment, merge with the hope running node set phase pre-seting, really
Fixed node set to be operated;Described wish that running node set expression wishes the information of node of operation, and
The second weighted value for the node definition of hope operation;
According to the weighted value of node set interior joint to be operated, determine object run node.
12. application testing methods according to claim 11, it is characterised in that described hope operates
The setting up procedure of node set includes:
Obtained all nodes of the default application interface of application to be tested by the SDK of application to be tested;
The node wishing operation is chosen from all nodes of described default application interface;
Each node definition the second weighted value to selected hope operation, forms and wishes running node set.
13. application testing methods according to claim 11, it is characterised in that described by after assignment
Operable node set, merge with the hope running node set phase pre-seting, determine node to be operated
Set includes:
With described, operable node set after assignment is wished that node identical in running node set is carried out
Unify, and the weight arranging unified node is corresponding second weighted value, and retain grasping after assignment
Make node set and the described different nodes wished in running node set, retain the former power of variant node
Weight values, obtains node set to be operated.
14. application testing methods according to claim 13, it is characterised in that described basis is waited to grasp
Make the weighted value of node set interior joint, determine that object run node includes:
For each node in described node set to be operated, determine node weight weight values and set of node to be operated
The weight ratio of the total weighted value closing;
For each node in described node set to be operated, using determined by node weight ratio as
Node is targeted the probability of running node;
It is targeted the probability of running node with each node, at random from described node set to be operated
Determine object run node.
15. application testing methods according to claim 8, it is characterised in that also include:
If after operation object run node, application is abnormal, it is determined that test is abnormal, reports abnormal conditions,
And pull-up application test again;
If after operation object run node, applying properly functioning and fed back response results, then to next
Current application interface carries out application test.
The operable node identification device in 16. 1 kinds of interfaces, it is characterised in that include:
All node determining modules, for determining all nodes in current application interface;
Effective node determining module, for the attribute according to node and type, from described all nodes really
Fixed effective node;
Can alternation of bed determining module, for from described effective node determine can alternation of bed;
Destination node determining module, for travel through described can the child node of alternation of bed, according to the genus of child node
Property and type, from described can choosing the child node of alternation of bed, there is the destination node of operation possibility;
Operable node set determining module, is used for described destination node as described current application interface
Operable node set.
The 17. operable node identification devices in interface according to claim 16, it is characterised in that institute
State effective node determining module to include:
Invalid node determining unit, for the nodal community according to predefined invalid node and node type,
Determine invalid node from described all nodes;
Removal unit, for removing invalid node from described all nodes, obtains effective node;
Described can alternation of bed determining module include:
Alternation of bed can determine performance element, for according to predefined can the node type of alternation of bed, from institute
State that determine in effective node can alternation of bed.
The 18. operable node identification devices in interface according to claim 16, it is characterised in that institute
State destination node determining module to include:
Destination node determines performance element, for according to the predefined child node with operation possibility
Attribute and type, from can determine the destination node with operation possibility the child node of alternation of bed.
The 19. operable node identification devices in the interface according to any one of claim 16-18, its feature
Being, described all node determining modules include:
Scene determining unit, for the scene of all of application interface according to director's class association, determine with
The corresponding scene in described current application interface;
Node traverses unit, for the node layer level structure associated by scene determined by traversal, determines and works as
All nodes of front application interface.
20. 1 kinds of application test devices, it is characterised in that based on described in any one of claim 16-19
Interface operable node identification device, described application test device includes:
Operable node set acquisition module, for obtaining the operable node set at current application interface,
Described operable node set represents that described current application interface has the node of operation possibility;
Weight assignment module, for giving the first weighted value for the node in described operable node set,
Obtain the operable node set after assignment;
Object run node determining module, for according to the operable node set after assignment, determines target
Running node;
Operation module, is used for operating described object run node.
21. application according to claim 20 test devices, it is characterised in that described weight assignment
Module includes:
Assignment performance element, for for each node in described operable node set, according to node
Type, node number of operations, the rendering order of node is that node gives the first weighted value.
The 22. application test devices according to claim 20 or 21, it is characterised in that described mesh
Mark running node determining module includes:
Combining unit, for by the operable node set after assignment, with the hope running node pre-seting
Set merges mutually, determines node set to be operated;Described wish running node set expression wish operation
The information of node, and for wishing the second weighted value of the node definition of operation;
Object selection unit, for the weighted value according to node set interior joint to be operated, determines that target is grasped
Make node.
23. 1 kinds of application test systems, it is characterised in that include: testing and control equipment and application apparatus;
Wherein, described testing and control equipment, obtains current application interface for sending to described application apparatus
The request of operable node set, receive the operable of the current application interface that described application apparatus sends
Node set, described operable node set represents that described current application interface has the joint of operation possibility
Point;Giving the first weighted value for the node in described operable node set, obtain after assignment is operable
Node set;According to the operable node set after assignment, determine object run node;Operate described mesh
Mark running node;
Described application apparatus, for receiving the acquisition current application interface that described testing and control equipment sends
The request of operable node set;Determine all nodes in current application interface;Attribute according to node
And type, from described all nodes, determine effective node;Determining from described effective node can alternation of bed;
Traversal described can the child node of alternation of bed, the attribute according to child node and type, from described can alternation of bed
Child node is chosen the destination node with operation possibility;Described destination node currently should as described
By the operable node set at interface;To the described operable node set of described testing and control equipment feedback.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610067809.5A CN105988933B (en) | 2016-01-29 | 2016-01-29 | The operable node recognition methods in interface, application testing method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610067809.5A CN105988933B (en) | 2016-01-29 | 2016-01-29 | The operable node recognition methods in interface, application testing method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105988933A true CN105988933A (en) | 2016-10-05 |
CN105988933B CN105988933B (en) | 2018-09-07 |
Family
ID=57040852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610067809.5A Active CN105988933B (en) | 2016-01-29 | 2016-01-29 | The operable node recognition methods in interface, application testing method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105988933B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832612A (en) * | 2017-10-26 | 2018-03-23 | 北京邮电大学 | API Calls amount predictor method during a kind of Android application programs operation |
CN109144868A (en) * | 2018-08-15 | 2019-01-04 | 无线生活(杭州)信息科技有限公司 | A kind of page judgment method and device |
CN109710353A (en) * | 2018-12-12 | 2019-05-03 | 浙江口碑网络技术有限公司 | Animated element in the page shows method and device |
CN109783343A (en) * | 2017-11-13 | 2019-05-21 | 北京嘀嘀无限科技发展有限公司 | Components testing method, apparatus, client device and computer readable storage medium |
CN111147777A (en) * | 2019-10-12 | 2020-05-12 | 深圳Tcl数字技术有限公司 | Intelligent terminal voice interaction method and device and storage medium |
CN111737105A (en) * | 2020-02-17 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Display interface compatibility testing method and device, electronic equipment and medium |
CN112527689A (en) * | 2021-02-09 | 2021-03-19 | 腾讯科技(深圳)有限公司 | Application testing method and device and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9195572B2 (en) * | 2011-12-16 | 2015-11-24 | Sap Se | Systems and methods for identifying user interface (UI) elements |
CN103853649B (en) * | 2012-11-28 | 2018-09-04 | 百度在线网络技术(北京)有限公司 | A kind of test method and system of application program |
CN104052845B (en) * | 2013-03-11 | 2017-12-15 | 腾讯科技(深圳)有限公司 | Test the method and device of mobile terminal application |
CN104182124B (en) * | 2014-08-25 | 2017-11-03 | 广东欧珀移动通信有限公司 | The operating method and device of mobile terminal |
CN104598380B (en) * | 2015-01-16 | 2017-08-01 | 广东欧珀移动通信有限公司 | A kind of automated testing method and system based on control |
-
2016
- 2016-01-29 CN CN201610067809.5A patent/CN105988933B/en active Active
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832612A (en) * | 2017-10-26 | 2018-03-23 | 北京邮电大学 | API Calls amount predictor method during a kind of Android application programs operation |
CN109783343A (en) * | 2017-11-13 | 2019-05-21 | 北京嘀嘀无限科技发展有限公司 | Components testing method, apparatus, client device and computer readable storage medium |
CN109144868A (en) * | 2018-08-15 | 2019-01-04 | 无线生活(杭州)信息科技有限公司 | A kind of page judgment method and device |
CN109144868B (en) * | 2018-08-15 | 2022-02-01 | 无线生活(杭州)信息科技有限公司 | Page judgment method and device |
CN109710353A (en) * | 2018-12-12 | 2019-05-03 | 浙江口碑网络技术有限公司 | Animated element in the page shows method and device |
CN111147777A (en) * | 2019-10-12 | 2020-05-12 | 深圳Tcl数字技术有限公司 | Intelligent terminal voice interaction method and device and storage medium |
CN111737105A (en) * | 2020-02-17 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Display interface compatibility testing method and device, electronic equipment and medium |
CN112527689A (en) * | 2021-02-09 | 2021-03-19 | 腾讯科技(深圳)有限公司 | Application testing method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105988933B (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105988933A (en) | Interface operable node identification method and application test method, device and system | |
CN109167686B (en) | Layout and display method based on multilayer complex network topology | |
US8291329B2 (en) | Automatically merging graphical programs | |
CN107730196A (en) | Project scheduling management method and terminal device | |
CN113767388A (en) | Techniques for workflow analysis and design task optimization | |
Rufiange et al. | Treematrix: A hybrid visualization of compound graphs | |
CN109213754A (en) | A kind of data processing system and data processing method | |
CN108280291A (en) | Reusable simulation model Interface design and interconnection method, device and computer equipment | |
CN110807015A (en) | Big data asset value delivery management method and system | |
Vehlow et al. | Visualizing dynamic hierarchies in graph sequences | |
CN114762009A (en) | Virtual building generation and utilization method and server | |
CN105808244A (en) | Dynamic data visualized analysis tool based on workflows | |
CN111708849A (en) | Data management method, device, equipment and storage medium | |
CN106228364A (en) | A kind of information demonstrating method and present device | |
CN115098907A (en) | Transformer substation 4D-BIM visualization method and system based on virtual reality | |
CN108197203A (en) | A kind of shop front head figure selection method, device, server and storage medium | |
CN110517018A (en) | A kind of any jump method of node based on activiti workflow and device | |
Karan et al. | A markov decision process workflow for automating interior design | |
CN114511353A (en) | Data analysis method and device | |
CN112288397A (en) | Flow template configuration method, flow execution method and device and electronic equipment | |
JP5937038B2 (en) | Topology diagram creation method and creation program | |
CN114385150A (en) | Low code development method based on intelligent engine | |
CN109359205A (en) | A kind of remote sensing image cutting method and equipment based on geographical grid | |
KR102418853B1 (en) | The bigdata intergared-processing user interface method for increasing interoperability of heterogeneous platforms | |
Bock et al. | A visualization‐based analysis system for urban search & rescue mission planning support |
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 |