CN105988933B - The operable node recognition methods in interface, application testing method, apparatus and system - Google Patents

The operable node recognition methods in interface, application testing method, apparatus and system Download PDF

Info

Publication number
CN105988933B
CN105988933B CN201610067809.5A CN201610067809A CN105988933B CN 105988933 B CN105988933 B CN 105988933B CN 201610067809 A CN201610067809 A CN 201610067809A CN 105988933 B CN105988933 B CN 105988933B
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.)
Active
Application number
CN201610067809.5A
Other languages
Chinese (zh)
Other versions
CN105988933A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610067809.5A priority Critical patent/CN105988933B/en
Publication of CN105988933A publication Critical patent/CN105988933A/en
Application granted granted Critical
Publication of CN105988933B publication Critical patent/CN105988933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test 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

A kind of operable node recognition methods in interface of offer of the embodiment of the present invention, application testing method, apparatus and system, the operable node recognition methods in median surface include:Determine all nodes in current application interface;According to the attribute and type of node, effective node is determined from all nodes;Determination can alternation of bed from effective node;Described in traversal can the child node of alternation of bed the destination node with operation possibility can be chosen in the child node of alternation of bed from described according to the attribute and type of child node;Using the destination node as the operable node set at the current application interface.The operable node recognition methods in interface provided in an embodiment of the present invention can provide test basis to having the node of operation possibility to be identified in current application interface for the compatibility test of subsequent applications.

Description

The operable node recognition methods in interface, application testing method, apparatus and system
Technical field
The present invention relates to technical field of data processing, and in particular to the operable node recognition methods in a kind of interface, using survey Method for testing, apparatus and system.
Background technology
With the development of the intelligent operating systems such as Android, IOS, the type for loading the intelligent terminal of intelligent operating system is more next More, by taking the smart mobile phone for loading Android operation system as an example, type has just reached thousands of moneys, and type newly developed also by Step increases;Since hardware and software used in different types of intelligent terminal is all different, in application and development, need Want test application that can normally be run on the intelligent terminal of mainstream, that is, the compatibility test applied.
By hand trip application for, it is more and more with the type of smart mobile phone, hand trip in the process of development with before listing It needs to carry out compatibility test, can normally be run on mainstream smart mobile phone with verifying hand trip, the exploitation engine of hand trip is such as Cocos2d-x engines etc..
It is mainly using the principle of compatibility test, by clicking the node in applying, node such as UI (User Interface, user interface) control etc., application is collected to being clicked the response results of node to generate compatibility test report.
For the efficiency and precision for promoting using compatibility test, the present inventor considers by identifying current application circle The node that can be operated in face, to carry out subsequent node clicking operation;However, current technology can only be identified using all Node, and the node that can be operated in current application interface can not be identified, therefore how to provide a kind of interface to grasp Make node recognition methods, is that the compatibility of subsequent applications is surveyed so that the node that can be operated in current application interface to be identified Examination provides test basis, becomes those skilled in the art's problem needed to be considered.
Invention content
In view of this, a kind of operable node recognition methods in interface of offer of the embodiment of the present invention, application testing method, device And system provides survey so that the node that can be operated in current application interface to be identified for the compatibility test of subsequent applications Examination basis.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of operable node recognition methods in interface, including:
Determine all nodes in current application interface;
According to the attribute and type of node, effective node is determined from all nodes;
Determination can alternation of bed from effective node;
Described in traversal can alternation of bed child node, according to the attribute and type of child node, from it is described can alternation of bed son section The destination node with operation possibility is chosen in point;
Using the destination node as the operable node set at the current application interface.
The embodiment of the present invention also provides a kind of application testing method, based on the operable node identification side in interface described above Method, the application testing method include:
The operable node set at current application interface is obtained, the operable node set indicates current application circle Face has the node of operation possibility;
The first weighted value is assigned for the node in the operable node set, obtains the operable set of node after assignment It closes;
According to the operable node set after assignment, object run node is determined;
Operate the object run node.
The embodiment of the present invention also provides a kind of operable node identification device in interface, including:
All node determining modules, for determining all nodes in current application interface;
Effective node determining module determines effectively section for the attribute and type according to node from all nodes Point;
Can alternation of bed determining module, for determination can alternation of bed from effective node;
Destination node determining module, for traverse it is described can alternation of bed child node, according to the attribute and type of child node, The destination node with operation possibility can be chosen from described in the child node of alternation of bed;
Operable node set determining module, for using the destination node as the operable of the current application interface Node set.
The embodiment of the present invention also provide it is a kind of applying test device, based on the operable node identification dress in interface described above It sets, the application test device includes:
Operable node set acquisition module, the operable node set for obtaining current application interface are described to grasp Indicate that the current application interface has the node of operation possibility as node set;
Weight assignment module obtains assignment for assigning the first weighted value for the node in the operable node set Operable node set afterwards;
Object run node determining module, for according to the operable node set after assignment, determining object run node;
Operation module, for operating the object run node.
The embodiment of the present invention also provides a kind of application test systems, including:Testing and control equipment and application apparatus;
Wherein, the testing and control equipment obtains the operable of current application interface for being sent to the application apparatus The request of node set receives the operable node set at the current application interface that the application apparatus is sent, described operable Node set indicates that the current application interface has the node of operation possibility;For the node in the operable node set The first weighted value is assigned, the operable node set after assignment is obtained;According to the operable node set after assignment, target is determined Running node;Operate the object run node;
The application apparatus, the operable section for receiving the acquisition current application interface that the testing and control equipment is sent The request of point set;Determine all nodes in current application interface;According to the attribute and type of node, from all nodes The middle effective node of determination;Determination can alternation of bed from effective node;Described in traversal can alternation of bed child node, according to sub- section The attribute and type of point can choose the destination node with operation possibility from described in the child node of alternation of bed;By the mesh Mark operable node set of the node as the current application interface;The operable section is fed back to the testing and control equipment Point set.
Based on the above-mentioned technical proposal, the operable node recognition methods in interface provided in an embodiment of the present invention includes:Determination is worked as All nodes in preceding application interface;According to the attribute and type of node, effective node is determined from all nodes;From institute Stating determination in effective node can alternation of bed;Described in traversal can alternation of bed child node, according to the attribute and type of child node, from institute The destination node with operation possibility can be chosen in the child node of alternation of bed by stating;To which the destination node be worked as described in The operable node set of preceding application interface identifies the operable node at current application interface.As can be seen that the present invention is implemented Processing can be identified in all nodes in current application interface by the operable node recognition methods in interface that example provides, to Obtain in current application interface have operation possibility node, based in the current application interface identified have operation can The node of energy property, the application compatibility test subsequently carried out, will more targetedly so that follow-up when carrying out node clicking operation The compatibility test of application more can be carried out smoothly.The operable node recognition methods in interface provided in an embodiment of the present invention, To having the node of operation possibility to be identified in current application interface test can be provided for the compatibility test of subsequent applications Basis.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of the operable node recognition methods in interface provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of application interface interior joint;
Fig. 3 is the method flow diagram of all nodes in determining current application interface provided in an embodiment of the present invention;
Fig. 4 is the method flow diagram provided in an embodiment of the present invention that effective node is determined from all nodes;
Fig. 5 is the operable node set that Cocos2d-x hands swim an application interface;
Fig. 6 is another flow chart of the operable node recognition methods in interface provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of pop-up box;
Fig. 8 is the flow chart of application testing method provided in an embodiment of the present invention;
Fig. 9 is another flow chart of application testing method provided in an embodiment of the present invention;
Figure 10 is another flow chart of application testing method provided in an embodiment of the present invention;
Figure 11 is the structure diagram of the operable node identification device in interface provided in an embodiment of the present invention;
Figure 12 is the structure diagram of effective node determining module provided in an embodiment of the present invention;
Figure 13 be it is provided in an embodiment of the present invention can alternation of bed determining module structure diagram;
Figure 14 is the structure diagram of destination node determining module provided in an embodiment of the present invention;
Figure 15 is the structure diagram of all node determining modules provided in an embodiment of the present invention;
Figure 16 is the structure diagram provided in an embodiment of the present invention using test device;
Figure 17 is the structure diagram of weight assignment module provided in an embodiment of the present invention;
Figure 18 is the structure diagram of object run node determining module provided in an embodiment of the present invention;
Figure 19 is another structure diagram provided in an embodiment of the present invention using test device;
Figure 20 is the structure diagram of application test systems provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of the operable node recognition methods in interface provided in an embodiment of the present invention, and this method can be applied to Be mounted in the application apparatus of application to be tested, application apparatus such as intelligent terminal or for development and application be arranged have data energy The equipment etc. of power;Detailed process can be by the SDK (Software Development Kit, the software development that are loaded in application apparatus Kit) execute, when SDK can be packaged with application to be tested together with compile, as SDK can with Cocos2d-x hands swim packing when together with Compiling;
Referring to Fig.1, the operable node recognition methods in interface provided in an embodiment of the present invention may include:
Step S100, all nodes in current application interface are determined;
The bottom that optional node may be considered UI controls indicates that the node in application interface includes mainly:Scene (scene), layer (layer), smart (sprite), menu (menu), menu item (menultem), particIe system (particle System) etc.;
Fig. 2 shows the schematic diagrames of application interface interior joint, as shown in Fig. 2, the node in current application interface is one kind Tree-shaped hierarchical structure, it is layer that can also have child node, such as next hierarchy node of scenario node under node, node layer Next hierarchy node is spirit, and next hierarchy node of menu, particIe system etc., menu nodes is menu item etc..
Step S110, according to the attribute of node and type, effective node is determined from all nodes;
Optionally, the embodiment of the present invention can define the nodal community of invalid node and the node type of invalid node, be based on The nodal community and node type of defined invalid node, determine invalid node from all nodes, and then from institute It states in all nodes and removes invalid node, obtain effective node;
The nodal community and node type of invalid node can be according to the types and exploitation engine definitions of application, and are not fixed, The embodiment of the present invention can be according to practical applicable cases adjustment to be tested to the nodal community of invalid node and the definition of node type.
Step S120, determination can alternation of bed from effective node;
Optionally, the embodiment of the present invention can define can alternation of bed node type, based on it is defined can alternation of bed section Vertex type, being determined from effective node can alternation of bed;Can the node type of alternation of bed can be drawn according to the type and exploitation of application Hold up definition, and be not fixed, the embodiment of the present invention can according to practical applicable cases adjustment pair to be tested can alternation of bed node type Definition.
Step S130, described in traversal can the child node of alternation of bed interacted from described according to the attribute and type of child node The destination node with operation possibility is chosen in the child node of layer;
Optionally, the embodiment of the present invention can define the attribute and type of the child node with operation possibility, be based on determining The attribute and type of the child node with operation possibility of justice, from can determine have operation may in the child node of alternation of bed The destination node of property;
The attribute and type of child node with operation possibility, can according to the type of application and exploitation engine definitions, and It is not fixed, the embodiment of the present invention can be according to practical applicable cases adjustment to be tested to the node of the child node with operation possibility The definition of attribute and type;
Destination node refers to can have the node for operating possibility in the child node of alternation of bed, has the section of operation possibility Point such as the operable node with 100% operation possibility;On the other hand, destination node can include to have 100% operation can The operable node of energy property, and, although operation possibility not up to 100% reaches the node of setting percent value.
Step S140, using the destination node as the operable node set at the current application interface.
The quantity of identified destination node is multiple, and multiple destination node is gathered and can be used as current application circle The operable node set in face.
The operable node recognition methods in interface provided in an embodiment of the present invention includes:It determines all in current application interface Node;According to the attribute and type of node, effective node is determined from all nodes;Determination can from effective node Alternation of bed;Described in traversal can alternation of bed child node, according to the attribute and type of child node, from it is described can alternation of bed child node It is middle to choose the destination node with operation possibility;To using the destination node as the operable of the current application interface Node set identifies the operable node at current application interface.
The operable node recognition methods in interface provided in an embodiment of the present invention is can be seen that, it can be in current application interface All nodes processing is identified, to obtain the node in current application interface with operation possibility, based on being identified The node in the current application interface gone out with operation possibility, the application compatibility test subsequently carried out are carrying out node click It, will more targetedly so that the compatibility test of subsequent applications more can be carried out smoothly when operation.The embodiment of the present invention carries The operable node recognition methods in interface of confession can be identified the node with operation possibility in current application interface, be The compatibility test of subsequent applications provides test basis.
Optionally, below by taking the application of Cocos2d-x engines exploitation as an example (such as Cocos2d-x hands are swum), to of the invention real The operable node recognition methods in interface for applying example offer illustrates;
The application engines such as Cocos2d-x provide director's class, and director's class can be associated with the scene of all application interfaces, The embodiment of the present invention can determine the scene at current application interface by director's class, and then pass through the scene at current application interface institute The node hierarchical structure of category traverses all nodes in current application interface, determines all nodes at current application interface;
Method corresponding, that Fig. 3 shows all nodes in determining current application interface provided in an embodiment of the present invention Flow chart, with reference to Fig. 3, this method may include:
Step S200, it according to the scene of director's associated all application interfaces of class, determines and the current application interface Corresponding scene;
Step S210, the node hierarchical structure associated by scene determined by traversal determines all of current application interface Node.
Optionally, in Cocos2d-x engines, effective node of the embodiment of the present invention in determining all nodes When, it defines invalid node and establishes rules really then, established rules really with invalid node, it, will after determining the invalid node in all nodes Invalid node removal in all nodes, then can be obtained effective node;
Invalid node is established rules really, can be the attribute and type for defining invalid node, the nodal community of invalid node If the type of the visibility of node, state of activation etc., invalid node can be defined in all kinds of node type shown in Fig. 2 It is one or more;It establishes rules really then specifically, the embodiment of the present invention can be defined as follows invalid node, when node meets following appoint One, it is determined that node is invalid;
1, the attribute of node is sightless;
2, the type of node is Menu, MenuItem or UIWidget (UI widgets), and isEnable is false;
If node is temporarily invalid, it is false (vacation) that isEnable (enabled information), which can be arranged, for example is applied Pop-up box in interface is existing in UI controls, but isEnable is arranged to false.
3, there is no child node.
Based on this, Fig. 4 shows the method flow provided in an embodiment of the present invention that effective node is determined from all nodes Figure, with reference to Fig. 4, this method may include:
Step S300, determine that invalid node, invalid node are that the attribute of node is sightless from all nodes Node, and/or, the type of node is Menu, MenuItem or UIWidget, and isEnable is the node of false, and/or, There is no the node of child node;
Step S310, the invalid node is removed from all nodes, obtains effective node.
Optionally, from effective node determination can alternation of bed when, the embodiment of the present invention can define can alternation of bed determination Rule, can alternation of bed establish rules really, can be define can alternation of bed node type;Specifically, when meeting following any bars When, it is determined that effective node is can alternation of bed;
1, the type of node is UIWidget or Layer, and isTouchEnabled (touch and enable information) is true (true);
2, include non-CCLayer (cloth background layer class) node under Layer.
Optionally, it can be operable node that can be in the child node of alternation of bed to have the destination node of operation possibility (can such as click node), what operable node indicated can be necessarily performed a little with the node of 100% operation possibility The operations such as hit;
The embodiment of the present invention can define operable node and establish rules really then, and operable node is established rules really, can be definition The attribute and type of operable node;Specifically, the embodiment of the present invention can by can the child node node attribute of alternation of bed be It can be seen that and activation, and node type is that (CCControlButton is by Button (button) or CCControlButton The UI that Cocos2d-x is newly encapsulated, the UI Button of similar OC) or CCScale9Sprite (CCScale9Sprite objects are A kind of deformation of CCSprite objects) child node be determined as operable node;Identified operable node can be arranged Button is identified;
Optionally, have the destination node of operation possibility other than comprising operable node, can also include potential Operable node;Potential operable node refers to that operation possibility is less than 100%, but operates possibility and reach setting percentage Value, however not excluded that the node for the operations such as clicking may be performed, such as picture or the node of literal type, in certain application interfaces The node of picture either literal type is set to click but the node of picture or literal type in certain application interfaces Only it is the expression of picture or word;
The embodiment of the present invention can define potential operable node and establish rules really then, and potential operable node is established rules really Can be then the attribute and type for defining potential operable node;Specifically, the embodiment of the present invention can be by can alternation of bed Child node node attribute is visible and activation, and node type be picture or word child node be determined as it is potential operable Node;The marks such as IMG, TXT or OTHER can be arranged in identified potential operable node.
Optionally, after determining operable node and potential operable node, the embodiment of the present invention can will be operable Node and potential operable node are determined as the operable node set at current application interface;Fig. 5 shows Cocos2d-x hands The operable node set for swimming an application interface, can refer to, with operable node set shown in Fig. 5, it can be seen that currently answer It is tree-shaped control tree construction with the operable node set at interface.
Preferably, it is identified as applying with the operable node in the interface for swimming Cocos2d-x hands, Fig. 6 shows of the invention real Another flow chart of the operable node recognition methods in interface of example offer is applied, with reference to Fig. 6, this method may include:
Step S400, according to the scene of director's associated all application interfaces of class, determination is corresponding with current application interface Scene;
Step S410, the node hierarchical structure associated by scene determined by traversal determines all of current application interface Node;
Step S420, determine that invalid node, invalid node are that the attribute of node is sightless from all nodes Node, and/or, the type of node is Menu, MenuItem or UIWidget, and isEnable is the node of false, and/or, There is no the node of child node;
Step S430, the invalid node is removed from all nodes, obtains effective node;
Step S440, from effective node determination can alternation of bed, can alternation of bed be effective node interior joint Type is UIWidget or Layer, and the node that isTouchEnabled is true, or, comprising non-in effective node The Layer of CCLayer nodes;
Step S450, child node that can be under alternation of bed described in traversal, by can alternation of bed child node node attribute be can See and activate, and node type is that the child node of Button or CCControlButton or CCScale9Sprite is determined as Operable node;By can the child node node attribute of alternation of bed be visible and activation, and node type is picture or word Child node is determined as potential operable node;
Step S460, operable node set is built with the operable node and the potential operable node.
Optionally, the embodiment of the present invention can extract the node name of operable node, the node name of potential operable node, By the node famous prime minister set of the node name of operable node and potential operable node, operable node set is constructed;
Further, obtained operable node set can exist in the form of a list;Optionally, the embodiment of the present invention can Operable node listing is set, operable node listing is built with the operable node and the potential operable node, To indicate the operable node set with operable node listing.
After obtaining operable node set, the embodiment of the present invention can carry out applying according to the operable node set simultaneous Capacitive is tested.For ease of illustration the difference provided in an embodiment of the present invention using compatibility test and existing compatibility test, under The existing process using compatibility test of face elder generation brief introduction.
In the prior art, it is first determining using all UI controls using compatibility test, then writing record has each control The script of part click sequence, and then by executing the script come the UI controls in click application sequentially, by clicking UI controls The response results applied afterwards are reported to obtain compatibility test, reach the compatibility test purpose of application;
However the case where there are pop-up boxes during perform script, pop-up box is as shown in fig. 7, and pop-up box this control Part is not in the control click sequence of script logging, since pop-up box is by the control content of covering part, it would be possible to lead to foot This next control that need to be clicked for originally recording is ejected frame covering, leads to script forever and can not execute that next control need to be clicked Click so that the compatibility test of application exists abnormal, can not be successfully execution.
The problem of based on existing application compatibility test, the embodiment of the present invention can carry out surveying using compatibility at any one time When examination, it is both needed to be based on the operable node recognition methods in interface provided above, determines the operable node at current application interface Set, then decision should currently operate which node (i.e. control) in the operable node set, go out to operate decision Node, and then response results based on application, the compatibility test that is applied report;Due to each in operable node set Node is to have operation possibility, therefore need running node based on the operable node set institute decision, can be grasped The possibility of work is very big, improves the possibility smoothly executed using compatibility test.
Corresponding, Fig. 8 shows that the flow chart of application testing method provided in an embodiment of the present invention, this method can be based on upper The operable node recognition methods in interface of text description;Application testing method provided in an embodiment of the present invention can be applied to testing and control Equipment (such as PC), testing and control equipment can be communicated with the application apparatus for being mounted with application to be tested, by be measured to being mounted with The application apparatus of examination application sends test instruction, realizes the compatibility test of application;
Optionally, if the data-handling capacity for being mounted with the application apparatus of application to be tested is sufficiently strong (as multiple in having Data processing core), then application testing method provided in an embodiment of the present invention can also be applied to be mounted with answering for application to be tested Use equipment;
With reference to Fig. 8, application testing method provided in an embodiment of the present invention may include:
Step S500, the operable node set at current application interface is obtained, described in the operable node set indicates Current application interface has the node of operation possibility;
Optionally, testing and control equipment can send operable node set to the application apparatus for being mounted with application to be tested Request;Application apparatus can be based on the operable node recognition methods in interface (detailed process corresponding portion as detailed above described above Point, details are not described herein again), identify the operable node set at current application interface, and feed back to testing and control equipment.
Step S510, the first weighted value is assigned for the node in the operable node set, obtains grasping after assignment Make node set;
The embodiment of the present invention can be according to the type of node, and number of operations, the rendering order of node assign node for node First weighted value;First weighted value only indicates the type by node, and node number of operations, the rendering order of node is node institute This determining a kind of weighted value, is not the definition to specific weight numerical value.
Step S520, according to the operable node set after assignment, object run node is determined;
Optionally, the embodiment of the present invention can be according to the weighted value of each node in the operable node set after assignment, really Set the goal running node;
Preferably, to make the compatibility test of application wish that the node of operation fits with user, the present invention can also be set Set it is user-defined wish running node set, by after assignment operable node set and described wish running node set phase In conjunction with rear, with the node weight value in the set after combination, object run node is determined.
Step S530, the object run node is operated.
Optionally, testing and control equipment is after determining object run node, the operable object run node.
Optionally, if after operation object run node, application crashes occur, the abnormal conditions such as no response then can determine Test is abnormal, reports abnormal conditions, and pull-up application test again;If after operating object run node, using normal operation And fed back response results, then can just application interface (next current application interface) corresponding with response results, again in Fig. 8 methods It is secondary using test, recycle according to this, then can obtain the response results after being operated to different object run nodes, provide Comprehensive compatibility test report.
It, can be based on the operable node set at current application interface due to application testing method provided in an embodiment of the present invention The object run node that need to be operated is selected, and operable node set indicates that the current application interface has operation possibility Node, therefore selected object run node can be performed and the possibilities of operations such as click and greatly (contain selected The case where object run node is pop-up box), improve the possibility smoothly executed using compatibility test.
Optionally, when assigning the first weighted value for the node in the operable node set, the embodiment of the present invention can According to the type of node, number of operations, the rendering order of node carry out node;
Specifically, the embodiment of the present invention can define the corresponding type weight of each node type, to be operable set of node Each node in conjunction assigns type weight corresponding with node type;Type weight highest such as Button type nodes is (corresponding Above-described operable node), type weight next be that IMG and TXT type nodes are (corresponding above-described potentially Running node), type weight is other types node again;The corresponding concrete type weight of specific node type, can basis Actual conditions define;
The embodiment of the present invention can define degree of node weight, increase with the number of operations of node, time of node Number weight reduces therewith;If a certain degree of node weight is 10, when the node is clicked one time, then degree of node weight It is reduced to 9 by 10;
The embodiment of the present invention can define the rendering weight of node, and the rendering order of node the forward, and it is bigger to render weight, It is smaller that the rendering order of node more then renders weight rearward;The rendering order the forward more is likely to be pop-up box;
Therefore, the embodiment of the present invention can determine type for each node in operable node set according to node type Weight determines according to the rendering order of node according to node number of operations determined number weight and renders weight;In conjunction with node Type weight, number weight and rendering weight are determined as the first weighted value of node imparting;Optionally, the embodiment of the present invention can be straight It connects the type weight of node, number weight is added with weight is rendered, the first weighted value as node, it is clear that be also not excluded for it His calculation.
Preferably, the operable node set at current application interface can wish that running node set is mutually tied with user-defined It closes, so that finally determining object run node and the desired operation of user are more close to so that the compatibility of application Test is wished to fit with user.
Corresponding, Fig. 9 shows another flow chart of application testing method provided in an embodiment of the present invention, should with reference to Fig. 9 Method may include:
Step S600, the operable node set at current application interface is obtained, the operable node set indicates Stating current application interface has the node of operation possibility;
Step S610, the first weighted value is assigned for the node in the operable node set, obtains grasping after assignment Make node set;
The concrete mode that the first weighted value is assigned for the node in operable node set can refer to above-mentioned corresponding portion;
Optionally, blacklist node can be also arranged in the embodiment of the present invention, for the node in the operable node set When assigning the first weighted value, it can be filtered out from the operable node set before the operable node set or assignment after assignment Blacklist node.
Step S620, by the operable node set after assignment, mutually merge with the hope running node set pre-seted, really Fixed node set to be operated;
Wish that running node collection is combined into the set of the user-defined node for being desired with operation, particular content is mainly It is user-defined to wish that the information of the node operated and user are the second weighted value of the node definition for wishing to operate;Second power Weight values only indicate that user is to wish weighted value defined in the node of operation, and refer not to specific weighted value;
Wishing the preset mode of running node set can be:Application to be tested is obtained by the SDK of application to be tested (the UI control trees of i.e. default application interface include all sections of the default application interface to the UI control trees of default application interface Point) and UI control trees in UI controls in position (the i.e. position of the node in default application interface in presetting application interface It sets);And then wish the UI controls operated (i.e. from all nodes of default application interface from being chosen in acquired UI control trees Choose the node for wishing to operate), it is desirable to the quantity of the UI controls of operation can be at least one;Selected UI controls are set again Test order (i.e. to the second weighted value of node definition of selected hope operation) is set, wishes running node set to be formed;
As it can be seen that the embodiment of the present invention can obtain the default application interface of application to be tested by the SDK of application to be tested All nodes;The node for wishing to operate is chosen from all nodes of the default application interface;Selected hope is operated The second weighted value of each node definition, formation wish running node set.
Optionally, by the operable node set after assignment, the tool mutually merged with the hope running node set pre-seted Body process can be:By after assignment operable node set and described wish that identical node is united in running node set One, and be arranged unified node weight be corresponding second weighted value, while retain the operable node set after assignment with The different nodes wished in running node set, retain the former weighted value of variant node;
The former weighted value for retaining different nodes refers to, for after assignment running node set and the system operatio node Different nodes in set, if node belongs to the running node set after assignment, node retains former first weighted value, if Node, which belongs to, wishes running node set, then node retains former second weighted value;
Such as:Operable node set after assignment has two nodes of A and B, and the first weighted value of A is a, and the of B One weighted value is b1;And wish that running node set has two nodes of B and C, the second weighted value of node B is b2, node C's Second weighted value is c;
When by the operable node set after assignment with wishing that running node set merges, in one or two of the set that can unite Some node B only retain a B, while with the weight of the second weighted value b2 definition nodes B;For different in two set Node A and node C can retain prime information, that is, retain node A and weighted value does not become a, retain node C and weight does not become c, And then determine to include A (weight a), B (weight b2) and the C (node sets to be operated of weight c);
Optionally, after the hope running node set pre-seted can first filter out blacklist node, then with after assignment can Running node set mutually merges.
Step S630, according to the weighted value of node set interior joint to be operated, object run node is determined;
Optionally, the embodiment of the present invention can treat the node in running node set with the size of weighted value and be ranked up, Weighted value is bigger, then more before examination, weighted value is smaller for node sequencing, then node sequencing more rearward, to according to the sequence of node it is suitable Sequence determines that the node that clooating sequence conforms to a predetermined condition is object run node, such as determines that the node that clooating sequence is first is Object run node (determines that the maximum node of weighted value 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 value with wait for The weight ratio of total weighted value of running node set, total weighted value is the sum of the weighted value of each node in set, to institute The weight ratio of determining node is targeted the probability of running node as node, to be confirmed as mesh with each node The probability for marking running node, determines object run node from node set to be operated at random.
Step S640, the object run node is operated.
If after operating object run node, application crashes occur, the abnormal conditions such as no response then can determine that test is different Often, abnormal conditions, and pull-up application test again are reported;If after operating object run node, using normal operation and feed back Response results, then can just corresponding with response results application interface (next current application interface), carried out again in Fig. 9 methods It using test, recycles according to this, then can obtain the response results after being operated to different object run nodes, provide comprehensive Compatibility test is reported.
Optionally, the process of operation object run node can be:The nodename for determining object run node, with described Nodename determines corresponding virtual render, and corresponding bounding box are determined with the virtual render; The scaling of object run node is obtained according to the bounding box;Object run section is calculated according to the scaling The size of point, converts the size to world coordinates, the world coordinates is converted to the screen coordinate of application apparatus;
After the screen coordinate for obtaining object run node, the embodiment of the present invention can the screen coordinate central point make For operating position, the operation to realization to object run node;
Optionally, the system that can be provided by cocos2d-x for the action events such as the click of screen, the embodiment of the present invention Interface handleTouchesBegin, handleTouchesMove and handleTouchesEnd handle screen point in engine layers Hit equal action events.
Preferably, Figure 10 has gone out another flow chart of application testing method provided in an embodiment of the present invention, and referring to Fig.1 0, it should Method may include:
Step S700, the operable node set at current application interface is obtained, described in the operable node set indicates Current application interface has the node of operation possibility;
Step S710, for each node in operable node set, type weight is determined according to node type, according to section Number of operations determined number weight is put, is determined according to the rendering order of node and renders weight;
Step S720, for each node in operable node set, in conjunction with the type weight of node, number weight and wash with watercolours Dye weight is determined as the first weighted value of node imparting, obtains the operable node set after assignment;
Step S730, preset hope running node set is transferred, it is described to wish preset uncommon of running node set expression Hope the node of operation, and to wish the second weighted value of the node definition operated;
Step S740, by the operable node set after assignment and identical node in preset hope running node set Unification is carried out, the weight that node after reunification is arranged is corresponding second weighted value, retains the operable node after the assignment Set and the different nodes wished in running node set, and retain the former weighted value of different nodes, obtain section to be operated Point set;
Step S750, for each node in node set to be operated, calculate node weighted value and node set to be operated Total weighted value weight ratio, the general of running node is targeted as node using the weight ratio of identified node Rate is targeted the probability of running node with each node, determines object run section from node set to be operated at random Point;
Step S760, the object run node is operated.
Application testing method provided in an embodiment of the present invention can obtain the operable node set at current application interface, and be Node in operable node set assigns weighted value, and then the operable node set for imparting weighted value and preset are wished It hopes running node set merge, obtains node set to be operated, to the weight of each node in node set to be operated Value, random chooses object run node from node set to be operated, and to be operated to object run node, realization is answered Compatibility test promotes the possibility smoothly executed using compatibility test.
Optionally, after determining the operable node set at current application interface, the embodiment of the present invention may be based on currently The operable node set of application interface writes script, by the nodal operation sequence recorded in script, to realize the behaviour of node Make, reaches the compatibility test of application;And operable node set should be operated by being not limited to decision described above currently, or The mode of which node in node set to be operated.
The operable node identification device in interface provided in an embodiment of the present invention is introduced below, interface described below Operable node identification device can correspond reference with the operable node recognition methods in above-described interface.
Figure 11 is the structure diagram of the operable node identification device in interface provided in an embodiment of the present invention, which can apply There is data energy in the application apparatus for being mounted with application to be tested, application apparatus such as intelligent terminal or for what development and application were arranged The equipment etc. of power;
Referring to Fig.1 1, the operable node identification device in interface provided in an embodiment of the present invention may include:
All node determining modules 100, for determining all nodes in current application interface;
Effective node determining module 110 determines effective for the attribute and type according to node from all nodes Node;
Can alternation of bed determining module 120, for determination can alternation of bed from effective node;
Destination node determining module 130, for traverse it is described can alternation of bed child node, according to the attribute and class of child node Type can choose the destination node with operation possibility from described in the child node of alternation of bed;
Operable node set determining module 140, for using the destination node as the current application interface can Running node set.
Optionally, Figure 12 shows a kind of alternative construction of effective node determining module 110 provided in an embodiment of the present invention, Referring to Fig.1 2, which may include:
Invalid node determination unit 111, for the nodal community and node type according to predefined invalid node, from institute It states in all nodes and determines invalid node;
Removal unit 112 obtains effective node for removing invalid node from all nodes.
Optionally, under the applicable cases developed with Cocos2d-x engines, invalid node determination unit 111 is specifically available In, determine that invalid node, invalid node are sightless nodes for the attribute of node from all nodes, and/or, node Type be Menu, MenuItem or UIWidget, and the node that isEnable is false, and/or, the not no section of child node Point.
Optionally, Figure 13 show it is provided in an embodiment of the present invention can alternation of bed determining module 120 a kind of alternative construction, Referring to Fig.1 3, can alternation of bed determining module 120 may include:
Can alternation of bed determine execution unit 121, for according to it is predefined can alternation of bed node type, from it is described effectively Being determined in node can alternation of bed.
Optionally, under the applicable cases developed with Cocos2d-x engines, can alternation of bed determine that execution unit 121 is specific Can be used for, determined from effective node can alternation of bed, can alternation of bed be node type be UIWidget or layer Layer, and the node that isTouchEnabled is true.
Optionally, Figure 14 shows a kind of alternative construction of destination node determining module 130 provided in an embodiment of the present invention, Referring to Fig.1 4, destination node determining module 130 may include:
Destination node determines execution unit 131, for according to the predefined attribute with the child node for operating possibility And type, from can determine the destination node with operation possibility in the child node of alternation of bed.
Optionally, under the applicable cases developed with Cocos2d-x engines, destination node determines that execution unit 131 is specific It can be used for, from can determine the operable node with 100% operation possibility, the operable node in the child node of alternation of bed For can alternation of bed child node node attribute be it is visible and activation, and node type be Button or The child node of CCControlButton or CCScale9Sprite;
And from that can determine potential operable node in the child node of alternation of bed, the potential operable node is can The child node node attribute of alternation of bed is visible and activation, and node type is the child node of picture or word.
Optionally, under the applicable cases developed with Cocos2d-x engines, Figure 15 shows provided in an embodiment of the present invention A kind of alternative construction of all node determining modules 100, referring to Fig.1 5, all node determining modules 100 may include:
Scene determination unit 101, for the scene according to director's associated all application interfaces of class, determination is worked as with described The corresponding scene of preceding application interface;
Node traverses unit 102 determines current application for traversing the node hierarchical structure associated by identified scene All nodes at interface.
Application test device provided in an embodiment of the present invention is introduced below, application test device described below can Reference is corresponded with above-described application testing method.
Figure 16 is the structure diagram provided in an embodiment of the present invention using test device, application provided in an embodiment of the present invention Test device can be provided in an embodiment of the present invention to apply test device based on the operable node identification device in interface described above Can be applied to testing and control equipment, testing and control equipment can be communicated with the application apparatus for being mounted with application to be tested, pass through to The application apparatus for being mounted with application to be tested sends test instruction, realizes the compatibility test of application;
Referring to Fig.1 6, application test device provided in an embodiment of the present invention may include:
Operable node set acquisition module 200, the operable node set for obtaining current application interface, it is described can Current application interface described in running node set expression has the node of operation possibility;
Weight assignment module 210 is assigned for assigning the first weighted value for the node in the operable node set Operable node set after value;
Object run node determining module 220, for according to the operable node set after assignment, determining object run section Point;
Operation module 230, for operating the object run node.
Optionally, Figure 17 shows a kind of alternative construction of weight assignment module 210 provided in an embodiment of the present invention, references Figure 17, weight assignment module 210 may include:
Assignment execution unit 211, for for each node in the operable node set, according to the type of node, Number of operations, the rendering order of node assign the first weighted value to node for node.
Optionally, assignment execution unit 211 is particularly used in, for each node in operable node set, according to pre- The corresponding type weight of each node type of definition assigns type weight corresponding with node type for node;For operable Each node in node set assigns number weight, wherein with the operation of node according to node number of operations for node Number increases, and degree of node weight reduces therewith;It is suitable according to the rendering of node for each node in operable node set Sequence assigns for node and renders weight, wherein the rendering order of node the forward, renders that weight is bigger, the rendering order of node It is smaller that weight is more then rendered rearward;For each node in operable node set, in conjunction with the type weight of node, number weight It is determined as the first weighted value that node assigns with weight is rendered.
Optionally, Figure 18 shows that one kind of object run node determining module 220 provided in an embodiment of the present invention is optional Structure, referring to Fig.1 8, object run node determining module 220 may include:
Combining unit 221 is used for by the operable node set after assignment, with the hope running node set phase pre-seted Merge, determines node set to be operated;The information wished running node set expression and wish the node of operation, and to wish Second weighted value of the node definition of operation;
Object selection unit 222 determines object run section for the weighted value according to node set interior joint to be operated Point.
Optionally, combining unit 221 is particularly used in, by the operable node set and hope operation section after assignment Identical node carries out unification in point set, and the weight that unified node is arranged is corresponding second weighted value, and retains and assign Operable node set after value and the different nodes wished in running node set, retain the former weight of variant node Value, obtains node set to be operated.
Optionally, Object selection unit 222 is particularly used in, for each node in the node set to be operated, really Determine the weight ratio of node weight value and total weighted value of node set to be operated;For each in the node set to be operated Node is targeted the probability of running node using the weight ratio of identified node as node;It is true with each node It is set to the probability of object run node, determines object run node from the node set to be operated at random.
Optionally, Figure 19 shows another structure diagram provided in an embodiment of the present invention using test device, in conjunction with figure Shown in 16 and Figure 19, this can also include using test device:
Exception processing module 240, if after for operating object run node, using exception, it is determined that test is abnormal, on Report abnormal conditions, and pull-up application test again;
Trigger module 250 is recycled, if after for operating object run node, using normal operation and having fed back response knot Fruit then carries out using test next current application interface.
Application test systems provided in an embodiment of the present invention are introduced below, application test systems described below can Reference is corresponded with the operable node recognition methods in above-described interface and application testing method.
Figure 20 is the structure diagram of application test systems provided in an embodiment of the present invention, with reference to Figure 20, application test systems May include:Testing and control equipment 10 and application apparatus 20;
Testing and control equipment 10, for sending the operable node set for obtaining current application interface to the application apparatus Request, receive the operable node set at the current application interface that the application apparatus is sent, the operable node set Indicate that the current application interface has the node of operation possibility;First is assigned for the node in the operable node set Weighted value obtains the operable node set after assignment;According to the operable node set after assignment, object run section is determined Point;Operate the object run node;
Application apparatus 20, the operable node for receiving the acquisition current application interface that the testing and control equipment is sent The request of set;Determine all nodes in current application interface;According to the attribute and type of node, from all nodes Determine effective node;Determination can alternation of bed from effective node;Described in traversal can alternation of bed child node, according to child node Attribute and type, the destination node with operation possibility can be chosen in the child node of alternation of bed from described;By the target Operable node set of the node as the current application interface;The operable node is fed back to the testing and control equipment Set.
The embodiment of the present invention can be to having the node of operation possibility to be identified in current application interface so that is answered When with compatibility test, the possibility that selected running node can be performed the operations such as click is very big, improves using compatibility Property the possibility that smoothly executes of test.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (21)

1. a kind of operable node recognition methods in interface, which is characterized in that including:
Determine all nodes in current application interface;
According to the nodal community and node type of predefined invalid node, invalid node is determined from all nodes;
Invalid node is removed from all nodes, obtains effective node;
According to it is predefined can alternation of bed node type, being determined from effective node can alternation of bed;
Described in traversal can alternation of bed child node, according to the attribute and type of child node, from it is described can be in the child node of alternation of bed Choosing has the destination node of operation possibility;
Using the destination node as the operable node set at the current application interface.
2. the operable node recognition methods in interface according to claim 1, which is characterized in that the category according to child node Property and type, from described can choose in the child node of alternation of bed there is the destination node of operation possibility to include:
According to the attribute and type of the predefined child node with operation possibility, from can be determined in the child node of alternation of bed Destination node with operation possibility.
3. the operable node recognition methods in interface according to claim 1, which is characterized in that determining current application circle All nodes in face include:
According to the scene of director's associated all application interfaces of class, scene corresponding with the current application interface is determined;
Node hierarchical structure associated by scene determined by traversal, determines all nodes at current application interface.
4. the operable node recognition methods in interface according to claim 1, which is characterized in that described according to predefined nothing The nodal community and node type for imitating node, determine that invalid node includes from all nodes:
Determine that invalid node, invalid node are sightless nodes for the attribute of node from all nodes, and/or, section The type of point is menu Menu, menu item MenuItem or UI widget UIWidget, and enabled information isEnable is The node of false false, and/or, the not no node of child node.
5. the operable node recognition methods in interface according to claim 1, which is characterized in that it is described according to it is predefined can The node type of alternation of bed, determined from effective node can alternation of bed include:
Determined from effective node can alternation of bed, can alternation of bed be node type be UIWidget or layer Layer, and Touch the node for enabling that information isTouchEnabled is true true.
6. the operable node recognition methods in interface according to claim 2, which is characterized in that described according to predefined tool The attribute and type for having the child node of operation possibility, from can determine the mesh with operation possibility in the child node of alternation of bed Marking node includes:
From can determine that the operable node with 100% operation possibility, the operable node be in the child node of alternation of bed Can alternation of bed child node node attribute be it is visible and activation, and node type be Button or CCControlButton, Or the child node of CCScale9Sprite;
And from that can determine potential operable node in the child node of alternation of bed, the potential operable node is that can interact The child node node attribute of layer is visible and activation, and node type is the child node of picture or word.
7. a kind of application testing method, which is characterized in that known based on the operable node in claim 1-6 any one of them interface Other method, the application testing method include:
The operable node set at current application interface is obtained, the operable node set indicates the current application interface tool There is the node of operation possibility;
The first weighted value is assigned for the node in the operable node set, obtains the operable node set after assignment;
According to the operable node set after assignment, object run node is determined;
Operate the object run node.
8. application testing method according to claim 7, which is characterized in that described in the operable node set Node assigns the first weighted value:
For each node in the operable node set, according to the type of node, node number of operations, the rendering of node Sequence is that node assigns the first weighted value.
9. application testing method according to claim 8, which is characterized in that described in the operable node set Each node, according to the type of node, node number of operations, the rendering order of node is that node assigns the first weighted value packet It includes:
For each node in operable node set, according to predefined each corresponding type weight of node type, for node Assign type weight corresponding with node type;
For each node in operable node set, according to node number of operations, number weight is assigned for node, wherein with The number of operations for node increases, and degree of node weight reduces therewith;
Each node in operable node set is assigned for node according to the rendering order of node and renders weight, wherein The the rendering order of node the forward, renders that weight is bigger, and it is smaller that the rendering order of node more then renders weight rearward;
For each node in operable node set, in conjunction with the type weight of node, number weight and rendering weight are determined as The first weighted value that node assigns.
10. according to any one of the claim 7-9 application testing methods, which is characterized in that described according to grasping after assignment Make node set, determines that object run node includes:
By the operable node set after assignment, mutually merges with the hope running node set pre-seted, determine node to be operated Set;The information wished running node set expression and wish the node of operation, and to wish the of the node definition operated Two weighted values;
According to the weighted value of node set interior joint to be operated, object run node is determined.
11. application testing method according to claim 10, which is characterized in that the setting for wishing running node set Process includes:
All nodes of the default application interface of application to be tested are obtained by the SDK of application to be tested;
The node for wishing to operate is chosen from all nodes of the default application interface;
To the second weighted value of each node definition of selected hope operation, running node set is wished in formation.
12. application testing method according to claim 10, which is characterized in that the operable set of node by after assignment It closes, mutually merges with the hope running node set pre-seted, determine that node set to be operated includes:
By after assignment operable node set and it is described wish in running node set that identical node carries out unification, and be arranged The weight of unified node is corresponding second weighted value, and retains the operable node set after assignment and operated with the hope Different nodes in node set retain the former weighted value of variant node, obtain node set to be operated.
13. application testing method according to claim 12, which is characterized in that described to be saved according in node set to be operated The weighted value of point, determines that object run node includes:
For each node in the node set to be operated, total weighted value of node weight value and node set to be operated is determined Weight ratio;
For each node in the node set to be operated, it is confirmed as using the weight ratio of identified node as node The probability of object run node;
It is targeted the probability of running node with each node, determines that target is grasped from the node set to be operated at random Make node.
14. application testing method according to claim 7, which is characterized in that further include:
If after operating object run node, using exception, it is determined that test is abnormal, reports abnormal conditions, and pull-up is answered again With test;
If after operating object run node, using normal operation and response results are fed back, then to next current application interface It carries out using test.
15. a kind of operable node identification device in interface, which is characterized in that including:
All node determining modules, for determining all nodes in current application interface;
Effective node determining module determines effective node for the attribute and type according to node from all nodes;
Can alternation of bed determining module, for determination can alternation of bed from effective node;
Destination node determining module, for traverse it is described can alternation of bed child node, according to the attribute and type of child node, from institute The destination node with operation possibility can be chosen in the child node of alternation of bed by stating;
Operable node set determining module, for using the destination node as the operable node at the current application interface Set;
Effective node determining module includes:
Invalid node determination unit owns for the nodal community and node type according to predefined invalid node from described Invalid node is determined in node;
Removal unit obtains effective node for removing invalid node from all nodes;
It is described can alternation of bed determining module include:
Can alternation of bed determine execution unit, for according to it is predefined can alternation of bed node type, from effective node Determining can alternation of bed.
16. the operable node identification device in interface according to claim 15, which is characterized in that the destination node determines Module includes:
Destination node determines execution unit, is used for attribute and type according to the predefined child node for having and operating possibility, From can determine the destination node with operation possibility in the child node of alternation of bed.
17. according to the operable node identification device in claim 15-16 any one of them interface, which is characterized in that the institute There is the node determining module to include:
Scene determination unit determines and the current application for the scene according to director's associated all application interfaces of class The corresponding scene in interface;
Node traverses unit determines current application interface for traversing the node hierarchical structure associated by identified scene All nodes.
18. a kind of applying test device, which is characterized in that be based on the operable section in claim 15-17 any one of them interface Point identification device, the application test device include:
Operable node set acquisition module, the operable node set for obtaining current application interface, the operable section Point set indicates that the current application interface has the node of operation possibility;
Weight assignment module, for assigning the first weighted value for the node in the operable node set, after obtaining assignment Operable node set;
Object run node determining module, for according to the operable node set after assignment, determining object run node;
Operation module, for operating the object run node.
19. according to claim 18 apply test device, which is characterized in that the weight assignment module includes:
Assignment execution unit, for for each node in the operable node set, according to the type of node, node have been grasped Make number, the rendering order of node is that node assigns the first weighted value.
20. the application test device according to claim 18 or 19, which is characterized in that the object run node determines mould Block includes:
Combining unit, for by the operable node set after assignment, mutually merging with the hope running node set pre-seted, really Fixed node set to be operated;The information wished running node set expression and wish the node of operation, and to wish operation Second weighted value of node definition;
Object selection unit determines object run node for the weighted value according to node set interior joint to be operated.
21. a kind of application test systems, which is characterized in that including:Testing and control equipment and application apparatus;
Wherein, the testing and control equipment, for sending the operable node for obtaining current application interface to the application apparatus The request of set receives the operable node set at the current application interface that the application apparatus is sent, the operable node Current application interface described in set expression has the node of operation possibility;It is assigned for the node in the operable node set First weighted value obtains the operable node set after assignment;According to the operable node set after assignment, object run is determined Node;Operate the object run node;
The application apparatus, the operable set of node for receiving the acquisition current application interface that the testing and control equipment is sent The request of conjunction;Determine all nodes in current application interface;According to the attribute and type of node, from all nodes really Fixed effective node;Determination can alternation of bed from effective node;Described in traversal can alternation of bed child node, according to child node Attribute and type can choose the destination node with operation possibility from described in the child node of alternation of bed;By the target section Operable node set of the point as the current application interface;The operable set of node is fed back to the testing and control equipment It closes.
CN201610067809.5A 2016-01-29 2016-01-29 The operable node recognition methods in interface, application testing method, apparatus and system Active CN105988933B (en)

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 CN105988933A (en) 2016-10-05
CN105988933B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832612B (en) * 2017-10-26 2020-12-15 北京邮电大学 API call quantity estimation method during Android application program operation
CN109783343A (en) * 2017-11-13 2019-05-21 北京嘀嘀无限科技发展有限公司 Components testing method, apparatus, client device and computer readable storage medium
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
CN112527689B (en) * 2021-02-09 2021-05-11 腾讯科技(深圳)有限公司 Application testing method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853649A (en) * 2012-11-28 2014-06-11 百度在线网络技术(北京)有限公司 Application program testing method and system
CN104052845A (en) * 2013-03-11 2014-09-17 腾讯科技(深圳)有限公司 Method and apparatus for testing mobile terminal application
CN104182124A (en) * 2014-08-25 2014-12-03 广东欧珀移动通信有限公司 Operating method and device of mobile terminal
CN104598380A (en) * 2015-01-16 2015-05-06 广东欧珀移动通信有限公司 Method and system for automatic testing based on control
US9195572B2 (en) * 2011-12-16 2015-11-24 Sap Se Systems and methods for identifying user interface (UI) elements

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN103853649A (en) * 2012-11-28 2014-06-11 百度在线网络技术(北京)有限公司 Application program testing method and system
CN104052845A (en) * 2013-03-11 2014-09-17 腾讯科技(深圳)有限公司 Method and apparatus for testing mobile terminal application
CN104182124A (en) * 2014-08-25 2014-12-03 广东欧珀移动通信有限公司 Operating method and device of mobile terminal
CN104598380A (en) * 2015-01-16 2015-05-06 广东欧珀移动通信有限公司 Method and system for automatic testing based on control

Also Published As

Publication number Publication date
CN105988933A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN105988933B (en) The operable node recognition methods in interface, application testing method, apparatus and system
CN107145227B (en) The exchange method and device of virtual reality scenario
Lipp et al. Interactive visual editing of grammars for procedural architecture
US9330476B2 (en) Generating a modified image with additional content provided for a region thereof
CN102799385B (en) desktop control method and device
CN105144058B (en) Prompt is placed in delay
KR20060046027A (en) Interactive exploded views from 2d images
CN105373522A (en) Gesture-based on-chart data filtering
KR101897994B1 (en) Designing a navigation scene
CN107506291A (en) A kind of analysis method and device based on data acquisition
CN110262791B (en) Visual programming method and device, operator and readable storage medium
CN110505079A (en) For the visual system and method for multidimensional network based on context
CN112506502B (en) Visual programming method, device, equipment and storage medium based on man-machine interaction
CN102779202B (en) Method and apparatus for the executor of selecting object
CN106980442A (en) A kind of icon management method and electronic equipment
CN106502760B (en) A kind of virtual machine compatibility strategy visualization method and device
CN111708849A (en) Data management method, device, equipment and storage medium
CN102968259B (en) The method and device of execution program
CN115098907A (en) Transformer substation 4D-BIM visualization method and system based on virtual reality
WO1995004962A1 (en) Object-oriented graphic picking system
CN106557416A (en) The implementation method and device of software cloud test
Clerckx et al. Tool support for designing context-sensitive user interfaces using a model-based approach
CN113744400B (en) Terrain mask selection area determining method and device and computer equipment
CN113760261B (en) Graphical building block programming method and terminal based on FGUI
CN112348955B (en) Object rendering method

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