CN107783867A - Gesture method of testing, device, computer equipment and storage medium - Google Patents

Gesture method of testing, device, computer equipment and storage medium Download PDF

Info

Publication number
CN107783867A
CN107783867A CN201710614421.7A CN201710614421A CN107783867A CN 107783867 A CN107783867 A CN 107783867A CN 201710614421 A CN201710614421 A CN 201710614421A CN 107783867 A CN107783867 A CN 107783867A
Authority
CN
China
Prior art keywords
gesture
test
script
test script
gesture test
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
Application number
CN201710614421.7A
Other languages
Chinese (zh)
Other versions
CN107783867B (en
Inventor
彭海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201710614421.7A priority Critical patent/CN107783867B/en
Publication of CN107783867A publication Critical patent/CN107783867A/en
Priority to PCT/CN2018/096373 priority patent/WO2019019955A1/en
Application granted granted Critical
Publication of CN107783867B publication Critical patent/CN107783867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Abstract

The present invention relates to a kind of gesture method of testing method, apparatus, computer equipment and storage medium, methods described to include:Gesture test request is received, the gesture test request carries gesture mark;Identified according to the gesture and obtain gesture test script, wherein, the gesture test script generates template generation according to the control information sequence and gesture test script of input gesture;Gesture test is carried out to tested application according to the gesture test script, the gesture test script includes being used for the action command sequence for simulating the input gesture, and the action command sequence includes calling the starting control of the input gesture test clicked on the event functions test instruction operated and call slip event function to be operated successively between the adjacent control of the input gesture to instruct successively;Obtain gesture test result corresponding to the gesture test script.The above method can reduce the workload of test, improve the efficiency of test.

Description

Gesture method of testing, device, computer equipment and storage medium
Technical field
The present invention relates to testing field, more particularly to gesture method of testing, device, computer equipment and storage medium.
Background technology
Application program usually requires to judge the performance of software by testing before being taken into use.For example pass through length By the control in user interface, whether test application program exports default result.With the iteratively faster of demand, taking human as The automatic test that the behavioral test of driving is converted into machine execution turns into inevitable requirement.
At present, when carrying out carry out automatic test, it is necessary first to technical staff writes test script according to testing requirement, Then the test script is performed using automated test tool to be tested.However, in the research and practice to prior art, It was found by the inventors of the present invention that there is problems with prior art:Current automation framework is not all close specifically for gesture The method of testing of code, therefore during each gesture test, technical staff needs the substantial amounts of code of manual compiling, and workload is big, so as to Reduce the efficiency of test.
The content of the invention
Based on this, it is necessary to for when carrying out gesture test, technical staff needs the substantial amounts of code of manual compiling, work Amount is big, the problem of so as to reduce the efficiency of test, there is provided a kind of gesture method of testing, device, computer equipment and storage are situated between Matter.
A kind of gesture method of testing, the method for testing include:Gesture test request is received, the gesture test request is taken Identified with gesture;Identified according to the gesture and obtain gesture test script, wherein, the gesture test script is according to input hand Control information sequence and gesture test script the generation template generation of gesture;Tested application is entered according to the gesture test script Row gesture is tested, and the gesture test script includes being used for the action command sequence for simulating the input gesture, and the action refers to Make sequence include calling the starting control of the input gesture successively click on the test that is operated of event functions instruct and The test instruction for calling slip event function to be operated successively between the adjacent control of the input gesture;Obtain the hand Gesture test result corresponding to gesture test script.
In one of the embodiments, methods described also includes:Obtain the control information of the input gesture;According to described Control information and the input gesture are sequentially generated control information sequence by control;According to the control information sequence with And gesture test script described in the gesture test script generation template generation.
In one of the embodiments, the gesture mark includes first gesture mark and second gesture mark, described Identifying the step of obtaining gesture test script according to the gesture includes:Identified according to the first gesture and obtain first gesture survey Training sheet, and, identified according to the second gesture and obtain second gesture test script;It is described according to the gesture test script The step of carrying out gesture test to tested application includes:The first gesture test script is called to carry out hand to the tested application Gesture is tested;After the completion of first gesture test script test, initialization directive is sent to the tested application, so that described Tested application is initialized;When reaching the wait initialization time of the tested application, the second gesture is called to test Script carries out gesture test to the tested application.
In one of the embodiments, described the step of obtaining gesture test result corresponding to the gesture test script, wraps Include:Detect and whether occur default homepage keyword in the tested application, if so, determining that the gesture test result is gesture Unlock successfully, if it is not, determining the gesture test result for gesture unblock failure;Obtain hand corresponding to the gesture test script Gesture test result.
A kind of gesture test device, the test device include:Test request receiving unit, please for receiving gesture test Ask, the gesture test request carries gesture mark;Script acquiring unit, gesture survey is obtained for being identified according to the gesture Training sheet, wherein, the gesture test script generates mould according to the control information sequence and gesture test script of input gesture Plate generates;Gesture test cell, for carrying out gesture test to tested application according to the gesture test script, the gesture is surveyed Training sheet includes being used for the action command sequence for simulating the input gesture, and the action command sequence includes to described defeated successively The starting control for entering gesture calls test instruction and the adjacent control in the input gesture for clicking on that event functions are operated The test instruction that slip event function is operated is called between part successively;Test result acquiring unit, for obtaining the hand Gesture test result corresponding to gesture test script.
In one of the embodiments, described device also includes:Control information acquiring unit, for obtaining user's input The control information of the input gesture;Control information sequence generating unit, for according to it is described input gesture control information with And the input gesture is sequentially generated control information sequence by control;Test script generation unit, for according to the control Gesture test script described in part information sequence and gesture test script generation template generation.
In one of the embodiments, the gesture mark includes first gesture mark and second gesture mark, described Script acquiring unit is specifically used for:Identified according to the first gesture and obtain first gesture test script, and, according to described the Two gestures mark obtains second gesture test script;The gesture test cell includes:First script calling module, for calling The first gesture test script carries out gesture test to the tested application;Initialization directive sending module, for when described After the completion of the test of first gesture test script, initialization directive is sent to the tested application, so that the tested application is carried out Initialization;Second script calling module, for when the wait initialization time arrival of the tested application, calling described second Gesture test script carries out gesture test to the tested application.
In one of the embodiments, the test result acquiring unit includes:Keyword detection module, for detecting State in tested application and default homepage keyword whether occur, if so, determine that the gesture test result unlocks successfully for gesture, If it is not, determine the gesture test result for gesture unblock failure;Test result acquisition module, for obtaining the gesture test Gesture test result corresponding to script.
A kind of computer equipment, including memory and processor, computer-readable instruction are stored with the memory, institute When stating computer-readable instruction by the computing device so that the step of the computing device gesture method of testing described above Suddenly.
A kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device performs so that one or more processors perform the step of gesture method of testing described above.
Above-mentioned gesture method of testing, device, computer equipment and storage medium, by carrying what gesture identified in reception During gesture test request, identified according to gesture and obtain gesture test script, then tested application is entered according to gesture test script Row gesture is tested, and obtains gesture test result corresponding to the gesture test script.Wherein, the gesture test script is according to defeated Enter control location information path sequence corresponding to gesture and gesture test script generates template generation, gesture test script bag The action command sequence for simulation input gesture is included, in action command sequence, includes the starting control to inputting gesture successively The test action that part calls click event functions to be operated is instructed and called between the adjacent control of input gesture and slided The test instruction that event functions are operated.Therefore, when needing to carry out gesture test, as long as hand corresponding to selection as needed Gesture identifies, can be with according to control information sequence of the gesture mark acquisition according to input gesture and default gesture test script The gesture test script of template generation is generated, and tested application is tested using the gesture test script, gesture is obtained and surveys Test result, reduce the workload of test, improve the efficiency of test.
Brief description of the drawings
Fig. 1 is the implementation environment figure of the gesture method of testing provided in one embodiment;
Fig. 2 is the internal structure block diagram of one embodiment Computer equipment;
Fig. 3 is the flow chart of gesture method of testing in one embodiment;
Fig. 4 is the flow chart for carrying out gesture test in one embodiment to tested application according to gesture test script;
Fig. 5 is the flow chart that gesture test result corresponding to gesture test script is obtained in one embodiment;
Fig. 6 is the flow chart of gesture method of testing in one embodiment;
Fig. 7 is the schematic diagram that gesture is inputted in one embodiment;
Fig. 8 is the structured flowchart of gesture test device in one embodiment;
Fig. 9 is the structured flowchart of gesture test cell in one embodiment;
Figure 10 is the structured flowchart of test result acquiring unit in one embodiment;
Figure 11 is the structured flowchart of gesture test device in one embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes Say, in the case where not departing from scope of the present application, first gesture test script can be referred to as to second gesture test script, and Similarly, second gesture test script can be referred to as to second gesture test script.
Fig. 1 is the implementation environment figure of the gesture method of testing provided in one embodiment, as shown in figure 1, in the implementation ring In border, including computer equipment 110 and terminal 120.
Computer equipment 110 is that computer equipment, the computer such as test equipment, the computer that for example, tester uses are set Automated test tool is installed on standby 110, such as can be Appium.Progress gesture test in need is installed in terminal 120 Tested application, when need test when, tester can send gesture test request in computer equipment 110, the gesture survey Gesture mark is carried in examination request, computer equipment 110 receives the gesture test request, is identified according to gesture and obtains computer Gesture test script corresponding with gesture mark in equipment 110.Then gesture test pin is performed using automated test tool This, tests the tested application in terminal 120, and obtain gesture test result corresponding to gesture test script.
It should be noted that terminal 120 and computer equipment 110 can be smart mobile phone, tablet personal computer, notebook electricity Brain, desktop computer etc., but be not limited thereto.Computer equipment 110 and terminal 120 can pass through bluetooth, USB (Universal Serial Bus, USB) or other communication connected modes are attached, and the present invention is herein not It is limited.
Fig. 2 is the internal structure schematic diagram of one embodiment Computer equipment.As shown in Fig. 2 the computer equipment bag Include processor, non-volatile memory medium, memory and the network interface connected by system bus.Wherein, the computer is set Standby non-volatile memory medium is stored with operating system, database and computer-readable instruction, and control can be stored with database Part information sequence, when the computer-readable instruction is executed by processor, it may be such that processor realizes a kind of gesture method of testing.Should The processor of computer equipment is used to provide calculating and control ability, supports the operation of whole computer equipment.The computer is set Computer-readable instruction can be stored with standby memory, when the computer-readable instruction is executed by processor, may be such that processing Device performs a kind of gesture method of testing.The network interface of the computer equipment is used for and terminal connection communication.People in the art Member is appreciated that the block diagram of the structure, the only part-structure related to application scheme that are shown in Fig. 2, composition pair The restriction for the computer equipment that application scheme is applied thereon, specific computer equipment can include than shown in figure more More or less parts, either combine some parts or arranged with different parts.
As shown in figure 3, in one embodiment it is proposed that a kind of gesture method of testing, the gesture method of testing can answer For in above-mentioned computer equipment 110, specifically may comprise steps of:
Step 302, gesture test request is received, gesture test request carries gesture mark;
In the present embodiment, gesture is identified for identifying gesture, can be made up of characters such as word, numerals, can also It is the mark that other can identify gesture.
In certain embodiments, gesture mark can be one or be multiple.When gesture is identified as it is multiple when, obtaining While gesture identifies, the execution sequence of gesture test script corresponding to gesture mark can also be obtained.For example, tester exists When inputting first gesture mark and second gesture mark, the execution sequence of gesture test scripts corresponding to them can be inputted. The execution that computer equipment 110 obtains first gesture mark, second gesture mark and gesture test script corresponding to them is suitable Sequence.
Step 304, identified according to gesture and obtain gesture test script, gesture test script is the control according to input gesture Information sequence and gesture test script generate template generation;
In embodiments of the present invention, gesture test script corresponding to input gesture can be generated in advance and is stored, and work as acquisition When being identified to gesture, the gesture test script according to corresponding to directly obtaining gesture mark.Can also get gesture mark when, The control information sequence according to corresponding to obtaining gesture mark, template is generated further according to control information sequence and gesture test script Generate gesture test script.
Gesture test script generation template is that the testing procedure performed when being tested according to gesture is write in advance, by gesture Path decomposing is multiple controls (initial control, N number of intermediate control (N=0,1,2 ...) terminate control) for being sequentially connected and adjacent Line between control.Therefore gesture test can be analyzed to following testing procedure:First clicked on for initial control Testing procedure, and since the initial control, enter one or more tests of line slip between each adjacent control successively Step.Therefore in gesture test, performed action and order are fixed in testing procedure, and the control that simply gesture is passed through is not Together.Therefore, gesture test script generation template can be generated according to the gesture testing procedure of decomposition.When the control for getting gesture During information sequence, it is input in gesture test script generation template, can be to generate gesture test script.
The mark for the control that control information is passed through for mark gesture, corresponding control can be found according to control information, Control information for example can be the Xpath paths of control.Control information sequence is generated according to input gesture, and user can gather around There is the gesture for being inputted in the equipment of touch-screen and wanting test, computer equipment 110 obtains by obtaining the control that input gesture is passed through The order of the control of control information and process is taken, generates control information sequence.For example, all control informations that gesture will be inputted Form an array.
In certain embodiments, gesture test script generation template can utilize the compiled code of script Template, sets the variable of filling in need in the Code Template, and variable is the control information of gesture.Certainly, gesture test pin This generation template can also be the format module of other prefabricated forms, such as tabular template, in the tabular template-setup First testing procedure is clicks on, and to slide, tabular template is additionally provided with each step and corresponds to control second testing procedure The filling position of information.When getting the control information sequence of input gesture, gesture test script generation template is input to In, it is possible to script generation gesture test script is utilized according to the compiling code preset.Wherein, an exemplary table The user interface for template of formatting can be as shown in table 1, and control information row therein are the filling position of control information, work as acquisition During to control information sequence, control information is filled in order.
Table 1:
Step Control type Lookup mode Control information Type of action
1 Native Xpath Click
2 Native Xpath Move
3 Native Xpath Move
4 Native Xpath Move
In certain embodiments, when gesture is identified as it is multiple when, with gesture mark include first gesture identify and second Exemplified by gesture mark, then the step of obtaining gesture test script is identified according to gesture and specifically included:Obtained according to first gesture mark First gesture test script is taken, and, identified according to second gesture and obtain second gesture test script;
For example, can be while acquisition first gesture test script be identified according to first gesture, according to second gesture mark Know and obtain second gesture test script.Second gesture test script can certainly first be obtained and obtain first gesture test pin again This.Acquisition order of the embodiment of the present invention to second gesture test script and first gesture test script is not limited.
Step 306, gesture test is carried out to tested application according to gesture test script;
After gesture test script is got, according to the action command sequence analysis of gesture test script into action command, Action command is sent in tested application, carries out gesture test, so that tested application performs corresponding behaviour according to action command Make, simulate the track of the input gesture.
Gesture test script includes action command sequence, when performing the gesture test script, can be answered tested With the motion track of simulation input gesture, the starting control that action command sequence includes to gesture successively calls click event letter The tests instruction that number is operated, and the survey for calling between the adjacent control of gesture slip event function to be operated successively Examination instruction.In test instructs, it can be identified with control and represent control, control mark can be control information, naturally it is also possible to be For identifying other marks of control information, as long as control information can be got according to control mark.
For example, the starting control of gesture is A, intermediate control is followed successively by B, C, terminal control is D, then control location information sequence It is classified as control A, B, C and D control information and is ranked up the sequence of composition by the order of these controls according to gesture Row.Test instruction and its execution sequence are followed successively by call for starting control A and click on event functions and operated, from control A Call slip event function to be operated to control B, call slip event function to be operated, from control from control B to control C C to control D calls slip event function to be operated.
Step 308, gesture test result corresponding to gesture test script is obtained.
After the completion of gesture test, gesture test result corresponding to the gesture test script is obtained, with to tested application Test result is analyzed or assessed.
Fig. 4 is shown in one embodiment, when gesture test script includes first gesture test script and second-hand Gesture test script, when first gesture test script and second gesture test script are performed in a test assignment, step S306 is implementation process figure the step of carrying out gesture test to tested application according to gesture test script, can specifically include with Lower step:
S402, first gesture test script is called to carry out gesture test to tested application;
The first gesture test script of calling can be one randomly selected in multiple gesture test scripts.In some realities Apply in example, when user have input the execution sequence of gesture test script, call the gesture test script that execution sequence is first As first gesture test script.
S404, after the completion of the test of first gesture test script, initialization directive is sent to tested application, so that tested should With being initialized;
Initialization directive, which refers to, can revert to tested application the instruction that can re-start gesture test mode.For example, When unblock gesture password to wechat is tested, initialization command is sent, wechat is re-started startup, unlocked into input The state of gesture password.
S406, when reaching the wait initialization time of tested application, second gesture test script is called to tested application Carry out gesture test.
Wait a period of time that initialization time refers to start at from transmission initialization directive.For default a period of time.When When tested application is different, the wait initialization time for being tested application can be different, when specifically can be according to the startup of tested application Between set.
If it is appreciated that when also including the 3rd gesture test script in gesture test assignment, when second gesture test script After the completion of test, initialization directive can be sent to tested application again, and when waiting initialization time to reach, call the 3rd hand Gesture test script is tested.If also including the 4th gesture test script, the 5th gesture test script, can continue to repeat to work as After the completion of preceding test script test, initialization directive is sent, next gesture test script is called when waiting initialization time to reach The step of carrying out gesture test.
Fig. 5 shows in one embodiment that step S308 is to obtain gesture test result corresponding to gesture test script The implementation process figure of step, specifically may comprise steps of:
S502, detect in tested application default homepage keyword whether occur, if so, determining that gesture test result is hand Gesture unlocks successfully, if it is not, determining that gesture test result is gesture unblock failure;
It can inquire about in tested application and the homepage keyword relevant with homepage, such as " homepage " one word whether occur.Certainly, Other homepage keywords can also be pre-set according to the characteristics of tested application homepage.Detection time can be set according to being actually needed It is fixed.When testing result for when there is homepage keyword, then it represents that tested application enters the startup page, and current gesture tests pin Gesture corresponding to this is consistent with default gesture unlocking pin, and implementing result is that gesture unlocks successfully;Otherwise, implementing result is hand Gesture unblock failure.
In certain embodiments, can be detected in a manner of poll.Preferably, can be after gesture test starts Poll is proceeded by after preset time again, to reduce the number of poll.The preset time can be according to actual set.
S504, obtain gesture test result corresponding to gesture test script.
When it is determined that after gesture test result, computer equipment obtains the gesture test result, to enter to gesture test result Row analysis or evaluation.
Fig. 6 shows the implementation process figure of gesture method of testing in one embodiment, specifically may comprise steps of:
S602, obtain the control information of input gesture;
In embodiments of the present invention, user can input the input hand for wanting test on the touch terminal with touch-screen Gesture.The touch terminal can be computer equipment 110, or other touch terminals.Preferably, gesture is in tested application Upper input.When being inputted in other touch terminals, computer is communicatively coupled with touch terminal, obtains input gesture Control information.The mark for the control that control information is passed through for mark gesture, control according to corresponding to control information can find it Part, such as can be the Xpath paths of control.
S604, control information sequence is sequentially generated by control according to control information and input gesture;
In embodiments of the present invention, get input gesture by each control control information after, according to input hand Gesture is sequentially generated control information sequence by control.
By taking Fig. 7 as an example, gesture of the user on mobile phone slides into You little Jiao control for the control from the upper left corner, by seven Individual control, it is assumed that this seven control informations be followed successively by Xpath1, Xpath2, Xpath3, Xpath4, Xpath5, Xpath6, Xpath7, then this seven control informations can be formed an arrays, be sequentially followed successively by Xpath1, Xpath2, Xpath3, Xpath4、Xpath5、Xpath6、Xpath7。
S606, template generation gesture test script is generated according to control information sequence and gesture test script.
In embodiments of the present invention, control information sequence inputting to default gesture test script is generated in template, it is raw Into gesture test script.Gesture test script includes action command sequence, with when performing the gesture test script, Ke Yi The motion track of the upper simulation input gesture of tested application.The starting control that action command sequence is included to gesture successively, which calls, to be clicked on The test instruction that event functions are operated, and call slip event function to be grasped successively between the adjacent control of gesture The test instruction of work.In test instructs, the Xpath path representation controls of control can be used, naturally it is also possible to be for identifying Other control informations of control, as long as the control according to corresponding to being got the control information.
Gesture test script generation template is that the testing procedure performed when being tested according to gesture is write in advance, by gesture point Solve to be sequentially connected multiple controls (initial control, N number of intermediate control (N=0,1,2 ...), terminate control) and adjacent control it Between line.Therefore gesture can be tested and is decomposed into following testing procedure:First survey clicked on for initial control Try is rapid, and since the initial control, enters one or more test steps of line slip successively between each adjacent control Suddenly.Therefore in gesture test, performed action and order in testing procedure are fixed, and the control that simply gesture is passed through is not Together.Therefore, gesture test script generation template can be generated according to the gesture testing procedure of decomposition.When the control for getting gesture During information sequence, it is input in gesture test script generation template, can be to generate gesture test script.
In certain embodiments, gesture test script generation template can utilize the compiled code of script Template, sets the variable of filling in need in the Code Template, and variable is the control information of gesture.Certainly, gesture is tested Script generates the format module that template can also be other prefabricated forms, such as tabular template, in the tabular template-setup To click on, second testing procedure is additionally provided with each step and corresponds to filling out for control information first testing procedure to slide Fill position.When getting the control information sequence of input gesture, it is input in gesture test script generation template, it is possible to Script generation gesture test script is utilized according to the compiling code preset.
For example, again exemplified by inputting gesture as Fig. 7 gesture, the action command sequence in test script includes being directed to successively The control in the upper left corner calls click event functions to be operated, the control in the upper left corner slides thing to calling between second control Part function is operated, calls slip event function to be operated, at the 3rd between the 3rd control in second control Control is operated to calling slip event function between the 4th control, called in the 4th control between the 5th control Slip event function operated, the 5th control to call slip event function to be operated between the 6th control, 6th control calls slip event function to be operated between the 7th control (i.e. the control in the lower right corner).
Step 608, gesture test request is received, gesture test request carries the gesture mark of input gesture;
In the present embodiment, gesture is identified for identifying gesture, can be made up of characters such as word, numerals, can also It is the mark that other can identify gesture.
Step 610, the gesture test script for obtaining input gesture is identified according to gesture;
Step 612, gesture test is carried out to tested application according to gesture test script;
After gesture test script is got, the testing procedure in gesture test script is parsed, the testing procedure is sent Gesture test is carried out into tested application.
In certain embodiments, control is that control information is identified in test script, and is in tested application It is identified with coordinate points, therefore when testing procedure is sent into tested application tested, it is also necessary to by control information Resolve to the coordinate points in tested application.For example, Xpath paths are resolved into specific coordinate points.
Step 614, gesture test result corresponding to gesture test script is obtained.
After the completion of gesture test, gesture test result corresponding to the gesture test script is obtained, with to tested application Test result is analyzed or assessed.
As shown in figure 8, in one embodiment, there is provided a kind of gesture test device, the gesture test device can collect Into in above-mentioned computer equipment 110, it can specifically include test request receiving unit 802, script acquiring unit 804, hand Gesture test cell 806 and test result acquiring unit 808.
Test request receiving unit 802, for receiving gesture test request, the gesture test request carries gesture mark Know;
Script acquiring unit 804, gesture test script is obtained for being identified according to gesture;
Gesture test cell 806, for carrying out gesture test to tested application according to gesture test script;
Test result acquiring unit 808, for obtaining gesture test result corresponding to gesture test script.
In one embodiment, gesture mark includes first gesture mark and second gesture mark, script acquiring unit 804 are specifically used for identifying acquisition first gesture test script according to first gesture, and, obtain second according to second gesture mark Gesture test script;
As shown in figure 9, in one embodiment, when gesture test script includes first gesture test script and second-hand Gesture test script, gesture test cell 806 include the first script calling module 806A, initialization directive sending module 806B and Second script calling module 806C.
First script calling module 806A, for calling first gesture test script to carry out gesture test to tested application;
Initialization directive sending module 806B, after the completion of the test of first gesture test script, sent just to tested application Beginningization instructs, so that tested application is initialized;
Second script calling module 806C, when reaching the wait initialization time of tested application, second gesture is called to survey Training this gesture test is carried out to tested application.
As shown in Figure 10, in one embodiment, test result acquiring unit 808 include keyword detection module 808A with And test result acquisition module 808B.
Keyword detection module 808A, for detecting in tested application default homepage keyword whether occur, if so, really Determine gesture test result to unlock successfully for gesture, if it is not, determining that gesture test result is gesture unblock failure;
It can inquire about in tested application and the homepage keyword relevant with homepage, such as " homepage " one word whether occur.Certainly, Other homepage keywords can also be pre-set according to the characteristics of tested application homepage.Detection time can be set according to being actually needed It is fixed.When testing result for when there is homepage keyword, then it represents that tested application enters the startup page, and current gesture tests pin Gesture corresponding to this is consistent with default gesture unlocking pin, and implementing result is that gesture unlocks successfully;Otherwise, implementing result is hand Gesture unblock failure.
In certain embodiments, can be detected in a manner of poll.Preferably, can be after gesture test starts Poll is proceeded by after preset time again, to reduce the number of poll.The preset time can be set according to being actually needed.
Test result acquisition module 808B, for obtaining gesture test result corresponding to gesture test script.
When it is determined that after gesture test result, computer equipment obtains the gesture test result, to enter to gesture test result Row analysis or evaluation.
As shown in figure 11, gesture test device can also include control information acquiring unit 1102, control information sequence is given birth to Into unit 1104 and test script generation unit 1106.
Control information acquiring unit 1102, for obtaining the control information of input gesture;
Control information sequence generating unit 1104, for the control information according to input gesture and input gesture by control Part is sequentially generated control information sequence;
Test script generation unit 1106, for generating template generation according to control information sequence and gesture test script Gesture test script.
In one embodiment it is proposed that a kind of computer equipment, computer equipment include memory, processor and storage On a memory and the computer program that can run on a processor, following steps are realized during computing device computer program: Gesture test request is received, gesture test request carries gesture mark;Identified according to gesture and obtain gesture test script, its In, gesture test script generates template generation according to the control information sequence and gesture test script of input gesture;According to hand Gesture test script carries out gesture test to tested application, and gesture test script includes the action command sequence for simulation input gesture Row, action command sequence include instructing the test that the starting control for inputting gesture calls click event functions to be operated successively And the test instruction for calling slip event function to be operated successively between the adjacent control of input gesture;Gesture is obtained to survey Gesture test result corresponding to training sheet.
In one embodiment, following steps are also performed during computing device computer-readable instruction:Obtain input gesture Control information;Control information sequence is sequentially generated by control according to the control information of input gesture and input gesture; According to control information sequence and gesture test script generation template generation gesture test script.
In one embodiment, gesture mark includes first gesture mark and second gesture identifies, performed by processor According to gesture identify obtain gesture test script the step of include:Identified according to first gesture and obtain first gesture test pin This, and, identified according to second gesture and obtain second gesture test script;Performed by processor according to gesture test script pair The step of tested application carries out gesture test includes:First gesture test script is called to carry out gesture test to tested application;When After the completion of the test of first gesture test script, initialization directive is sent to tested application, so that tested application is initialized;When When the wait initialization time of tested application reaches, second gesture test script is called to carry out gesture test to tested application.
In one embodiment, corresponding to the acquisition gesture test script performed by processor the step of gesture test result Including:Whether there is default homepage keyword in the tested application of detection, if so, determine gesture test result be gesture unlock into Work(, if it is not, determining that gesture test result is gesture unblock failure;Obtain gesture test result corresponding to gesture test script.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, this is computer-readable When instruction is executed by one or more processors so that one or more processors perform following steps:Receiving gesture test please Ask, gesture test request carries gesture mark;Identified according to gesture and obtain gesture test script, wherein, gesture test script According to the control information sequence of input gesture and gesture test script generation template generation;According to gesture test script to tested Using gesture test is carried out, gesture test script includes the action command sequence for simulation input gesture, action command sequence Include instructing the test that the starting control for inputting gesture calls click event functions to be operated and in input gesture successively Adjacent control between call the test instruction that slip event function operated successively;Obtain hand corresponding to gesture test script Gesture test result.
In one embodiment, following steps are also performed during computing device computer-readable instruction:Obtain input gesture Control information;Control information sequence is sequentially generated by control according to the control information of input gesture and input gesture; According to control information sequence and gesture test script generation template generation gesture test script.
In one embodiment, gesture mark includes first gesture mark and second gesture identifies, performed by processor According to gesture identify obtain gesture test script the step of include:Identified according to first gesture and obtain first gesture test pin This, and, identified according to second gesture and obtain second gesture test script;Performed by processor according to gesture test script pair The step of tested application carries out gesture test includes:First gesture test script is called to carry out gesture test to tested application;When After the completion of the test of first gesture test script, initialization directive is sent to tested application, so that tested application is initialized;When When the wait initialization time of tested application reaches, second gesture test script is called to carry out gesture test to tested application.
In one embodiment, corresponding to the acquisition gesture test script performed by processor the step of gesture test result Including:Whether there is default homepage keyword in the tested application of detection, if so, determine gesture test result be gesture unlock into Work(, if it is not, determining that gesture test result is gesture unblock failure;Obtain gesture test result corresponding to gesture test script.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, the computer program can be stored in a computer-readable storage and be situated between In matter, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, foregoing storage medium can be The non-volatile memory mediums such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM), or random storage note Recall body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of gesture method of testing, it is characterised in that the method for testing includes:
Gesture test request is received, the gesture test request carries gesture mark;
Identified according to the gesture and obtain gesture test script, wherein, the gesture test script is according to the control for inputting gesture Information sequence and gesture test script generation template generation;
Gesture test is carried out to tested application according to the gesture test script, the gesture test script includes being used to simulate institute The action command sequence of input gesture is stated, the action command sequence includes calling the starting control of the input gesture successively The test instruction and call slip thing successively between the adjacent control of the input gesture that click event functions are operated The test instruction that part function is operated;
Obtain gesture test result corresponding to the gesture test script.
2. gesture method of testing as claimed in claim 1, it is characterised in that methods described also includes:
Obtain the control information of the input gesture;
Control information sequence is sequentially generated by control according to the control information and the input gesture;
According to gesture test script described in the control information sequence and gesture test script generation template generation.
3. gesture method of testing as claimed in claim 1 or 2, it is characterised in that the gesture mark includes first gesture mark Know and second gesture mark, described the step of identifying acquisition gesture test script according to the gesture include:
Identified according to the first gesture and obtain first gesture test script, and, obtain the according to second gesture mark Two gesture test scripts;
Described the step of carrying out gesture test to tested application according to the gesture test script, includes:
The first gesture test script is called to carry out gesture test to the tested application;
After the completion of first gesture test script test, initialization directive is sent to the tested application, so that the quilt Application is surveyed to be initialized;
When reaching the wait initialization time of the tested application, call the second gesture test script should to described be tested With carrying out gesture test.
4. gesture method of testing as claimed in claim 1 or 2, it is characterised in that described to obtain the gesture test script pair The step of gesture test result answered, includes:
Detect and whether occur default homepage keyword in the tested application, if so, determining that the gesture test result is hand Gesture unlocks successfully, if it is not, determining the gesture test result for gesture unblock failure;
Obtain gesture test result corresponding to the gesture test script.
5. a kind of gesture test device, it is characterised in that the test device includes:
Test request receiving unit, for receiving gesture test request, the gesture test request carries gesture mark;
Script acquiring unit, gesture test script is obtained for being identified according to the gesture, wherein, the gesture test script root According to the control information sequence and gesture test script generation template generation of input gesture;
Gesture test cell, for carrying out gesture test, the gesture test to tested application according to the gesture test script Script includes being used for the action command sequence for simulating the input gesture, and the action command sequence includes to the input successively The starting control of gesture calls test instruction and the adjacent control in the input gesture for clicking on that event functions are operated Between call the test instruction that slip event function operated successively;
Test result acquiring unit, for obtaining gesture test result corresponding to the gesture test script.
6. gesture test device as claimed in claim 5, it is characterised in that described device also includes:
Control information acquiring unit, for obtaining the control information of the input gesture;
Control information sequence generating unit, for being given birth to according to the control information and the input gesture by the order of control Into control information sequence;
Test script generation unit, for generating template generation according to the control information sequence and the gesture test script The gesture test script.
7. the gesture test device as described in claim 5 or 6, it is characterised in that the gesture mark includes first gesture mark Know and second gesture mark, the script acquiring unit are specifically used for:
Identified according to the first gesture and obtain first gesture test script, and, obtain the according to second gesture mark Two gesture test scripts;
The gesture test cell includes:
First script calling module, for calling the first gesture test script to carry out gesture test to the tested application;
Initialization directive sending module, for after the completion of first gesture test script test, being sent out to the tested application Initialization directive is sent, so that the tested application is initialized;
Second script calling module, for when the wait initialization time arrival of the tested application, calling the second-hand Gesture test script carries out gesture test to the tested application.
8. the gesture test device as described in claim 5 or 6, it is characterised in that the test result acquiring unit includes:
Keyword detection module, whether occurs default homepage keyword in the tested application for detecting, if so, determining institute State gesture test result to unlock successfully for gesture, if it is not, determining the gesture test result for gesture unblock failure;
Test result acquisition module, for obtaining gesture test result corresponding to the gesture test script.
9. a kind of computer equipment, including memory and processor, computer-readable instruction is stored with the memory, it is described When computer-readable instruction is by the computing device so that the computing device such as any one of Claims 1-4 right It is required that the step of gesture method of testing.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device performs so that one or more processors perform the gesture test side as described in any one of Claims 1-4 claim The step of method.
CN201710614421.7A 2017-07-25 2017-07-25 Gesture testing method and device, computer equipment and storage medium Active CN107783867B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710614421.7A CN107783867B (en) 2017-07-25 2017-07-25 Gesture testing method and device, computer equipment and storage medium
PCT/CN2018/096373 WO2019019955A1 (en) 2017-07-25 2018-07-20 Gesture test method and apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710614421.7A CN107783867B (en) 2017-07-25 2017-07-25 Gesture testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107783867A true CN107783867A (en) 2018-03-09
CN107783867B CN107783867B (en) 2020-02-14

Family

ID=61437801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710614421.7A Active CN107783867B (en) 2017-07-25 2017-07-25 Gesture testing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN107783867B (en)
WO (1) WO2019019955A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019019955A1 (en) * 2017-07-25 2019-01-31 深圳壹账通智能科技有限公司 Gesture test method and apparatus, computer device and storage medium
WO2020147434A1 (en) * 2019-01-16 2020-07-23 深圳壹账通智能科技有限公司 Gesture recognition-based test method and apparatus, storage medium and terminal device
CN115145464A (en) * 2022-07-28 2022-10-04 重庆长安汽车股份有限公司 Page testing method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309797A (en) * 2012-03-09 2013-09-18 阿里巴巴集团控股有限公司 Automatic testing method and device of user interface
US20150309907A1 (en) * 2014-04-29 2015-10-29 Hon Hai Precision Industry Co., Ltd. System and method for testing computing hardware in computer rack
CN105095078A (en) * 2015-07-22 2015-11-25 厦门美图移动科技有限公司 Systematic automation testing device and method and calculating device
CN105320595A (en) * 2014-07-31 2016-02-10 腾讯科技(深圳)有限公司 Application test method and device
CN105335283A (en) * 2014-08-01 2016-02-17 阿里巴巴集团控股有限公司 Application testing method and device in terminal equipment
CN105824755A (en) * 2016-03-17 2016-08-03 厦门美图移动科技有限公司 Automation test method, automation test device and mobile terminal
CN106126424A (en) * 2016-06-29 2016-11-16 厦门美图移动科技有限公司 A kind of visual automated testing method of script, device and mobile terminal
CN106874190A (en) * 2016-12-30 2017-06-20 上海亿账通互联网科技有限公司 The method of testing and server of user interface

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9154611B1 (en) * 2006-08-14 2015-10-06 Soasta, Inc. Functional test automation for gesture-based mobile applications
CN105653438B (en) * 2014-11-12 2018-11-09 成都鼎桥通信技术有限公司 The striding course automated testing method and device of Android device
CN104991687B (en) * 2015-06-09 2018-05-08 惠州Tcl移动通信有限公司 A kind of method and system for obtaining touch-screen equipment curve manipulation track
CN107783867B (en) * 2017-07-25 2020-02-14 深圳壹账通智能科技有限公司 Gesture testing method and device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309797A (en) * 2012-03-09 2013-09-18 阿里巴巴集团控股有限公司 Automatic testing method and device of user interface
US20150309907A1 (en) * 2014-04-29 2015-10-29 Hon Hai Precision Industry Co., Ltd. System and method for testing computing hardware in computer rack
CN105320595A (en) * 2014-07-31 2016-02-10 腾讯科技(深圳)有限公司 Application test method and device
CN105335283A (en) * 2014-08-01 2016-02-17 阿里巴巴集团控股有限公司 Application testing method and device in terminal equipment
CN105095078A (en) * 2015-07-22 2015-11-25 厦门美图移动科技有限公司 Systematic automation testing device and method and calculating device
CN105824755A (en) * 2016-03-17 2016-08-03 厦门美图移动科技有限公司 Automation test method, automation test device and mobile terminal
CN106126424A (en) * 2016-06-29 2016-11-16 厦门美图移动科技有限公司 A kind of visual automated testing method of script, device and mobile terminal
CN106874190A (en) * 2016-12-30 2017-06-20 上海亿账通互联网科技有限公司 The method of testing and server of user interface

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019019955A1 (en) * 2017-07-25 2019-01-31 深圳壹账通智能科技有限公司 Gesture test method and apparatus, computer device and storage medium
WO2020147434A1 (en) * 2019-01-16 2020-07-23 深圳壹账通智能科技有限公司 Gesture recognition-based test method and apparatus, storage medium and terminal device
CN115145464A (en) * 2022-07-28 2022-10-04 重庆长安汽车股份有限公司 Page testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2019019955A1 (en) 2019-01-31
CN107783867B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN104484273B (en) The method of testing of application program, equipment and system
CN106598868B (en) Method and system a little are buried to the application program of client dynamic
CN103312850B (en) A kind of mobile phone automatized test macro and method of work
Perrone et al. SAFE: Simulation automation framework for experiments
CN104331373A (en) Monkey test system and method
CN105373478B (en) Automated testing method and system
WO2017165071A1 (en) Visual regression analysis
CN103870463A (en) Method and system for selecting test subjects
CN107783898A (en) The method of testing and test equipment of Mobile solution
CN102053911A (en) Automated testing method and system based on Android and mobile terminal
CN107783867A (en) Gesture method of testing, device, computer equipment and storage medium
CN107894889A (en) Bury point methods, equipment and computer-readable recording medium
CN107193743A (en) One kind application assessment method, device, computer equipment and storage medium
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN105320595A (en) Application test method and device
CN105740143B (en) A kind of automated testing method, device and calculate equipment
CN108595343A (en) The test method and device of application program
CN104156305B (en) A kind of applied program testing method and device
CN106909247A (en) Simulation touch-control system, method, device and touch terminal test equipment, method
CN111414309A (en) Automatic test method of application program, computer equipment and storage medium
CN114461533A (en) Method, system, electronic device and storage medium for automatic testing of Web page
CN103678059B (en) A kind of random key test method and device
CN106302011A (en) Method of testings based on multiterminal and terminal
CN106814935A (en) The application icon display methods and terminal of a kind of terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180531

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 200000 Xuhui District, Shanghai Kai Bin Road 166, 9, 10 level.

Applicant before: Shanghai Financial Technologies Ltd

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd.

CB02 Change of applicant information
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1251317

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant