CN104951397B - Method of testing, device, server and the system of mobile device - Google Patents
Method of testing, device, server and the system of mobile device Download PDFInfo
- Publication number
- CN104951397B CN104951397B CN201410210222.6A CN201410210222A CN104951397B CN 104951397 B CN104951397 B CN 104951397B CN 201410210222 A CN201410210222 A CN 201410210222A CN 104951397 B CN104951397 B CN 104951397B
- Authority
- CN
- China
- Prior art keywords
- coordinate position
- test
- tested
- mobile device
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of method of testing of mobile device, device, server and system.Wherein, the method for testing of mobile device is applied including control test and run on mobile device to be tested;Receive test and apply the first runnable interface on mobile device to be tested, and the first runnable interface is transmitted to test client, to obtain showing the second runnable interface;Coordinate position of the test instruction on default viewing area is obtained, wherein, test instruction is to act on the instruction of the second runnable interface;Calculate the second coordinate position on mobile device to be tested corresponding with the first coordinate position;And transmission test instruction and the second coordinate position to mobile device to be tested, to perform test instruction at the second coordinate position of mobile device to be tested.By the present invention, solve the problems, such as in the prior art can not be on the mobile apparatus to testing, and then improve the effect of test applicability and test scope without using the application program of standard control.
Description
Technical field
The present invention relates to technical field of measurement and test, in particular to a kind of method of testing of mobile device, device, service
Device and system.
Background technology
In terms of Android platform application program is adapted to test, traditional manual test method takes a substantial amount of time
In collecting device, configuring maintenance equipment, the tested application of installation, run and to operate tested application upper, and these operations all can only
Carry out respectively one by one.Some existing Android clouds test platforms use and are installed automatically, start application at present, it
Afterwards by traveling through standard control, tested, although such a mode can carry out adaptation test, be all only limited to be based on standard control
The application of part, it can only also accomplish the test installed, run, unloaded for the application program without using standard control, cannot be introduced into
Without using being operated and being tested in the application scenarios of standard control, cause mobile device is carried out to test limited, reduction
The applicability and test scope of test.
In addition, though can be realized in terms of remote control in computer end remote control Android device, but tested
It is the screen picture for constantly refreshing single device in webpage or client in journey, picture refresh rate is very slow, is unable to reach stream
Smooth effect, and simple clicking operation can only be done in webpage or client using mouse, carry out the test of single device.
For can not be asked on the mobile apparatus what the application program without using standard control was tested in correlation technique
Topic, not yet proposes effective solution at present.
The content of the invention
The main purpose of the embodiment of the present invention is to provide a kind of method of testing of mobile device, device, server and is
System, so that solve the problems, such as in the prior art can not be on the mobile apparatus to testing without using the application program of standard control.
A kind of one side according to embodiments of the present invention, there is provided method of testing of mobile device.
The method of testing of mobile device according to embodiments of the present invention includes:Control test is applied in mobile device to be tested
Upper operation;Receive test and apply the first runnable interface on mobile device to be tested, and the first runnable interface is transmitted to survey
Client is tried, to obtain the second runnable interface being shown on the default viewing area of test client;Test instruction is obtained to exist
Coordinate position on default viewing area, wherein, test instruction is to act on the instruction of the second runnable interface;Calculate and sat with first
The second coordinate position corresponding to cursor position on mobile device to be tested, wherein, the first coordinate position is test instruction pre-
If the coordinate position on viewing area;And transmission test instructs and the second coordinate position is to mobile device to be tested, to treat
Test at the second coordinate position of mobile device and perform test instruction.
A kind of another aspect according to embodiments of the present invention, there is provided test device of mobile device.
The test device of mobile device according to embodiments of the present invention includes:Control unit, for controlling test to apply
Run on mobile device to be tested;First transmission unit, first on mobile device to be tested is applied to transport for receiving test
Row interface, and the first runnable interface is transmitted to test client, to obtain being shown in the default viewing area of test client
On the second runnable interface;First acquisition unit, for obtaining coordinate position of the test instruction on default viewing area, its
In, test instruction is to act on the instruction of the second runnable interface;Computing unit, for calculate it is corresponding with the first coordinate position
The second coordinate position on mobile device to be tested, wherein, the first coordinate position is test instruction on default viewing area
Coordinate position;And second transmission unit, for transmitting test instruction and the second coordinate position to mobile device to be tested, with
Test instruction is performed at second coordinate position of mobile device to be tested.
A kind of another aspect according to embodiments of the present invention, there is provided test server of mobile device.
The test server of mobile device according to embodiments of the present invention is provided including the above of the embodiment of the present invention
Any mobile device test device.
A kind of another aspect according to embodiments of the present invention, there is provided test system of mobile device.
The test system of mobile device according to embodiments of the present invention includes:Mobile device to be tested, wherein, shifting to be tested
The quantity of dynamic equipment is one or more;Test client;And test server, wherein, test server is in the present invention
State the test server for the mobile device that content is provided.
In embodiments of the present invention, applied using control test and run on mobile device to be tested, and run
First runnable interface is transmitted to showing on test client, is obtained being shown in client and is preset the second operation circle on viewing area
Face, test instruction are used to operate the second runnable interface, realize and the second runnable interface can be entered according to test purpose
Row operation;By calculating the second coordinate position corresponding with the first coordinate position, realize test instruction in test client
On coordinate position, correspond to test instruction on mobile device to be tested coordinate position;Then by will test instruction and the
Two coordinate positions are transmitted to mobile device to be tested, and test is performed at the second coordinate position of mobile device to be tested and is referred to
Order, realizes and carries out operation test to the first runnable interface on mobile device to be tested, that is to say to operating in shifting to be tested
Test application in dynamic equipment carries out operation test.It is such a by transmit test instruction and coordinate position test mode, not by
Test application use the influence of control, thus can enter without using carry out operating in the application scenarios of standard control with
Test, for mobile device test unrestricted, and solving in the prior art can not be on the mobile apparatus to without using mark
The problem of application program of quasi- control is tested, and then improve the effect of test applicability and test scope.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for testing of mobile device according to embodiments of the present invention;
Fig. 2 is the flow chart according to the method for testing of the mobile device of further embodiment of this invention;
Fig. 3 is the flow chart that runnable interface is transmitted in the method for testing of mobile device according to embodiments of the present invention;
Fig. 4 is the schematic diagram of the test device of mobile device according to embodiments of the present invention;
Fig. 5 is the schematic diagram according to the test device of the mobile device of further embodiment of this invention;
Fig. 6 is the schematic diagram according to the test device of the mobile device of further embodiment of this invention;
Fig. 7 is the structural representation of the first transmission unit in the test device according to the mobile device of the present invention;
Fig. 8 is the schematic diagram according to the test device of the mobile device of further embodiment of this invention;And
Fig. 9 is the schematic diagram of the test system of mobile device according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, a kind of method that can be used for implementing the application device embodiment can be provided to implement
Example, can be in the calculating of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of, it is necessary to explanation
Performed in machine system, although also, show logical order in flow charts, in some cases, can with different from
Order herein performs shown or described step.
According to embodiments of the present invention, there is provided a kind of method of testing of mobile device, the embodiment of the present invention is carried below
The method of testing of the mobile device of confession does specific introduction:
Fig. 1 is the flow chart of the method for testing of mobile device according to embodiments of the present invention, as shown in figure 1, this method bag
Steps S102 is included to step S110:
S102:Control test is applied and run on mobile device to be tested, specifically, when to some without using standard control
Test application when being tested, tester uploads onto the server application is tested by the webpage on test client, service
Device issues the order for starting test to mobile device to be tested, and the information such as the test Apply Names just uploaded are contained in order,
After mobile device to be tested receives test command, start to download from a server test application program, after the completion of download, pacified
Dress, operation.Wherein, server can also be uploaded directly into by application is tested using http agreements by shell script.
S104:Receive test and apply the first runnable interface on mobile device to be tested, and the first runnable interface is passed
Test client is transported to, to obtain the second runnable interface being shown on the default viewing area of test client, i.e. will test
The runnable interface on mobile device to be tested is applied, is synchronized on the default viewing area of test client, the former is referred to as
One runnable interface, the latter are referred to as the second runnable interface.
S106:Coordinate position of the test instruction on default viewing area is obtained, wherein, instruction is tested to act on second
The instruction of runnable interface, i.e. obtain coordinate of the test instruction operated to the second runnable interface on default viewing area
Position, specifically, can be by parsing the non-mobile device adb shell to be tested being connected with test client
The output of getevent orders instructs the coordinate position on default viewing area to obtain test, can also pass through manifolding
The WndProc methods test command events that are issued on the window control of test client of interception tester obtains coordinate bit
Put.Test instruction can be instruction of the tester by the runnable interface of mouse action second, i.e. test client is connect by mouse
Acceptance Tests are instructed or tester is run by the non-mobile device operation to be tested second being connected with test client
The instruction at interface, i.e. test client passes through the non-mobile device to be tested connected and receives test instruction.
S108:The second coordinate position on mobile device to be tested corresponding with the first coordinate position is calculated, wherein, the
Coordinate position of one coordinate position for test instruction on default viewing area.
S110:Transmission test instruction and the second coordinate position are to mobile device to be tested, with mobile device to be tested
Test instruction is performed at second coordinate position.
In the method for testing for the mobile device that the embodiment of the present invention is provided, applied using control test in shifting to be tested
Run in dynamic equipment, and the first runnable interface run is transmitted to showing on test client, obtains being shown in client
The second runnable interface on default viewing area, test instruction are used to operate the second runnable interface, and realizing can be by
The second runnable interface is operated according to test purpose;It is real by calculating the second coordinate position corresponding with the first coordinate position
Show the coordinate position that will test instruction on test client, correspond to test instruction coordinate bit on mobile device to be tested
Put;Then by the way that test instruction and the second coordinate position are transmitted to mobile device to be tested, in mobile device to be tested
Test instruction is performed at second coordinate position, realizes and operation survey is carried out to the first runnable interface on mobile device to be tested
Examination, that is to say and carry out operation test to the test application operated on mobile device to be tested.It is such a to be instructed by transmitting test
With the test mode of coordinate position, tested person application does not use the influence of control, therefore can enter without using standard control
Application scenarios in operated and tested, for mobile device test unrestricted, solve in the prior art
Can not on the mobile apparatus to being tested without using the application program of standard control the problem of, and then it is suitable to improve test
With property and the effect of test scope.
Wherein, in embodiments of the present invention, treating corresponding with the first coordinate position can be calculated in the following ways
The second coordinate position tested on mobile device:First, the length of side of default viewing area is obtained, and obtains mobile device to be tested
The screen length of side, wherein, the length of side of default viewing area and the screen length of side of mobile device to be tested be primarily referred to as using pixel as
The length of unit, i.e. how many length in pixels;Then, according to the length of side of default viewing area and the screen of mobile device to be tested
Proportionate relationship between the length of side, uniform zoom is carried out to the first coordinate position, obtains the second coordinate position.Specifically, can be by
According to formulaThe second coordinate position is calculated, wherein, (x0, y0) it is the first coordinate position, (x1, y1) it is the second coordinate
Position, a0To preset long side in the length of side of viewing area, a1For the long side in the screen length of side of mobile device to be tested.
By carrying out uniform zoom to the first coordinate position, the second coordinate position is obtained, is realized in default viewing area
With the screen size of mobile device to be tested it is different in the case of, ensure while test command is transmitted, will to test
The correct execution position of order is transmitted to mobile device to be tested.
In embodiments of the present invention, the first coordinate position got from test client can be packaged, so
Server is sent to by customized control protocol afterwards.
Correspondingly, server calculates the second coordinate position after the first coordinate position is received, and passes through self-defined control
Re-grouped package after agreement, be then transferred to mobile device to be tested.
Further, as shown in Fig. 2 after the length of side of default viewing area is got, and to the first coordinate bit
Carry out uniform zoom is put, before obtaining the second coordinate position, can also first judge whether the length of side of default viewing area is equal in advance
If the length of side, the default length of side is to the length in pixels employed in mobile device to be tested transmission data procedures, is judged default aobvious
Whether the length of side for showing region is mainly to judge to preset in long side and the default length of side in the length of side of viewing area equal to the default length of side
Long side it is whether equal, wherein, in the case of judging that the two is unequal, first according to the length of side of default viewing area and default
Proportionate relationship between the length of side, uniform zoom is carried out to the first coordinate position, middle coordinate position is obtained, further according to the default length of side
Proportionate relationship between the screen length of side of mobile device to be tested, uniform zoom is carried out to middle coordinate position, obtains second
Coordinate position, i.e. first changed to the first coordinate position, obtain middle coordinate position, then entered again to middle coordinate position
Row uniform zoom, the second coordinate position is obtained, specifically, can be first according to formulaCalculate middle coordinate position
Put, then according to formulaSecond coordinate position is calculated, wherein, (x0', y0') it is middle coordinate position,
a0' it is to preset the long side in the length of side;If the two is equal, then it can directly skip and the first coordinate position is converted into centre
The step of coordinate position, directly according to the ratio between the length of side of default viewing area and the screen length of side of mobile device to be tested
Relation, uniform zoom is carried out to the first coordinate position, obtains the second coordinate position, i.e. directly the first coordinate position is carried out etc.
Than scaling, obtain acting on the second coordinate position on mobile device to be tested, specifically, can be directly according to formulaCalculate the second coordinate position.It is of the invention real to illustrate using 400 pixels as the long side preset in the length of side in Fig. 2
The method of testing for the mobile device that example is provided is applied, it is necessary to which explanation, carries out the step that uniform zoom calculates the second coordinate position
Suddenly can both have been calculated by test client, can also be directly by the first coordinate position or middle coordinate location transmission to be tested
Mobile device, the second coordinate bit is calculated according to the first coordinate position or middle coordinate position by mobile device to be tested itself
Put, in the method for testing that the embodiment of the present invention is provided, do not limit the executive agent for calculating the second coordinate position.
Preferably, as shown in figure 3, after the first runnable interface that test is applied on mobile device to be tested is received,
The method of testing of the mobile device of the embodiment of the present invention also comprises the following steps S21 to step S24:
S21:Obtain the video source data of the first runnable interface, i.e. obtain and represent regarding for the first runnable interface screen picture
Frequency source data, specifically, the screen picture for representing the first runnable interface can be first obtained, then by encoder server to obtaining
To screen picture encoded, obtain represent the first runnable interface video source data.
S22:Judge whether the frame frequency of video source data is less than preset value, specifically, the size of preset value can be according to reality
Fluency needed for the test process of border is set, and in embodiments of the present invention, can use 15 frames/second.
S23:In the case where the frame frequency for judging video source data is less than preset value, addition insertion frame to video source number
According to, obtain target data, wherein it is possible to add insertion frame to video source data by encoder server, insertion and present frame
It adjacent insertion frame, can be that basis is the frame that the frame before being located at present frame is determined, insert the specific acquisition or true of frame
Determine mode, and the mode of addition insertion frame to video source data can use any one mode in the prior art, herein
Repeat no more.
S24:The video stream data of target data is calculated, wherein it is possible to be counted by encoder server to target data
Calculate, obtain corresponding video stream data.
Wherein, the first runnable interface is transmitted to test client, to obtain being shown in the default display of test client
The second runnable interface on region includes:Video stream data is transmitted to test client, to obtain being shown in default viewing area
The second runnable interface on domain, specifically, video stream data can be transmitted to test client by streaming media server, made
The video stream data that test client obtains representing target data is obtained, and then is imaged on default viewing area, obtains the second fortune
Row interface.
By being obtained to the video source data of the first runnable interface, and it is smaller in the frame frequency for judging video source data
In the case of, addition insertion frame is realized with RTMP (real-time messages transportation protocol, Real Time to video source data
Messaging Protocol, abbreviation RTMP) streaming media transmission technique transmits the runnable interface of mobile device to be tested to survey
Terminal is tried, has been reached and has been reduced bandwidth consumption, reduces time delay and improve the effect of fluency.
It is further preferred that after step s 104, the method for testing of the mobile device of the embodiment of the present invention also includes pair
The instruction type (for example press, lift, slide) of test instruction is obtained, wherein, obtain the instruction type that test instructs
It can be obtained after coordinate position of the test instruction on default viewing area is obtained, test instruction can also obtained pre-
, can also be with coordinate position of the test instruction on default viewing area simultaneously if being obtained before the coordinate position on viewing area
Obtain, correspondingly, in step s 110 then transmit test instruction, instruction type and the second coordinate position to movement to be tested
Equipment, to perform test instruction according to instruction type at the second coordinate position of mobile device to be tested.
By being obtained to the instruction type of test instruction, and correspondingly transmit to mobile device to be tested, with according to
Instruction type performs test instruction on mobile device to be tested, realizes and is ensureing that test command operating position is accurately basic
On, ensure the correctness that test instruction performs, reach the effect for improving test accuracy rate.
Further, the first coordinate position includes the first starting coordinate position and the first termination coordinate position, wherein, calculate
The second coordinate position on mobile device to be tested corresponding with the first coordinate position includes:Calculate and the first starting coordinate bit
The second starting coordinate position corresponding to putting on mobile device to be tested, and calculate it is corresponding with the first termination coordinate position
Second on mobile device to be tested terminates coordinate position;Transmission test instruction and the second coordinate position to movement to be tested are set
It is standby, included with performing test instruction at the second coordinate position of mobile device to be tested:Transmission test instruction, the second starting are sat
Cursor position and second terminates coordinate position to mobile device to be tested, with the second starting coordinate position of mobile device to be tested
Terminated to second and test instruction is performed at coordinate position.
If test instruction is to represent to slide test instruction, by terminating coordinate to the first starting coordinate position and first
The original position and final position of position correspondence are calculated, and are transmitted to mobile device to be tested, are realized to shifting to be tested
Dynamic equipment carries out slide equipment.Equally, include the first starting coordinate position and first for the first coordinate position and terminate seat
The situation of cursor position, the method for testing of the embodiment of the present invention can equally obtain to instruction type, and transmit to be tested
Mobile device, then, according to instruction at the second starting coordinate position to the second termination coordinate position of mobile device to be tested
Type performs test instruction.
Wherein, in embodiments of the present invention, coordinate position, test instruction and instruction type are transmitted to movement to be tested and set
It is standby, above-mentioned data are mainly write to the "/dev/input/eventX " paths of mobile device to be tested.
In addition, in the method for testing for the mobile device that the embodiment of the present invention is provided, mobile device to be tested and default
The quantity of viewing area can be multiple, and the quantity using mobile device to be tested and default viewing area is that (n is more than 2 to n
Natural number) exemplified by, further illustrate the method for testing of mobile device that the embodiment of the present invention is provided, it is specific as follows:
Control test, which applies to run on mobile device to be tested, to be included:Control test is applied to be set in each movement to be tested
Standby upper operation;
Receive test and apply the first runnable interface on mobile device to be tested, and the first runnable interface is transmitted to survey
Client is tried, is included with the second runnable interface for obtaining being shown on the default viewing area of test client:Receiving test should
With the first runnable interface on each mobile device to be tested, n the first runnable interfaces are obtained, and boundary is run by n first
Face is transmitted to test client, to obtain corresponding the n being shown on the n default viewing areas of test client the
Two runnable interfaces;
Obtaining coordinate position of the test instruction on default viewing area includes:Test instruction is obtained in destination display area
On coordinate position, wherein, destination display area is the viewing area that test instruction is received in n default viewing areas, the
One coordinate position is coordinate position of the test instruction on destination display area, is n situation for default viewing area, can be with
Using one in n default viewing areas as main viewing area, the main viewing area is destination display area, other n-1
Individual default viewing area is that while test instruction operates to main viewing area, corresponding operation is dynamic from viewing area
Work can be synchronized to each from viewing area, and the coordinate position of acquisition is then coordinate bit of the test instruction on main viewing area
Put;
Calculating the second coordinate position on mobile device to be tested corresponding with the first coordinate position includes:Calculate and the
The second coordinate position Di corresponding to one coordinate position on mobile device Si to be tested, wherein, i takes 1 to n successively, with presetting
Viewing area is that the situation of one is similar, equally both can directly calculate and corresponding with the first coordinate position set in movement to be tested
The second coordinate position Di on standby Si, can also first calculate middle coordinate position corresponding with the first coordinate position, Ran Houzai
The second coordinate position Di on the corresponding mobile device Si to be tested calculated with middle coordinate position correspondence, specific calculation with
That is introduced in the above is identical, and here is omitted;
Transmission test instruction and the second coordinate position are to mobile device to be tested, to be sat in the second of mobile device to be tested
Test instruction is performed at cursor position to be included:Transmission test instruction and the second coordinate position Di to mobile device Si to be tested, with
Test instruction is performed at mobile device Si to be tested the second coordinate position Di.
By above description as can be seen that the method for testing for the mobile device that the embodiment of the present invention is provided, is realized logical
Multi-process mode is crossed, while multiple mobile devices to be tested are tested, has reached the effect for improving testing efficiency, and it is more
Process test mode is advantageous to improve the performance and stability of test system.
Below with the method for testing of the mobile device provided using the embodiment of the present invention, Android mobile phone is played one-to-many
Exemplified by the specific test of adapted in real time test, the method for testing for the mobile device that the embodiment of the present invention is provided is further illustrated.
Tester uploads onto the server the test application program that Android mobile phone is played by the webpage on test client,
Or application will be tested using http agreements by shell script and be uploaded directly into server, server issues the order for starting test
To multiple Android mobile phones to be tested, the information such as the test Apply Names just uploaded are contained in order, each peace to be tested
After Zhuo Shouji receives test command, start to download from a server test application program, after the completion of download, installed, run.
In running, runnable interface of the test application program in each Android mobile phone to be tested is obtained, and will obtain
The runnable interface got is shown on the default viewing area of test client, i.e. by test application program in peace to be tested
Runnable interface on Zhuo Shouji, it is synchronized on the default viewing area of test client, the fortune in Android mobile phone to be tested
Row interface is referred to as the first runnable interface, and the runnable interface shown on the default viewing area of test client is referred to as the second operation
Interface, wherein it is possible to be transmitted the runnable interface of Android mobile phone to be tested to test visitor using RTMP streaming media transmission techniques
Family end, specific to obtain and transmission method is provided identical with the above, here is omitted.
By the non-mobile device to be tested that is connected with test client, (non-mobile device to be tested can be tester
Android mobile phone) or the external operation equipment by being connected with test client (such as mouse, keyboard etc.) to second operation circle
Face is operated, wherein, the instruction operated to the second runnable interface, which is referred to as, tests instruction, is instructed in tester using test
Second runnable interface is carried out in operating process, obtains coordinate position of the test instruction on default viewing area, it is assumed that obtain
To coordinate position of the test instruction on default viewing area be the first coordinate position, after the first coordinate position is got,
The second coordinate position in each Android mobile phone to be tested corresponding with the first coordinate position is calculated, then, will be calculated
The second coordinate position with test instruction and test instruction type together with correspond to transmit to each Android mobile phone, to be treated each
Test instruction is performed in the Android mobile phone of test, realizes the adaptation test one-to-many to Android mobile phone to be tested.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of mobile device for being used to implement the method for testing of above-mentioned mobile device is additionally provided
Test device, the test device is mainly used in performing the method for testing that is provided of the above of the embodiment of the present invention, right below
The test device for the mobile device that the embodiment of the present invention is provided does specific introduction:
Fig. 4 is the schematic diagram of the test device of mobile device according to embodiments of the present invention, as shown in figure 4, the test fills
Putting mainly includes control unit 10, the first transmission unit 20, first acquisition unit 30, the transmission unit of computing unit 40 and second
50, wherein:
Control unit 10 is used to control test to apply to run on mobile device to be tested, specifically, when not making to some
When being tested with the test application of standard control, tester is uploaded to clothes by application is tested by the webpage on test client
Business device, server are issued the order for starting test by control unit 10 to mobile device to be tested, contained in order on just
The information such as the test Apply Names of biography, after mobile device to be tested receives test command, start to download from a server to test and answer
With program, after the completion of download, installed, run.Wherein, it can also will be tested and applied using http agreements by shell script
It is uploaded directly into server.
First transmission unit 20, which is used to receiving test, applies the first runnable interface on mobile device to be tested, and by the
One runnable interface is transmitted to test client, to obtain the second operation circle being shown on the default viewing area of test client
Face, i.e. the runnable interface on mobile device to be tested is applied into test, is synchronized to the default viewing area of test client
On, the former is referred to as the first runnable interface, and the latter is referred to as the second runnable interface.
First acquisition unit 30 is used to obtain coordinate position of the test instruction on default viewing area, wherein, test refers to
Make to act on the instruction of the second runnable interface, i.e. obtain the test instruction operated to the second runnable interface default aobvious
Show the coordinate position on region, specifically, can be by parsing the non-mobile device adb to be tested being connected with test client
The output of shell getevent orders instructs the coordinate position on default viewing area to obtain test, can also be by multiple
The WndProc methods test command event that is issued on the window control of test client of interception tester is write to obtain coordinate bit
Put.Test instruction can be instruction of the tester by the runnable interface of mouse action second, i.e. test client is connect by mouse
Acceptance Tests are instructed or tester is run by the non-mobile device operation to be tested second being connected with test client
The instruction at interface, i.e. test client passes through the non-mobile device to be tested connected and receives test instruction.
Computing unit 40 is used to calculate the second coordinate bit on mobile device to be tested corresponding with the first coordinate position
Put, wherein, coordinate position of first coordinate position for test instruction on default viewing area.
Second transmission unit 50 is used to transmit test instruction and the second coordinate position to mobile device to be tested, with to be measured
Try to perform test instruction at the second coordinate position of mobile device.
In the test device for the mobile device that the embodiment of the present invention is provided, applied using control test in movement to be tested
Run in equipment, and the first runnable interface run is transmitted to showing on test client, obtain being shown in client pre-
If the second runnable interface on viewing area, test instruction is used to operate the second runnable interface, and realizing can be according to
Test purpose operates to the second runnable interface;By calculating the second coordinate position corresponding with the first coordinate position, realize
Coordinate position of the instruction on test client will be tested, corresponds to test instruction coordinate bit on the mobile device to be tested
Put;Then by the way that test instruction and the second coordinate position are transmitted to mobile device to be tested, in mobile device to be tested
Test instruction is performed at second coordinate position, realizes and operation survey is carried out to the first runnable interface on mobile device to be tested
Examination, that is to say and carry out operation test to the test application operated on mobile device to be tested.It is such a to be instructed by transmitting test
With the test mode of coordinate position, tested person application does not use the influence of control, therefore can enter without using standard control
Application scenarios in operated and tested, for mobile device test unrestricted, solve in the prior art
Can not on the mobile apparatus to being tested without using the application program of standard control the problem of, and then it is suitable to improve test
With property and the effect of test scope.
Wherein, as shown in figure 5, in embodiments of the present invention, computing unit 40 mainly includes the first acquisition module 41 and place
Module 42 is managed, the first acquisition module 41 is used for the length of side for obtaining default viewing area, and obtains the screen of mobile device to be tested
The length of side, wherein, the length of side of default viewing area and the screen length of side of mobile device to be tested are primarily referred to as in units of pixel
Length, i.e. how many length in pixels;Processing module 42 is used for the screen of the length of side and mobile device to be tested according to default viewing area
Proportionate relationship between the curtain length of side, uniform zoom is carried out to the first coordinate position, obtains the second coordinate position.Specifically, handle
Module 42 can be according to formulaThe second coordinate position is calculated, wherein, (x0, y0) it is the first coordinate position, (x1,
y1) it is the second coordinate position, a0To preset long side in the length of side of viewing area, a1For in the screen length of side of mobile device to be tested
Long side.
By carrying out uniform zoom to the first coordinate position, the second coordinate position is obtained, is realized in default viewing area
With the screen size of mobile device to be tested it is different in the case of, ensure while test command is transmitted, will to test
The correct execution position of order is transmitted to mobile device to be tested.
In embodiments of the present invention, the first coordinate position got from test client can be packaged, so
Server is sent to by customized control protocol afterwards.
Correspondingly, server calculates the second coordinate position after the first coordinate position is received, and passes through self-defined control
Re-grouped package after agreement, be then transferred to mobile device to be tested.
Further, as shown in fig. 6, computing unit in the test device for the mobile device that the embodiment of the present invention is provided
40 also include the first judge module 43, after the first acquisition module 41 gets the length of side of default viewing area, and are locating
Manage module 42 and uniform zoom is carried out to the first coordinate position, before obtaining the second coordinate position, the movement of the embodiment of the present invention is set
Whether the length of side that standby test device first can also judge default viewing area with the first judge module 43 is equal to the default length of side, should
The default length of side is that the side of default viewing area is judged to the length in pixels employed in mobile device to be tested transmission data procedures
It is long whether be equal to the default length of side be mainly long side in the length of side for judge default viewing area with the long side in the default length of side whether
It is equal, wherein, in the case of judging that the two is unequal, first the first coordinate position is changed, obtains middle coordinate position
Put, uniform zoom then is carried out to middle coordinate position again, obtains the second coordinate position, i.e. first by the in processing module 42
Two processing submodules 422 are according to the proportionate relationship between the length of side of default viewing area and the default length of side, to the first coordinate position
Uniform zoom is carried out, middle coordinate position is obtained, then by second processing submodule 422 according to the default length of side and movement to be tested
Proportionate relationship between the screen length of side of equipment, uniform zoom is carried out to middle coordinate position, obtains the second coordinate position, specifically
Ground, can be according to formulaMiddle coordinate position is calculated, then according to formulaDescribed in calculating
Second coordinate position, wherein, (x0', y0') it is middle coordinate position, a0' it is to preset the long side in the length of side;If the two is equal
Words, then can directly skip the step of the first coordinate position is converted into middle coordinate position, directly the first coordinate position is entered
Row uniform zoom, obtain acting on the second coordinate position on mobile device to be tested, i.e. by first in processing module 42
Submodule 421 is managed directly to be closed according to the ratio between the length of side of default viewing area and the screen length of side of mobile device to be tested
System, uniform zoom is carried out to the first coordinate position, obtains the second coordinate position, specifically, can be directly according to formulaCalculate the second coordinate position.
Calculated it should be noted that carrying out uniform zoom at the first processing submodule 421 and second of the second coordinate position
Reason submodule 422 can be both arranged on test client, can also be arranged on mobile device to be tested, by movement to be tested
Equipment itself calculates the second coordinate position according to the first coordinate position or middle coordinate position, is provided in the embodiment of the present invention
Test device in, limit first processing submodule 421 and second processing submodule 422 specific setting position.
Preferably, as shown in fig. 7, the first transmission unit 20 in the test device of the mobile device of the embodiment of the present invention is led
To include the second acquisition module 21, the second judge module 22, add module 23, computing module 24 and transport module 25, wherein:
Second acquisition module 21 is used to obtain the video source data for representing the first runnable interface, i.e. obtains and represents the first fortune
The video source data of row interface screen image, specifically, it can first obtain the screen picture for representing the first runnable interface, Ran Houtong
Cross encoder server to encode the screen picture got, obtain representing the video source data of the first runnable interface.
Second judge module 22 is used to judge whether the frame frequency of video source data is less than preset value, specifically, preset value
Size can be set according to the fluency needed for during actual test, in embodiments of the present invention, can use 15 frames/
Second.
Add module 23 is used to judge that the frame frequency of video source data is less than the situation of preset value in the second judge module 22
Under, addition insertion frame obtains target data, the add module 23 can be added by encoder server to perform to video source data
Insert into frame to video source data, the insertion frame adjacent with present frame of insertion, can be that basis is before being located at present frame
The frame that frame is determined, inserts specific acquisition or the determination mode of frame, and the mode of addition insertion frame to video source data is equal
Any one mode in the prior art can be used, here is omitted.
Computing module 24 is used for the video stream data for calculating target data, wherein, the computing module 24 again may be by
Encoder server is calculated target data to perform, and obtains corresponding video stream data.
Transport module 25 is used to transmit video stream data to test client, to obtain being shown on default viewing area
The second runnable interface, wherein, transport module 25 can be transmitted video stream data to survey to perform by streaming media server
Trying client so that test client obtains representing the video stream data of target data, and then is imaged on default viewing area,
Obtain the second runnable interface.
By being obtained to the video source data of the first runnable interface, and it is smaller in the frame frequency for judging video source data
In the case of, addition insertion frame is realized with RTMP (real-time messages transportation protocol, Real Time to video source data
Messaging Protocol, abbreviation RTMP) streaming media transmission technique transmits the runnable interface of mobile device to be tested to survey
Terminal is tried, has been reached and has been reduced bandwidth consumption, reduces time delay and improve the effect of fluency.
It is further preferred that as shown in figure 8, the test device of the mobile device of the embodiment of the present invention also includes the second acquisition
Unit 60, the first runnable interface on mobile device to be tested is applied for receiving test in the first transmission unit 20, and will
First runnable interface is transmitted to test client, to obtain the second operation being shown on the default viewing area of test client
After interface, the instruction type (for example press, lift, slide) instructed to test obtains, wherein, obtain test instruction
Instruction type can be obtained after coordinate position of the test instruction on default viewing area is obtained, can also be surveyed obtaining
Examination instruction is obtained before the coordinate position on default viewing area, and the seat on default viewing area can also be instructed with test
Cursor position obtains simultaneously, and correspondingly, the second transmission unit 50 then transmits test instruction, instruction type and the second coordinate position
To mobile device to be tested, to perform test instruction according to instruction type at the second coordinate position of mobile device to be tested.
By being obtained to the instruction type of test instruction, and correspondingly transmit to mobile device to be tested, with according to
Instruction type performs test instruction on mobile device to be tested, realizes and is ensureing that test command operating position is accurately basic
On, ensure the correctness that test instruction performs, reach the effect for improving test accuracy rate.
Further, the first coordinate position includes the first starting coordinate position and the first termination coordinate position, computing unit
40 are used to calculate the second starting coordinate position on mobile device to be tested corresponding with the first starting coordinate position, and calculate
Corresponding the second termination coordinate position on mobile device to be tested of coordinate position is terminated with first;Second transmission unit 50 is used
Coordinate position is terminated to mobile device to be tested in transmission test instruction, the second starting coordinate position and second, with to be tested
Second starting coordinate position of mobile device terminates to second and test instruction is performed at coordinate position.
If test instruction is to represent to slide test instruction, by terminating coordinate to the first starting coordinate position and first
The original position and final position of position correspondence are calculated, and are transmitted to mobile device to be tested, are realized to shifting to be tested
Dynamic equipment carries out slide.Equally, include the first starting coordinate position and first for the first coordinate position and terminate coordinate bit
Situation about putting, the test device of the embodiment of the present invention again may be by second acquisition unit 60 and instruction type obtained,
And transmitted by the second transmission unit 50 to mobile device to be tested, then, in the second origin coordinates position of mobile device to be tested
Put to second to terminate and perform test instruction according to instruction type at coordinate position.
Wherein, in embodiments of the present invention, coordinate position, test instruction and instruction type are transmitted to movement to be tested and set
It is standby, above-mentioned data are mainly write to the "/dev/input/eventX " paths of mobile device to be tested.
In addition, in the test device for the mobile device that the embodiment of the present invention is provided, mobile device to be tested and default
The quantity of viewing area can be multiple, and the quantity using mobile device to be tested and default viewing area is that (n is more than 2 to n
Natural number) exemplified by, further illustrate the method for testing of mobile device that the embodiment of the present invention is provided, it is specific as follows:
Control unit 10 is run for controlling test to apply on each mobile device to be tested;
First transmission unit 20, which is used to receive to test, applies the first runnable interface on each mobile device to be tested, obtains
Transmit to test client to n the first runnable interfaces, and by n the first runnable interfaces, be shown in obtaining one-to-one corresponding
N the second runnable interfaces on n default viewing areas of test client;
First acquisition unit 30 is used to obtain coordinate position of the test instruction on destination display area, wherein, target shows
Show region to receive the viewing area of test instruction in n default viewing areas, the first coordinate position is test instruction in mesh
The coordinate position on viewing area is marked, is n situation for default viewing area, can be by one in n default viewing areas
Individual to be used as main viewing area, the main viewing area is destination display area, and other n-1 default viewing areas are from display
Region, while test instruction operates to main viewing area, corresponding operational motion can be synchronized to each from viewing area
On domain, the coordinate position of acquisition is then coordinate position of the test instruction on main viewing area;
Computing unit 40 is used to calculate the second coordinate on mobile device Si to be tested corresponding with the first coordinate position
Position Di, wherein, i takes 1 to n successively, similar with the situation that default viewing area is one, equally both can directly calculate and the
The second coordinate position Di corresponding to one coordinate position on mobile device Si to be tested, can also first be calculated and the first coordinate
The middle coordinate position of position correspondence, then correspond to and calculated on the mobile device Si to be tested with middle coordinate position correspondence again
Second coordinate position Di, specific calculation is identical with what is introduced in the above, and here is omitted;
Second transmission unit 50 is used to transmit test instruction and the second coordinate position to mobile device to be tested, with to be measured
Trying execution test instruction at the second coordinate position of mobile device includes:Transmission test instruction and the second coordinate position Di are to be measured
Mobile device Si is tried, to perform test instruction at mobile device Si to be tested the second coordinate position Di.
By above description as can be seen that the test device for the mobile device that the embodiment of the present invention is provided, is realized logical
Multi-process mode is crossed, while multiple mobile devices to be tested are tested, has reached the effect for improving testing efficiency, and it is more
Process test mode is advantageous to improve the performance and stability of test system.
In addition, the embodiment of the present invention additionally provides a kind of test server of mobile device, the test server is mainly wrapped
Include the test device for any mobile device that the above of the embodiment of the present invention is provided.
Embodiment 3
The embodiment of the present invention additionally provides a kind of test system of mobile device, and the embodiment of the present invention is previously mentioned below
The test system of mobile device does specific introduction:
Fig. 9 is the schematic diagram of the test system of mobile device according to embodiments of the present invention, as shown in figure 9, the movement is set
Standby test system mainly includes mobile device A to be tested, test client B and test server C, wherein, movement to be tested
The quantity of device A, test client B and test server C can be one, also can be multiple, schematically show in Fig. 9
It is multiple, test server C and movement to be tested to have gone out mobile device A, test client B and test server C to be tested
Device A and test client B can carry out data transmission, and the test philosophy of the test system is as follows:
Test server C control tests are applied and run on mobile device A to be tested, specifically, when to some without using
When the test application of standard control is tested, tester is uploaded to survey by application is tested by the webpage on test client B
Server C is tried, test server C issues the order for starting test to mobile device A to be tested, contains what is just uploaded in order
The information such as Apply Names are tested, after mobile device A to be tested receives test command, start to download test from test server C
Application program, after the completion of download, installed, run.Wherein, can also will be tested using http agreements by shell script should
With being uploaded directly into test server C.
Test server C receives test and applies the first runnable interface on mobile device A to be tested, and first is run
Interface is transmitted to test client B, to obtain the second runnable interface being shown on test client B default viewing area,
That is, test server C will be tested and be applied the runnable interface on mobile device A to be tested, be synchronized to the default of test client B
On viewing area, the former is referred to as the first runnable interface, and the latter is referred to as the second runnable interface.Specifically, test server C is got
After the first runnable interface on mobile device A to be tested, first runnable interface is encoded, obtains representing the first operation circle
The video flowing in face, then video is streamed to by test client B with stream media mode so that test client B obtains expression
The video source data of one runnable interface.Wherein, for any one test server C, test server C can include
Multiple server components, multiple server components comprise at least the master server of testing results program, are encoded to screen picture
The encoder server of video flowing and the streaming media server that video is streamed to test client;Test server C can be with
It is the master server of collection operation test program, screen picture is encoded to the encoder server of video flowing and is streamed to video
The server that the streaming media server of test client is integrated.In embodiments of the present invention, do not limit test server C's
Concrete structure building form.
Test server C obtains coordinate position of the test instruction on default viewing area, wherein, test instruction is effect
In the instruction of the second runnable interface, i.e. test server C obtains the test instruction operated to the second runnable interface default
Coordinate position on viewing area, specifically, tester can be set by the non-movement to be tested being connected with test client B
Standby E1 issues the test instruction for acting on the second runnable interface, can also be by the local mouse that is connected with test client B
E2 issues the test instruction for acting on the second runnable interface, wherein, non-mobile device E1 to be tested can be by testing client
The end B Android device that is connected with test client B of USB interface, be equally provided with non-mobile device E1 to be tested and
The identical test application installed on mobile device A to be tested, after test client B shows the second runnable interface, test
Person can operate to the test application on non-mobile device E1 to be tested, and non-mobile device E1 to be tested will operate to it
Test instruction, which is transmitted, to test client B, makes test client B receive the test instruction for acting on the second runnable interface.
Wherein it is possible to the adb shell by parsing the non-mobile device E1 to be tested being connected with test client B
The output of getevent orders instructs the coordinate position on default viewing area to obtain test, can also pass through manifolding
The WndProc methods test command events that are issued on test client B window control of interception tester obtains coordinate bit
Put.Test instruction can be instruction of the tester by the runnable interface of mouse action second, i.e. test client B passes through mouse
Receive test instruction or tester and pass through the non-mobile device E1 to be tested operation that is connected with test client B the
The instruction of two runnable interfaces, i.e. test client B passes through the non-mobile device E1 to be tested connected and receives test instruction.
Test server C calculates the second coordinate position on mobile device A to be tested corresponding with the first coordinate position,
Wherein, coordinate position of first coordinate position for test instruction on default viewing area.
Test server C transmission test instructions and the second coordinate position are to mobile device A to be tested, with movement to be tested
Test instruction is performed at second coordinate position of device A.
In the test system for the mobile device that the embodiment of the present invention is provided, applied using control test in movement to be tested
Run in equipment, and the first runnable interface run is transmitted to showing on test client, obtain being shown in client pre-
If the second runnable interface on viewing area, test instruction is used to operate the second runnable interface, and realizing can be according to
Test purpose operates to the second runnable interface;By calculating the second coordinate position corresponding with the first coordinate position, realize
Coordinate position of the instruction on test client will be tested, corresponds to test instruction coordinate bit on the mobile device to be tested
Put;Then by the way that test instruction and the second coordinate position are transmitted to mobile device to be tested, in mobile device to be tested
Test instruction is performed at second coordinate position, realizes and operation survey is carried out to the first runnable interface on mobile device to be tested
Examination, that is to say and carry out operation test to the test application operated on mobile device to be tested.It is such a to be instructed by transmitting test
With the test mode of coordinate position, tested person application does not use the influence of control, therefore can enter without using standard control
Application scenarios in operated and tested, for mobile device test unrestricted, solve in the prior art
Can not on the mobile apparatus to being tested without using the application program of standard control the problem of, and then it is suitable to improve test
With property and the effect of test scope.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side
Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one
Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the present invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (16)
- A kind of 1. method of testing of mobile device, it is characterised in that including:Control test is applied to be run on mobile device to be tested;Receive the test and apply the first runnable interface on the mobile device to be tested, and by first runnable interface Transmit to test client, to obtain the second runnable interface being shown on the default viewing area of the test client;Coordinate position of the test instruction on the default viewing area is obtained, wherein, the test instruction is described to act on The instruction of second runnable interface;The second coordinate position on the mobile device to be tested corresponding with the first coordinate position is calculated, wherein, described the Coordinate position of one coordinate position for the test instruction on the default viewing area;AndThe test instruction and second coordinate position are transmitted to the mobile device to be tested, with the movement to be tested The test instruction is performed at second coordinate position of equipment.
- 2. method of testing according to claim 1, it is characterised in that calculating is corresponding with the first coordinate position to be treated described The second coordinate position on test mobile device includes:The length of side of the default viewing area is obtained, and obtains the screen length of side of the mobile device to be tested;AndIt is right according to the proportionate relationship between the length of side of the default viewing area and the screen length of side of the mobile device to be tested First coordinate position carries out uniform zoom, obtains second coordinate position.
- 3. method of testing according to claim 2, it is characterised in that obtain the default viewing area the length of side it Afterwards, the calculating the second coordinate position on the mobile device to be tested corresponding with the first coordinate position also includes judging Whether the length of side of the default viewing area is equal to the default length of side, wherein, according to the length of side of the default viewing area and described Proportionate relationship between the screen length of side of mobile device to be tested, uniform zoom is carried out to first coordinate position, obtains institute Stating the second coordinate position includes:In the case where the length of side for judging the default viewing area is equal to the default length of side, directly according to described default aobvious Show the proportionate relationship between the length of side in region and the screen length of side of the mobile device to be tested, first coordinate position is entered Row uniform zoom, obtain second coordinate position;AndIn the case where the length of side for judging the default viewing area is not equal to the default length of side, according to the default display Proportionate relationship between the length of side in region and the default length of side, uniform zoom is carried out to first coordinate position, in obtaining Between coordinate position, it is right and according to the proportionate relationship between the default length of side and the screen length of side of the mobile device to be tested The middle coordinate position carries out uniform zoom, obtains second coordinate position.
- 4. method of testing according to claim 1, it is characterised in that applied receiving the test in the shifting to be tested After the first runnable interface in dynamic equipment, the method for testing also includes:Obtain the video source data of first runnable interface;Judge whether the frame frequency of the video source data is less than preset value;In the case where the frame frequency for judging the video source data is less than the preset value, addition insertion frame to the video source Data, obtain target data;AndThe video stream data of the target data is calculated,Wherein, first runnable interface is transmitted to the test client, to obtain being shown in the test client The second runnable interface on default viewing area includes:The video stream data is transmitted to the test client, to obtain Second runnable interface being shown on the default viewing area.
- 5. method of testing according to claim 1, it is characterised in that the method for testing also includes:Obtain the test The instruction type of instruction, wherein, the test instruction and second coordinate position to the mobile device to be tested are transmitted, with The test instruction is performed at second coordinate position of the mobile device to be tested to be included:Transmit the test instruction, the instruction type and second coordinate position to the mobile device to be tested, with The test is performed at second coordinate position of the mobile device to be tested according to the instruction type to instruct.
- 6. method of testing according to claim 1, it is characterised in that first coordinate position includes the first origin coordinates Position and first terminates coordinate position, wherein,Calculating the second coordinate position on the mobile device to be tested corresponding with the first coordinate position includes:Calculating and institute State the second starting coordinate position on the mobile device to be tested corresponding to the first starting coordinate position, and calculate with it is described First terminates the second termination coordinate position on the mobile device to be tested corresponding to coordinate position;The test instruction and second coordinate position are transmitted to the mobile device to be tested, with the movement to be tested The test instruction is performed at second coordinate position of equipment to be included:Transmit the test instruction, second starting is sat Cursor position and described second terminates coordinate position to the mobile device to be tested, with described in the mobile device to be tested Second starting coordinate position terminates to described second performs the test instruction at coordinate position.
- 7. method of testing according to claim 1, it is characterised in that the mobile device to be tested and the default display The quantity in region is n, and n is more than 2 natural number, wherein:Control test, which applies to run on mobile device to be tested, to be included:The test is controlled to apply in each shifting to be tested Run in dynamic equipment;Receive the test and apply the first runnable interface on the mobile device to be tested, and by first runnable interface Transmit to the test client, to obtain the second runnable interface being shown on the default viewing area of the test client Including:Receive the test and apply first runnable interface on each mobile device to be tested, obtain described in n First runnable interface, and n first runnable interfaces are transmitted to the test client, to obtain corresponding display N second runnable interfaces on the n default viewing areas of the test client;Obtaining coordinate position of the test instruction on default viewing area includes:The test instruction is obtained in destination display area On coordinate position, wherein, the destination display area is that the test instruction is received in n default viewing areas Viewing area, coordinate position of first coordinate position for the test instruction on the destination display area;Calculating the second coordinate position on the mobile device to be tested corresponding with the first coordinate position includes:Calculating and institute The second coordinate position Di on mobile device Si to be tested corresponding to the first coordinate position is stated, wherein, i takes 1 to n successively;The test instruction and second coordinate position are transmitted to the mobile device to be tested, with the movement to be tested The test instruction is performed at second coordinate position of equipment to be included:Transmit the test instruction and second coordinate bit Di to the mobile device Si to be tested is put, to be performed at the second coordinate position Di of the mobile device Si to be tested The test instruction.
- A kind of 8. test device of mobile device, it is characterised in that including:Control unit, run for controlling test to apply on mobile device to be tested;First transmission unit, the first runnable interface on the mobile device to be tested is applied for receiving the test, and First runnable interface is transmitted to test client, to obtain being shown on the default viewing area of the test client The second runnable interface;First acquisition unit, for obtaining coordinate position of the test instruction on the default viewing area, wherein, the test Instruct to act on the instruction of second runnable interface;Computing unit, for calculating the second coordinate bit on the mobile device to be tested corresponding with the first coordinate position Put, wherein, coordinate position of first coordinate position for the test instruction on the default viewing area;AndSecond transmission unit, for transmitting the test instruction and second coordinate position to the mobile device to be tested, To perform the test instruction at second coordinate position of the mobile device to be tested.
- 9. test device according to claim 8, it is characterised in that the computing unit includes:First acquisition module, for obtaining the length of side of the default viewing area, and obtain the screen of the mobile device to be tested The curtain length of side;AndProcessing module, between the length of side according to the default viewing area and the screen length of side of the mobile device to be tested Proportionate relationship, to first coordinate position carry out uniform zoom, obtain second coordinate position.
- 10. test device according to claim 9, it is characterised in that the computing unit also includes the first judge module, For after the length of side of the first acquisition module acquisition default viewing area, judging the side of the default viewing area It is long whether to be equal to the default length of side, wherein, the processing module includes:First processing submodule, the length of side for judging the default viewing area in first judge module are equal to described In the case of the default length of side, directly according to the length of side of the default viewing area and the screen length of side of the mobile device to be tested Between proportionate relationship, to first coordinate position carry out uniform zoom, obtain second coordinate position;AndSecond processing submodule, for judging that the length of side of the default viewing area is not equal to institute in first judge module It is right according to the proportionate relationship between the length of side of the default viewing area and the default length of side in the case of stating the default length of side First coordinate position carries out uniform zoom, obtains middle coordinate position, and according to the default length of side with it is described to be tested Proportionate relationship between the screen length of side of mobile device, uniform zoom is carried out to the middle coordinate position, obtains described second Coordinate position.
- 11. test device according to claim 8, it is characterised in that first transmission unit includes:Second acquisition module, the video source data of first runnable interface is represented for obtaining;Second judge module, for judging whether the frame frequency of the video source data is less than preset value;Add module, in the case of being less than the preset value in the frame frequency for judging the video source data, addition insertion Frame obtains target data to the video source data;Computing module, for calculating the video stream data of the target data;AndTransport module, it is described default aobvious to obtain being shown in for the video stream data to be transmitted to the test client Show second runnable interface on region.
- 12. test device according to claim 8, it is characterised in that the test device also includes:Second obtains list Member, for obtaining the instruction type of the test instruction, wherein,Second transmission unit is used to transmitting the test instruction, the instruction type and second coordinate position to described Mobile device to be tested, to be performed at second coordinate position of the mobile device to be tested according to the instruction type The test instruction.
- 13. test device according to claim 8, it is characterised in that first coordinate position includes the first starting and sat Cursor position and first terminates coordinate position, wherein,It is corresponding with first starting coordinate position on the mobile device to be tested that the computing unit is used for calculating Second starting coordinate position, and calculate it is corresponding with the described first termination coordinate position on the mobile device to be tested the Two terminate coordinate position;Second transmission unit is used to transmit the test instruction, second starting coordinate position and the second termination seat Cursor position to the mobile device to be tested, with second starting coordinate position of the mobile device to be tested to described Second terminates the test instruction of execution at coordinate position.
- 14. test device according to claim 8, it is characterised in that the mobile device to be tested and described preset show The quantity for showing region is n, and n is more than 2 natural number, wherein:Described control unit is run for controlling the test to apply on each mobile device to be tested;First transmission unit be used for receive it is described test apply on each mobile device to be tested described first Runnable interface, n first runnable interfaces are obtained, and n first runnable interfaces are transmitted to the test client End, to obtain corresponding n second operations being shown on the n default viewing areas of the test client Interface;The first acquisition unit is used to obtain coordinate position of the test instruction on destination display area, wherein, it is described Destination display area is that the viewing area that the test instructs is received in the n default viewing areas, first coordinate Coordinate position of the position for the test instruction on the destination display area;The computing unit is used to calculate the second seat on mobile device Si to be tested corresponding with first coordinate position Cursor position Di, wherein, i takes 1 to n successively;Second transmission unit is set for transmitting the test instruction and second coordinate position to the movement to be tested It is standby, included with performing the test instruction at second coordinate position of the mobile device to be tested:Transmit the survey Examination instruction and the second coordinate position Di to the mobile device Si to be tested, with the institute of the mobile device Si to be tested State and the test instruction is performed at the second coordinate position Di.
- A kind of 15. test server of mobile device, it is characterised in that including:Shifting any one of claim 8 to 14 The test device of dynamic equipment.
- A kind of 16. test system of mobile device, it is characterised in that including:Mobile device to be tested, wherein, the quantity of the mobile device to be tested is one or more;Test client;AndTest server, wherein, the test server is the test server of the mobile device described in claim 15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410210222.6A CN104951397B (en) | 2014-05-16 | 2014-05-16 | Method of testing, device, server and the system of mobile device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410210222.6A CN104951397B (en) | 2014-05-16 | 2014-05-16 | Method of testing, device, server and the system of mobile device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104951397A CN104951397A (en) | 2015-09-30 |
CN104951397B true CN104951397B (en) | 2017-12-26 |
Family
ID=54166064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410210222.6A Active CN104951397B (en) | 2014-05-16 | 2014-05-16 | Method of testing, device, server and the system of mobile device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104951397B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105426144B (en) * | 2015-11-02 | 2019-03-29 | 上海聚力传媒技术有限公司 | A kind of method and apparatus of the adaptive multiresolution of test application program |
CN106997291B (en) * | 2016-01-26 | 2020-12-22 | 中移(杭州)信息技术有限公司 | Control method, master node and slave node |
CN106557424B (en) * | 2016-11-18 | 2019-12-10 | 腾讯科技(深圳)有限公司 | Memory test method, tested terminal, test client and system |
CN107122306A (en) * | 2017-05-15 | 2017-09-01 | 网易(杭州)网络有限公司 | Automated testing method and device, storage medium, electronic equipment |
CN109992125B (en) * | 2019-03-29 | 2022-11-15 | 京东方科技集团股份有限公司 | Information input method, device and system |
CN110175117A (en) * | 2019-05-06 | 2019-08-27 | 珠海全志科技股份有限公司 | Test method, system, device, terminal and readable storage medium storing program for executing |
CN113138919B (en) * | 2021-04-19 | 2022-04-22 | 广州掌动智能科技有限公司 | Multi-client testing system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541492A (en) * | 2010-12-28 | 2012-07-04 | 联想(北京)有限公司 | Display method and electronic equipment |
CN103019761A (en) * | 2011-07-22 | 2013-04-03 | 三星电子株式会社 | Method of arranging user interface objects in a portable terminal and an apparatus thereof |
CN103473235A (en) * | 2012-06-07 | 2013-12-25 | 腾讯科技(深圳)有限公司 | Searching method of electronic map, browsing method and system of electronic map |
CN103677509A (en) * | 2012-09-24 | 2014-03-26 | 联想(北京)有限公司 | Display method and electronic equipment |
-
2014
- 2014-05-16 CN CN201410210222.6A patent/CN104951397B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541492A (en) * | 2010-12-28 | 2012-07-04 | 联想(北京)有限公司 | Display method and electronic equipment |
CN103019761A (en) * | 2011-07-22 | 2013-04-03 | 三星电子株式会社 | Method of arranging user interface objects in a portable terminal and an apparatus thereof |
CN103473235A (en) * | 2012-06-07 | 2013-12-25 | 腾讯科技(深圳)有限公司 | Searching method of electronic map, browsing method and system of electronic map |
CN103677509A (en) * | 2012-09-24 | 2014-03-26 | 联想(北京)有限公司 | Display method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104951397A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104951397B (en) | Method of testing, device, server and the system of mobile device | |
US10271013B2 (en) | Display control method and apparatus | |
CN105262629B (en) | WebSocket pushes the method and system of warning information in a kind of network management system | |
CN104955074B (en) | Test device and test method | |
CN106056529A (en) | Method and equipment for training convolutional neural network used for image recognition | |
CN103701927B (en) | A kind of image sharing method of terminal room, terminal device and communication system | |
CN106254259B (en) | A kind of method and device of flow control | |
CN106658545A (en) | Test method, mobile terminal and server | |
CN105227873B (en) | A kind of test method and device of on-screen display data | |
CN113452944B (en) | Picture display method of cloud mobile phone | |
CN107087201A (en) | Image processing method and device | |
CN107623833A (en) | The control method of video conference, apparatus and system | |
CN104967528A (en) | Bandwidth adjusting method and system based on SDN controller | |
CN106407003A (en) | Screen interface display method and system | |
CN106455056A (en) | Positioning method and device | |
CN106922022A (en) | Scheduling up service resource method, apparatus and system | |
CN109586988B (en) | Webpage opening delay testing method, network equipment and intelligent gateway | |
CN107105226A (en) | A kind of video quality evaluation device | |
Zhu et al. | HTML5 based media player for real-time video surveillance | |
CN108401263A (en) | A kind of appraisal procedure and device of voice quality | |
CN112653898A (en) | User image generation method, related device and computer program product | |
CN110830678B (en) | Multi-channel video signal synchronous output method, device, system and medium | |
CN104008043B (en) | Cross-terminal method of testing, end to be tested and test lead | |
CN110505352B (en) | Call quality testing method, system, computer device and computer storage medium | |
CN107257558A (en) | Message forwarding method and device |
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 |