CN106528412A - Test framework for putting of related gesture of android application - Google Patents
Test framework for putting of related gesture of android application Download PDFInfo
- Publication number
- CN106528412A CN106528412A CN201610952301.3A CN201610952301A CN106528412A CN 106528412 A CN106528412 A CN 106528412A CN 201610952301 A CN201610952301 A CN 201610952301A CN 106528412 A CN106528412 A CN 106528412A
- Authority
- CN
- China
- Prior art keywords
- gesture
- test
- android
- android application
- algorithm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 95
- 238000004458 analytical method Methods 0.000 claims abstract description 35
- 230000003068 static effect Effects 0.000 claims abstract description 31
- 238000000034 method Methods 0.000 claims description 21
- 230000008569 process Effects 0.000 claims description 13
- 238000005516 engineering process Methods 0.000 claims description 5
- 238000013461 design Methods 0.000 claims description 3
- 230000003993 interaction Effects 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 3
- 238000005096 rolling process Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 2
- 238000004364 calculation method Methods 0.000 claims 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a test framework for putting of a related gesture of an android application. The test framework is characterized by comprising a static analysis module and a runtime gesture putting module, wherein the static analysis module is used for analyzing related gesture information of each control of an original android application; and the runtime gesture putting module is used for putting a gesture library and the related gesture information on the android application to carry out testing. According to the test framework, the static analysis is carried out on the android application automatically to extract a gesture which is possibly accepted by each control of the application and then the part of information is provided for the runtime gesture putting module, the module can be adapted to automatic testing tools of most of android applications currently, in other words, the module is loosely coupled with the automatic testing tools and the compatibility is better. Finally, through putting of the related gesture, the coverage rate and the efficiency of the whole test are improved.
Description
Technical field
The present invention relates to a kind of test frame, the related gesture input test frame of particularly a kind of Android application.
Background technology
Android is the Mobile operating system platform of an open source code, and it occupies the pole in mobile device market in recent years
Big share, application developer have issued the Android application of enormous amount.Different from desktop application, Android application is often touch-control hand
What gesture drove.Receive and process specific gesture on developer's different controls in one application, so as to realize specific work(
Energy.For example, for the application of browsing pictures, grow on just list by context menu may be breathed out, so as to figure
Piece enters the operation such as edlin, and the effect of switching picture may be then produced in the enterprising line slip in picture browsing interface.
The presence of these touch control gestures causes thorough and efficient Android application automatic test to become difficult.In fact,
Conventional operation can not analyze an Android application mostly can receptible gesture (related gesture).Only examine when being operated in test part
Consider simplest click gesture, it is clear that such work can miss considerable significant gesture, so as to reduce covering for test
Lid rate.Part job design gesture library, selects gesture at random from gesture library in test, throws in the Android application, this
The method of testing of sample is halfway, because the problem for missing significant gesture is equally present because of randomness.Part work
Make then to select to enumerate whole gestures in gesture library, thrown in Android application one by one, such test be it is poorly efficient because it
Excessive nonsensical gesture can be attempted so that test expends the long time.In order to reach to the thorough of Android application and
It is efficient to test, realize that the related gesture to Android application is thrown in extremely urgent.
The content of the invention
The technical problem to be solved is to provide a kind of related hand of the Android application that can carry out efficient test
Gesture throws in test frame.
To solve above-mentioned technical problem, the technical solution adopted in the present invention is:
A kind of related gesture of Android application throws in test frame, it is characterised in that:Comprising static analysis module and operation
When gesture putting module, static analysis module be used for analyze an original Android application each control related gesture letter
Breath, during operation, gesture putting module is based on related gesture information, the part gesture in gesture library is thrown in and is opened up in Android application
Open test.
Further, during the operation, gesture putting module provides a gesture library, with related gesture information common service
What the gesture that algorithm is thrown in determine next input in gesture is, gesture throws in algorithm service in ergodic algorithm is applied, should
Can be fitted in any automated test tool with ergodic algorithm, launch test, and obtain the result of test.
Further, the workflow of the static analysis module is, for an original Android application, static analysis mould
Block analysis goes out the related gesture information of four kinds of gesture identification codes of original Android application, if can not find any of which one in application
Code is planted, then shows that this application does not have the gesture interaction of complexity, the test moment only attempts simple clicking operation;If finding one
Code is planted, then according to the type of gesture identification code, is processed respectively.
Further, four kinds of gesture identification codes are included based on Android gesture identification storehouse, are voluntarily known based on developer
Other gesture, the gesture identification code based on the preservation of Android gesture and loading storehouse and based on Android particular control;Its concrete operations
Cheng Wei:
When gesture identification code is the gesture identification code based on Android gesture identification storehouse, static analysis module passes through can
Up to property analytical technology, the corresponding relation of a control and the capped method of its gesture identification class is analyzed, so as to obtain this
The related gesture of individual control;
When gesture identification code is that the gesture identification code of gesture is voluntarily recognized based on developer, static analysis module is swept
Sensitive API is retouched, sensitive API is called if finding, show that multi-point touch gesture is related gesture;
When gesture identification code is to be preserved based on Android gesture and load the gesture identification code in storehouse, static analysis module
Directly assume that multi-point touch gesture is related gesture;
When gesture identification code is the gesture identification code based on Android particular control, static analysis module designs one
Database, stores the mapping relations of particular control and related gesture, in advance so as to the related gesture of certain control of direct access.
Further, during the operation, the workflow of gesture putting module is, builds gesture library, it and related gesture
Information is combined, and common service throws in algorithm in gesture, so as to produce the gesture that the next one will be launched;Tester is application
Ergodic algorithm is integrated in bottom automated test tool;The gesture that will be launched is served and applies ergodic algorithm, application time
Implementation capacity of the algorithm again by bottom testing tool is gone through, is veritably carried out test, is completed test, finally give test result.
Further, the gesture library includes simple click gesture, conventional regular gesture and the multi-finger gesture being of little use,
Conventional regular gesture is mainly pressed, is double-clicked, sliding, rolling comprising length, scaling, and the multi-finger gesture being of little use mainly is slided comprising finger more
Move, refer to scaling and random multi-finger gesture more.
Further, recording-playback instrument is provided with during the operation in gesture putting module, for many fingers being of little use
Gesture, prerecords the better multi-finger gesture being of little use, and need to only be played back at the test moment.
Further, the flow process that the gesture throws in algorithm is gesture library to be combined with related gesture information and is thrown in
Related gesture complete or collected works, by the related gesture in related gesture complete or collected works thrown in one by one and recorded render to which, it is to avoid weight
It is multiple.
Further, the application ergodic algorithm flow process is to safeguard that a global collection is combined into S, shows what is accessed
The set of state;In once performing, original state is u, and two tuples are π, calls gesture to throw in algorithm first, and obtaining the next one will
Gesture g being launched, shows to test complete under this state if g is for sky, directly returns, otherwise throw in next gesture actual
To being test for Android application;After input, new state v is obtained, ifS=S ∪ { g } are then set, and with parameter v, π
.append(<g,v>) recursive call this algorithm;Whether v is otherwise first judged equal to u, if being equal to, directly attempt next hand
Gesture, otherwise needs to date back state u to attempt next gesture.
Further, it is described to date back state u, first attempt to click on physics Back keys using ergodic algorithm, obtain new
State k, if existing<gi,si>∈ π and si==k, then throw in gi+1, gi+2 ... g | π |;If not existing, application is restarted, from
Head starts to throw in whole gi, and realization dates back state u.
The present invention compared with prior art, with advantages below and effect:The present invention will be test for Android to one
Using static analysis is carried out first, obtain this Android application each control can receptible gesture, then in actual test
During, for each control, associated gesture only being thrown in, the present invention is for the static analysis and dynamic survey of Android application
Examination is all automatic, and for the dependence of bottom testing tool is low, occupation mode is easy to learn.The present invention is automatically to one
Android application carry out static analysis with extract this using each control can receptible gesture, then this partial information is provided
To gesture putting module during operation, the module can be fitted in the automated test tool of current overwhelming majority Android application,
In other words, it and automated test tool are loose couplings, and compatibility is preferably.Eventually through the input of related gesture, improve whole
The coverage rate and efficiency of individual test.
Description of the drawings
Fig. 1 is the structure chart that a kind of related gesture of Android application of the present invention throws in test frame.
Fig. 2 is the flow chart of the static analysis module of the present invention.
The flow chart of gesture putting module when Fig. 3 is the operation of the present invention.
Fig. 4 is the structure chart of the gesture library of the present invention.
Fig. 5 is the flow chart that the gesture of the present invention throws in algorithm.
Fig. 6 is the flow chart of the application ergodic algorithm of the present invention.
Specific embodiment
Invention is illustrated in order to clearer, first, some words are explained.
The Android application refers to an application that can be installed on Android mobile device and run, when clearly entering to it
The installation package file of this application is refered in particular to during row operation, entitled apk is extended.
The bytecode of the Android application is the essence of Android application, and it is made up of several class files, each in these classes
If self-contained drying method, the method in these classes realizes specific function jointly by cooperation.
The related gesture refers on a control gesture that may receive and process, and such gesture is often by developing
Person specifies and programs what is recognized and process, is also that the static analysis module needs to analyze.
The gesture is thrown in and is referred at the test moment using the specific gesture of various approach generation, then such gesture
Operation is on certain control at current interface.
The static analysis module refers to that the apk files to Android application carry out bytecode analysis, obtains this application
The related gesture of each control.
During the operation, gesture putting module is referred under the support of certain automated test tool, is realized to Android application
Each state traversal logic, and in this process throw in related gesture strategy, it does not rely on any one
Specific automated test tool.It is constituted by gesture library, using ergodic algorithm and gesture input algorithm.
The gesture library refers to the set of all possible gesture, and in dynamic test, all of gesture all derives from this.
The application ergodic algorithm refers to according to certain rule, implements specifically to operate so as to the greatest extent in Android application
The different conditions of Android application are accessed more may.
The gesture throws in algorithm, refers to the gesture that will be launched according to specific policy selection from gesture library.
The present invention is described in further detail below in conjunction with the accompanying drawings and by embodiment, and following examples are to this
Bright explanation and the invention is not limited in following examples.
As shown in figure 1, the test frame that the related gesture for Android application provided in an embodiment of the present invention is thrown in, by one
When set static analysis module and a set of operation, gesture putting module is constituted.For an original Android application, first by static state
Analysis module, analyzes the related gesture information of its each control.Then, operationally in gesture putting module, there is provided one
Individual gesture library, throws in algorithm in gesture with related gesture information common service, to determine that what the gesture of next input is, this
Algorithm is served again and applies ergodic algorithm.Can be fitted in any automated test tool using ergodic algorithm, launch to survey
Examination, and obtain the result of test.
This test frame is lower coupling with the automated test tool of bottom, because static analysis module is an independence
Module, do not rely on any other instrument, once obtain related gesture information, then follow-up work is without the need for static analysis mould
The participation of block.And gesture putting module when running, its core is mainly a whole set of and throws in strategy, throws in strategy again independently of real
The operation of input.In fact, operation when gesture putting module for bottom automated test tool minimum requirements only have a bit:
The layout information and each control information of current application can be obtained, such that it is able to obtain the status information of current application.And
Real gesture is thrown in, and both can be realized by bottom automated test tool, it is also possible to realized using the acquiescence of this test frame
(based on the instrument that Androids SDK such as Uiautomator are provided).In addition it is also necessary to a reasonable recording-playback instrument, surveys
Examination personnel can voluntarily from realizing the unconventional gesture of multiple spot.
The flow chart that Fig. 2 describes the work of static analysis module.For an original Android application, this module can be analyzed
Go out the related gesture information of its four kinds of gesture identification codes.If can not find code as any one in this application,
Then show that this application may not have the gesture interaction of complexity, therefore test the moment only attempt simple clicking operation.Otherwise,
According to the type of gesture identification code, process respectively.
If based on Android gesture identification storehouse, then developer can pass through covering method (override method)
Mode show interested in some gestures, monitored, realized specific processing method.Therefore, this module passes through accessibility
Analytical technology, analyzes the corresponding relation of a control and the capped method of its gesture identification class, so as to obtain this control
The related gesture of part.
If voluntarily recognizing gesture based on developer, then developer is the original number for analyzing Touch Screen in fact
According to then determining gesture to be recognized by methods such as threshold value inspection, data minings, and be acted upon.In the case, can not
Energy Accurate Analysis go out the gesture of correlation.But experiment finds, when developer calls some sensitive APIs (such as
FindPointerIndex (int), getPointerCount () etc.) when, often show developer wish process be one
Multi-point gestures.Therefore, this module scans sensitive API, if it find that such API is called, then shows that multi-point touch gesture is
Related gesture.
If being preserved based on Android gesture and loading storehouse, then developer may manual drawing certain gesture, preserve
Get off, after application starts, draw again, by being compared with the gesture for preserving, so as to recognize this gesture.It can be seen that
Such gesture is not that Android system is default, therefore hardly possible is analyzed yet.In the case, this static analysis module
Directly assume that multi-point touch gesture is related gesture.
If based on Android particular control, then when developer uses such control, just directly show
Some gestures are related.The controls such as such as ViewPager, Gallery, are directly related to the gesture that horizontally slips.Cause
This, this static module devises a database, stores the mapping relations of particular control and related gesture in advance, such that it is able to
The related gesture of direct access certain control.
The structure of gesture putting module when Fig. 3 describes to run.First, based on certain method, gesture library is built, it
Combined with related gesture information, common service throws in algorithm in gesture, so as to produce the gesture that the next one will be launched.Test
Personnel are needed being integrated in certain bottom automated test tool using ergodic algorithm, for different bottom testing tools,
May require carrying out original Android application the pretreatment such as pitching pile (with statistics codes coverage rate etc.).The gesture clothes that will be launched
It is engaged in, in ergodic algorithm is applied, using ergodic algorithm implementation capacity again by bottom testing tool, veritably carrying out test, completing to survey
Examination, finally gives test result.
Fig. 4 describes the structure of gesture library.In this test frame, mainly include three class gestures.It is simplest first
Gesture is clicked on, nearly all Android automated test tool should all generate such gesture.Next to that conventional rule
Gesture, such as length are pressed, are double-clicked, sliding, rolling, scaling etc., such gesture be also developer use it is most.Currently compare stream
Capable Android automated test tool, such as Uiautomator provided in Android SDK can produce such gesture.Finally
It is exactly multi-finger gesture that some are of little use, mainly includes here and refer to more and slide, refer to scaling and random multi-finger gesture more.
In fact, developer often can assume that user completes the gestures such as scaling using double fingers, then the test for carrying out multi-finger gesture can
The defect of application can be exposed, for test is beneficial.But such gesture is difficult to directly be represented with original touch data,
Therefore this test frame is based on-playback instrument is recorded, prerecord it is better seldom use gesture, so need to only return at the test moment
Put such gesture.
Fig. 5 describes the flow process that gesture throws in algorithm.Any gesture is thrown in depending on two factors:Gesture library, input plan
Slightly.The former indicates the complete or collected works of the gesture that may be thrown in, and the latter is then to select a proper subclass to be thrown in from complete or collected works.Here
Throw in the contrast that strategy is mainly used for effect.Simplest strategy is to merely click on, and in the case, the gesture of input is only a little
Hit operation.Another simple test is to select all, and in the case, the gesture of input includes the whole hands in gesture library
Gesture.This input algorithm can record rendered under certain state which, such that it is able to avoid repeat.Two above strategy
All it is unrelated with specific Android application, the former coverage rate is relatively low, and the latter is less efficient.The default policy of this test frame is
Related gesture is thrown in, that is, combines related gesture information, only throw in related gesture, equally it avoids the problem of repetition.It is real
Test and show, it can reach the high coverage rate of comparison in the case of relatively efficiently.
Fig. 6 describes the flow process using ergodic algorithm.The bright spot of this algorithm is to combine gesture information, while relatively good
Solve the problems, such as Android application test in backtracking.In order to solve the problems, such as backtracking, the parameter of this algorithm includes current shape
State, and before<Operation, state>The list of two tuples.For global duplicate removal, need to safeguard a global set S, table
The set of the bright state for having accessed.
During certain performs, original state is u, and two tuples are π, calls gesture to throw in algorithm first, and obtaining the next one will be by
Gesture g of input, shows to test complete under this state if not, directly returns, otherwise throw in next gesture actual
To being test for Android application.After input, new state v is obtained.IfThen show that this is a new state, be intentional
Justice, it is therefore desirable to further travel through, so as to arrange S=S ∪ { g }, and with parameter v, π .append (<g,v>) recursive call sheet
Algorithm.Whether v is otherwise first judged equal to u, if equal to, then show that this operation is insignificant, do not change state, therefore
Next gesture can directly be attempted.Otherwise need to date back state u to attempt next gesture.
For state u that dates back, this algorithm first attempts to click on physics Back keys, obtains new state k.If there is<
gi,si>∈ π and si==k, the then state after showing to click on Back were accessed before being, then in order to trace back to state u,
Only need in fact throw in gi+1, gi+2 ... g | π |.If it does not exist, then taking conservative strategy, restart application, from the beginning open
Begin to throw in whole gi, also just realize having traced back to state u.In fact, by two tuples lists, in most cases, clicking on
Certain Back traversed before being all to revert to state, therefore starting anew for conventional operation is compared, effect can be greatly improved
Rate.
Above content described in this specification is only illustration made for the present invention.Technology belonging to of the invention
The technical staff in field can be made various modifications or supplement or substituted using similar mode to described specific embodiment, only
Without departing from the content of description of the invention or to surmount scope defined in the claims, the guarantor of the present invention all should be belonged to
Shield scope.
Claims (10)
1. a kind of related gesture of Android application throws in test frame, it is characterised in that:During comprising static analysis module with operation
Gesture putting module, static analysis module are used for the related gesture information of each control for analyzing an original Android application,
During operation, gesture putting module is based on related gesture information, the part gesture in gesture library is thrown in and launches to survey in Android application
Examination.
2. test frame is thrown according to a kind of related gesture of the Android application described in claim 1, it is characterised in that:The fortune
During row, gesture putting module provides a gesture library, throws in algorithm in gesture with related gesture information common service next to determine
What the gesture of individual input is, gesture throws in algorithm service in ergodic algorithm is applied, and can be fitted to using ergodic algorithm any
Automated test tool in, launch test, and obtain the result of test.
3. test frame is thrown according to a kind of related gesture of the Android application described in claim 1, it is characterised in that:It is described quiet
The workflow of state analysis module is that, for an original Android application, static analysis module analysis go out original Android application
The related gesture information of four kinds of gesture identification codes, if can not find any of which code in application, shows this application
There is no the gesture interaction of complexity, the test moment only attempts simple clicking operation;If finding a kind of code, according to gesture identification
The type of code, is processed respectively.
4. test frame is thrown according to a kind of related gesture of the Android application described in claim 3, it is characterised in that:Described four
Plant gesture identification code to include based on Android gesture identification storehouse, gesture is voluntarily recognized based on developer, is preserved based on Android gesture
And loading storehouse and the gesture identification code based on Android particular control;Its specific operation process is:
When gesture identification code is the gesture identification code based on Android gesture identification storehouse, static analysis module passes through accessibility
Analytical technology, analyzes the corresponding relation of a control and the capped method of its gesture identification class, so as to obtain this control
The related gesture of part;
When gesture identification code is that the gesture identification code of gesture is voluntarily recognized based on developer, static analysis module scans are quick
Sense API, if finding, sensitive API is called, and shows that multi-point touch gesture is related gesture;
When gesture identification code is to be preserved based on Android gesture and load the gesture identification code in storehouse, static analysis module is direct
It is assumed that multi-point touch gesture is related gesture;
When gesture identification code is the gesture identification code based on Android particular control, static analysis module designs data
Storehouse, stores the mapping relations of particular control and related gesture, in advance so as to the related gesture of certain control of direct access.
5. test frame is thrown according to a kind of related gesture of the Android application described in claim 1, it is characterised in that:The fortune
During row, the workflow of gesture putting module is, builds gesture library, it is combined with related gesture information, and common service is in gesture
Algorithm is thrown in, so as to produce the gesture that the next one will be launched;Tester is automatic bottom is integrated into using ergodic algorithm
Change in testing tool;The gesture that will be launched is served and applies ergodic algorithm, tests work by bottom again using ergodic algorithm
The implementation capacity of tool, veritably carries out test, completes test, finally give test result.
6. test frame is thrown according to a kind of related gesture of the Android application described in claim 5, it is characterised in that:The hand
Gesture storehouse includes simple click gesture, conventional regular gesture and the multi-finger gesture being of little use, and conventional regular gesture is mainly included
Length is pressed, is double-clicked, sliding, rolling, scaling, and the multi-finger gesture being of little use mainly includes and refers to slip more, refers to scaling and random more
Multi-finger gesture.
7. test frame is thrown according to a kind of related gesture of the Android application described in claim 6, it is characterised in that:The fortune
Recording-playback instrument is provided with during row in gesture putting module, for the multi-finger gesture being of little use, prerecord it is better seldom
Multi-finger gesture, need to only be played back at the test moment.
8. test frame is thrown according to a kind of related gesture of the Android application described in claim 5, it is characterised in that:The hand
It is to be combined to obtain throwing in related gesture complete or collected works by gesture library with related gesture information that gesture throws in the flow process of algorithm, by related gesture
Related gesture in complete or collected works thrown in one by one and recorded render to which, it is to avoid repeat.
9. test frame is thrown according to a kind of related gesture of the Android application described in claim 5, it is characterised in that:It is described to answer
It is to safeguard that a global collection is combined into S with ergodic algorithm flow process, shows the set of state for having accessed;In once performing, just
Beginning state is u, and two tuples are π, calls gesture to throw in algorithm first, obtains next by gesture g being launched, if g is for sky
Show under this state, to test complete, directly return, otherwise be delivered to be test for Android application by next gesture actual;Throw in
Afterwards, new state v is obtained, ifS=S ∪ { g } are then set, and with parameter v, π .append (<g,v>) recursive call this calculation
Method;Whether v is otherwise first judged equal to u, if being equal to, directly attempt next gesture, otherwise need to date back state u to attempt
Next gesture.
10. test frame is thrown according to a kind of related gesture of the Android application described in claim 9, it is characterised in that:It is described
State u is dateed back, is first attempted to click on physics Back keys using ergodic algorithm, is obtained new state k, if existing<gi,si>∈π
And si==k, then throw in gi+1, gi+2 ... g | π |;If not existing, application is restarted, start anew to throw in whole gi, realize
Date back state u.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610952301.3A CN106528412B (en) | 2016-10-27 | 2016-10-27 | A kind of related gesture dispensing test frame of Android application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610952301.3A CN106528412B (en) | 2016-10-27 | 2016-10-27 | A kind of related gesture dispensing test frame of Android application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106528412A true CN106528412A (en) | 2017-03-22 |
CN106528412B CN106528412B (en) | 2019-01-08 |
Family
ID=58325345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610952301.3A Active CN106528412B (en) | 2016-10-27 | 2016-10-27 | A kind of related gesture dispensing test frame of Android application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528412B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595321A (en) * | 2018-04-04 | 2018-09-28 | 北京潘达互娱科技有限公司 | A kind of application testing method and device |
CN113419945A (en) * | 2021-05-30 | 2021-09-21 | 武汉卡比特信息有限公司 | Interconnection-based automatic testing method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103353858A (en) * | 2013-06-06 | 2013-10-16 | 百度在线网络技术(北京)有限公司 | Automatic testing method and device based on action touch simulation |
CN103530221A (en) * | 2012-07-02 | 2014-01-22 | 北京大学 | Method for mapping procedure behavior and interface operation in Android system |
CN104156308A (en) * | 2014-07-29 | 2014-11-19 | 南京大学 | Mobile application testing method on basis of playback of execution trace of users |
WO2015126392A1 (en) * | 2014-02-20 | 2015-08-27 | Hewlett-Packard Development Company, L.P. | Emulating a user performing spatial gestures |
US20160026560A1 (en) * | 2006-08-14 | 2016-01-28 | Soasta, Inc. | Functional Test Automation for Gesture-Based Mobile Applications |
CN105653441A (en) * | 2014-11-21 | 2016-06-08 | 中国科学院声学研究所 | Method and system for UI traversal testing |
-
2016
- 2016-10-27 CN CN201610952301.3A patent/CN106528412B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160026560A1 (en) * | 2006-08-14 | 2016-01-28 | Soasta, Inc. | Functional Test Automation for Gesture-Based Mobile Applications |
CN103530221A (en) * | 2012-07-02 | 2014-01-22 | 北京大学 | Method for mapping procedure behavior and interface operation in Android system |
CN103353858A (en) * | 2013-06-06 | 2013-10-16 | 百度在线网络技术(北京)有限公司 | Automatic testing method and device based on action touch simulation |
WO2015126392A1 (en) * | 2014-02-20 | 2015-08-27 | Hewlett-Packard Development Company, L.P. | Emulating a user performing spatial gestures |
CN104156308A (en) * | 2014-07-29 | 2014-11-19 | 南京大学 | Mobile application testing method on basis of playback of execution trace of users |
CN105653441A (en) * | 2014-11-21 | 2016-06-08 | 中国科学院声学研究所 | Method and system for UI traversal testing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595321A (en) * | 2018-04-04 | 2018-09-28 | 北京潘达互娱科技有限公司 | A kind of application testing method and device |
CN113419945A (en) * | 2021-05-30 | 2021-09-21 | 武汉卡比特信息有限公司 | Interconnection-based automatic testing method and system |
CN113419945B (en) * | 2021-05-30 | 2022-07-01 | 武汉卡比特信息有限公司 | Interconnection-based automatic testing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106528412B (en) | 2019-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Fukushima et al. | An empirical study of just-in-time defect prediction using cross-project models | |
CN109697162A (en) | A kind of software defect automatic testing method based on Open Source Code library | |
CN105786930B (en) | Based on the searching method and device for touching interaction | |
CN110837550A (en) | Knowledge graph-based question and answer method and device, electronic equipment and storage medium | |
CN101930399A (en) | Method for recording software test | |
CN104899016B (en) | Allocating stack Relation acquisition method and device | |
CN110222715B (en) | Sample homologous analysis method based on dynamic behavior chain and dynamic characteristics | |
CN103136471A (en) | Method and system for testing malicious Android application programs | |
Villanes et al. | What are software engineers asking about android testing on stack overflow? | |
CN110826302A (en) | Questionnaire creating method, device, medium and electronic equipment | |
CN109783351A (en) | Interface detection method, apparatus and computer readable storage medium | |
CN109947635A (en) | A kind of data reporting method, device, storage medium and terminal device | |
CN106776339A (en) | Automated testing method and device | |
CN105068921A (en) | App comparative analysis based Android application store credibility evaluation method | |
CN109871686A (en) | Rogue program recognition methods and device based on icon representation and software action consistency analysis | |
CN109101519B (en) | Information acquisition system and heterogeneous information fusion system | |
CN113076538B (en) | Method for extracting embedded privacy policy of mobile application APK file | |
CN109522692B (en) | Webpage machine behavioral value method and system | |
US20220391641A1 (en) | Defect Detection System | |
CN108280348A (en) | Android Malware recognition methods based on RGB image mapping | |
Abad et al. | Learn more, pay less! lessons learned from applying the wizard-of-oz technique for exploring mobile app requirements | |
CN106528412A (en) | Test framework for putting of related gesture of android application | |
CN110442807A (en) | A kind of webpage type identification method, device, server and storage medium | |
CN108469997B (en) | Automatic identification method of user-defined heap management function based on dynamic characteristics | |
CN106447375A (en) | Age information estimation method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |