CN104915290B - Application testing method and device - Google Patents
Application testing method and device Download PDFInfo
- Publication number
- CN104915290B CN104915290B CN201510282614.8A CN201510282614A CN104915290B CN 104915290 B CN104915290 B CN 104915290B CN 201510282614 A CN201510282614 A CN 201510282614A CN 104915290 B CN104915290 B CN 104915290B
- Authority
- CN
- China
- Prior art keywords
- node
- interface
- task
- jumped
- carried out
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 135
- 230000009471 action Effects 0.000 claims description 32
- 238000000034 method Methods 0.000 claims description 27
- 230000009191 jumping Effects 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 12
- 230000000694 effects Effects 0.000 abstract description 10
- 238000010998 test method Methods 0.000 abstract description 10
- 238000013102 re-test Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 238000000151 deposition Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 235000016709 nutrition Nutrition 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
- 238000011191 terminal modification Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The disclosure discloses a kind of application testing method and device, belongs to software test field.The application testing method includes:Initial present node is determined in node listing;Judge that present node whether there is being not carried out for task;If in the presence of being not carried out for task, task is executed, sets the corresponding node in the interface jumped to present node;If there is no being not carried out for task, the destination node in the presence of being not carried out for task is found out in node listing, destination node is jumped to from present node, sets destination node to present node;If destination node can not be found out, terminate traversal test.The disclosure solves the practical operation stream that pseudo-random event stream might not meet current APP, several major interfaces of the frequent retest APP of relevant test method, it is also possible to the problem of missing some more hidden interfaces;Reach and carried out traversal test according to the practical operation stream of APP as far as possible, has improved the effect of the testing efficiency of APP.
Description
Technical field
This disclosure relates to software test field, more particularly to a kind of application testing method and device.
Background technology
Traversal test is one kind in many test methods tested APP (Application, application program).
The graphic user interface that is likely to reach of the traversal test for attempting one APP of access, and monitoring is in access process
It is no to will appear collapse or other abnormal conditions.Graphic user interface can be referred to as interface.
In the traversal test method that the relevant technologies provide, several pseudo-random event streams, each pseudorandom thing are firstly generated
Part stream include user may to various UI (User Interface, user interface) action event that interface executes, such as:It presses
Key input event, touch screen click event, gesture input event etc.;Then, above-mentioned pseudo-random event is inputted to APP to be tested
Stream, to realize traversal test.
Invention content
Each flow of event in order to solve pseudo-random event stream might not meet the practical operation stream of current APP, related
Several major interfaces of the frequent retest APP of test method, it is also possible to the problem of some more hidden interfaces can be missed, this
A kind of application testing method of disclosure offer and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of application testing method is provided, this method includes:
Initial present node is determined in node listing, which includes at least one node, each node pair
An interface in the application program that this tests is answered, the corresponding task of each node is propped up on interface corresponding with the node
The UI action events held;
Judge that the present node whether there is being not carried out for task;
If in the presence of being not carried out for task, execute the task, according to execute after the task interface record that jumps to should
Task is corresponding to redirect relationship, and by the interface jumped to, corresponding node is set as the present node;
If there is no being not carried out for task, the target section in the presence of being not carried out for task is found out in the node listing
Point, the destination node is jumped to from the present node, sets the destination node to the present node;
If the destination node can not be found out in the node listing, terminate the traversal test of the application program.
Optionally, this sets the corresponding node in the interface jumped to the present node, including:
Obtain the information at the interface jumped to;
Judge whether the interface jumped to is the interface accessed according to the information;
If the interface is the interface accessed, it sets the node corresponding to the interface accessed to this
Present node;
If the interface is the interface having not visited, node corresponding with the interface that this has not visited is generated, not according to this
The task list for the node that the UI action events initialization that the interface accessed is supported generates, the node of generation is arranged
For the present node.
Optionally, the destination node that there is being not carried out for task should be searched in the node listing, including:
The node conduct that the task that a presence nearest apart from root node is not carried out is found out in the node listing should
Destination node, root node are the corresponding nodes of main interface of application program.
Optionally, the destination node should be jumped to from the present node, including:
The task chain that the destination node is jumped to from the present node is calculated, the task chain is including at least two nodes and extremely
Few one redirects relationship, each redirects relationship and is associated with two nodes;
Judge to redirect whether relationship has all been finished in the task chain;
If not being finished all, relationship is redirected according to what the sequence execution one in the task chain was not carried out;Inspection
It surveys and executes after this redirects relationship whether jump to desired interface;If jumping to the desired interface, executes judge to be somebody's turn to do again
The step of whether relationship is all finished redirected in task chain;
If the relationship that redirects in task chain is all finished, it is determined that jump to the destination node.
Optionally, this method further includes:
If not jumping to the desired interface, the information at the interface jumped to is obtained;
Judge whether the interface jumped to is the interface accessed according to the information;
If the interface is the interface accessed, the jump of this execution is changed according to the node that this had been accessed
Transfer the registration of Party membership, etc. from one unit to another;Set the node corresponding to the interface accessed to the present node;
If the interface is the interface having not visited, node corresponding with the interface that this has not visited is generated, not according to this
The task list for the node that the UI action events initialization that the interface accessed is supported generates, the node of generation is arranged
For the present node.
Optionally, initial present node should be determined in node listing, including:
In the node listing emptied, the main interface of the application program is determined as root node, and the root node is true
It is set to initial present node.
According to the second aspect of the embodiment of the present disclosure, provides and a kind of apply the test device, the device to include:
Determining module is configured as determining initial present node in node listing, which includes at least one
A node, each node correspond to an interface in the application program of this test, and the corresponding task of each node is and the section
The UI action events supported on the corresponding interface of point;
Judgment module is configured as judging that the present node whether there is being not carried out for task;
First setup module is configured as, when there is being not carried out for task, executing the task, after executing the task
The interface record jumped to is corresponding with the task to redirect relationship, and by the interface jumped to, it is current to be set as this for corresponding node
Node;
Second setup module is configured as that when there is no being not carried out for task, presence is found out in the node listing
The destination node of being not carried out for task jumps to the destination node from the present node, and it is current to set the destination node to this
Node;
Terminate module terminates the application program when being configured as that the destination node can not be found out in the node listing
Traversal test.
Optionally, first setup module, including:
Acquisition submodule is configured as obtaining the information at the interface jumped to;
First judging submodule is configured as judging whether the interface jumped to is to have accessed according to the information
Interface;
First setting submodule, is configured as, when the interface is the interface accessed, this having been accessed
Node corresponding to interface is set as the present node;
Second setting submodule, is configured as when the interface is the interface having not visited, generation has not visited with this
The corresponding node in interface, the task for the node that the UI action events initialization supported according to the interface that this has not visited generates
List sets the node of generation to the present node.
Optionally, second setup module is additionally configured to find out in the node listing nearest apart from root node
The node for the task that one presence is not carried out is as the destination node, section when root node corresponding to the main interface of nutritional program
Point.
Optionally, second setup module, including:
Computational submodule is configured as calculating the task chain for jumping to the destination node from the root node, the task chain packet
Include at least two nodes and it is at least one redirect relationship, each redirect relationship and be associated with two nodes;
Second judgment submodule is configured as judging redirecting whether relationship has all been finished in the task chain;
The second judgment submodule is additionally configured to when not being finished all, according to the sequence in the task chain
What execution one was not carried out redirects relationship;Detection executes after this redirects relationship whether jump to desired interface;If jumping to this
Desired interface then executes judge the step of whether relationship is all finished redirected in the task chain again;
Submodule is redirected, is configured as when redirecting relationship and being all finished, determination jumps in task chain
The destination node.
Optionally, the device further includes:
Data obtaining module is configured as obtaining the interface jumped to when not jumping to the desired interface
Information;
Interface judgment module is configured as judging whether the interface jumped to is the boundary accessed according to the information
Face;
Third setup module is configured as, when the interface is the interface accessed, having been accessed according to this
Node change this execution this redirect relationship;It is set as the node corresponding to the interface accessed to deserve prosthomere
Point;
4th setup module is configured as when the interface is the interface having not visited, and is generated and the boundary having not visited
The task of the corresponding node in face, the node that the UI action events initialization supported according to the interface that this has not visited generates arranges
Table sets the node of generation to the present node.
Optionally, the determining module is additionally configured in the node listing emptied, and the main interface of the application program is true
It is set to root node, root node is determined as to initial present node.
According to the third aspect of the embodiment of the present disclosure, provides and a kind of apply the test device, the device to include:
Processor;
Memory for storing the processor-executable instruction;
Wherein, which is configured as:
Initial present node is determined in node listing, which includes at least one node, each node pair
An interface in the application program that this tests is answered, the corresponding task of each node is propped up on interface corresponding with the node
The UI action events held;
Judge that the present node whether there is being not carried out for task;
If in the presence of being not carried out for task, execute the task, according to execute after the task interface record that jumps to should
Task is corresponding to redirect relationship, and by the interface jumped to, corresponding node is set as the present node;
If there is no being not carried out for task, the target section in the presence of being not carried out for task is found out in the node listing
Point, the destination node is jumped to from the present node, sets the destination node to the present node;
If the destination node can not be found out in the node listing, terminate the traversal test of the application program.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Each interface by detecting application program whether there is being not carried out for task, exists in detecting interface and does not hold
When capable task, the task is executed, and records that the interface for executing and being jumped to after the task is corresponding with the task to redirect relationship, is made
Terminal must be tested when carrying out traversal test, most graphical interfaces in application program to be measured can be covered;Solve it is pseudo- with
Each flow of event in machine flow of event might not meet the practical operation stream of current APP, and relevant test method often repeats to survey
Try several major interfaces of APP, it is also possible to the problem of some more hidden interfaces can be missed;Reach as far as possible according to APP
Practical operation stream carry out traversal test, improve the effect of the testing efficiency of APP.
It should be understood that above general description and following detailed description is merely exemplary, this can not be limited
It is open.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and consistent with the instructions for explaining the principles of this disclosure.
Fig. 1 is a kind of schematic diagram of application testing method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of application testing method shown according to an exemplary embodiment;
Fig. 3 A are a kind of flow charts of the application testing method shown according to another exemplary embodiment;
Fig. 3 B are a kind of flow charts of application testing method shown according to an exemplary embodiment;
Fig. 3 C are a kind of display diagrams of interface information shown according to an exemplary embodiment;
Fig. 3 D are a kind of display diagrams of application testing method shown according to an exemplary embodiment;
Fig. 3 E are a kind of flow charts of application testing method shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart using test device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram using test device shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram using test device shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is randomly generated due to pseudo-random event stream, so and not meeting the practical operation flow of event of application program.Time
It goes through in test process and needs a large amount of pseudo-random event stream that could realize basic traversal test.It, can be to master but in a large amount of tests
Several interfaces after interface and main interface are frequently tested, and the interface to being hidden in deeper grade or remoter level may
Miss test.For this purpose, the embodiment of the present disclosure provides following application testing method.
Explanation of nouns:
Node:Each node corresponds to an interface in the application program of this test, such as in node A corresponding diagrams 1
Interface a, the interface b in node B corresponding diagrams 1, the interface c in node C corresponding diagrams 1.
Task:Each corresponding task of node is all UI action events supported on interface corresponding with the node,
For example the task of node A includes the setting control a1 events and message control a2 events on interface a in Fig. 1.For another example, node
The task of B includes the privacy control b1 events on the interface b in Fig. 1.For another example, the task of node C includes the interface c in Fig. 1
On permission control c1 events.
Task chain:Refer to a node in application program and jumps to the task order executed required for another node, task
Chain include at least two nodes and it is at least one redirect relationship, each redirect relationship and be associated with two nodes.In conjunction with Fig. 1 it is found that
The task chain that node C is jumped to by node A includes:Node A --- the setting control a1 events executed in a of interface jump to interface
B --- node B --- the privacy control b1 events executed in the b of interface jump to interface c --- node C.
Node listing:Node listing includes at least one node, is between node and node for records application program
The list of relationship is redirected, which can be as shown in table 1.
Table 1
Fig. 2 is a kind of flow chart of application testing method shown according to an exemplary embodiment, as shown in Fig. 2, including
Following steps.
In step 201, initial present node is determined in node listing.
The node listing includes at least one node, and each node corresponds to a boundary in the application program of this test
Face, the corresponding task of each node is the UI action events supported on interface corresponding with the node.
Optionally, initial present node is the node corresponding to the main interface of APP.Section corresponding to the main interface of APP
Point is also referred to as root node.
In step 202, judge that present node whether there is being not carried out for task.
In step 203, if in the presence of being not carried out for task, the task is executed, according to being jumped to after executing the task
Interface record is corresponding with the task to redirect relationship, and by the interface jumped to, corresponding node is set as present node.
In step 204, it if there is no being not carried out for task, is found out in node listing in the presence of being not carried out for task
Destination node,
In step 205, if finding out destination node, destination node is jumped to from present node, destination node is set
It is set to present node.
In step 206, if can not find out destination node in node listing, the traversal for terminating application program is surveyed
Examination.
In conclusion the application testing method provided in the embodiment of the present disclosure, by each interface for detecting application program
The task is executed when there is being not carried out for task in detecting interface with the presence or absence of being not carried out for task, and recording execution should
The interface jumped to after task is corresponding with the task to redirect relationship so that test terminal can be covered when carrying out traversal test
Cover most of graphical interfaces in application program to be measured;It solves each flow of event in pseudo-random event stream and might not meet and work as
The practical operation stream of preceding APP, several major interfaces of the frequent retest APP of relevant test method, it is also possible to can miss
The problem of more hidden interface;Reach and carried out traversal test according to the practical operation stream of APP as far as possible, has improved the survey of APP
Try the effect of efficiency.
Fig. 3 A are a kind of flow charts of the application testing method shown according to another exemplary embodiment, this method include with
Lower step.
In step 301, in the node listing emptied, the main interface of application program is determined as root node, and by root
Node is determined as initial present node.
The corresponding interface of root node is first interface in tested application program.Optionally, first interface does not include
Load standby picture when starting animation or starting.
Test terminal can reach other interfaces by executing the task of main interface, therefore test terminal can will apply journey
The main interface of sequence is determined as root node, and after the root node is determined as present node, executes step 302.
It should be noted that test terminal before test process starts, needs to initialize node listing so that node arranges
The relationship that redirects between each node and each node of the previous tested application program recorded in table is emptied.
In step 302, judge that present node whether there is being not carried out for task.
In one possible implementation, test terminal obtains the corresponding interface of present node by way of screenshotss
Image, and each UI action events supported on interface are obtained by the image.For example, there are 3 buttons in current interface
Icon, then after identifying this 3 button icons, test terminal determines that 3 kinds of UI action events are supported at the corresponding interface of present node.
Optionally, test terminal can also determine the action event of conventional menu key input, return key input, right button input etc
The UI action events supported by the corresponding interface of present node.
In alternatively possible realization method, test terminal knows each boundary by systematic parameter or APP parameters
The each UI action events supported on face.It is each for how test terminal knows that the corresponding interface of present node is supported
UI action events, the present embodiment does not limit.
Each UI action events that the corresponding interface of present node is supported, as the corresponding task of present node.
When test terminal-pair present node is detected, it may be determined that whether there is also what is be not carried out to appoint for current interface
Business.
For example, when the interface a in test terminal-pair Fig. 1 is detected, detect that there are setting control a1 events in a of interface
It is not performed with message control a2 events, it is determined that present node A has being not carried out for task.
In step 303, if in the presence of being not carried out for task, the task is executed, according to being jumped to after executing the task
Interface record is corresponding with the task to redirect relationship, sets the corresponding node in the interface jumped to present node.
When detecting to have being not carried out for task, test terminal can execute the task by simulating UI inputs, such as
The input of setting control a1 is clicked in simulated touch screen.
It being performed in the task of present node, tested application program can rest on the corresponding interface of present node, or, by
Other interfaces can be jumped to from the corresponding interface of present node by surveying application program.
For example, after the refreshing control event in the corresponding interface of present node is performed, tested application program can rest on
The corresponding interface of present node, only refreshes the data in the interface, does not jump to other interfaces;For another example, when
After setting control event in the corresponding interface of front nodal point is performed, tested application program can jump to another setting interface.
Test terminal can record corresponding with the task according to the interface jumped to after the task is executed in node listing
Redirect relationship, and the corresponding node in the interface jumped to is set as by this by the step 303a to step 303d shown in Fig. 3 B
After present node, step 302 is continued to execute.
In step 303a, the information at the interface jumped to is obtained.
The mode that test terminal again may be by screenshotss obtains the image at the interface jumped to, and knows to the image
Not, to obtain the information at the interface jumped to, which includes:The image information at the interface jumped to, and jump to
The UI action events supported on interface.
For example, in fig. 3 c, the information that test terminal obtains the interface b jumped to includes:The image information of interface b,
Privacy control b1, safe control b2, record control b3, control b4 is returned to.
In step 303b, judge whether the interface jumped to is the interface accessed according to the information.
In one possible implementation, test terminal obtains the image at interface jumped to, and by the image and elder generation
The image at the interface of preceding storage carries out similarity mode, if the image is already present in the image at each interface of storage,
Determine that the interface jumped to is the interface accessed;If the image does not exist in the image at each interface of storage,
Then determine that the interface jumped to is the interface having not visited.
In alternatively possible realization method, test terminal can detect the layout of each control in the interface jumped to
It is whether similar to the layout of each control in the image at the interface of storage, if it is detected that in the presence of with each control in the interface that jumps to
The similar interface of layout of part, it is determined that the interface jumped to is the interface accessed;If it is detected that being not present and jump
The similar interface of the layout of each control in the interface gone to, it is determined that the interface jumped to is the interface having not visited.This
Whether open embodiment is not that the judgment method at the interface accessed defines to the interface that jumps to.
In step 303c, if the interface is the interface accessed, corresponding to the interface accessed
Node is set as present node.
If test terminal detects that the interface is the interface accessed, which is determined as present node, after
It is continuous to judge that present node whether there is being not carried out for task.
Such as Fig. 3 D, test terminal jumps to setting interface b after the setting control a1 events in executing interface a, is executing
Interface a is jumped back to after the return control b4 events being arranged in the b of interface, at this point, test terminal detects that interface a is to have accessed
Interface, then interface a is determined as present node, continues to detect in a of interface with the presence or absence of being not carried out of the task.
In step 303d, if the interface is the interface having not visited, generate corresponding with the interface that this has not visited
Node, the UI action events supported according to the interface that this has not visited initialize the task list of the node, by being somebody's turn to do for generation
Node is set as present node.
If the interface is the interface having not visited, tests terminal and generate section corresponding with the interface in node listing
Point, and the task list of the node is initialized, to obtain each UI action events that the interface is supported.
For example, the task list for the node B that initialization node B is obtained is as shown in table 2.
Nodename | Task names |
Node B | Privacy control b1 events |
Node B | Safe control b2 events |
Node B | Record control b3 events |
Node B | Return to control b4 events |
Table 2
In step 304, it if there is no being not carried out of the task, is found out in node listing nearest apart from root node
The node for the task that one presence is not carried out is as destination node.
Under normal conditions, there are multiple tasks in a node, and test terminal is when testing application program, every time
A task on present node can only be executed.
It, can be from the following manner from node when test terminal detects that being not carried out for task is not present in present node
The node for the task that a presence nearest apart from root node is not carried out is found out in list as the destination node.
(1) root node is set to both candidate nodes, detecting both candidate nodes by node listing whether there is times being not carried out
Business;
(2) if detecting the presence of being not carried out for task, both candidate nodes are determined as destination node;
(3) if detecting, there is no being not carried out for task, continuing acquisition by node listing can be by once redirecting pass
It is each node jumped to from both candidate nodes, each node is determined as both candidate nodes successively, execution passes through node listing
The step of detection both candidate nodes whether there is being not carried out for task.
It is illustrated by taking the node listing shown in table 3 as an example, the table 3 is as follows.
Table 3
Interface a is both candidate nodes, and test terminal is detected setting control a1 events in a of interface by node listing, disappeared
Breath control a2 events have been performed, then the interface b for executing and being jumped to after the setting control a1 events in a of interface are obtained, by boundary
B corresponding node B in face are determined as both candidate nodes.
It tests privacy control b1 events in terminal detection interface b, safe control b2 events, record control b3 events, return
Control b4 events have been performed, then the interface z for executing and being jumped to after the message control a2 events in a of interface are obtained, by interface z
It is determined as both candidate nodes.
Test terminal detects to check that control z1 events and return control z2 events have been performed in the z of interface, then continues
Obtain the interface c for executing and being jumped to after the privacy control b1 events in the b of interface.
At this point, test terminal detects that there are permission control c1 events not to be performed in the c of interface, then it is interface c is corresponding
Node C is determined as destination node.
It should be noted that the information due to having recorded each node detected in node listing, test terminal can be with
According to when redirecting relationship destination node is calculated, need not being executed in each node between each node and each node
Task.
In step 305, if finding out destination node, destination node is jumped to from present node, destination node is set
It is set to present node.
After destination node is determined, test terminal can be by the step 305a to step 305h shown in Fig. 3 E from current
Node jumps to the destination node, sets the destination node to the present node.
In step 305a, the task chain that the destination node is jumped to from present node is calculated, which includes at least
Two nodes and it is at least one redirect relationship, each redirect relationship and be associated with two nodes.
Terminal is tested after determining destination node, the task chain that present node jumps to the destination node can be obtained.Than
Such as, in the node listing being shown in Table 3, the task chain that test terminal acquisition root node A jumps to destination node C is:Interface
--- the setting control a1 events in a of interface that execute jump to the privacy control in interface b --- interface b --- execution interface b to a
B1 events jump to interface c --- interface c.
In step 305b, judge to redirect whether relationship has all been finished in the task chain.
Terminal is tested since present node, executes successively in the task chain and redirects relationship.
Wherein, test terminal is often executed redirects relationship according to next, can be whether to redirect relationship in Detection task chain
Through being all finished.
In step 305c, if not being finished all, it is not carried out according to the sequence execution one in task chain
Redirect relationship.
In step 305d, whether detection execution jumps to desired interface after redirecting relationship;
In step 305e, if jumping to the desired interface, executes judge to redirect relationship in the task chain again
The step of whether being all finished.
It is expected that interface be user executed according to the sequence in task chain one be not carried out redirect relationship after, application program
The interface recorded in the task chain that should be jumped to.
For example, task chain is:The task chain of interface a to interface c is:Interface a --- execute the setting control a1 in a of interface
Event jumps to interface b --- interface b --- the privacy control b1 events executed in the b of interface jump to interface c --- interface c,
Terminal is then tested after the privacy control b1 events in executing interface b according to the task chain, it is expected that interface is interface c.
In step 305f, if the relationship that redirects in task chain is all finished, it is determined that jump to the target
Node, using destination node as present node.
In step 305g, if not jumping to desired interface, the information at the interface jumped to is obtained.
It should be noted that test terminal is after successively executing the same task of the same present node, it is possible to jump
The interface gone to there is a situation where different.
For example, the interface of tested application program provides quarter-bell control, test terminal is 20:00-5:Being executed during 00 should
When quarter-bell control event, the current interface of tested application program can jump to user's prompting interface, which shows
Signal language " being the late into the night now, everybody sleep that Do not disturb ";Terminal is tested 05:00-20:The quarter-bell control is executed during 00
When part, the current interface of application program can then jump to quarter-bell control interface and send out ring tone.
At this point, test terminal is after the task in executing task chain successively, the interface jumped to is not to be recorded in task chain
Expectation interface.
Test terminal can obtain the information at the interface jumped to.Likewise, test terminal can pass through the side of screenshotss
Formula obtains the image at the interface, to obtain the information at the interface jumped to by the image.
In step 305h, judge whether the interface jumped to is the interface accessed according to the information.
Test terminal judges whether the interface jumped to is that the method at the interface accessed can be with according to the information
Such as step 303b, do not repeat herein.
In step 305i, if the interface is the interface accessed, originally according to the node modification accessed
Secondary execution redirects relationship, sets the node corresponding to the interface accessed to present node.
For example, the permission control c1 events that test terminal executes in the c of interface are had recorded in task chain jumps to interface d, and
The permission control c1 events that test terminal executes in the c of interface at this time jump to interface a, since interface a is the node accessed,
This execution of test terminal modifications redirects relationship, by the jump of " execute the permission control c1 events in the c of interface and jump to interface a "
Transfer the registration of Party membership, etc. from one unit to another and be added into node listing, and sets the corresponding node A of interface a to present node.
After present node is arranged, test terminal continues to execute step 302.
In step 305j, if the interface is the interface having not visited, generate corresponding with the interface that this has not visited
Node initializes the task list of node according to the UI action events that the interface that this has not visited is supported, by the section of generation
Point is set as present node.
The step of step 305j, as shown in step 303d, does not repeat herein.
After setting the node of generation to present node, test terminal continues to execute step 302.
Within step 306, if can not find out destination node in node listing, the traversal for terminating application program is surveyed
Examination.
If the node in the presence of being not carried out for task can not be found out in node listing in test terminal, that is, in the node
The destination node can not be found out in list, then shows that each interface of tested application program has been detected.
At this point, test terminal can terminate to the test of the traversal of current application program, continue to next application program into
Row traversal test.
In conclusion the application testing method provided in the embodiment of the present disclosure, by each interface for detecting application program
The task is executed when there is being not carried out for task in detecting interface with the presence or absence of being not carried out for task, and recording execution should
The interface jumped to after task is corresponding with the task to redirect relationship so that test terminal can be covered when carrying out traversal test
Cover most of graphical interfaces in application program to be measured.It solves each flow of event in pseudo-random event stream and might not meet and work as
The practical operation stream of preceding APP, several major interfaces of the frequent retest APP of relevant test method, it is also possible to can miss
The problem of more hidden interface;Reach and carried out traversal test according to the practical operation stream of APP as far as possible, has improved the survey of APP
Try the effect of efficiency.
Application testing method provided in this embodiment, times being also not carried out by finding a presence nearest with root node
The node of business realizes the Full-automatic circulation of test process as present node.
Application testing method provided in this embodiment, also by when executing task chain, if the interface jumped to is not the phase
Hope interface, then modification redirects relationship and continues to execute detection, realizes the compatibility to some fortuitous events, realizes test process
To the compatible higher of the various possible operating conditions of APP, the better effect of effect is tested.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of flow chart using test device shown according to an exemplary embodiment, as shown in figure 4, the dress
Set including:Determining module 410, judgment module 420, the first setup module 430, the second setup module 440 and terminate module 450.
Determining module 410 is configured as determining initial present node in node listing, which includes at least
One node, each node correspond to an interface in the application program of this test, and the corresponding task of each node is and this
The UI action events supported on the corresponding interface of node.
Judgment module 420 is configured as judging that the present node whether there is being not carried out for task.
First setup module 430, be configured as when exist be not carried out task when, execute the task, according to execute this
The interface record jumped to after business is corresponding with the task to redirect relationship, and by the interface jumped to, corresponding node is set as this
Present node.
Second setup module 440 is configured as when there is no being not carried out for task, finding out and depositing in the node listing
In the destination node of being not carried out for task, the destination node is jumped to from the present node, which is set as deserving
Front nodal point.
Terminate module 450 when being configured as that the destination node can not be found out in the node listing, terminates this and applies journey
The traversal of sequence is tested.
In conclusion the application test device provided in the embodiment of the present disclosure, by each interface for detecting application program
The task is executed when there is being not carried out for task in detecting interface with the presence or absence of being not carried out for task, and recording execution should
The interface jumped to after task is corresponding with the task to redirect relationship so that test terminal can be covered when carrying out traversal test
Cover most of graphical interfaces in application program to be measured.It solves each flow of event in pseudo-random event stream and might not meet and work as
The practical operation stream of preceding APP, several major interfaces of the frequent retest APP of relevant test method, it is also possible to can miss
The problem of more hidden interface;Reach and carried out traversal test according to the practical operation stream of APP as far as possible, has improved the survey of APP
Try the effect of efficiency.
Fig. 5 is a kind of block diagram using test device shown according to another exemplary embodiment, as shown in figure 5, the dress
Set including:Determining module 410, judgment module 420, the first setup module 430, the second setup module 440 and terminate module 450.
Determining module 410 is configured as determining initial present node in node listing, which includes at least
One node, each node correspond to an interface in the application program of this test, and the corresponding task of each node is and this
The UI action events supported on the corresponding interface of node.
Judgment module 420 is configured as judging that the present node whether there is being not carried out for task.
First setup module 430, be configured as when exist be not carried out task when, execute the task, according to execute this
The interface record jumped to after business is corresponding with the task to redirect relationship, and by the interface jumped to, corresponding node is set as this
Present node.
Second setup module 440 is configured as when there is no being not carried out for task, finding out and depositing in the node listing
In the destination node of being not carried out for task, the destination node is jumped to from the present node, which is set as deserving
Front nodal point.
Terminate module 450 when being configured as that the destination node can not be found out in the node listing, terminates this and applies journey
The traversal of sequence is tested.
Optionally, first setup module 430, including:Acquisition submodule 431, the first judging submodule 432, first set
It sets submodule 433, second and submodule 434 is set.
Acquisition submodule 431 is configured as obtaining the information at the interface jumped to.
First judging submodule 432 is configured as judging whether the interface jumped to is to have accessed according to the information
The interface crossed.
First setting submodule 433, is configured as, when the interface is the interface accessed, this having been accessed
Interface corresponding to node be set as the present node.
Second setting submodule 434, is configured as when the interface is the interface having not visited, generation has not visited with this
The corresponding node in interface, the UI action events supported according to the interface that this has not visited initialize the node task row
Table sets the node of generation to the present node.
Optionally, second setup module 440 is additionally configured to find out in the node listing nearest apart from root node
The node of task that is not carried out of a presence as the destination node.
Optionally, second setup module 440, including:
Computational submodule 441 is configured as calculating the task chain for jumping to the destination node from root node, the task chain packet
Include at least two nodes and it is at least one redirect relationship, each redirect relationship and be associated with two nodes.
Second judgment submodule 442 is configured as judging redirecting whether relationship has all executed in the task chain
Finish.
The second judgment submodule 442 is additionally configured to when not being finished all, according to suitable in the task chain
What sequence execution one was not carried out redirects relationship.Detection executes after this redirects relationship whether jump to desired interface.If jumping to
The desired interface then executes judge the step of whether relationship is all finished redirected in the task chain again.
Submodule 443 is redirected, is configured as when being all finished, determination jumps to the destination node.
Optionally, the device further includes:Data obtaining module 460, interface judgment module 470, third setup module 480,
4th setup module 490.
Data obtaining module 460 is configured as obtaining the interface jumped to when not jumping to the desired interface
Information.
Interface judgment module 470 is configured as judging whether the interface jumped to is to have accessed according to the information
Interface.
Third setup module 480 is configured as, when the interface is the interface accessed, having been accessed according to this
Node change this execution this redirect relationship.It is set as the node corresponding to the interface accessed to deserve prosthomere
Point.
4th setup module 490 is configured as when the interface is the interface having not visited, and generation has not visited with this
The corresponding node in interface, the UI action events supported according to the interface that this has not visited initialize the task list of the node,
Set the node of generation to the present node.
Optionally, the determining module 410, is additionally configured in the node listing emptied, by the main boundary of the application program
Face is determined as root node.
In conclusion the application test device provided in the embodiment of the present disclosure, by each interface for detecting application program
The task is executed when there is being not carried out for task in detecting interface with the presence or absence of being not carried out for task, and recording execution should
The interface jumped to after task is corresponding with the task to redirect relationship so that test terminal can be covered when carrying out traversal test
Cover most of graphical interfaces in application program to be measured.It solves each flow of event in pseudo-random event stream and might not meet and work as
The practical operation stream of preceding APP, several major interfaces of the frequent retest APP of relevant test method, it is also possible to can miss
The problem of more hidden interface;Reach and carried out traversal test according to the practical operation stream of APP as far as possible, has improved the survey of APP
Try the effect of efficiency.
Application testing method provided in this embodiment, times being also not carried out by finding a presence nearest with root node
The node of business realizes the Full-automatic circulation of test process as present node.
Application testing method provided in this embodiment, also by when executing task chain, if the interface jumped to is not the phase
Hope interface, then modification redirects relationship and continues to execute detection, realizes the compatibility to some fortuitous events, realizes test process
To the compatible higher of the various possible operating conditions of APP, the better effect of effect is tested.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
One exemplary embodiment of the disclosure provide it is a kind of apply test device, can realize the disclosure provide application survey
Method for testing, this includes using test device:Processor, the memory for storing processor-executable instruction.
Wherein, processor is configured as:
Initial present node is determined in node listing, which includes at least one node, each node pair
An interface in the application program that this tests is answered, the corresponding task of each node is propped up on interface corresponding with the node
The UI action events held.
Judge that the present node whether there is being not carried out for task.
If in the presence of being not carried out for task, execute the task, according to execute after the task interface record that jumps to should
Task is corresponding to redirect relationship, and by the interface jumped to, corresponding node is set as the present node.
If there is no being not carried out for task, the target section in the presence of being not carried out for task is found out in the node listing
Point, the destination node is jumped to from the present node, sets the destination node to the present node.
If the destination node can not be found out in the node listing, terminate the traversal test of the application program.
Fig. 6 is a kind of block diagram using test device shown according to an exemplary embodiment.For example, device 600 can be with
It is mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building
Equipment, personal digital assistant etc..
With reference to Fig. 6, device 600 may include following one or more components:Processing component 602, memory 604, power supply
Component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor module 614, Yi Jitong
Believe component 616.
The integrated operation of 602 usual control device 600 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing component 602 may include that one or more processors 618 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just
Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate
Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown
Example includes instruction for any application program or method that are operated on device 600, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system
System, one or more power supplys and other generated with for device 600, management and the associated component of distribution electric power.
Multimedia component 608 is included in the screen of one output interface of offer between device 600 and user.In some realities
It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can
To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with
Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and
And also detection and touch or the relevant duration and pressure of slide.In some embodiments, multimedia component 608 includes
One front camera and/or rear camera.It is preceding when such as screening-mode or video mode when device 600 is in operation mode
External multi-medium data can be received by setting camera and/or rear camera.Each front camera and rear camera can
Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike
Wind (MIC), when device 600 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set
Part 616 is sent.In some embodiments, audio component 610 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented
Estimate.For example, sensor module 614 can detect the state that opens/closes of device 600, the relative positioning of component, such as component
For the display and keypad of device 600, sensor module 614 can be with the position of 600 1 components of detection device 600 or device
Set change, the existence or non-existence that user contacts with device 600, the temperature of 600 orientation of device or acceleration/deceleration and device 600
Variation.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact near
The presence of object.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, for being answered in imaging
With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic
Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device
600 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or combination thereof.In an exemplary reality
It applies in example, communication component 616 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel
Breath.In one exemplary embodiment, communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application application-specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above application test method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 618 of device 600 to complete above application test side
Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (14)
1. a kind of application testing method, which is characterized in that for testing in terminal, the method includes:
Initial present node is determined in node listing, the node listing includes at least one node, the node listing
It is the list that relationship is redirected between node and node for records application program, each node corresponds to the described of this test and answers
With an interface in program, the corresponding task of each node is the UI operation things supported on interface corresponding with the node
Part;
Judge that the present node whether there is being not carried out for task;
If in the presence of being not carried out for task, the task is executed, according to the interface record and institute jumped to after the execution task
It states that task is corresponding to redirect relationship, sets the corresponding node in the interface jumped to the present node;
If there is no being not carried out for task, the destination node in the presence of being not carried out for task is found out in the node listing,
The destination node is jumped to from the present node, sets the destination node to the present node;
If the destination node can not be found out in the node listing, terminate the traversal test of the application program.
2. according to the method described in claim 1, it is characterized in that, described the corresponding node in the interface jumped to is arranged
For the present node, including:
The information at the interface jumped to described in acquisition;
According to described information judge described in the interface that jumps to whether be the interface accessed;
If the interface is the interface accessed, it sets the node corresponding to the interface accessed to institute
State present node;
If the interface is the interface having not visited, node corresponding with the interface having not visited is generated, according to described
The task list for the node that the UI action events initialization that the interface having not visited is supported generates, by the section of generation
Point is set as the present node.
3. according to the method described in claim 1, it is characterized in that, described find out in the node listing in the presence of being not carried out
Task destination node, including:
It is found out in the node listing described in the node conduct for the task that a presence nearest apart from root node is not carried out
Destination node, the root node are the nodes corresponding to the main interface of the application program.
4. according to the method described in claim 1, it is characterized in that, described jump to the target section from the present node
Point, including:
Calculate and jump to the task chain of the destination node from the present node, the task chain include at least two nodes and
It is at least one to redirect relationship, it each redirects relationship and is associated with two nodes;
Judge to redirect whether relationship has all been finished in the task chain;
If not being finished all, relationship is redirected according to what the sequence execution one in the task chain was not carried out;Detection
Desired interface whether is jumped to after redirecting relationship described in execution;If jumping to the desired interface, judgement is executed again
The step of whether relationship is all finished redirected in the task chain;
If the relationship that redirects in the task chain is all finished, it is determined that jump to the destination node.
5. according to the method described in claim 4, it is characterized in that, the method, further includes:
If not jumping to the desired interface, the information at the interface jumped to described in acquisition;
According to described information judge described in the interface that jumps to whether be the interface accessed;
If the interface is the interface accessed, the node accessed according to changes the described of this execution
Redirect relationship;Set the node corresponding to the interface accessed to the present node;
If the interface is the interface having not visited, node corresponding with the interface having not visited is generated, according to described
The task list for the node that the UI action events initialization that the interface having not visited is supported generates, by the section of generation
Point is set as the present node.
6. method according to any one of claims 1 to 5, which is characterized in that described to determine initial work as in node listing
Front nodal point, including:
In the node listing emptied, the main interface of the application program is determined as root node, and the root node is determined
For the initial present node.
7. a kind of applying test device, which is characterized in that for testing in terminal, described device includes:
Determining module is configured as determining initial present node in node listing, and the node listing includes at least one
Node, the node listing are the list that relationship is redirected between node and node for records application program, each node pair
An interface in the application program that this tests is answered, the corresponding task of each node is interface corresponding with the node
On the UI action events supported;
Judgment module is configured as judging that the present node whether there is being not carried out for task;
First setup module is configured as, when there is being not carried out for task, executing the task, after executing the task
The interface record jumped to is corresponding with the task to redirect relationship, sets the corresponding node in the interface jumped to institute
State present node;
Second setup module is configured as when there is no being not carried out for task, is found out in the node listing in the presence of not
The destination node of the task of execution, the destination node is jumped to from the present node, sets the destination node to institute
State present node;
Terminate module when being configured as that the destination node can not be found out in the node listing, terminates described using journey
The traversal of sequence is tested.
8. device according to claim 7, which is characterized in that first setup module, including:
Acquisition submodule is configured as the information at the interface jumped to described in obtaining;
First judging submodule, be configured as according to described information judge described in the interface that jumps to whether be to have accessed
Interface;
First setting submodule, is configured as when the interface is the interface accessed, had been accessed described
Node corresponding to interface is set as the present node;
Second setting submodule, is configured as when the interface is the interface having not visited, generates and had not visited with described
The corresponding node in interface, the node that the UI action events initialization supported according to the interface having not visited generates
Task list sets the node of generation to the present node.
9. device according to claim 7, which is characterized in that second setup module is additionally configured in the section
The node for the task that a presence nearest apart from root node is not carried out is found out in point list as the destination node, it is described
Root node is the node corresponding to the main interface of the application program.
10. device according to claim 7, which is characterized in that second setup module, including:
Computational submodule is configured as calculating the task chain for jumping to the destination node from root node, and the task chain includes
At least two nodes and it is at least one redirect relationship, each redirect relationship and be associated with two nodes;
Second judgment submodule is configured as judging redirecting whether relationship has all been finished in the task chain;
The second judgment submodule is additionally configured to when not being finished all, according to the sequence in the task chain
What execution one was not carried out redirects relationship;Desired interface whether is jumped to after redirecting relationship described in detection execution;If jumping to
The desired interface then executes the step for redirecting relationship and whether being all finished judged in the task chain again
Suddenly;
Submodule is redirected, is configured as when redirecting relationship and being all finished, determination jumps in the task chain
The destination node.
11. device according to claim 10, which is characterized in that described device further includes:
Data obtaining module is configured as the interface when not jumping to the desired interface, jumped to described in acquisition
Information;
Interface judgment module, be configured as according to described information judge described in the interface that jumps to whether be the boundary accessed
Face;
Third setup module is configured as when the interface is the interface accessed, has been accessed according to described
Node changes the described of this execution and redirects relationship;Node corresponding to the interface accessed is set as described to work as
Front nodal point;
4th setup module is configured as when the interface is the interface having not visited, and is generated and the boundary having not visited
The corresponding node in face, the node that the UI action events initialization supported according to the interface having not visited generates are appointed
Business list, sets the node of generation to the present node.
12. according to any device of claim 7 to 11, which is characterized in that the determining module is additionally configured to clear
In empty node listing, the main interface of the application program is determined as root node, and by the root node be determined as it is described just
The present node of beginning.
13. a kind of applying test device, which is characterized in that described device includes:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
Initial present node is determined in node listing, the node listing includes at least one node, the node listing
It is the list that relationship is redirected between node and node for records application program, each node corresponds to the described of this test and answers
With an interface in program, the corresponding task of each node is the UI operation things supported on interface corresponding with the node
Part;
Judge that the present node whether there is being not carried out for task;
If in the presence of being not carried out for task, the task is executed, according to the interface record and institute jumped to after the execution task
It states that task is corresponding to redirect relationship, sets the corresponding node in the interface jumped to the present node;
If there is no being not carried out for task, the destination node in the presence of being not carried out for task is found out in the node listing,
The destination node is jumped to from the present node, sets the destination node to the present node;
If the destination node can not be found out in the node listing, terminate the traversal test of the application program.
14. a kind of computer readable storage medium, which is characterized in that it has program stored therein in the computer readable storage medium,
Described program is loaded by processor and is executed to realize such as claim 1 to 6 any one of them application testing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510282614.8A CN104915290B (en) | 2015-05-28 | 2015-05-28 | Application testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510282614.8A CN104915290B (en) | 2015-05-28 | 2015-05-28 | Application testing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104915290A CN104915290A (en) | 2015-09-16 |
CN104915290B true CN104915290B (en) | 2018-07-31 |
Family
ID=54084368
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510282614.8A Active CN104915290B (en) | 2015-05-28 | 2015-05-28 | Application testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104915290B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105868105B (en) * | 2016-03-24 | 2019-03-15 | 厦门美图移动科技有限公司 | A kind of application traversal test method, equipment and mobile terminal |
CN105630686B (en) * | 2016-03-24 | 2018-12-18 | 厦门美图移动科技有限公司 | A kind of application traversal test method, equipment and mobile terminal |
CN107622008B (en) * | 2016-07-14 | 2021-07-23 | 阿里巴巴集团控股有限公司 | Traversal method and device for application page |
CN107197070B (en) * | 2017-06-08 | 2020-03-24 | 杭州友声科技股份有限公司 | Automatic test method for mobile phone application UI breadth traversal based on event sequence |
CN107357725B (en) * | 2017-06-29 | 2018-09-04 | 腾讯科技(深圳)有限公司 | Application testing method and device |
CN107368422A (en) * | 2017-08-02 | 2017-11-21 | 网易有道信息技术(北京)有限公司 | A kind of method of testing of application APP, device and medium |
CN109522201A (en) * | 2017-09-18 | 2019-03-26 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus of application program stability test |
CN112532966B (en) * | 2019-08-27 | 2025-02-18 | 中兴通讯股份有限公司 | Set-top box testing method, device, set-top box and computer-readable storage medium |
CN111694753B (en) * | 2020-07-30 | 2023-04-11 | 北京字节跳动网络技术有限公司 | Application program testing method and device and computer storage medium |
CN112445704A (en) * | 2020-11-17 | 2021-03-05 | 平安消费金融有限公司 | Test method, test device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5022028A (en) * | 1988-03-30 | 1991-06-04 | Elverex Limited | Software verification apparatus |
CN101714119A (en) * | 2009-12-09 | 2010-05-26 | 北京邮电大学 | Test data generating device and method based on binary program |
CN102156673A (en) * | 2011-04-20 | 2011-08-17 | 北京航空航天大学 | Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof |
-
2015
- 2015-05-28 CN CN201510282614.8A patent/CN104915290B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5022028A (en) * | 1988-03-30 | 1991-06-04 | Elverex Limited | Software verification apparatus |
CN101714119A (en) * | 2009-12-09 | 2010-05-26 | 北京邮电大学 | Test data generating device and method based on binary program |
CN102156673A (en) * | 2011-04-20 | 2011-08-17 | 北京航空航天大学 | Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104915290A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104915290B (en) | Application testing method and device | |
CN103944804B (en) | Contact recommending method and device | |
CN106020784A (en) | Method and device for displaying application message, and terminal | |
CN105930147A (en) | Application function starting method and device | |
CN105975156A (en) | Application interface display method and device | |
CN109359056A (en) | A kind of applied program testing method and device | |
CN106528389A (en) | Performance evaluation method and device for system smoothness and terminal | |
CN106775248A (en) | Push the methods of exhibiting and device of content | |
CN105912258A (en) | Method and device for operation processing | |
CN106339695A (en) | Face similarity detection method, device and terminal | |
CN109213683A (en) | Method for generating test case and device | |
CN106775403A (en) | Obtain the method and device of interim card information | |
CN106354571A (en) | Message reminding method and device thereof | |
CN106547547A (en) | Collecting method and device | |
CN106537288A (en) | Application autostart control method and device | |
CN107094203A (en) | Message treatment method, device and computer-readable recording medium | |
CN105893249A (en) | Software testing method and device | |
CN106453774A (en) | Method and apparatus for displaying contact information | |
CN108984417A (en) | Method for testing software, device, terminal and storage medium | |
CN106210258A (en) | Web access method and device | |
CN105607979A (en) | Network interconnection control method and device | |
CN107463809A (en) | The display methods and device of application icon | |
CN104765686B (en) | The method and device of test application program | |
CN106339452A (en) | Event responding method and device | |
CN105898053B (en) | A kind of communications records processing equipment, method and mobile terminal |
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 |