CN104951397A - Mobile equipment testing method, mobile equipment testing device, mobile equipment testing server and mobile equipment testing system - Google Patents

Mobile equipment testing method, mobile equipment testing device, mobile equipment testing server and mobile equipment testing system Download PDF

Info

Publication number
CN104951397A
CN104951397A CN201410210222.6A CN201410210222A CN104951397A CN 104951397 A CN104951397 A CN 104951397A CN 201410210222 A CN201410210222 A CN 201410210222A CN 104951397 A CN104951397 A CN 104951397A
Authority
CN
China
Prior art keywords
coordinate position
mobile device
tested
viewing area
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410210222.6A
Other languages
Chinese (zh)
Other versions
CN104951397B (en
Inventor
方亮
王鹏
张得俊
孙大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410210222.6A priority Critical patent/CN104951397B/en
Publication of CN104951397A publication Critical patent/CN104951397A/en
Application granted granted Critical
Publication of CN104951397B publication Critical patent/CN104951397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mobile equipment testing method, a mobile equipment testing device, a mobile equipment testing server and a mobile equipment testing system. The mobile equipment testing method includes the steps of controlling a testing application to operate on to-be-tested mobile equipment; receiving a first operation interface, on the to-be-tested mobile equipment, of the testing application, and transmitting the first operation interface to a testing client side to obtain and display a second operation interface; acquiring a coordinate position of a testing instruction in a preset display area, wherein the testing instruction serves as the instruction for the second operation interface; computing a second coordinate position, corresponding to the first coordinate position, in the to-be-tested mobile equipment; transmitting the testing instruction and the second coordinate position to the to-be-tested mobile equipment so as to execute the testing instruction at the second coordinate position in the to-be-tested mobile equipment. The mobile equipment testing method, the mobile equipment testing device, the mobile equipment testing server and the mobile equipment testing system can solve the problem that an application program not using a standard control ActiveX in the mobile equipment cannot be tested in the prior art, and thereby being capable of improving testing applicability and testing range.

Description

The method of testing of mobile device, device, server and system
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, server and system.
Background technology
In the adaptive test of Android platform application program, traditional manual test method consume a large amount of time at collecting device, configuring maintenance equipment, tested application, operation operating in tested application are installed, and these operations all can only be carried out one by one respectively.More existing Android cloud test platform adopts and automatically carries out installing, starting application at present, afterwards by traversal standard control, test, although this kind of mode can carry out adaptation test, but the application be all only limited to based on standard control, also the test of installing, running, unloading can only be accomplished for not using the application program of standard control, cannot enter not use in the application scenarios of standard control and carry out operating and testing, cause that test is carried out to mobile device limited, reduce applicability and the test specification of test.
In addition, although can realize in Long-distance Control in computer end Long-distance Control Android device, it is but the screen picture constantly refreshing single device at webpage or client in test process, picture refresh rate is very slow, smooth effect cannot be reached, and mouse can only be used to do simple clicking operation at webpage or client, carry out the test of single device.
On the mobile apparatus to the problem not using the application program of standard control to test, at present effective solution cannot not yet be proposed in correlation technique.
Summary of the invention
The fundamental purpose of the embodiment of the present invention is to provide a kind of method of testing of mobile device, device, server and system, cannot on the mobile apparatus to the problem not using the application program of standard control to test in prior art to solve.
According to an aspect of the embodiment of the present invention, provide a kind of method of testing of mobile device.
Method of testing according to the mobile device of the embodiment of the present invention comprises: control Test Application and run on mobile device to be tested; Receive first runnable interface of Test Application on mobile device to be tested, and the first runnable interface is transferred to test client, to obtain the second runnable interface be presented on the default viewing area of test client; Obtain the coordinate position of test instruction on default viewing area, wherein, test instruction is the instruction acting on the second runnable interface; Calculate second coordinate position on to be tested mobile device corresponding with the first coordinate position, wherein, the first coordinate position is the coordinate position of test instruction on default viewing area; And test transmission instruction and the second coordinate position are to mobile device to be tested, perform test instruction with the second coordinate position place at mobile device to be tested.
According to the another aspect of the embodiment of the present invention, provide a kind of proving installation of mobile device.
Proving installation according to the mobile device of the embodiment of the present invention comprises: control module, runs on mobile device to be tested for controlling Test Application; First transmission unit, for receiving first runnable interface of Test Application on mobile device to be tested, and transfers to test client by the first runnable interface, to obtain the second runnable interface be presented on the default viewing area of test client; First acquiring unit, for obtaining the coordinate position of test instruction on default viewing area, wherein, test instruction is the instruction acting on the second runnable interface; Computing unit, for calculating second coordinate position on to be tested mobile device corresponding with the first coordinate position, wherein, the first coordinate position is the coordinate position of test instruction on default viewing area; And second transmission unit, for test transmission instruction and the second coordinate position to mobile device to be tested, perform test instruction with the second coordinate position place at mobile device to be tested.
According to the another aspect of the embodiment of the present invention, provide a kind of testing server of mobile device.
The proving installation of any one mobile device that embodiment of the present invention foregoing provides is comprised according to the testing server of the mobile device of the embodiment of the present invention.
According to the another aspect of the embodiment of the present invention, provide a kind of test macro of mobile device.
Test macro according to the mobile device of the embodiment of the present invention comprises: mobile device to be tested, and wherein, the quantity of mobile device to be tested is one or more; Test client; And testing server, wherein, the testing server of the mobile device that testing server provides for foregoing of the present invention.
In embodiments of the present invention, control Test Application is adopted to run on mobile device to be tested, and the first runnable interface run transfers on test client and shows, obtain being presented at client and preset the second runnable interface on viewing area, test instruction is used for operating the second runnable interface, achieves and can operate the second runnable interface according to test purpose; By calculating second coordinate position corresponding with the first coordinate position, achieving the coordinate position of test instruction on test client, corresponding to test instruction coordinate position on mobile device to be tested; Then by test instruction and the second coordinate position are all transferred to mobile device to be tested, test instruction is performed at the second coordinate position place of mobile device to be tested, achieve and operational testing is carried out to the first runnable interface on mobile device to be tested, that is to say and operational testing is carried out to the Test Application operated on mobile device to be tested.This kind passes through the test mode of test transmission instruction and coordinate position, not tested person application use the impact of control, carry out operating and testing therefore, it is possible to enter not use in the application scenarios of standard control, test is carried out for mobile device unrestricted, solve in prior art and on the mobile apparatus to the problem not using the application program of standard control to test, and then the effect improving test applicability and test specification cannot be reached.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the method for testing of mobile device according to the embodiment of the present invention;
Fig. 2 is the process flow diagram of the method for testing of mobile device according to further embodiment of this invention;
Fig. 3 is the process flow diagram transmitting runnable interface in the method for testing according to the mobile device of the embodiment of the present invention;
Fig. 4 is the schematic diagram of the proving installation of mobile device according to the embodiment of the present invention;
Fig. 5 is the schematic diagram of the proving installation of mobile device according to further embodiment of this invention;
Fig. 6 is the schematic diagram of the proving installation of mobile device according to further embodiment of this invention;
Fig. 7 is the structural representation of the first transmission unit in the proving installation according to mobile device of the present invention;
Fig. 8 is the schematic diagram of the proving installation of mobile device according to further embodiment of this invention; And
Fig. 9 is the schematic diagram of the test macro of mobile device according to the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to the embodiment of the present invention, a kind of embodiment of the method that may be used for implementing the application's device embodiment can be provided, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
According to the embodiment of the present invention, provide a kind of method of testing of mobile device, below concrete introduction done to the method for testing of the mobile device that the embodiment of the present invention provides:
Fig. 1 is the process flow diagram of the method for testing of mobile device according to the embodiment of the present invention, and as shown in Figure 1, the method comprises following step S102 to step S110:
S102: control Test Application and run on mobile device to be tested, particularly, when not using the Test Application of standard control to test to certain, Test Application is uploaded onto the server by the webpage on test client by tester, server issue start test order to mobile device to be tested, the information such as the Test Application title just uploaded are contained in order, after mobile device to be tested receives test command, start to download test application from server, after download completes, carry out installing, running.Wherein, http agreement can also be used Test Application directly to be uploaded onto the server by shell script.
S104: receive first runnable interface of Test Application on mobile device to be tested, and the first runnable interface is transferred to test client, to obtain the second runnable interface be presented on the default viewing area of test client, namely, by the runnable interface of Test Application on mobile device to be tested, be synchronized on the default viewing area of test client, the former is called the first runnable interface, and the latter is called the second runnable interface.
S106: obtain the coordinate position of test instruction on default viewing area, wherein, test instruction is the instruction acting on the second runnable interface, namely, obtain the coordinate position of test instruction on default viewing area that the second runnable interface is operated, particularly, the coordinate position of test instruction on default viewing area can be obtained by the output of resolving the mobile device adb shell getevent non-to be tested order be connected with test client, the test instruction event that also can be issued on the window control of test client by manifolding WndProc method intercepting tester obtains coordinate position.Test instruction can be the instruction of tester by mouse action second runnable interface, namely, test client receives test instruction by mouse, the instruction of mobile device operation second runnable interface non-to be tested that also can be tester by being connected with test client, that is, test client passes through connected mobile device reception test instruction non-to be tested.
S108: calculate second coordinate position on to be tested mobile device corresponding with the first coordinate position, wherein, the first coordinate position is the coordinate position of test instruction on default viewing area.
S110: test transmission instruction and the second coordinate position, to mobile device to be tested, perform test instruction with the second coordinate position place at mobile device to be tested.
In the method for testing of the mobile device provided in the embodiment of the present invention, control Test Application is adopted to run on mobile device to be tested, and the first runnable interface run transfers on test client and shows, obtain being presented at client and preset the second runnable interface on viewing area, test instruction is used for operating the second runnable interface, achieves and can operate the second runnable interface according to test purpose; By calculating second coordinate position corresponding with the first coordinate position, achieving the coordinate position of test instruction on test client, corresponding to test instruction coordinate position on mobile device to be tested; Then by test instruction and the second coordinate position are all transferred to mobile device to be tested, test instruction is performed at the second coordinate position place of mobile device to be tested, achieve and operational testing is carried out to the first runnable interface on mobile device to be tested, that is to say and operational testing is carried out to the Test Application operated on mobile device to be tested.This kind passes through the test mode of test transmission instruction and coordinate position, not tested person application use the impact of control, carry out operating and testing therefore, it is possible to enter not use in the application scenarios of standard control, test is carried out for mobile device unrestricted, solve in prior art and on the mobile apparatus to the problem not using the application program of standard control to test, and then the effect improving test applicability and test specification cannot be reached.
Wherein, in embodiments of the present invention, second coordinate position on to be tested mobile device corresponding with the first coordinate position can be calculated in the following ways: first, obtain the length of side presetting viewing area, and obtain the screen length of side of mobile device to be tested, wherein, the default length of side of viewing area and the screen length of side of mobile device to be tested mainly refer to the length in units of pixel, that is, how many length in pixels; Then, according to the proportionate relationship between the length of side of default viewing area and the screen length of side of mobile device to be tested, uniform zoom is carried out to the first coordinate position, obtains the second coordinate position.Particularly, can according to formula x 1 = x 0 × a 1 a 0 y 1 = y 0 × a 1 a 0 Calculate the second coordinate position, wherein, (x 0, y 0) be the first coordinate position, (x 1, y 1) be the second coordinate position, a 0long limit in the length of side for default viewing area, a 1for the long limit in the screen length of side of mobile device to be tested.
By carrying out uniform zoom to the first coordinate position, obtain the second coordinate position, achieve in the different situation of screen size of default viewing area and mobile device to be tested, ensure while test transmission order, the correct executing location of test command can be transferred to mobile device to be tested.
In embodiments of the present invention, the first coordinate position got from test client can be packaged, then send to server by self-defining control protocol.
Correspondingly, server, after receiving the first coordinate position, calculates the second coordinate position, by re-grouping package after self-defined control protocol, is then transferred to mobile device to be tested.
Further, as shown in Figure 2, after the length of side getting default viewing area, and uniform zoom is being carried out to the first coordinate position, before obtaining the second coordinate position, first can also judge whether the length of side of default viewing area equals the default length of side, this default length of side is the length in pixels adopted in mobile device transmission data procedures to be tested, whether the length of side judging to preset viewing area equals the default length of side mainly judges that whether the long limit in the length of side of default viewing area is equal with the long limit in the default length of side, wherein, judging in the two unequal situation, first according to the proportionate relationship preset between the length of side of viewing area and the default length of side, uniform zoom is carried out to the first coordinate position, obtain middle coordinate position, again according to the proportionate relationship preset between the length of side and the screen length of side of mobile device to be tested, uniform zoom is carried out to middle coordinate position, obtain the second coordinate position, namely, first the first coordinate position is changed, obtain middle coordinate position, and then uniform zoom is carried out to middle coordinate position, obtain the second coordinate position, particularly, can first according to formula x 0 ′ = x 0 × a 0 ′ a 0 y 0 ′ = y 0 × a 0 ′ a 0 Calculate middle coordinate position, then according to formula x 1 = x 0 ′ × a 1 a 0 ′ y 1 = y 0 ′ × a 1 a 0 ′ Calculate described second coordinate position, wherein, (x 0', y 0') be middle coordinate position, a 0' for presetting the long limit in the length of side; If the two is equal, then can directly skip the step the first coordinate position being converted to middle coordinate position, direct basis presets the proportionate relationship between the length of side of viewing area and the screen length of side of mobile device to be tested, uniform zoom is carried out to the first coordinate position, obtains the second coordinate position, namely, directly uniform zoom is carried out to the first coordinate position, obtain the second coordinate position acted on mobile device to be tested, particularly, can directly according to formula x 1 = x 0 × a 1 a 0 y 1 = y 0 × a 1 a 0 Calculate the second coordinate position.Using 400 pixels as the long limit in the default length of side in Fig. 2, the method of testing of the mobile device that the embodiment of the present invention provides is described, it should be noted that, carry out the step that uniform zoom calculates the second coordinate position both to be calculated by test client, also can directly by the first coordinate position or middle coordinate location transmission extremely mobile device to be tested, the second coordinate position is calculated according to the first coordinate position or middle coordinate position by mobile device to be tested self, in the method for testing that the embodiment of the present invention provides, do not limit the executive agent of calculating second coordinate position.
Preferably, as shown in Figure 3, after receiving first runnable interface of Test Application on mobile device to be tested, the method for testing of the mobile device of the embodiment of the present invention also comprises the steps that S21 is to step S24:
S21: the video source data obtaining the first runnable interface, namely, obtain the video source data of expression first runnable interface screen picture, particularly, first can obtain the screen picture of expression first runnable interface, then by encoder server, the screen picture got is encoded, obtain the video source data of expression first runnable interface.
S22: judge whether the frame frequency of video source data is less than preset value, particularly, the size of preset value can be arranged according to fluency required in actual test process, in embodiments of the present invention, can adopt 15 frames/second.
S23: when judging that the frame frequency of video source data is less than preset value, add and insert frame to video source data, obtain target data, wherein, can be added by encoder server and insert frame to video source data, the insertion frame adjacent with present frame inserted, can be according to be positioned at present frame before the frame determined of frame, insert the concrete acquisition of frame or determine mode, and add and insert frame to the mode of video source data and all can adopt any one mode in prior art, repeat no more herein.
S24: the video stream data calculating target data, wherein, can be calculated target data by encoder server, obtains corresponding video stream data.
Wherein, first runnable interface is transferred to test client, comprise to obtain the second runnable interface be presented on the default viewing area of test client: video stream data is transferred to test client, to obtain the second runnable interface be presented on default viewing area, particularly, by streaming media server, video stream data can be transferred to test client, test client is made to obtain representing the video stream data of target data, and then imaging on default viewing area, obtain the second runnable interface.
By obtaining the video source data of the first runnable interface, and when judging that the frame frequency of video source data is less, add and insert frame to video source data, achieve with RTMP (real-time messages transportation protocol, Real Time Messaging Protocol, being called for short RTMP) runnable interface of mobile device to be tested transfers to test terminal by streaming media transmission technique, and reach and reduce bandwidth consumption, reduce time delay and improve the effect of fluency.
Further preferably, after step s 104, the method of testing of the mobile device of the embodiment of the present invention also comprises (such as to be pressed the instruction type of test instruction, lift, slide) obtain, wherein, the instruction type obtaining test instruction can obtain after obtaining the coordinate position of test instruction on default viewing area, also can obtain before obtaining the coordinate position of test instruction on default viewing area, can also obtain with the coordinate position of test instruction on default viewing area simultaneously, correspondingly, in step s 110 then by test instruction, instruction type and the second coordinate position all transfer to mobile device to be tested, test instruction is performed according to instruction type with the second coordinate position place at mobile device to be tested.
By obtaining the instruction type of test instruction, and correspondingly transfer to mobile device to be tested, to perform test instruction according to instruction type on mobile device to be tested, achieve on guarantee test instruction operating position accurately basis, ensure the correctness that test instruction performs to reach the effect improving test accuracy rate.
Further, first coordinate position comprises the first starting coordinate position and first and stops coordinate position, wherein, calculate second coordinate position on to be tested mobile device corresponding with the first coordinate position to comprise: calculate second starting coordinate position on to be tested mobile device corresponding with the first starting coordinate position, and calculate and first stop coordinate position corresponding on mobile device to be tested second stop coordinate position; Test transmission instruction and the second coordinate position are to mobile device to be tested, comprise to perform test instruction at the second coordinate position place of mobile device to be tested: test transmission instruction, the second starting coordinate position and second stop coordinate position to mobile device to be tested, perform test instruction to stop coordinate position place at the second starting coordinate position to the second of mobile device to be tested.
If test instruction represents slip test instruction, then by stopping reference position corresponding to coordinate position to the first starting coordinate position and first and final position calculates, and transfer to mobile device to be tested, achieve and slide equipment is carried out to mobile device to be tested.Equally, the situation that first starting coordinate position and first stops coordinate position is comprised for the first coordinate position, the method of testing of the embodiment of the present invention can obtain instruction type equally, and transfer to mobile device to be tested, then, stop coordinate position place at the second starting coordinate position to the second of mobile device to be tested and perform test instruction according to instruction type.
Wherein, in embodiments of the present invention, coordinate position, test instruction and instruction type are transferred to mobile device to be tested, mainly above-mentioned data are write "/dev/input/eventX " path of mobile device to be tested.
In addition, in the method for testing of the mobile device provided in the embodiment of the present invention, the quantity of mobile device to be tested and default viewing area can be all multiple, n (n is the natural number of more than 2) is for the quantity of mobile device to be tested and default viewing area, further illustrate the method for testing of the mobile device that the embodiment of the present invention provides, specific as follows:
Control Test Application is run and is comprised on mobile device to be tested: control Test Application and run on each mobile device to be tested;
Receive first runnable interface of Test Application on mobile device to be tested, and the first runnable interface is transferred to test client, comprise to obtain the second runnable interface be presented on the default viewing area of test client: receive first runnable interface of Test Application on each mobile device to be tested, obtain n the first runnable interface, and n the first runnable interface is all transferred to test client, be presented at n the second runnable interface on n default viewing area of test client to obtain one_to_one corresponding;
Obtain the coordinate position of test instruction on default viewing area to comprise: obtain the coordinate position of test instruction on target viewing area, wherein, target viewing area is the viewing area receiving test instruction in n default viewing area, first coordinate position is the coordinate position of test instruction on target viewing area, be n situation for default viewing area, can using in n default viewing area as main viewing area, this main viewing area is target viewing area, other n-1 default viewing area is from viewing area, while test instruction operates main viewing area, corresponding operational motion can be synchronized to each from viewing area, the coordinate position obtained is then the coordinate position of test instruction on main viewing area,
Calculate second coordinate position on to be tested mobile device corresponding with the first coordinate position to comprise: calculate the second coordinate position Di on to be tested mobile device Si corresponding with the first coordinate position, wherein, i gets 1 to n successively, be that the situation of is similar with default viewing area, equally both directly can calculate the second coordinate position Di on to be tested mobile device Si corresponding with the first coordinate position, also the middle coordinate position corresponding with the first coordinate position can first be calculated, and then corresponding the second coordinate position Di calculated on the mobile device Si to be tested corresponding with middle coordinate position, concrete account form with introduce in foregoing identical, repeat no more herein,
Test transmission instruction and the second coordinate position are to mobile device to be tested, comprise to perform test instruction at the second coordinate position place of mobile device to be tested: test transmission instruction and the second coordinate position Di to mobile device Si to be tested, perform test instruction with the second coordinate position Di place at mobile device Si to be tested.
By describing above and can finding out, the method of testing of the mobile device that the embodiment of the present invention provides, achieve by multi-process mode, multiple mobile device to be tested is tested simultaneously, reach the effect improving testing efficiency, and multi-process test mode is conducive to the performance and the stability that improve test macro.
Below with the method for testing of the mobile device adopting the embodiment of the present invention to provide, be example to the concrete test of Android mobile phone game one-to-many adapted in real time test, further illustrate the method for testing of the mobile device that the embodiment of the present invention provides.
The test application that Android mobile phone is played by tester is uploaded onto the server by the webpage on test client, or use http agreement Test Application directly to be uploaded onto the server by shell script, server issue start test order to multiple Android mobile phone to be tested, the information such as the Test Application title just uploaded are contained in order, after each Android mobile phone to be tested receives test command, start to download test application from server, after download completes, carry out installing, running.
In operational process, obtain the runnable interface of test application in each Android mobile phone to be tested, and the runnable interface got is shown on the default viewing area of test client, namely, by the runnable interface of test application in Android mobile phone to be tested, be synchronized on the default viewing area of test client, runnable interface in Android mobile phone to be tested is called the first runnable interface, the runnable interface that the default viewing area of test client shows is called the second runnable interface, wherein, can adopt RTMP streaming media transmission technique that the runnable interface of Android mobile phone to be tested is transferred to test client, it is identical that concrete acquisition and transmission method and foregoing provide, repeat no more herein.
Tester by the mobile device non-to be tested that is connected with test client (non-mobile device to be tested can be Android mobile phone) or by the external operating equipment that is connected with test client (such as, mouse, keyboard etc.) the second runnable interface is operated, wherein, test instruction is called to the instruction that the second runnable interface operates, test instruction is utilized to carry out in operating process to the second runnable interface tester, obtain the coordinate position of test instruction on default viewing area, suppose that the coordinate position of test instruction on default viewing area got is the first coordinate position, after getting the first coordinate position, calculate second coordinate position on each to be tested Android mobile phone corresponding with the first coordinate position, then, each Android mobile phone is transferred to by corresponding together for the type of the second coordinate position calculated and test instruction and test instruction, to perform test instruction in each Android mobile phone to be tested, realize testing the adaptation of Android mobile phone one-to-many to be tested.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, 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 by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to the embodiment of the present invention, additionally provide a kind of proving installation of mobile device of the method for testing for implementing above-mentioned mobile device, this proving installation is mainly used in the method for testing that execution embodiment of the present invention foregoing provides, and does concrete introduction below to the proving installation of the mobile device that the embodiment of the present invention provides:
Fig. 4 is the schematic diagram of the proving installation of mobile device according to the embodiment of the present invention, and as shown in Figure 4, this proving installation mainly comprises control module 10, first transmission unit 20, first acquiring unit 30, computing unit 40 and the second transmission unit 50, wherein:
Control module 10 runs on mobile device to be tested for controlling Test Application, particularly, when not using the Test Application of standard control to test to certain, Test Application is uploaded onto the server by the webpage on test client by tester, server by control module 10 issue start test order to mobile device to be tested, the information such as the Test Application title just uploaded are contained in order, after mobile device to be tested receives test command, start to download test application from server, after download completes, carry out installing, running.Wherein, http agreement can also be used Test Application directly to be uploaded onto the server by shell script.
First transmission unit 20 is for receiving first runnable interface of Test Application on mobile device to be tested, and the first runnable interface is transferred to test client, to obtain the second runnable interface be presented on the default viewing area of test client, namely, by the runnable interface of Test Application on mobile device to be tested, be synchronized on the default viewing area of test client, the former is called the first runnable interface, and the latter is called the second runnable interface.
First acquiring unit 30 is for obtaining the coordinate position of test instruction on default viewing area, wherein, test instruction is the instruction acting on the second runnable interface, namely, obtain the coordinate position of test instruction on default viewing area that the second runnable interface is operated, particularly, the coordinate position of test instruction on default viewing area can be obtained by the output of resolving the mobile device adb shell getevent non-to be tested order be connected with test client, the test instruction event that also can be issued on the window control of test client by manifolding WndProc method intercepting tester obtains coordinate position.Test instruction can be the instruction of tester by mouse action second runnable interface, namely, test client receives test instruction by mouse, the instruction of mobile device operation second runnable interface non-to be tested that also can be tester by being connected with test client, that is, test client passes through connected mobile device reception test instruction non-to be tested.
Computing unit 40 is for calculating second coordinate position on to be tested mobile device corresponding with the first coordinate position, and wherein, the first coordinate position is the coordinate position of test instruction on default viewing area.
Second transmission unit 50, for test transmission instruction and the second coordinate position extremely mobile device to be tested, performs test instruction with the second coordinate position place at mobile device to be tested.
At the proving installation of the mobile device that the embodiment of the present invention provides, control Test Application is adopted to run on mobile device to be tested, and the first runnable interface run transfers on test client and shows, obtain being presented at client and preset the second runnable interface on viewing area, test instruction is used for operating the second runnable interface, achieves and can operate the second runnable interface according to test purpose; By calculating second coordinate position corresponding with the first coordinate position, achieving the coordinate position of test instruction on test client, corresponding to test instruction coordinate position on mobile device to be tested; Then by test instruction and the second coordinate position are all transferred to mobile device to be tested, test instruction is performed at the second coordinate position place of mobile device to be tested, achieve and operational testing is carried out to the first runnable interface on mobile device to be tested, that is to say and operational testing is carried out to the Test Application operated on mobile device to be tested.This kind passes through the test mode of test transmission instruction and coordinate position, not tested person application use the impact of control, carry out operating and testing therefore, it is possible to enter not use in the application scenarios of standard control, test is carried out for mobile device unrestricted, solve in prior art and on the mobile apparatus to the problem not using the application program of standard control to test, and then the effect improving test applicability and test specification cannot be reached.
Wherein, as shown in Figure 5, in embodiments of the present invention, computing unit 40 mainly comprises the first acquisition module 41 and processing module 42, first acquisition module 41 for obtaining the length of side of default viewing area, and obtains the screen length of side of mobile device to be tested, wherein, the default length of side of viewing area and the screen length of side of mobile device to be tested mainly refer to the length in units of pixel, that is, how many length in pixels; Processing module 42, for according to the proportionate relationship preset between the length of side of viewing area and the screen length of side of mobile device to be tested, is carried out uniform zoom to the first coordinate position, is obtained the second coordinate position.Particularly, processing module 42 can according to formula x 1 = x 0 × a 1 a 0 y 1 = y 0 × a 1 a 0 Calculate the second coordinate position, wherein, (x 0, y 0) be the first coordinate position, (x 1, y 1) be the second coordinate position, a 0long limit in the length of side for default viewing area, a 1for the long limit in the screen length of side of mobile device to be tested.
By carrying out uniform zoom to the first coordinate position, obtain the second coordinate position, achieve in the different situation of screen size of default viewing area and mobile device to be tested, ensure while test transmission order, the correct executing location of test command can be transferred to mobile device to be tested.
In embodiments of the present invention, the first coordinate position got from test client can be packaged, then send to server by self-defining control protocol.
Correspondingly, server, after receiving the first coordinate position, calculates the second coordinate position, by re-grouping package after self-defined control protocol, is then transferred to mobile device to be tested.
Further, as shown in Figure 6, computing unit 40 in the proving installation of the mobile device that the embodiment of the present invention provides also comprises the first judge module 43, after the first acquisition module 41 gets the length of side of default viewing area, and in processing module 42, uniform zoom is carried out to the first coordinate position, before obtaining the second coordinate position, with the first judge module 43, the proving installation of the mobile device of the embodiment of the present invention first can also judge whether the length of side presetting viewing area equals the default length of side, this default length of side is the length in pixels adopted in mobile device transmission data procedures to be tested, whether the length of side judging to preset viewing area equals the default length of side mainly judges that whether the long limit in the length of side of default viewing area is equal with the long limit in the default length of side, wherein, judging in the two unequal situation, first the first coordinate position is changed, obtain middle coordinate position, and then uniform zoom is carried out to middle coordinate position, obtain the second coordinate position, namely, first process submodule 422 according to the proportionate relationship between the length of side of default viewing area and the default length of side by second in processing module 42, uniform zoom is carried out to the first coordinate position, obtain middle coordinate position, then submodule 422 is processed according to the proportionate relationship between the default length of side and the screen length of side of mobile device to be tested by second, uniform zoom is carried out to middle coordinate position, obtain the second coordinate position, particularly, can according to formula x 0 ′ = x 0 × a 0 ′ a 0 y 0 ′ = y 0 × a 0 ′ a 0 Calculate middle coordinate position, then according to formula x 1 = x 0 ′ × a 1 a 0 ′ y 1 = y 0 ′ × a 1 a 0 ′ Calculate described second coordinate position, wherein, (x 0', y 0') be middle coordinate position, a 0' for presetting the long limit in the length of side; If the two is equal, then can directly skip the step the first coordinate position being converted to middle coordinate position, directly uniform zoom is carried out to the first coordinate position, obtain the second coordinate position acted on mobile device to be tested, namely, by the first process submodule 421 in processing module 42 directly according to the proportionate relationship preset between the length of side of viewing area and the screen length of side of mobile device to be tested, uniform zoom is carried out to the first coordinate position, obtain the second coordinate position, particularly, can directly according to formula x 1 = x 0 × a 1 a 0 y 1 = y 0 × a 1 a 0 Calculate the second coordinate position.
It should be noted that, carry out uniform zoom and calculate the first process submodule 421 of the second coordinate position and the second process submodule 422 both can be arranged on test client, also can be arranged on mobile device to be tested, the second coordinate position is calculated according to the first coordinate position or middle coordinate position by mobile device to be tested self, in the proving installation that the embodiment of the present invention provides, do not limit the concrete desired location of the first process submodule 421 and the second process submodule 422.
Preferably, as shown in Figure 7, the first transmission unit 20 in the proving installation of the mobile device of the embodiment of the present invention mainly comprises the second acquisition module 21, second judge module 22, adds module 23, computing module 24 and transport module 25, wherein:
Second acquisition module 21 is for obtaining the video source data of expression first runnable interface, namely, obtain the video source data of expression first runnable interface screen picture, particularly, first can obtain the screen picture of expression first runnable interface, then by encoder server, the screen picture got is encoded, obtain the video source data of expression first runnable interface.
Second judge module 22 is for judging whether the frame frequency of video source data is less than preset value, and particularly, the size of preset value can be arranged according to fluency required in actual test process, in embodiments of the present invention, can adopt 15 frames/second.
Add module 23 for when the second judge module 22 judges that the frame frequency of video source data is less than preset value, add and insert frame to video source data, obtain target data, this interpolation module 23 can perform to add by encoder server inserts frame to video source data, the insertion frame adjacent with present frame inserted, can be according to be positioned at present frame before the frame determined of frame, insert the concrete acquisition of frame or determine mode, and add and insert frame to the mode of video source data and all can adopt any one mode in prior art, repeat no more herein.
Computing module 24 is for calculating the video stream data of target data, and wherein, this computing module 24 can be performed by encoder server equally and calculate target data, obtains corresponding video stream data.
Transport module 25 is for transferring to test client by video stream data, to obtain the second runnable interface be presented on default viewing area, wherein, transport module 25 can be performed by streaming media server and video stream data is transferred to test client, test client is made to obtain representing the video stream data of target data, and then imaging on default viewing area, obtain the second runnable interface.
By obtaining the video source data of the first runnable interface, and when judging that the frame frequency of video source data is less, add and insert frame to video source data, achieve with RTMP (real-time messages transportation protocol, Real Time Messaging Protocol, being called for short RTMP) runnable interface of mobile device to be tested transfers to test terminal by streaming media transmission technique, and reach and reduce bandwidth consumption, reduce time delay and improve the effect of fluency.
Further preferably, as shown in Figure 8, the proving installation of the mobile device of the embodiment of the present invention also comprises second acquisition unit 60, for receiving first runnable interface of Test Application on mobile device to be tested at the first transmission unit 20, and the first runnable interface is transferred to test client, after obtaining being presented at the second runnable interface on the default viewing area of test client, the instruction type of test instruction (is such as pressed, lift, slide) obtain, wherein, the instruction type obtaining test instruction can obtain after obtaining the coordinate position of test instruction on default viewing area, also can obtain before obtaining the coordinate position of test instruction on default viewing area, can also obtain with the coordinate position of test instruction on default viewing area simultaneously, correspondingly, second transmission unit 50 is by test instruction, instruction type and the second coordinate position all transfer to mobile device to be tested, test instruction is performed according to instruction type with the second coordinate position place at mobile device to be tested.
By obtaining the instruction type of test instruction, and correspondingly transfer to mobile device to be tested, to perform test instruction according to instruction type on mobile device to be tested, achieve on guarantee test instruction operating position accurately basis, ensure the correctness that test instruction performs to reach the effect improving test accuracy rate.
Further, first coordinate position comprises the first starting coordinate position and first and stops coordinate position, computing unit 40 for calculating second starting coordinate position on to be tested mobile device corresponding with the first starting coordinate position, and calculate and first stop coordinate position corresponding on mobile device to be tested second stop coordinate position; Second transmission unit 50 stops coordinate position to mobile device to be tested for test transmission instruction, the second starting coordinate position and second, performs test instruction to stop coordinate position place at the second starting coordinate position to the second of mobile device to be tested.
If test instruction represents slip test instruction, then by stopping reference position corresponding to coordinate position to the first starting coordinate position and first and final position calculates, and transfer to mobile device to be tested, achieve and slide is carried out to mobile device to be tested.Equally, the situation that first starting coordinate position and first stops coordinate position is comprised for the first coordinate position, the proving installation of the embodiment of the present invention can be obtained by second acquisition unit 60 pairs of instruction types equally, and transfer to mobile device to be tested by the second transmission unit 50, then, stop coordinate position place at the second starting coordinate position to the second of mobile device to be tested and perform test instruction according to instruction type.
Wherein, in embodiments of the present invention, coordinate position, test instruction and instruction type are transferred to mobile device to be tested, mainly above-mentioned data are write "/dev/input/eventX " path of mobile device to be tested.
In addition, in the proving installation of the mobile device provided in the embodiment of the present invention, the quantity of mobile device to be tested and default viewing area can be all multiple, n (n is the natural number of more than 2) is for the quantity of mobile device to be tested and default viewing area, further illustrate the method for testing of the mobile device that the embodiment of the present invention provides, specific as follows:
Control module 10 runs on each mobile device to be tested for controlling Test Application;
First transmission unit 20 is for receiving first runnable interface of Test Application on each mobile device to be tested, obtain n the first runnable interface, and n the first runnable interface is all transferred to test client, be presented at n the second runnable interface on n default viewing area of test client to obtain one_to_one corresponding;
First acquiring unit 30 is for obtaining the coordinate position of test instruction on target viewing area, wherein, target viewing area is the viewing area receiving test instruction in n default viewing area, first coordinate position is the coordinate position of test instruction on target viewing area, be n situation for default viewing area, can using in n default viewing area as main viewing area, this main viewing area is target viewing area, other n-1 default viewing area is from viewing area, while test instruction operates main viewing area, corresponding operational motion can be synchronized to each from viewing area, the coordinate position obtained is then the coordinate position of test instruction on main viewing area,
Computing unit 40 is for calculating the second coordinate position Di on to be tested mobile device Si corresponding with the first coordinate position, wherein, i gets 1 to n successively, be that the situation of is similar with default viewing area, equally both directly can calculate the second coordinate position Di on to be tested mobile device Si corresponding with the first coordinate position, also the middle coordinate position corresponding with the first coordinate position can first be calculated, and then corresponding the second coordinate position Di calculated on the mobile device Si to be tested corresponding with middle coordinate position, concrete account form with introduce in foregoing identical, repeat no more herein,
Second transmission unit 50 is for test transmission instruction and the second coordinate position extremely mobile device to be tested, comprise to perform test instruction at the second coordinate position place of mobile device to be tested: test transmission instruction and the second coordinate position Di to mobile device Si to be tested, perform test instruction with the second coordinate position Di place at mobile device Si to be tested.
By describing above and can finding out, the proving installation of the mobile device that the embodiment of the present invention provides, achieve by multi-process mode, multiple mobile device to be tested is tested simultaneously, reach the effect improving testing efficiency, and multi-process test mode is conducive to the performance and the stability that improve test macro.
In addition, the embodiment of the present invention additionally provides a kind of testing server of mobile device, and this testing server mainly comprises the proving installation of any one mobile device that embodiment of the present invention foregoing provides.
Embodiment 3
The embodiment of the present invention additionally provides a kind of test macro of mobile device, does concrete introduction below to the test macro of the mobile device that the embodiment of the present invention is mentioned:
Fig. 9 is the schematic diagram of the test macro of mobile device according to the embodiment of the present invention, as shown in Figure 9, the test macro of this mobile device mainly comprises mobile device A to be tested, test client B and testing server C, wherein, mobile device A to be tested, the quantity of test client B and testing server C all can be one, also can be all multiple, mobile device A to be tested is diagrammatically illustrated in Fig. 9, test client B and testing server C is multiple, testing server C and mobile device A to be tested and test client B all can carry out data transmission, the test philosophy of this test macro is as follows:
Testing server C controls Test Application and runs on mobile device A to be tested, particularly, when not using the Test Application of standard control to test to certain, Test Application is uploaded to testing server C by the webpage on test client B by tester, testing server C issue start test order to mobile device A to be tested, the information such as the Test Application title just uploaded are contained in order, after mobile device A to be tested receives test command, start to download test application from testing server C, after download completes, carry out installing, running.Wherein, can also use http agreement that Test Application is directly uploaded to testing server C by shell script.
Testing server C receives first runnable interface of Test Application on mobile device A to be tested, and the first runnable interface is transferred to test client B, to obtain the second runnable interface be presented on the default viewing area of test client B, namely, testing server C is by the runnable interface of Test Application on mobile device A to be tested, be synchronized on the default viewing area of test client B, the former is called the first runnable interface, and the latter is called the second runnable interface.Particularly, after testing server C gets the first runnable interface on mobile device A to be tested, this first runnable interface is encoded, obtain the video flowing of expression first runnable interface, again with stream media mode by video streaming to test client B, make test client B obtain the video source data of expression first runnable interface.Wherein, for any one testing server C, this testing server C can comprise multiple server component, multiple server component at least comprise testing results program master server, screen picture is encoded to video flowing encoder server and by video streaming to the streaming media server of test client; Testing server C can also be the master server of transporting something containerized row test procedure, encoder server screen picture being encoded to video flowing and the server be integrated by video streaming to the streaming media server of test client.In embodiments of the present invention, the concrete structure building form of testing server C is not limited.
Testing server C obtains the coordinate position of test instruction on default viewing area, wherein, test instruction is the instruction acting on the second runnable interface, namely, testing server C obtains the coordinate position of test instruction on default viewing area operated the second runnable interface, particularly, tester can issue by the mobile device E1 non-to be tested be connected with test client B the test instruction acting on the second runnable interface, also can issue by the local mouse E2 be connected with test client B the test instruction acting on the second runnable interface, wherein, non-mobile device E1 to be tested can be the Android device be connected with test client B by the USB interface of test client B, non-mobile device E1 to be tested is provided with equally and the identical Test Application that mobile device A to be tested installs, after test client B shows the second runnable interface, tester can operate the Test Application on non-mobile device E1 to be tested, the test instruction operated it is transferred to test client B by non-mobile device E1 to be tested, test client B is made to receive the test instruction acting on the second runnable interface.
Wherein, can obtain the coordinate position of test instruction on default viewing area by the output of the adb shell getevent order of resolving the mobile device E1 non-to be tested be connected with test client B, the test instruction event that also can be issued on the window control of test client B by manifolding WndProc method intercepting tester obtains coordinate position.Test instruction can be the instruction of tester by mouse action second runnable interface, namely, test client B receives test instruction by mouse, also can be that tester operates the instruction of the second runnable interface by the mobile device E1 non-to be tested be connected with test client B, that is, test client B passes through connected mobile device E1 reception test instruction non-to be tested.
Testing server C calculates second coordinate position on to be tested mobile device A corresponding with the first coordinate position, and wherein, the first coordinate position is the coordinate position of test instruction on default viewing area.
Testing server C test transmission instruction and the second coordinate position, to mobile device A to be tested, perform test instruction with the second coordinate position place at mobile device A to be tested.
At the test macro of the mobile device that the embodiment of the present invention provides, control Test Application is adopted to run on mobile device to be tested, and the first runnable interface run transfers on test client and shows, obtain being presented at client and preset the second runnable interface on viewing area, test instruction is used for operating the second runnable interface, achieves and can operate the second runnable interface according to test purpose; By calculating second coordinate position corresponding with the first coordinate position, achieving the coordinate position of test instruction on test client, corresponding to test instruction coordinate position on mobile device to be tested; Then by test instruction and the second coordinate position are all transferred to mobile device to be tested, test instruction is performed at the second coordinate position place of mobile device to be tested, achieve and operational testing is carried out to the first runnable interface on mobile device to be tested, that is to say and operational testing is carried out to the Test Application operated on mobile device to be tested.This kind passes through the test mode of test transmission instruction and coordinate position, not tested person application use the impact of control, carry out operating and testing therefore, it is possible to enter not use in the application scenarios of standard control, test is carried out for mobile device unrestricted, solve in prior art and on the mobile apparatus to the problem not using the application program of standard control to test, and then the effect improving test applicability and test specification cannot be reached.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed client, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (16)

1. a method of testing for mobile device, is characterized in that, comprising:
Control Test Application to run on mobile device to be tested;
Receive first runnable interface of described Test Application on described mobile device to be tested, and described first runnable interface is transferred to test client, to obtain the second runnable interface be presented on the default viewing area of described test client;
Obtain the coordinate position of test instruction on described default viewing area, wherein, described test instruction is the instruction acting on described second runnable interface;
Calculate second coordinate position on described to be tested mobile device corresponding with the first coordinate position, wherein, described first coordinate position is the coordinate position of described test instruction on described default viewing area; And
Transmit described test instruction and described second coordinate position extremely described mobile device to be tested, perform described test instruction with the described second coordinate position place at described mobile device to be tested.
2. method of testing according to claim 1, is characterized in that, calculates second coordinate position on described to be tested mobile device corresponding with the first coordinate position and comprises:
Obtain the length of side of described default viewing area, and obtain the screen length of side of described mobile device to be tested; And
According to the proportionate relationship between the length of side of described default viewing area and the screen length of side of described mobile device to be tested, uniform zoom is carried out to described first coordinate position, obtains described second coordinate position.
3. method of testing according to claim 2, it is characterized in that, after the length of side obtaining described default viewing area, described calculating second coordinate position on described to be tested mobile device corresponding with the first coordinate position also comprises and judges whether the length of side of described default viewing area equals the default length of side, wherein, according to the proportionate relationship between the length of side of described default viewing area and the screen length of side of described mobile device to be tested, uniform zoom is carried out to described first coordinate position, obtains described second coordinate position and comprise:
When judging that the length of side of described default viewing area equals the described default length of side, proportionate relationship between the direct length of side according to described default viewing area and the screen length of side of described mobile device to be tested, uniform zoom is carried out to described first coordinate position, obtains described second coordinate position; And
When judging that the length of side of described default viewing area is not equal to the described default length of side, according to the proportionate relationship between the length of side of described default viewing area and the described default length of side, uniform zoom is carried out to described first coordinate position, obtain middle coordinate position, and according to the proportionate relationship between the described default length of side and the screen length of side of described mobile device to be tested, uniform zoom is carried out to described middle coordinate position, obtains described second coordinate position.
4. method of testing according to claim 1, is characterized in that, after receiving first runnable interface of described Test Application on described mobile device to be tested, described method of testing also comprises:
Obtain the video source data of described first runnable interface;
Judge whether the frame frequency of described video source data is less than preset value;
When judging that the frame frequency of described video source data is less than described preset value, adding and inserting frame to described video source data, obtaining target data; And
Calculate the video stream data of described target data,
Wherein, described first runnable interface is transferred to described test client, comprise to obtain the second runnable interface be presented on the default viewing area of described test client: described video stream data is transferred to described test client, to obtain described second runnable interface be presented on described default viewing area.
5. method of testing according to claim 1, it is characterized in that, described method of testing also comprises: the instruction type obtaining described test instruction, wherein, transmit described test instruction and described second coordinate position extremely described mobile device to be tested, comprise to perform described test instruction at the described second coordinate position place of described mobile device to be tested:
Transmit described test instruction, described instruction type and described second coordinate position to described mobile device to be tested, perform described test instruction with the described second coordinate position place at described mobile device to be tested according to described instruction type.
6. method of testing according to claim 1, is characterized in that, described first coordinate position comprises the first starting coordinate position and first and stops coordinate position, wherein,
Calculate second coordinate position on described to be tested mobile device corresponding with the first coordinate position to comprise: calculate second starting coordinate position on described to be tested mobile device corresponding with described first starting coordinate position, and calculate and described first stop coordinate position corresponding on described mobile device to be tested second stop coordinate position;
Transmit described test instruction and described second coordinate position extremely described mobile device to be tested, comprise to perform described test instruction at the described second coordinate position place of described mobile device to be tested: transmit described test instruction, described second starting coordinate position and described second stops coordinate position to described mobile device to be tested, perform described test instruction to stop coordinate position place at described second starting coordinate position of described mobile device to be tested to described second.
7. method of testing according to claim 1, is characterized in that, the quantity of described mobile device to be tested and described default viewing area is n, and n is the natural number of more than 2, wherein:
Control Test Application is run and is comprised on mobile device to be tested: control described Test Application and run on each described mobile device to be tested;
Receive first runnable interface of described Test Application on described mobile device to be tested, and described first runnable interface is transferred to described test client, comprise to obtain the second runnable interface be presented on the default viewing area of described test client: receive described first runnable interface of described Test Application on each described mobile device to be tested, obtain n described first runnable interface, and n described first runnable interface is all transferred to described test client, n described second runnable interface on n the described default viewing area of described test client is presented to obtain one_to_one corresponding,
Obtain the coordinate position of test instruction on default viewing area to comprise: obtain the coordinate position of described test instruction on target viewing area, wherein, described target viewing area is the viewing area receiving described test instruction in n described default viewing area, and described first coordinate position is the coordinate position of described test instruction on described target viewing area;
Calculate second coordinate position on described to be tested mobile device corresponding with the first coordinate position to comprise: calculate the second coordinate position Di on to be tested mobile device Si corresponding with described first coordinate position, wherein, i gets 1 to n successively;
Transmit described test instruction and described second coordinate position extremely described mobile device to be tested, comprise to perform described test instruction at the described second coordinate position place of described mobile device to be tested: transmit described test instruction and described second coordinate position Di to described mobile device Si to be tested, perform described test instruction with the described second coordinate position Di place at described mobile device Si to be tested.
8. a proving installation for mobile device, is characterized in that, comprising:
Control module, runs on mobile device to be tested for controlling Test Application;
First transmission unit, for receiving first runnable interface of described Test Application on described mobile device to be tested, and described first runnable interface is transferred to test client, to obtain the second runnable interface be presented on the default viewing area of described test client;
First acquiring unit, for obtaining the coordinate position of test instruction on described default viewing area, wherein, described test instruction is the instruction acting on described second runnable interface;
Computing unit, for calculating second coordinate position on described to be tested mobile device corresponding with the first coordinate position, wherein, described first coordinate position is the coordinate position of described test instruction on described default viewing area; And
Second transmission unit, for transmitting described test instruction and described second coordinate position extremely described mobile device to be tested, performs described test instruction with the described second coordinate position place at described mobile device to be tested.
9. proving installation according to claim 8, is characterized in that, described computing unit comprises:
First acquisition module, for obtaining the length of side of described default viewing area, and obtains the screen length of side of described mobile device to be tested; And
Processing module, for according to the proportionate relationship between the length of side of described default viewing area and the screen length of side of described mobile device to be tested, carries out uniform zoom to described first coordinate position, obtains described second coordinate position.
10. proving installation according to claim 9, it is characterized in that, described computing unit also comprises the first judge module, after obtaining the length of side of described default viewing area at described first acquisition module, judge whether the length of side of described default viewing area equals the default length of side, wherein, described processing module comprises:
First process submodule, for when described first judge module judges that the length of side of described default viewing area equals the described default length of side, proportionate relationship between the direct length of side according to described default viewing area and the screen length of side of described mobile device to be tested, uniform zoom is carried out to described first coordinate position, obtains described second coordinate position; And
Second process submodule, for when described first judge module judges that the length of side of described default viewing area is not equal to the described default length of side, according to the proportionate relationship between the length of side of described default viewing area and the described default length of side, uniform zoom is carried out to described first coordinate position, obtain middle coordinate position, and according to the proportionate relationship between the described default length of side and the screen length of side of described mobile device to be tested, uniform zoom is carried out to described middle coordinate position, obtains described second coordinate position.
11. proving installations according to claim 8, is characterized in that, described first transmission unit comprises:
Second acquisition module, for obtaining the video source data representing described first runnable interface;
Second judge module, for judging whether the frame frequency of described video source data is less than preset value;
Add module, for when judging that the frame frequency of described video source data is less than described preset value, adding and inserting frame to described video source data, obtaining target data;
Computing module, for calculating the video stream data of described target data; And
Transport module, for described video stream data is transferred to described test client, to obtain described second runnable interface be presented on described default viewing area.
12. proving installations according to claim 8, is characterized in that, described proving installation also comprises: second acquisition unit, for obtaining the instruction type of described test instruction, wherein,
Described second transmission unit, for transmitting described test instruction, described instruction type and described second coordinate position to described mobile device to be tested, performs described test instruction with the described second coordinate position place at described mobile device to be tested according to described instruction type.
13. proving installations according to claim 8, is characterized in that, described first coordinate position comprises the first starting coordinate position and first and stops coordinate position, wherein,
Described computing unit for calculating second starting coordinate position on described to be tested mobile device corresponding with described first starting coordinate position, and calculate and described first stop coordinate position corresponding on described mobile device to be tested second stop coordinate position;
Described second transmission unit, for transmitting described test instruction, described second starting coordinate position and described second termination coordinate position to described mobile device to be tested, performs described test instruction to stop coordinate position place at described second starting coordinate position of described mobile device to be tested to described second.
14. proving installations according to claim 8, is characterized in that, the quantity of described mobile device to be tested and described default viewing area is n, and n is the natural number of more than 2, wherein:
Described control module runs on each described mobile device to be tested for controlling described Test Application;
Described first transmission unit is for receiving described first runnable interface of described Test Application on each described mobile device to be tested, obtain n described first runnable interface, and n described first runnable interface is all transferred to described test client, be presented at n described second runnable interface on n described default viewing area of described test client to obtain one_to_one corresponding;
Described first acquiring unit is for obtaining the coordinate position of described test instruction on target viewing area, wherein, described target viewing area is the viewing area receiving described test instruction in n described default viewing area, and described first coordinate position is the coordinate position of described test instruction on described target viewing area;
Described computing unit is for calculating the second coordinate position Di on to be tested mobile device Si corresponding with described first coordinate position, and wherein, i gets 1 to n successively;
Described second transmission unit is for transmitting described test instruction and described second coordinate position extremely described mobile device to be tested, comprise to perform described test instruction at the described second coordinate position place of described mobile device to be tested: transmit described test instruction and described second coordinate position Di to described mobile device Si to be tested, perform described test instruction with the described second coordinate position Di place at described mobile device Si to be tested.
The testing server of 15. 1 kinds of mobile devices, is characterized in that, comprising: the proving installation of the mobile device according to any one of claim 8 to 14.
The test macro of 16. 1 kinds of mobile devices, is characterized in that, comprising:
Mobile device to be tested, wherein, the quantity of described mobile device to be tested is one or more;
Test client; And
Testing server, wherein, described testing server is the testing server of the mobile device described in claim 15.
CN201410210222.6A 2014-05-16 2014-05-16 Method of testing, device, server and the system of mobile device Active CN104951397B (en)

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 true CN104951397A (en) 2015-09-30
CN104951397B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426144A (en) * 2015-11-02 2016-03-23 上海聚力传媒技术有限公司 Method and device for testing adaptive multiresolution of application program
CN106557424A (en) * 2016-11-18 2017-04-05 腾讯科技(深圳)有限公司 Internal storage testing method, measured terminal, test client and system
CN106997291A (en) * 2016-01-26 2017-08-01 中移(杭州)信息技术有限公司 A kind of control method and master node, slave node
CN107122306A (en) * 2017-05-15 2017-09-01 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN109992125A (en) * 2019-03-29 2019-07-09 京东方科技集团股份有限公司 Data inputting 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
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426144A (en) * 2015-11-02 2016-03-23 上海聚力传媒技术有限公司 Method and device for testing adaptive multiresolution of application program
CN105426144B (en) * 2015-11-02 2019-03-29 上海聚力传媒技术有限公司 A kind of method and apparatus of the adaptive multiresolution of test application program
CN106997291A (en) * 2016-01-26 2017-08-01 中移(杭州)信息技术有限公司 A kind of control method and master node, slave node
CN106997291B (en) * 2016-01-26 2020-12-22 中移(杭州)信息技术有限公司 Control method, master node and slave node
CN106557424A (en) * 2016-11-18 2017-04-05 腾讯科技(深圳)有限公司 Internal storage testing method, measured terminal, test client and system
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
CN109992125A (en) * 2019-03-29 2019-07-09 京东方科技集团股份有限公司 Data inputting 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
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method
CN113138919B (en) * 2021-04-19 2022-04-22 广州掌动智能科技有限公司 Multi-client testing system and method

Also Published As

Publication number Publication date
CN104951397B (en) 2017-12-26

Similar Documents

Publication Publication Date Title
CN104951397A (en) Mobile equipment testing method, mobile equipment testing device, mobile equipment testing server and mobile equipment testing system
EP4246862A3 (en) Data transmission method and device
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
EP3598386A1 (en) Method and apparatus for processing image
US8504344B2 (en) Interface between a verification environment and a hardware acceleration engine
CN104540042A (en) Set-top box remote multi-screen interaction control method and system based on XMPP (Extensible Messaging and Presence Protocol) communication
CN106649342A (en) Data processing method and apparatus in data acquisition platform
CN106101794A (en) The processing method of a kind of virtual desktop video data, Apparatus and system
CN106407003A (en) Screen interface display method and system
Falkenberg et al. Rushing full speed with LTE-Advanced is economical-a power consumption analysis
CN110730112A (en) Method, system, equipment and storage medium for testing network running speed
CN113961291A (en) Mobile equipment remote control method and system based on touch gesture recognition and compressed representation
CN213213488U (en) Automatic test system
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN104734900A (en) Sending control method for communication protocol testing
CN110505352B (en) Call quality testing method, system, computer device and computer storage medium
CN115665502B (en) Video data processing method, injection method, system, equipment and storage medium
CN115022328B (en) Server cluster, testing method and device of server cluster and electronic equipment
CN107241325A (en) A kind of ultralow delay transport method and device of IP videos
CN103531172B (en) Multi-screen integrated display system Bandwidth adjustment equipment and method of adjustment thereof
CN104079368B (en) A kind of the test data transmission method and server of application software
CN107211018A (en) Adjust the credit rating of media fluidisation
CN109831768A (en) A kind of LoRa multinode big data method for transmission processing, apparatus and system
CN104714634A (en) Remote input method and system
US20170069053A1 (en) Modification of graphical command tokens

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