CN105975367A - Mobile equipment test method and device - Google Patents
Mobile equipment test method and device Download PDFInfo
- Publication number
- CN105975367A CN105975367A CN201610289563.6A CN201610289563A CN105975367A CN 105975367 A CN105975367 A CN 105975367A CN 201610289563 A CN201610289563 A CN 201610289563A CN 105975367 A CN105975367 A CN 105975367A
- Authority
- CN
- China
- Prior art keywords
- touch
- point
- touch event
- screen
- mobile device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Abstract
The invention discloses a mobile equipment test method and device. The method comprises the following steps: receiving a test command, wherein the test command is used for executing touch operation on at least two points on a touch screen of mobile equipment at the same time; converting the test command into a touch event recognized and responded by driving equipment of the touch screen; and executing touch operation on the at least two points according to the touch event. According to the mobile equipment test method and device, the technical problem that the test depth is low as only touch screen single-point touch is supported when test is carried out mobile equipment in related technologies is solved.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of mobile device method of testing and
Device.
Background technology
Commonly used along with Intelligent mobile equipment, in order to improve the performance of mobile device, touch screen is grasped
The technology made uses the most universal in mobile device automatic test, remote debugging, stress test.
At present, technology more conventional in prior art has Monkey and Input, and wherein, Monkey is
A kind of stress test instrument that android system provides, may operate in simulator and physical device
In.It is by sending pseudorandom customer incident stream to system, it is achieved enter pre-release application program
Row stress test.Monkey runs as server after starting, client-side program with
Monkey sets up after network connects and sends screen taps event and coordinate points, and Monkey is then responsible for response
Screen taps event, in Monkey provide the function relevant to touch screen operation have screen to press,
Screen lifts, screen moves, screen touches.Input is that a kind of control at terminal input command is
The instrument of system, what it provided operates relevant function to input and screen taps has physical button to click on,
Screen touches, screen slides.
But, Monkey and Input support screen single-touch, do not support 2 and above many
Touch.In the occasions such as some automatic tests played, need both hands to operate simultaneously, control respectively
Direction processed and technical ability, do not have multiple point touching will cause reducing MTD, reduce user's experience.
Additionally, Input is started by adb shell, so will cause inputting each time and all have adb and enter
The expense of journey, it is impossible to meet screen taps and the requirement of real-time of slip in cloud prototype.
For above-mentioned problem, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide method of testing and the device of a kind of mobile device, at least to solve phase
Pass technology only supports that when testing mobile device touch screen single-touch causes MTD low
Technical problem.
An aspect according to embodiments of the present invention, it is provided that the method for testing of a kind of mobile device, bag
Include: receiving test command, wherein, test command is at least two on the touch screen of mobile device
Individual point performs touch operation simultaneously;Test command is converted to be touched the driving equipment identification shielded sound
The touch event answered;And according to touch event, at least two point is performed touch operation simultaneously.
Another aspect according to embodiments of the present invention, additionally provides the test device of a kind of mobile device,
Including: the first receiver module, it is used for receiving test command, wherein, test command is for setting mobile
At least two point on standby touch screen performs touch operation simultaneously;Modular converter, for ordering test
Order is converted to be touched the driving equipment identification shielded the touch event responded;And execution module, use
According to touch event, at least two point being performed touch operation simultaneously.
In embodiments of the present invention, by receiving test command, wherein, test command is for movement
At least two point on the touch screen of equipment performs touch operation simultaneously;Be converted to test command be touched
That touches screen drives equipment identification the touch event responded;And according to touch event at least two point
Perform touch operation simultaneously, reached the touch screen to mobile device and carried out the purpose of multiple point touching test,
It is achieved thereby that improve the technique effect of the mobile device testing touch screen degree of depth, and then solve relevant skill
Art only supports that when testing mobile device touch screen single-touch causes the skill that MTD is low
Art problem.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the one of the application
Part, the schematic description and description of the present invention is used for explaining the present invention, is not intended that this
Bright improper restriction.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of the method for testing of mobile device according to embodiments of the present invention;
Fig. 2 is the flow chart of the method for testing of a kind of optional mobile device according to embodiments of the present invention;
Fig. 3 is the flow process of the method for testing of another kind of optional mobile device according to embodiments of the present invention
Figure;
Fig. 4 is the flow process of the method for testing of another kind of optional mobile device according to embodiments of the present invention
Figure;
Fig. 5 is the flow process of the method for testing of another kind of optional mobile device according to embodiments of the present invention
Figure;
Fig. 6 is the schematic diagram of a kind of optional multi-point touch system according to embodiments of the present invention;
The transmission of Touch event when Fig. 7 is a kind of optional multiple point touching according to embodiments of the present invention
With the schematic diagram received;
Fig. 8 is the schematic diagram of the test device of a kind of optional mobile device according to embodiments of the present invention;
Fig. 9 is the signal of the test device of another kind of optional mobile device according to embodiments of the present invention
Figure;
Figure 10 is showing of the test device of another kind of optional mobile device according to embodiments of the present invention
It is intended to;
Figure 11 is showing of the test device of another kind of optional mobile device according to embodiments of the present invention
It is intended to;And
Figure 12 is the structured flowchart of a kind of terminal according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is only the embodiment of a present invention part rather than whole enforcement
Example.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work
The every other embodiment obtained under premise, all should belong to the scope of protection of the invention.
It should be noted that the term in description and claims of this specification and above-mentioned accompanying drawing
" first ", " second " etc. are for distinguishing similar object, without be used for describing specific order or
Precedence.Should be appreciated that the data of so use can be exchanged in the appropriate case, in order to retouch here
The embodiments of the invention stated can be real with the order in addition to those here illustrating or describing
Execute.Additionally, term " includes " and " having " and their any deformation, it is intended that cover and do not arrange
He comprises, such as, contain series of steps or the process of unit, method, system, product or
Equipment is not necessarily limited to those steps or the unit clearly listed, but can include the most clearly listing
Or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to embodiments of the present invention, it is provided that the embodiment of the method for the method of testing of a kind of mobile device.
Alternatively, in the present embodiment, the method for testing of above-mentioned mobile device can apply to such as Fig. 1
In the shown hardware environment being made up of server 102 and terminal 104.As it is shown in figure 1, service
Device 102 is attached with terminal 104 by network, and above-mentioned network includes but not limited to: wide area network,
Metropolitan Area Network (MAN) or LAN, terminal 104 is not limited to PC, mobile phone, panel computer etc..The present invention
The method of testing of the mobile device of embodiment can be performed by server 102, it is also possible to by terminal
104 perform, it is also possible to be jointly to be performed by server 102 and terminal 104.Wherein, terminal 104
The method of testing of the mobile device performing the embodiment of the present invention can also be by client mounted thereto
End performs.
Fig. 2 is the flow chart of the method for testing of a kind of optional mobile device according to embodiments of the present invention,
As in figure 2 it is shown, the method may comprise steps of:
Step S202, receives test command, and wherein, test command is for the touch to mobile device
At least two point on screen performs touch operation simultaneously;
Step S204, is converted to be touched the driving equipment identification of screen touching of responding by test command
Touch event;
Step S206, performs touch operation according to touch event at least two point simultaneously.
It should be noted that above-mentioned steps can be performed by mobile device to be tested, such as intelligence hands
Machine, panel computer etc..Mobile device to be tested can also be provided with and be capable of above-mentioned steps
Application program, utilizes this application program to test the touch screen of mobile device to be tested.
By above-mentioned steps S202 to step S206, by receiving test command, wherein, test life
Order is for performing touch operation at least two point on the touch screen of mobile device simultaneously;Test is ordered
Order is converted to be touched the driver identification shielded the touch event responded;And according to touch event
At least two point is performed touch operation simultaneously, has reached the touch screen of mobile device is tapped more
Touch the purpose of test, and then solve correlation technique and only support when mobile device is tested to touch
Screen single-touch causes the technical problem that MTD is low, it is achieved that improve mobile device testing touch screen
The technique effect of the degree of depth.
In the technical scheme that step S202 provides, the test command that mobile device receives can be to use
At least two point on the touch screen to mobile device performs the order of touch operation simultaneously, wherein,
Mobile device herein is the mobile device with touch screen, such as smart mobile phone, panel computer etc.,
It should be noted that the operating system in this mobile device can be Android, it is also possible to be IOS,
The embodiment of the present invention all illustrates as a example by Android device.To on the touch screen of mobile device
The touch operation that at least two point performs simultaneously can include but are not limited to click on, slides, touches,
Length is pressed, it is also possible to includes that other operate, illustrates the most one by one.Alternatively, mobile device
The test command received can at least include in following parameter any one or multiple: touch
Action type, touch point coordinate, touch point force value etc., the most only list in test command and comprise
Several typical parameter, it should be noted that test command can also include other parameters, this
Place illustrates the most one by one.
Alternatively, the test command that mobile device receives can any one in following several ways
Mode generates: applies by click at Flash, HTML5 etc. of Web end, will click on
The coordinate at place, position corresponds in mobile device to be tested, and then triggers generation test command;?
Trigger when pressing on the testing tool of mobile terminal at two or more simultaneously and generate test command, its
In, mobile terminal testing tool is the APK program of an Android;Test command can be random
Generate, it is also possible to be click clear and definite, orderly on the mobile phone of testing tool place, then by coordinate pair
Should be in mobile device to be tested.The most only list the generating mode of partial test order, for
Other generating mode, illustrates the most one by one.Generating after test command, can be by
Test command is delivered to mobile device via server, PC equipment etc., and wherein, server can be used
In safeguarding web interface and mobile terminal testing tool, PC equipment may be used for and at least one
Mobile device carries out network connection, and carries out the client-side program run at least one mobile device
Monitor.It should be noted that the screen taps client-side program relevant to generating test command can be transported
Row is in the server, it is also possible to operate in PC equipment, wherein, and screen taps client-side program one
As refer to the promoter of screen taps, can be the click on Flash, HTML5, it is also possible to
It it is the screen taps on testing tool APK.Utilize this screen taps client-side program can obtain survey
Examination order, such as, when pressing two or more in the testing tool of mobile terminal simultaneously, can
To obtain the most all of touch respectively by the onTouchEvent method of Acticity or View
The parameter such as type and coordinate information.Run on PC equipment and have screen taps to manage program, utilizing
After screen taps client-side program obtains test command, the test command got can be sent extremely
Screen taps management program, manages program by screen taps and test command is delivered to shifting to be tested
In dynamic equipment.It should be noted that the embodiment of the present invention not course of conveying to test command does and has
Body limits, and above-mentioned simply lists a kind of optional embodiment, does not represent the conveying of test command
Journey only has above-mentioned a kind of mode.The embodiment of the present invention can realize remotely operating the movement to be tested and set
Standby touch screen is tested, and is very easy to tester and is capable of in any place movement
The touch screen of equipment is tested.
The embodiment of the present invention can be at least two on the touch screen of mobile device by test command
Point performs touch operation simultaneously, it is possible to solve correlation technique when testing mobile device
Only support that touch screen single-touch causes the technical problem that MTD is low, it is achieved that improve mobile device
The technique effect of the testing touch screen degree of depth.
In the technical scheme that step S204 provides, mobile device, can after receiving test command
Test command to be converted to can be touched the driving equipment identification shielded the touch event responded.Mobile
Equipment needs test command being converted to can be touched the driving equipment identification shielded the touch thing responded
The reason of part is: at least two point on the touch screen of mobile device is performed touch operation simultaneously, than
It is all to realize by sending the touch event of a fixed sequence to touch screen as clicked on, slide, touch etc.
, by the touch event sequence of touch screen during record multiple point touching, and correct simulation is out, defeated
Enter to touch screen, it is possible to realize the function of multiple point touching.Therefore, mobile device is receiving test
Need after order to be converted into touch event, perform this touch event by the driving equipment of touch screen
Can realize at least two point on touch screen is performed touch operation simultaneously.It should be noted that it is general
The logical application program in mobile device does not has authority to touch screen write touch event, wherein,
Write paths is the path that file is corresponding that drives driving equipment of touch screen, so can be easy to drive
Equipment performs to drive file, and then realizes driving equipment execution touch event to reach on touch screen
At least two point performs the purpose of touch operation simultaneously, the most system-level authority (such as root, system,
Shell) just can directly touch screen be written and read.Tactile in order to realize directly writing direct to touch screen
Event of touching is to realize testing touch screen, and the embodiment of the present invention can utilize in PC equipment and run
Screen taps supervisor call adb shell-command start the screen taps run in mobile device
Processing routine, screen taps processing routine can be two may operate in Android device
Binary program, compiles in Android NDK and forms.The screen taps management run in PC equipment
Program starts screen taps processing routine by adb shell, makes screen taps processing routine have shell
Authority, thus realize the read-write to touch screen.Screen taps processing routine can set as Android
A standby upper background server program, the touch order of monitoring customer in response end program is defeated in real time
Enter.Herein it should be noted that screen taps management program is except starting screen above by adb shell
Curtain is clicked on outside processing routine, it is also possible to possess following functions: will when screen taps processing routine exception
It carries out restarting or killing operation;Set up network with screen taps processing routine to be connected;Offer is available for
The outside interface accessed, mainly has:
int TouchDown(int contactId,int x,int y,int pressure);
int TouchUp(int contactId,int x,int y,int pressure);
int TouchMove(int contactId,int x,int y,int pressure);
Wherein, parameter contactId represents the sequence of touch point, if single-point is then 0, if
Multiple spot is then respectively 0,1,2 the most backward.Parameter x represents the x-axis coordinate of entr screen, parameter
Y represents the y-axis coordinate of entr screen.Parameter pressure represents force value during screen taps.It
Set up by network socket and screen taps processing routine and be connected, and by screen taps processing routine
Realize the action of screen taps.
Specifically, touch event can by Type, Code and Value tri-part form, with multiple spot
Touch relevant parameter can have:
SLOT: set up the ID of touch point, is 0 when clicking;0,1 then it is respectively when multiple spot is pressed simultaneously,
2..., the most backward.Herein it should be noted that the ID of touch point can be according to when multiple spot is pressed simultaneously
The time order and function order pressed carries out label, such as, and does not lift after first touch point is pressed
During Qiing, second touch point is pressed, then first touch point and second touch point be
Two points simultaneously pressed on touch screen, label is respectively 0 and 1.
POSITION_X: represent the X-coordinate value of touch point.
POSITION_Y: represent the Y-coordinate value of touch point.
TRACKING_ID: represent unique mark of the touch event being initiated.
PRESSURE: represent pressure size when touching.This parameter is option, and it can foundation
Type or the model of actual mobile device select.
The diameter value of TOUCH_MAJOR: finger contact TP.This parameter is also option, and it can
To select according to the type of actual mobile device or model.
Such as, realize clicking on (100,500) and (200,500) two coordinates the most simultaneously
Point, then screen taps processing routine needs driving of the driving equipment by following touch event write touch screen
In dynamic file:
The mark of the 00000000//1st touch point of EV_ABS ABS_MT_SLOT
The x coordinate of the 100//1st touch point of EV_ABS ABS_MT_POSITION_X
The y-coordinate of the 500//1st touch point of EV_ABS ABS_MT_POSITION_Y
EV_SYN SYN_REPORT 00000000//execution refresh operation, in order to improve and touch
The execution accuracy rate of event
The mark of the 00000001//2nd touch point of EV_ABS ABS_MT_SLOT
The x coordinate of the 200//2nd touch point of EV_ABS ABS_MT_POSITION_X
The y-coordinate of the 500//2nd touch point of EV_ABS ABS_MT_POSITION_Y
EV_SYN SYN_REPORT 00000000//execution refresh operation
EV_ABS ABS_MT_SLOT 00000001//switch to the 2nd touch point
Touch point, EV_ABS ABS_MT_TRACKING_ID ffffffff//2nd discharges
EV_SYN SYN_REPORT 00000000//execution refresh operation
EV_ABS ABS_MT_SLOT 00000000//switch to the 1st touch point
The x coordinate of the 200//1st touch point of EV_ABS ABS_MT_POSITION_X
EV_SYN SYN_REPORT 00000000//execution refresh operation
The x coordinate of the 300//1st touch point of EV_ABS ABS_MT_POSITION_X
EV_SYN SYN_REPORT 00000000//execution refresh operation
Touch point, EV_ABS ABS_MT_TRACKING_ID ffffffff//1st discharges
EV_SYN SYN_REPORT 00000000//execution refresh operation
It should be noted that the above-mentioned partial parameters simply listing touch event, it can have other
Parameter, illustrates the most one by one.By directly touch screen being read in the embodiment of the present invention
Writing, do not have virtual machine expense, therefore the real-time of the present invention is higher than Monkey and Input.
In the technical scheme that step S206 provides, in the driving that test command is converted to touch screen
After the touch event that equipment can identify and respond, the touch event after conversion can be write direct to driving
The driving file of dynamic equipment, it is achieved directly touch screen is performed the touch operation that touch event is corresponding, also
I.e. directly at least two point in touch screen is performed touch operation simultaneously according to touch event.Need
Bright, the touch event according to test command conversion can include touch point coordinate, touch behaviour
Make the information such as type, therefore, touch event is write touch screen drive equipment driving file in it
After, driving equipment just can realize at least two point on touch screen simultaneously by performing driving file
Perform touch operation.
As a kind of optional embodiment, Fig. 3 is another kind of optional shifting according to embodiments of the present invention
The flow chart of the method for testing of dynamic equipment, as it is shown on figure 3, test command is converted to by step S204
Drive equipment identification the touch event that responds of screen of being touched may comprise steps of:
Step S2042, at least obtains test information from test command, and wherein, test information is at least
Including: at least two point coordinate on the touchscreen, the type of touch operation, the mark of at least two point
Know.
Step S2044, generates according to test information and meets the touch event of touch event form, wherein,
Meet the touch event of touch event form for indicating coordinate, type and mark, touch event form
For at least indicating driven equipment identification the event argument of touch event responded.
It should be noted that the test command that receives of mobile device can include test information, its
In, test information at least includes: at least two point coordinate on the touchscreen, the type of touch operation,
The mark of at least two point, the content that test information is not included by this embodiment is specifically limited,
Test information can also include other guide, the force value etc. of the most each point, the most one by one
Citing.The touch event form supported due to the touch screen of different mobile devices is different, to not
The mobile device supporting certain touch event form sends that touch event sequence and may cause mobile
Equipment is without response.Therefore, in this alternative embodiment, the screen taps processing routine in mobile device can depend on
Generate according to the test information obtained from test command and meet the touch event that this mobile device is supported
The touch event of form.Touch event form herein may be used at least indicating driving of the screen that can be touched
Dynamic equipment identification the event argument of touch event responded, the touch thing supported according to mobile device
The touch event that part form generates, namely the touch event meeting touch event form can correctly indicate
At least two point in test command coordinate on the touchscreen, the type of touch operation, at least two
The mark etc. of point.
This alternative embodiment meets, by being converted into by test command, the touch thing that mobile device is supported
The touch event of part form, it is possible to reach can write direct the driving of touch screen so that this touch event
In the driving file of equipment, and then driving equipment is made can directly to perform to drive file to realize touch
At least two point on screen performs the purpose of touch operation simultaneously.
As a kind of optional embodiment, Fig. 4 is another kind of optional shifting according to embodiments of the present invention
The flow chart of the method for testing of dynamic equipment, as shown in Figure 4, in step S206 according to touch event pair
Before at least two point performs touch operation simultaneously, this alternative embodiment can also include: step S2051,
Obtaining the attribute information of mobile device, wherein, attribute information is for indicating the driving file of driving equipment
Path.Correspondingly, at least two point is performed to touch behaviour by step S206 according to touch event simultaneously
May include that step S2061, according to the path indicated by attribute information, touch event is written to
In the driving file of driving equipment, so that at least two point is performed touch operation simultaneously.
It should be noted that be converted to, at test command mobile device received, the screen that can be touched
After driving equipment identification the touch event that responds, by driving this touch event write touch screen
In the driving file of dynamic equipment, driving equipment is utilized to perform to drive file can realize according to touching thing
Part performs touch operation at least two point in touch screen.Touch event is write the driving of touch screen
In the driving file of equipment, needing to obtain the path driving file corresponding, this alternative embodiment is by obtaining
Take the attribute information of mobile device, wherein, the attribute information of mobile device can serve to indicate that driving
The path driving file of equipment, it is possible to obtain the path driving file of driving equipment.Need explanation
, the attribute information of mobile device may be used to indicate that other guide, such as drives the name of equipment
The touch event form etc. claim, supported, illustrates the most one by one.
After getting the path driving file of driving equipment, step S206 can include according to being somebody's turn to do
Touch event is directly write to drive file by the path driving file corresponding, performs for the equipment of driving
It is written with driving file and then realizing at least two point in touch screen is performed simultaneously of touch event
The purpose of touch operation.It should be noted that at least two point in touch screen is performed touch simultaneously
Operation is to perform to be written with at least two point comprising on touch screen by the driving equipment of touch screen
The file that drives of the touch event of the information such as coordinate and touch operation type realizes.When to driving literary composition
After part writes touch event, i.e. can represent at least two point completed in touch screen and hold simultaneously
Row touch operation.
This alternative embodiment can utilize the screen taps processing routine run in mobile device initially
The attribute information of this mobile device is obtained by Linux I/O control function, it is also possible to utilize it during change
Its means obtains the attribute information of mobile device, is not specifically limited herein.It should be noted that should
Alternative embodiment only writes the event event that this mobile device is supported, can reach compatible all kinds
The purpose of touch screen.
As a kind of optional embodiment, as shown in Figure 4, in step S206 according to touch event pair
Before at least two point performs touch operation simultaneously, this alternative embodiment can also include: step S2052,
Receiving authority and authorize order, wherein, authority is authorized order, for obtaining, touch screen is driven equipment
Drive the authority that file is written and read;Step S2053, response authority is authorized order and is obtained authority.
It should be noted that the application program in common mobile device does not has authority to touch screen
Driving of driving equipment writes touch event in file, the most system-level authority (such as root,
System, shell) touch screen just can directly drive the driving file of equipment be written and read.For
Realize in the driving file driving equipment of touch screen, writing direct touch event to realize touching
Touching screen to test, this alternative embodiment can utilize the screen taps management journey run in PC equipment
Sequence is called adb shell and is started the screen taps processing routine in mobile device so that screen taps processes
Program possesses the authority driving file to be written and read that touch screen drives equipment.Wherein, step
The authority that in S2052, mobile device receives is authorized order and is screen taps supervisor call
Adb shell-command.Screen taps processing routine receives the adb that screen taps management program sends
Respond thereto after shell-command to realize possessing touch screen drives the driving file of equipment enter
The authority of row read-write.
This alternative embodiment is by authorizing the screen taps processing routine run in mobile device to touch
The authority driving file to be written and read driving equipment of screen, it is possible to reach to avoid virtual machine expense, enter
And improve the effect of real-time.
As a kind of optional embodiment, Fig. 5 is another kind of optional shifting according to embodiments of the present invention
The flow chart of the method for testing of dynamic equipment, as it is shown in figure 5, step S206 according to touch event to extremely
Few two points perform touch operation simultaneously and may include that step S2062, by operating in mobile device
On screen taps processing routine, according to touch event, at least two point is performed touch operation simultaneously.
Correspondingly, after step S202 receives test command, this alternative embodiment can also include: step
Rapid S2032, receives control instruction;Step S2034, response control instruction is restarted or kills appearance
Abnormal screen taps processing routine.
It should be noted that step S206 in this alternative embodiment can be by operating in mobile device
In screen taps processing routine perform, utilize this screen taps processing routine can realize according to touch
Event performs touch operation at least two point in touch screen simultaneously.This screen taps processing routine is
Started by the screen taps management program run in PC equipment, when this screen taps processing routine is different
Chang Shi, screen taps management program can restart or kill screen taps processing routine exception occur.
The control instruction improved in step S2032 and step S2034 in this alternative embodiment is screen point
Hit what management program sent to screen taps processing routine, be used for indicating screen taps processing routine different
Carry out in the case of Chang restarting or killing operating to reach to repair abnormal screen taps processing routine
Purpose.
This alternative embodiment is capable of when screen taps processing routine exception by above-mentioned steps, with
And exactly abnormal screen taps processing routine is restarted or killed, and then reach to improve shifting
Dynamic stable equipment operation, improves the safety of the execution of the test of the mobile device of the embodiment of the present invention
Effect with reliability.
As a kind of optional embodiment, in the embodiment of the present invention involved on touch screen extremely
The touch operation that few two points perform simultaneously includes at least one of: clicks on, slide, touch.
It should be noted that the touch operation that at least two point on the touch screen of mobile device is performed simultaneously
Can include but are not limited to aforesaid operations, it can also include that other operate, and such as length is pressed, this
Place illustrates the most one by one.This alternative embodiment is same by arranging at least two point in touch screen
The polytype of the touch operation of Shi Zhihang, it is possible to reach to meet the various demands in reality test, enter
And reach to improve the effect of the MTD to touch screen.
Present invention also offers a kind of preferred embodiment, the preferred embodiment proposes one and can realize
Mobile device (such as mobile phone) is carried out method and the multi-point touch system of multiple point touching.Need explanation
, the multi-point touch method of the preferred embodiment can perform, with mobile phone in multi-point touch system
As a example by, Fig. 6 is the schematic diagram of a kind of optional multi-point touch system according to embodiments of the present invention, as
Shown in Fig. 6, this system may include that web interface, mobile terminal testing tool, server, PC
Equipment, at least one target mobile phones, i.e. target mobile phones 1 to target mobile phones n, wherein, target mobile phones
Test environment is constituted to target mobile phones n and PC equipment.
It should be noted that in multi-point touch system, target mobile phones is run and has screen taps to process
Program (TouchServer), the screen taps order received is converted to be touched by main being responsible for
Touch screen and drive the Touch event identifying and responding.PC equipment runs and has screen taps to manage program
(TouchController), it is mainly used in being come the TouchServer journey of management objectives mobile phone terminal by adb
Sequence, including pull-up, restarts, kills process etc.;Set up network with TouchServer to be connected;Externally
The api interface that offer can openly use.Web interface, mobile terminal testing tool run and has screen
Click on application and the mobile terminals such as client-side program, main Flash, HTML being responsible for maintaining webs end
Testing tool, wherein, carries out the input of remote object mobile phone at Web end by click;?
Carry out the remote input of remote object mobile phone by clicking on screen on the testing tool of mobile terminal.
Separately below with regard to screen taps processing routine (TouchServer), screen taps management program
And screen taps client-side program describes in detail, specifically (TouchController):
1, screen taps processing routine (TouchServer)
Screen taps processing routine (TouchServer) is one and may operate in Android device
Binary program, compile in Android NDK and form.This program calls adb by PC end
Shell-command starts, and acquiescence possesses the authority of shell user.It is as in Android device
Individual background server program, monitors the Touch order input of client-side program.
It should be noted that there is no authority to touch panel device on common application program of mobile phone
(/dev/input/eventX) writes Touch event.The most system-level authority (root, system, shell)
Just can directly touch panel device file be written and read.PC equipment starts screen by adb shell
Click on processing routine (TouchServer), make screen taps program (TouchServer) have shell
Authority, thus realize the read-write to touch panel device.
Clicking on, sliding, touch is all the Touch event by sending a fixed sequence to touch panel device
Realize.By the Touch sequence of events of touch panel device during record multiple point touching, and correct mould
Draw up, be input to touch panel device, it is possible to realize the function of multiple point touching.Wherein Touch thing
Part by Type, Code and Value tri-part form, the parameter relevant to multiple point touching has:
SLOT: set up the ID that Touch connects, be 0 when clicking;Then distinguish when multiple spot is pressed simultaneously
It is 0,1,2..., the most backward.
The X-coordinate value of POSITION_X: touch point
The Y-coordinate value of POSITION_Y: touch point
Unique mark of TRACKING_ID: the Touch event being initiated
Pressure size during PRESSURE:Touch
TOUCH_MAJOR: represent the diameter value of finger contact TP.
Such as, realize clicking on (100,500) and (200,400) two coordinate points simultaneously.Then screen point
Hit processing routine to need following Touch event is write touch panel device.
The mark of the 00000000//1st point of EV_ABS ABS_MT_SLOT
The x coordinate of the 100//1st point of EV_ABS ABS_MT_POSITION_X
The y-coordinate of the 500//1st point of EV_ABS ABS_MT_POSITION_Y
EV_SYN SYN_REPORT 00000000
The mark of the 00000001//2nd point of EV_ABS ABS_MT_SLOT
The x coordinate of the 200//2nd point of EV_ABS ABS_MT_POSITION_X
The y-coordinate of the 500//2nd point of EV_ABS ABS_MT_POSITION_Y
EV_SYN SYN_REPORT 00000000//execution refresh operation
EV_ABS ABS_MT_SLOT 00000001//switch to the 2nd touch point
Touch point, EV_ABS ABS_MT_TRACKING_ID ffffffff//2nd discharges
EV_SYN SYN_REPORT 00000000//execution refresh operation
EV_ABS ABS_MT_SLOT 00000000//switch to the 1st touch point
The x coordinate of the 200//1st touch point of EV_ABS ABS_MT_POSITION_X
EV_SYN SYN_REPORT 00000000//execution refresh operation
The x coordinate of the 300//1st touch point of EV_ABS ABS_MT_POSITION_X
EV_SYN SYN_REPORT 00000000//execution refresh operation
Touch point, EV_ABS ABS_MT_TRACKING_ID ffffffff//1st discharges
EV_SYN SYN_REPORT 00000000//execution refresh operation
It should be noted that the Touch event type that the touch panel device of different mobile phones is supported is each not
Identical.That Touch sequence of events is sent to the cell phone apparatus not supporting certain Touch parameter type
Cell phone apparatus may be caused without response.Screen taps processing routine passes through Linux I/O when initializing
Control function can get the attribute information of this equipment, only writes the event event that this equipment is supported,
Compatible various types of touch panel device can be realized.
Owing to Monkey and Input is all based on the application on Android virtual machine, and the present invention is
Directly touch panel device is written and read, there is no virtual machine expense.Therefore, the real-time of the present invention is wanted
Higher than Monkey and Input.
2, screen taps management program (TouchController)
Screen taps management program (TouchController) operates on PC equipment, and major function includes:
(1) screen taps processing routine (TouchServer), screen taps are started by adb shell
Processing routine (TouchServer) restarts or kills the screen taps processing routine of this exception time abnormal
(TouchServer)。
(2) set up network with screen taps processing routine (TouchServer) to be connected.
(3) offer is available for the interface of outside access.Mainly have:
int TouchDown(int contactId,int x,int y,int pressure);
int TouchUp(int contactId,int x,int y,int pressure);
int TouchMove(int contactId,int x,int y,int pressure);
Wherein, parameter contactId represents the sequence of touch point, if single-point is then 0, if
Multiple spot is then respectively 0,1,2 the most backward.Parameter x represents the x-axis coordinate of entr screen, parameter
Y represents the y-axis coordinate of entr screen.Parameter pressure represents force value during screen taps.It
Set up network by network socket with screen taps processing routine (TouchServer) and be connected, by
Screen taps processing routine (TouchServer) realizes the action of screen taps.
3, screen taps client-side program
Screen taps client-side program generally refers to the promoter of screen taps, can be at Web end
Flash, HTML5 on click, it is also possible to be the screen on the testing tool apk of mobile terminal
Curtain is clicked on.
On Flash, HTML5 during click, the coordinate that first will click on place, position corresponds to
In target mobile phones, the interface that then calling screen taps management program (TouchController) provides is carried out
Screen taps.
Mobile terminal testing tool is the apk program of an Android, same on the testing tool of mobile terminal
Time when pressing at two or more, by Acticity's or View
OnTouchEvent (MotionEvent event) method can obtain the class of the most all Touch respectively
Type and coordinate information (being included in MotionEvent parameter), and it is sent to mesh according to the order received
Screen taps management program (TouchController) of marking device, i.e. can realize what remote multi-point touched
Function.Here, mobile terminal testing tool may operate in the Android device of arbitrary version, and
And the equipment of all test environments can be controlled.
The transmission of Touch event when Fig. 7 is a kind of optional multiple point touching according to embodiments of the present invention
With receive schematic diagram, as it is shown in fig. 7, first screen taps client-side program is by Touch event sequence
Row send to server;Then Touch event forwarding is managed program to screen taps by server;Screen
Curtain is clicked on after management program carries out adaptation and processes Touch sequence of events and is sent it to screen taps
Processing routine.Above-mentioned Touch sequence of events transmittance process is the mobile device of the embodiment of the present invention
The flow process of method of testing, screen taps processing routine according to Touch sequence of events in touch screen
After at least two point performs touch operation simultaneously, execution result is back to successively screen taps management journey
Sequence, server and screen taps client-side program.
The method of testing of the mobile device of the embodiment of the present invention can reach techniques below effect:
1, real-time is improved.The picture of display mobile device that can be real-time in cloud prototype, it is possible to
Using mouse click on mobile device at Web end and slide, this is the highest to requirement of real-time.
The present invention is capable of the time delays less than Monkey and Input, meets the real-time of cloud prototype
Click demand.
2, multiple point touching is realized.In cloud prototype, application program is by the target of Remote Installation to high in the clouds
In mobile device, mobile terminal testing tool is arranged in the mobile device of tester simultaneously, Ke Yitong
Crossing the application scenarios of mobile terminal testing tool remote control target mobile device, this can be greatly improved behaviour
The MTD of control class application.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore by it all
Being expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subject to
The restriction of described sequence of movement, because according to the present invention, some step can use other orders
Or carry out simultaneously.Secondly, those skilled in the art also should know, reality described in this description
Execute example and belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive root
The mode of required general hardware platform can be added by software according to the method for above-described embodiment to realize, when
So can also pass through hardware, but a lot of in the case of the former is more preferably embodiment.Based on such reason
Solving, the part that prior art is contributed by technical scheme the most in other words can be with soft
The form of part product embodies, this computer software product be stored in a storage medium (as
ROM/RAM, magnetic disc, CD) in, including some instructions with so that a station terminal equipment (can
To be mobile phone, computer, server, or the network equipment etc.) perform each embodiment institute of the present invention
The method stated.
Embodiment 2
According to embodiments of the present invention, a kind of method of testing for implementing above-mentioned mobile device is additionally provided
The test device of mobile device.Fig. 8 is a kind of optional mobile device according to embodiments of the present invention
Test device schematic diagram, as shown in Figure 8, this device may include that
First receiver module 22, is used for receiving test command, and wherein, test command is for setting mobile
At least two point on standby touch screen performs touch operation simultaneously;Modular converter 24, for testing
Order is converted to be touched the driving equipment identification shielded the touch event responded;And perform module 26,
For at least two point being performed touch operation according to touch event simultaneously.
It should be noted that the first receiver module 22 in this embodiment may be used for performing the application
Step S202 in embodiment 1, the modular converter 24 in this embodiment may be used for performing the application
Step S204 in embodiment 1, the execution module 26 in this embodiment may be used for performing the application
Step S206 in embodiment 1.
Herein it should be noted that the example that realized with corresponding step of above-mentioned module and application scenarios
Identical, but it is not limited to above-described embodiment 1 disclosure of that.It should be noted that above-mentioned module is made
A part for device may operate in hardware environment as shown in Figure 1, can be realized by software,
Can also be realized by hardware.
By above-mentioned module, the touch screen to mobile device can be reached and carry out the mesh of multiple point touching test
, so solve correlation technique only support that when mobile device is tested touch screen single-touch is led
Cause the technical problem that MTD is low, it is achieved improve the technique effect of the mobile device testing touch screen degree of depth.
As a kind of optional embodiment, Fig. 9 is another kind of optional shifting according to embodiments of the present invention
The schematic diagram of the test device of dynamic equipment, as it is shown in figure 9, modular converter 24 may include that first
Acquisition module 242, at least obtaining test information from test command, wherein, test information is extremely
Include less: at least two point coordinate on the touchscreen, the type of touch operation, at least two point
Mark;Generation module 244, for generating the touch thing meeting touch event form according to test information
Part, wherein, meets the touch event of touch event form for indicating coordinate, type and mark, touches
Touch event format at least indicating driven equipment identification the event argument of touch event responded.
It should be noted that the first acquisition module 242 in this embodiment may be used for performing the application
Step S2042 in embodiment 1, the generation module 244 in this embodiment may be used for performing this Shen
Please step S2044 in embodiment 1.
Herein it should be noted that the example that realized with corresponding step of above-mentioned module and application scenarios
Identical, but it is not limited to above-described embodiment 1 disclosure of that.It should be noted that above-mentioned module is made
A part for device may operate in hardware environment as shown in Figure 1, can be realized by software,
Can also be realized by hardware.
As a kind of optional embodiment, Figure 10 is that another kind according to embodiments of the present invention is optional
The schematic diagram of the test device of mobile device, as shown in Figure 10, this device can also include: second
Acquisition module 251, was used for before at least two point being performed touch operation according to touch event simultaneously,
Obtaining the attribute information of mobile device, wherein, attribute information is for indicating the driving file of driving equipment
Path;Perform module 26 and may include that writing module 261, for according to indicated by attribute information
Path touch event is written in the driving file of driving equipment, so that at least two point is held simultaneously
Row touch operation.
It should be noted that the second acquisition module 251 in this embodiment may be used for performing the application
Step S2051 in embodiment 1, the writing module 261 in this embodiment may be used for performing this Shen
Please step S2061 in embodiment 1.
Herein it should be noted that the example that realized with corresponding step of above-mentioned module and application scenarios
Identical, but it is not limited to above-described embodiment 1 disclosure of that.It should be noted that above-mentioned module is made
A part for device may operate in hardware environment as shown in Figure 1, can be realized by software,
Can also be realized by hardware.
As a kind of optional embodiment, as shown in Figure 10, this device can also include: second connects
Receive module 252, be used for simultaneously before at least two point being performed touch operation according to touch event,
Receiving authority and authorize order, wherein, authority is authorized order, for obtaining, touch screen is driven equipment
Drive the authority that file is written and read;First respond module 253, is used for responding authority and authorizes order and obtain
Weighting limits.
It should be noted that the second receiver module 252 in this embodiment may be used for performing the application
Step S2052 in embodiment 1, the first respond module 253 in this embodiment may be used for performing
Step S2053 in the embodiment of the present application 1.
Herein it should be noted that the example that realized with corresponding step of above-mentioned module and application scenarios
Identical, but it is not limited to above-described embodiment 1 disclosure of that.It should be noted that above-mentioned module is made
A part for device may operate in hardware environment as shown in Figure 1, can be realized by software,
Can also be realized by hardware.
As a kind of optional embodiment, Figure 11 is that another kind according to embodiments of the present invention is optional
The schematic diagram of the test device of mobile device, as shown in figure 11, performs module 26 and may include that the
One son performs module 262, for by running screen taps processing routine on the mobile apparatus, root
According to touch event, at least two point is performed touch operation simultaneously.This device can also include: the 3rd connects
Receive module 232, for after receiving test command, receive control instruction;Second respond module 234,
Restart for responding control instruction or kill the screen taps processing routine that appearance is abnormal.
It should be noted that the first son in this embodiment performs module 262 and may be used for performing this Shen
Please step S2062 in embodiment 1, the 3rd receiver module 232 in this embodiment may be used for holding
Step S2032 in row the embodiment of the present application 1, the second respond module 234 in this embodiment is permissible
For performing step S2034 in the embodiment of the present application 1.
Herein it should be noted that the example that realized with corresponding step of above-mentioned module and application scenarios
Identical, but it is not limited to above-described embodiment 1 disclosure of that.It should be noted that above-mentioned module is made
A part for device may operate in hardware environment as shown in Figure 1, can be realized by software,
Can also be realized by hardware.
As a kind of optional embodiment, in the embodiment of the present invention involved on touch screen extremely
The touch operation that few two points perform simultaneously includes at least one of: clicks on, slide, touch.
It should be noted that the touch operation that at least two point on the touch screen of mobile device is performed simultaneously
Can include but are not limited to aforesaid operations, it can also include that other operate, and such as length is pressed, this
Place illustrates the most one by one.This alternative embodiment is same by arranging at least two point in touch screen
The polytype of the touch operation of Shi Zhihang, it is possible to reach to meet the various demands in reality test, enter
And reach to improve the effect of the MTD to touch screen.
Embodiment 3
According to embodiments of the present invention, a kind of method of testing for implementing above-mentioned mobile device is additionally provided
Server or terminal.
Figure 12 is the structured flowchart of a kind of terminal according to embodiments of the present invention, as shown in figure 12, and should
Terminal may include that one or more (only illustrating one in figure) processor 201, memorizer 203,
And transmitting device 205 (dispensing device as in above-described embodiment), as shown in figure 12, this terminal
Input-output equipment 207 can also be included.
Wherein, memorizer 203 can be used for storing software program and module, in the embodiment of the present invention
The method of testing of the mobile device programmed instruction/module corresponding with device, processor 201 is by running
It is stored in the software program in memorizer 203 and module, thus performs the application of various function and number
According to process, i.e. realize the method for testing of above-mentioned mobile device.Memorizer 203 can include the most random
Memorizer, it is also possible to include nonvolatile memory, such as one or more magnetic storage device, sudden strain of a muscle
Deposit or other non-volatile solid state memories.In some instances, memorizer 203 can be further
Including the memorizer remotely located relative to processor 201, these remote memories can pass through network
It is connected to terminal.The example of above-mentioned network include but not limited to the Internet, intranet, LAN,
Mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is for receiving via a network or sending data, it is also possible to use
Data transmission between processor and memorizer.Above-mentioned network instantiation can include cable network
And wireless network.In an example, transmitting device 205 includes a network adapter (Network
Interface Controller, NIC), its can by netting twine and other network equipments be connected with router from
And communication can be carried out with the Internet or LAN.In an example, transmitting device 205 is radio frequency
(Radio Frequency, RF) module, it is for wirelessly carrying out communication with the Internet.
Wherein, specifically, memorizer 203 is used for storing application program.
Processor 201 can call the application program of memorizer 203 storage by transmitting device 205,
To perform following step: receiving test command, wherein, test command is for the touch to mobile device
At least two point on screen performs touch operation simultaneously;Test command is converted to the driving shielded that is touched
Equipment identification the touch event responded;And perform to touch at least two point according to touch event simultaneously
Touch operation.
Processor 201 is additionally operable to perform following step: at least obtain test information from test command,
Wherein, test information at least includes: at least two point coordinate on the touchscreen, the class of touch operation
The mark of type, at least two point;The touch event meeting touch event form is generated according to test information,
Wherein, meet the touch event of touch event form for indicating coordinate, type and mark, touch thing
Part form is at least instruction driven equipment identification the event argument of touch event that responds.
Processor 201 is additionally operable to perform following step: according to touch event at least two point simultaneously
Before performing touch operation, obtaining the attribute information of mobile device, wherein, attribute information is used for indicating
The path driving file of driving equipment;Perform to touch behaviour at least two point according to touch event simultaneously
Work includes: touch event is written to the driving literary composition of driving equipment according to the path indicated by attribute information
In part, so that at least two point is performed touch operation simultaneously.
Processor 201 is additionally operable to perform following step: according to touch event at least two point simultaneously
Before performing touch operation, receiving authority and authorize order, wherein, it is right for obtaining that authority authorizes order
The authority driving file to be written and read driving equipment of touch screen;Response authority is authorized order and is obtained power
Limit.
Processor 201 is additionally operable to perform following step: by running screen taps on the mobile apparatus
Processing routine, performs touch operation according to touch event at least two point simultaneously;Receiving test life
After order, receive control instruction;Response control instruction is restarted or kills screen taps exception occur
Processing routine.
Use the embodiment of the present invention, it is provided that the scheme of the test of a kind of mobile device.Surveyed by reception
Examination order, wherein, test command is for holding at least two point on the touch screen of mobile device simultaneously
Row touch operation;Test command is converted to be touched the driver identification shielded the touch thing responded
Part;And according to touch event, at least two point is performed touch operation simultaneously, reach to set mobile
Standby touch screen carries out the purpose of multiple point touching test, and then solves correlation technique to mobile device
Only support when testing that touch screen single-touch causes the technical problem that MTD is low, it is achieved that carry
The technique effect of the high mobile device testing touch screen degree of depth.
Alternatively, during the concrete example in the present embodiment is referred to above-described embodiment 1 and embodiment 2
Described example, the present embodiment does not repeats them here.
It will appreciated by the skilled person that the structure shown in Figure 12 is only signal, terminal can
Be smart mobile phone (such as Android phone, iOS mobile phone etc.), panel computer, palm PC and
The terminal units such as mobile internet device (Mobile Internet Devices, MID), PAD.Figure
12 its structure of above-mentioned electronic installation is not caused restriction.Such as, terminal may also include and compares Figure 12
Shown in more or less assembly (such as network interface, display device etc.), or have and figure
Configurations different shown in 12.
One of ordinary skill in the art will appreciate that the whole or portion in the various methods of above-described embodiment
The program that can be by step by step is carried out the device-dependent hardware of command terminal and is completed, and this program can be deposited
Being stored in a computer-readable recording medium, storage medium may include that flash disk, read only memory
(Read-Only Memory, ROM), random access device (Random Access Memory, RAM),
Disk or CD etc..
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, on
State storage medium and may be used for performing the program code of the method for testing of mobile device.
Alternatively, in the present embodiment, above-mentioned storage medium may be located at the net shown in above-described embodiment
On at least one network equipment in multiple network equipments in network.
Alternatively, in the present embodiment, storage medium is arranged to storage for performing following steps
Program code:
S1, receive test command, wherein, test command on the touch screen of mobile device extremely
Few two points perform touch operation simultaneously;
S2, being converted to be touched the driving equipment identification shielded the touch event responded by test command;
S3, performs touch operation according to touch event at least two point simultaneously.
Alternatively, storage medium is also configured to storage for the program code performing following steps: from
At least obtaining test information in test command, wherein, test information at least includes: at least two point exists
Coordinate on touch screen, the type of touch operation, the mark of at least two point;Raw according to test information
Becoming to meet the touch event of touch event form, wherein, the touch event meeting touch event form is used
In instruction coordinate, type and mark, touch event form is at least instruction driven equipment identification also
The event argument of the touch event of response.
Alternatively, storage medium is also configured to storage for the program code performing following steps:
Before at least two point being performed touch operation simultaneously according to touch event, obtain the attribute of mobile device
Information, wherein, attribute information is for indicating the path driving file of driving equipment;According to touching thing
Part performs touch operation at least two point simultaneously and includes: will touch according to the path indicated by attribute information
The event of touching is written in the driving file of driving equipment, so that at least two point is performed touch operation simultaneously.
Alternatively, storage medium is also configured to storage for the program code performing following steps:
Before at least two point being performed touch operation according to touch event simultaneously, receive authority and authorize order,
Wherein, authority authorizes order for obtaining what the driving file that touch screen drives equipment was written and read
Authority;Response authority is authorized order and is obtained authority.
Alternatively, storage medium is also configured to storage for the program code performing following steps: logical
Cross the screen taps processing routine run on the mobile apparatus, same at least two point according to touch event
Shi Zhihang touch operation;After receiving test command, receive control instruction;Response control instruction weight
Open or kill and abnormal screen taps processing routine occurs.
Alternatively, during the concrete example in the present embodiment is referred to above-described embodiment 1 and embodiment 2
Described example, the present embodiment does not repeats them here.
Alternatively, in the present embodiment, above-mentioned storage medium can include but not limited to: USB flash disk, only
Read memorizer (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), portable hard drive, various Jie that can store program code such as magnetic disc or CD
Matter.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
If the integrated unit in above-described embodiment realizes using the form of SFU software functional unit and as
When independent production marketing or use, can be stored in the storage medium that above computer can read.
Based on such understanding, prior art is contributed by technical scheme the most in other words
Part or completely or partially can the embodying with the form of software product of this technical scheme, this meter
Calculation machine software product is stored in storage medium, including some instructions with so that one or more calculates
Machine equipment (can be personal computer, server or the network equipment etc.) performs the present invention, and each is implemented
All or part of step of method described in example.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and certain is real
Execute the part not having to describe in detail in example, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, can
Realize by another way.Wherein, device embodiment described above is only schematically,
The division of the most described unit, is only a kind of logic function and divides, and actual can have additionally when realizing
Dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another system,
Or some features can ignore, or do not perform.Another point, shown or discussed coupling each other
Close or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, unit or module or
Communication connection, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate,
The parts shown as unit can be or may not be physical location, i.e. may be located at a ground
Side, or can also be distributed on multiple NE.Can select therein according to the actual needs
Some or all of unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit
In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in
In one unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ soft
The form of part functional unit realizes.
The above is only the preferred embodiment of the present invention, it is noted that for the art
For those of ordinary skill, under the premise without departing from the principles of the invention, it is also possible to make some improvement
And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (12)
1. the method for testing of a mobile device, it is characterised in that including:
Receiving test command, wherein, described test command is for the touch screen to mobile device
At least two point perform touch operation simultaneously;
Described test command is converted to driving equipment identification and responding by described touch screen
Touch event;And
According to described touch event, described at least two point is performed described touch operation simultaneously.
Method the most according to claim 1, it is characterised in that described test command is converted to by
Drive equipment identification the touch event that responds of described touch screen include:
At least obtaining test information from described test command, wherein, described test information is at least
Including coordinate on described touch screen of: described at least two point, the type of described touch operation,
The mark of described at least two point;
Generate according to described test information and meet the described touch event of touch event form, wherein,
Meet the described touch event of touch event form for indicating described coordinate, described type and institute
Stating mark, described touch event form is at least indicating by described driving equipment identification and responding
The event argument of touch event.
Method the most according to claim 1, it is characterised in that
According to described touch event, described at least two point is being performed described touch operation simultaneously
, also include: obtain the attribute information of described mobile device, wherein, described attribute information before
For indicating the path driving file of described driving equipment;
According to described touch event, described at least two point is performed described touch operation bag simultaneously
Include: described touch event is written to described according to the described path indicated by described attribute information
In the driving file of driving equipment, so that described at least two point is performed described touch operation simultaneously.
Method the most according to claim 3, it is characterised in that according to described touch event to institute
State before at least two point performs described touch operation simultaneously, also include:
Receiving authority and authorize order, wherein, described authority is authorized order and is touched described for obtaining
Touch the authority driving file to be written and read driving equipment of screen;
Respond described authority and authorize the order described authority of acquisition.
Method the most according to claim 1, it is characterised in that
According to described touch event, described at least two point is performed described touch operation bag simultaneously
Include: by the screen taps processing routine operating in described mobile device, according to described touch
Event performs described touch operation to described at least two point simultaneously;
After receiving test command, described method also includes: receive control instruction;Response institute
State control instruction restart or kill the described screen taps processing routine that exception occurs.
Method the most according to any one of claim 1 to 5, it is characterised in that described touch is grasped
Make to include at least one of: click on, slide, touch.
7. the test device of a mobile device, it is characterised in that including:
First receiver module, is used for receiving test command, and wherein, described test command is for right
At least two point on the touch screen of mobile device performs touch operation simultaneously;
Modular converter, for being converted to described test command by the driving equipment of described touch screen
The touch event identified and respond;And
Perform module, for described at least two point being performed institute according to described touch event simultaneously
State touch operation.
Device the most according to claim 7, it is characterised in that described modular converter includes:
First acquisition module, at least obtaining test information from described test command, wherein,
Described test information at least includes: described at least two point coordinate on described touch screen, institute
State the type of touch operation, the mark of described at least two point;
Generation module, meets described in touch event form for generating according to described test information
Touch event, wherein, meets the described touch event of touch event form for indicating described seat
Mark, described type and described mark, described touch event form is driven by described at least indicating
Dynamic equipment identification the event argument of touch event responded.
Device the most according to claim 7, it is characterised in that
Described device also includes: the second acquisition module, for according to described touch event to institute
State before at least two point performs described touch operation simultaneously, obtain the attribute of described mobile device
Information, wherein, described attribute information is for indicating the path driving file of described driving equipment;
Described execution module includes: writing module, for according to indicated by described attribute information
Described touch event is written in the driving file of described driving equipment by described path, with to institute
State at least two point and perform described touch operation simultaneously.
Device the most according to claim 9, it is characterised in that described device also includes:
Second receiver module, for according to described touch event to described at least two point simultaneously
Before performing described touch operation, receiving authority and authorize order, wherein, described authority authorizes life
Order drives the authority driving file to be written and read of equipment for obtaining to described touch screen;
First respond module, is used for responding described authority and authorizes the order described authority of acquisition.
11. devices according to claim 7, it is characterised in that
Described execution module includes: the first son performs module, for by operating in described movement
Screen taps processing routine on equipment, same to described at least two point according to described touch event
Touch operation described in Shi Zhihang;
Described device also includes: the 3rd receiver module, for, after receiving test command, connecing
Receive control instruction;Second respond module, is used for responding described control instruction and restarts or kill out
Now abnormal described screen taps processing routine.
12. according to the device according to any one of claim 7 to 11, it is characterised in that described touch
Operation includes at least one of: clicks on, slide, touch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610289563.6A CN105975367B (en) | 2016-04-29 | 2016-04-29 | Test method and device for mobile equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610289563.6A CN105975367B (en) | 2016-04-29 | 2016-04-29 | Test method and device for mobile equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105975367A true CN105975367A (en) | 2016-09-28 |
CN105975367B CN105975367B (en) | 2022-03-25 |
Family
ID=56993662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610289563.6A Active CN105975367B (en) | 2016-04-29 | 2016-04-29 | Test method and device for mobile equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105975367B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600282A (en) * | 2018-12-26 | 2019-04-09 | 世纪龙信息网络有限责任公司 | Test macro and test method based on cloud prototype |
CN109684218A (en) * | 2018-12-26 | 2019-04-26 | 世纪龙信息网络有限责任公司 | Test macro and test method based on cloud prototype |
CN111651232A (en) * | 2020-06-10 | 2020-09-11 | 网易(杭州)网络有限公司 | One-machine multi-control method, device and system and electronic equipment |
CN111866160A (en) * | 2020-07-28 | 2020-10-30 | 网易(杭州)网络有限公司 | Multi-machine control method, device, equipment and storage medium |
CN112100076A (en) * | 2020-09-24 | 2020-12-18 | 腾讯科技(深圳)有限公司 | Game testing method, related device, equipment and storage medium |
CN112445356A (en) * | 2019-08-28 | 2021-03-05 | 北京钛方科技有限责任公司 | Method, device and system for testing and calibrating touch component |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102193863A (en) * | 2011-04-26 | 2011-09-21 | 青岛海信移动通信技术股份有限公司 | Method and device for implementing multi-point touch operation |
CN102193862A (en) * | 2010-03-10 | 2011-09-21 | 微软公司 | Testing user interfaces in multiple execution environments |
CN102521118A (en) * | 2011-11-11 | 2012-06-27 | 福建星网视易信息系统有限公司 | Automatic testing method of Android program |
CN103353858A (en) * | 2013-06-06 | 2013-10-16 | 百度在线网络技术(北京)有限公司 | Automatic testing method and device based on action touch simulation |
CN103810089A (en) * | 2012-11-12 | 2014-05-21 | Sap股份公司 | Application of automatic test based on posture |
CN104536889A (en) * | 2014-12-26 | 2015-04-22 | 北京奇虎科技有限公司 | Method and system for testing user interface, use case management platform and operating terminal |
US20150205393A1 (en) * | 2012-03-08 | 2015-07-23 | Google Inc. | Simulating multi-touch events on a browser system |
CN105005529A (en) * | 2014-04-16 | 2015-10-28 | 腾讯科技(深圳)有限公司 | Application testing method and apparatus |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102681942A (en) * | 2012-04-21 | 2012-09-19 | 北京迈凯互动网络科技有限公司 | Testing method and system of mobile application |
CN103678132A (en) * | 2013-12-18 | 2014-03-26 | 中国科学院深圳先进技术研究院 | Application software cloud testing system |
CN104536888A (en) * | 2014-12-24 | 2015-04-22 | 网易(杭州)网络有限公司 | Game testing method and system for mobile devices |
-
2016
- 2016-04-29 CN CN201610289563.6A patent/CN105975367B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102193862A (en) * | 2010-03-10 | 2011-09-21 | 微软公司 | Testing user interfaces in multiple execution environments |
CN102193863A (en) * | 2011-04-26 | 2011-09-21 | 青岛海信移动通信技术股份有限公司 | Method and device for implementing multi-point touch operation |
CN102521118A (en) * | 2011-11-11 | 2012-06-27 | 福建星网视易信息系统有限公司 | Automatic testing method of Android program |
US20150205393A1 (en) * | 2012-03-08 | 2015-07-23 | Google Inc. | Simulating multi-touch events on a browser system |
CN103810089A (en) * | 2012-11-12 | 2014-05-21 | Sap股份公司 | Application of automatic test based on posture |
CN103353858A (en) * | 2013-06-06 | 2013-10-16 | 百度在线网络技术(北京)有限公司 | Automatic testing method and device based on action touch simulation |
CN105005529A (en) * | 2014-04-16 | 2015-10-28 | 腾讯科技(深圳)有限公司 | Application testing method and apparatus |
CN104536889A (en) * | 2014-12-26 | 2015-04-22 | 北京奇虎科技有限公司 | Method and system for testing user interface, use case management platform and operating terminal |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600282A (en) * | 2018-12-26 | 2019-04-09 | 世纪龙信息网络有限责任公司 | Test macro and test method based on cloud prototype |
CN109684218A (en) * | 2018-12-26 | 2019-04-26 | 世纪龙信息网络有限责任公司 | Test macro and test method based on cloud prototype |
CN112445356A (en) * | 2019-08-28 | 2021-03-05 | 北京钛方科技有限责任公司 | Method, device and system for testing and calibrating touch component |
CN111651232A (en) * | 2020-06-10 | 2020-09-11 | 网易(杭州)网络有限公司 | One-machine multi-control method, device and system and electronic equipment |
WO2021248788A1 (en) * | 2020-06-10 | 2021-12-16 | 网易(杭州)网络有限公司 | Methods for implementing multi-device compatibility testing, apparatuses for implementing multi-device compatibility testing, system for implementing multi-device compatibility testing, and electronic device |
CN111866160A (en) * | 2020-07-28 | 2020-10-30 | 网易(杭州)网络有限公司 | Multi-machine control method, device, equipment and storage medium |
CN111866160B (en) * | 2020-07-28 | 2023-09-15 | 网易(杭州)网络有限公司 | Multi-machine control method, device, equipment and storage medium |
CN112100076A (en) * | 2020-09-24 | 2020-12-18 | 腾讯科技(深圳)有限公司 | Game testing method, related device, equipment and storage medium |
CN112100076B (en) * | 2020-09-24 | 2022-11-11 | 腾讯科技(深圳)有限公司 | Game testing method, related device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105975367B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105975367A (en) | Mobile equipment test method and device | |
US10775888B2 (en) | Method and system for integrating haptic feedback into portable electronic devices | |
CN108959000A (en) | A kind of server stress test method, system and terminal | |
CN107943683B (en) | Test script generation method and device, electronic equipment and storage medium | |
CN104765678A (en) | Method and device for testing applications on mobile terminal | |
CN106649084A (en) | Function call information obtaining method and apparatus, and test device | |
WO2015081841A1 (en) | Devices and methods for test scenario reproduction | |
CN104484273A (en) | Test method for application program, device and system | |
CN104049745A (en) | Input control method and electronic device supporting the same | |
CN106201265B (en) | A kind of mobile terminal control method, apparatus and system based on WEB | |
CN109062468B (en) | Split screen display method and device, storage medium and electronic equipment | |
CN104076916A (en) | Information processing method and electronic device | |
CN107783833A (en) | A kind of management method and device of terminal background application | |
US20160328149A1 (en) | Display screen-based physical button simulation method and electronic device | |
CN109446832A (en) | A kind of screenshotss method and device | |
CN110058990A (en) | Performance test methods and device, computer equipment, storage medium | |
CN103984626A (en) | Method and device for generating test-case script | |
CN104063071A (en) | Content input method and device | |
CN109766196A (en) | A kind of method for scheduling task, device and equipment | |
CN106775692A (en) | A kind of component edits method and electronic equipment | |
CN104102560B (en) | The method and device of system performance testing | |
CN108154306A (en) | Task processing method, device, equipment and the computer readable storage medium of crowdsourcing model | |
CN109062469B (en) | Split screen display method and device, storage medium and electronic equipment | |
CN110174946A (en) | Mouse action analogy method, simulation system, storage medium and electronic equipment | |
US11179644B2 (en) | Videogame telemetry data and game asset tracker for session recordings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |