[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103744763A - Mobile terminal synchronous control method of PC (personal computer) end in automated testing - Google Patents

Mobile terminal synchronous control method of PC (personal computer) end in automated testing Download PDF

Info

Publication number
CN103744763A
CN103744763A CN201310728344.XA CN201310728344A CN103744763A CN 103744763 A CN103744763 A CN 103744763A CN 201310728344 A CN201310728344 A CN 201310728344A CN 103744763 A CN103744763 A CN 103744763A
Authority
CN
China
Prior art keywords
mobile terminal
automatic test
synchro control
screen
socket
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.)
Pending
Application number
CN201310728344.XA
Other languages
Chinese (zh)
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.)
GUANGDONG MINGCHUANG SOFTWARE SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
GUANGDONG MINGCHUANG SOFTWARE SCIENCE & TECHNOLOGY 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 GUANGDONG MINGCHUANG SOFTWARE SCIENCE & TECHNOLOGY Co Ltd filed Critical GUANGDONG MINGCHUANG SOFTWARE SCIENCE & TECHNOLOGY Co Ltd
Priority to CN201310728344.XA priority Critical patent/CN103744763A/en
Publication of CN103744763A publication Critical patent/CN103744763A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a mobile terminal synchronous control method of a PC end in automated testing. The method comprises the following steps of starting automated testing software and establishing the socket connection between the PC end and a mobile terminal; synchronously mapping the screen display of the mobile terminal onto the PC end; receiving output operation through the PC end and transmitting the operation to the mobile terminal; analyzing and executing the receiving operation through the mobile terminal. Compared with the prior art, the mobile terminal synchronous control method of the PC end in automated testing comprises that firstly, the automated testing software is started, then, the PC end establishes the socket connection with the mobile terminal through the automated testing software, then the screen display of the mobile terminal can be synchronously mapped to the PC end and lastly, the user can control the mobile terminal synchronously at the PC end, therefore, during the testing process, the user can intuitively watch the operating process at the PC end to achieve good user experience.

Description

The method of PC end synchro control mobile terminal in automatic test
Technical field
The present invention relates to mobile phone test technical field, relate more specifically to the method for PC end synchro control mobile terminal in a kind of automatic test.
Background technology
Along with popularizing of mobile phone, mobile phone is tested and become more and more important.Current, while carrying out mobile phone automatized test, generally to utilize a mobile phone simulator program moving on multi-purpose computer, after multi-purpose computer is connected with mobile phone, by mobile phone simulator program being operated to realize the automatic test to mobile phone on multi-purpose computer, operating process meeting is reflected on mobile phone.Yet in above-mentioned automated testing method, user can not see the operating process of mobile phone intuitively at PC end, user experiences bad.
Therefore, being badly in need of PC in a kind of automatic test holds the method for synchro control mobile terminal to overcome above-mentioned defect.
Summary of the invention
The method that the object of this invention is to provide the end of PC in a kind of automatic test synchro control mobile terminal, to realize synchronize of PC end and mobile terminal in test process, thereby reflects test process at PC end, raising user experience intuitively.
For achieving the above object, the invention provides the method for PC end synchro control mobile terminal in a kind of automatic test, comprise the following steps:
Start automatic test software, set up PC end and be connected with the socket of mobile terminal;
By the extremely described PC end of the screen-picture synchronization map of described mobile terminal;
Described PC termination is received the operation of input and is transferred to described mobile terminal;
The described operation receiving is resolved and carried out to described mobile terminal.
Compared with prior art, the method of PC end synchro control mobile terminal in automatic test of the present invention, first need to start automatic test software, PC end is set up and is connected with the socket of mobile terminal by automatic test software afterwards, then the screen-picture of mobile terminal can synchronously map to PC end, and user can synchro control mobile terminal at PC end, thereby in test process, user can see operating process, better user experience intuitively at PC end.
Preferably, described " by the extremely described PC end of the screen-picture synchronization map of described mobile terminal " specifically comprises:
Send synchronized broadcast to mobile terminal;
Mobile terminal starts backstage sectional drawing function to obtain the current screen-picture information of described mobile terminal according to described synchronized broadcast;
When described socket connects when normal, described screen-picture information is sent to described PC end;
Described PC end is picture by the described screen-picture information unloading receiving and is presented at synchro control region.
Preferably, described " by the extremely described PC end of the screen-picture synchronization map of described mobile terminal " also comprises before:
At PC end, described synchro control region is set.
Preferably, described " start automatic test software, set up PC end and be connected with the socket of mobile terminal " specifically comprises:
Start automatic test software, by adb devices order, obtain all mobile terminals that are connected to PC end;
Select arbitrary described mobile terminal and send socket connection request to the described mobile terminal of selecting;
Described mobile terminal is set up with the socket of described PC end and is connected according to described socket connection request.
Preferably, described " described PC termination is received the operation of input and transferred to described mobile terminal " specifically comprises:
Described PC termination is received the operation of input in described synchro control region;
Described operation is converted to the discernible operation of described mobile terminal;
Described operation after conversion is transferred to described mobile terminal.
Preferably, described " start automatic test software, set up PC end and be connected with the socket of mobile terminal " also comprises before:
The operation of described PC end and the mapping relations of the discernible operation of described mobile terminal are set.
Preferably, described " screen-picture of described mobile terminal is mapped to described PC end " also comprises afterwards:
Click synchronous control switch and be broadcast to described mobile terminal to send synchronous operation;
Described mobile terminal is opened background service according to the described synchronous operation broadcast receiving.
Preferably, described " click synchronous control switch and be broadcast to described mobile terminal to send synchronous operation " also comprises before:
Described synchronous control switch is set.
Preferably, described mobile terminal is android terminal.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used for explaining embodiments of the invention.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of method one embodiment of PC end synchro control mobile terminal in automatic test of the present invention.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, in accompanying drawing, similarly element numbers represents similar element.In the present invention, PC end is computer, and mobile terminal is android terminal, as android mobile phone etc.
Please refer to Fig. 1, described the idiographic flow of method one embodiment of PC end synchro control mobile terminal in automatic test of the present invention.As shown in Figure 1, comprise the following steps:
Step S101, is connected to PC end by mobile terminal, selects serial line interface/PC external member pattern; When mobile phone is connected to computer by data line, on mobile phone screen, there will be " memory storage, IP Camera, serial line interface/PC external member " three options, select " serial line interface/PC external member ";
Step S102, opens automatic test software at PC end, obtains the whole mobile terminals that are connected with PC end; Be specially: open after automatic test software, can obtain all mobile terminals that are connected with PC end by adb devices order, obtain holding with PC sequence number and the connection status of the mobile terminal being connected, connection status comprises the states such as normal connection (device) and None-identified (unknown device), if mobile phone sequence number is numeral, the monogram of a string 16, as: LFMVGQGI5DSWCIWK, device;
Step S103, selects arbitrary sequence number, selects arbitrary mobile terminal;
Step S104, initiates a socket connection request to the mobile terminal of selecting, and sends synchronized broadcast (com.oppo.intent.action.START_SCREEN_SHOT) simultaneously;
Step S105, mobile terminal receives after synchronized broadcast, starts backstage sectional drawing function and intercepts the current screen-picture information of mobile terminal, receives socket connection request simultaneously and set up with the socket of PC end to be connected, wherein socket is socket, socket is connected to prior art, no longer explanation herein, it should be noted that, mobile terminal in the present embodiment (as mobile phone) is placed with an agent software, this agent software is connected (after the socket connection request that PC end sends as received, set up and PC holds be connected) for setting up socket with PC end, PC end sends after socket connection request, the state returning according to mobile terminal just can judge that automatic test software is current and whether connect upper mobile terminal, wherein, above-mentioned automatic test software refers to the testing software that principle according to the present invention is developed, as increased adb devices order in automatic test software of the present invention, obtain the operations such as mobile terminal of connection,
Step S106, judges whether mobile terminal is connected with the socket of PC end normal, if so, performs step S107, otherwise, execution step S105;
Step S107, the synchro control region by the current screen-picture synchronization map of mobile terminal to PC end, when PC end occurs after the picture with mobile terminal screen picture synchronization, illustrate that PC holds and having synchronizeed of mobile terminal; Particularly, the current screen-picture information exchange that mobile terminal obtains sectional drawing is crossed socket and is connected synchronous transmission and hold to PC, PC end is picture by the screen-picture information unloading receiving and is presented at synchro control region, thereby realized mobile terminal and held synchronizeing of picture with PC, wherein synchro control region is arranged by developer, can hold the arbitrary region in screen for PC, when arranging, also defined the action type in this region, as the pressing of left mouse button, long by action types such as, slips;
Step S108, clicks the synchronous control switch that PC holds, and PC end sends synchronous operation and is broadcast to mobile terminal; Wherein synchronous control switch is the switch increasing newly, for triggering " sending synchronous operation broadcast " this order;
Step S109, mobile terminal receives after synchronous operation broadcast, automatically opens background service, opens background service and can in PC holds synchro control region, operate afterwards;
Step S110, user's input operation in the synchro control region of PC end, the operation of input is received and recorded to PC termination; Wherein operation comprises the pressing of left mouse button, long by various operations such as, slips;
Step S111, is converted to the operation of record the discernible operation of mobile terminal and is connected and transferred to mobile terminal by socket; Concrete transfer process as: PC is held to the pressing of left mouse button, longly by operations such as, slips, is converted to respectively the sequence of operations such as the discernible KeyCode_Down of mobile terminal, KeyCode_Up, KeyCode_Drag, and the operation of PC end and the mapping relations of the discernible operation of mobile terminal need to be held at PC and set in advance;
Step S112, the operation receiving is resolved and carried out to mobile terminal, concrete, mobile terminal receive operation from PC end as KeyCode_Down, KeyCode_Up, KeyCode_Drag after, can resolve it, nested, combination, carry out, finally reach the object of carrying out corresponding operating, thereby realized at PC end synchro control mobile terminal.
As can be seen from the above description, the method of PC end synchro control mobile terminal in automatic test of the present invention, by setting up that PC end is connected with the socket of mobile terminal and the screen-picture synchronization map of mobile terminal being held to PC, realized at PC end synchro control mobile terminal, thereby can at PC end, see intuitively the operating process of mobile terminal, in addition, during mobile terminal screen printing picture, utilized android sectional drawing, sectional drawing efficiency is higher, and the screen-picture information exchange that mobile terminal obtains sectional drawing is crossed socket connection and is transferred to before PC end, the intensity that screen-picture picture is compressed is larger, thereby the transmission speed of picture is faster, SFR is higher, therefore connect the effect of subsequent screen picture by socket better, synchronizing picture is smooth, more than the synchronous frame number of 1 second can reach 12 frames, greatly met the demand of synchronism detection, for remote testing video, camera, the modules such as video recording have good effect.
Invention has been described for above combination most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain the various modifications of carrying out according to essence of the present invention, equivalent combinations.

Claims (9)

1. a method for PC end synchro control mobile terminal in automatic test, is characterized in that, comprises the following steps:
Start automatic test software, set up PC end and be connected with the socket of mobile terminal;
By the extremely described PC end of the screen-picture synchronization map of described mobile terminal;
Described PC termination is received the operation of input and is transferred to described mobile terminal;
The described operation receiving is resolved and carried out to described mobile terminal.
2. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 1, is characterized in that, described " by the extremely described PC end of the screen-picture synchronization map of described mobile terminal " specifically comprises:
Send synchronized broadcast to mobile terminal;
Mobile terminal starts backstage sectional drawing function to obtain the current screen-picture information of described mobile terminal according to described synchronized broadcast;
When described socket connects when normal, described screen-picture information is sent to described PC end;
Described PC end is picture by the described screen-picture information unloading receiving and is presented at synchro control region.
3. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 2, is characterized in that, described " by the extremely described PC end of the screen-picture synchronization map of described mobile terminal " also comprises before:
At PC end, described synchro control region is set.
4. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 2, is characterized in that, described " start automatic test software, set up PC end and be connected with the socket of mobile terminal " specifically comprises:
Start automatic test software, by adb devices order, obtain all mobile terminals that are connected to PC end;
Select arbitrary described mobile terminal and send socket connection request to the described mobile terminal of selecting;
Described mobile terminal is set up with the socket of described PC end and is connected according to described socket connection request.
5. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 3, is characterized in that, described " described PC termination is received the operation of input and transferred to described mobile terminal " specifically comprises:
Described PC termination is received the operation of input in described synchro control region;
Described operation is converted to the discernible operation of described mobile terminal;
Described operation after conversion is transferred to described mobile terminal.
6. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 5, is characterized in that, described " start automatic test software, set up PC end and be connected with the socket of mobile terminal " also comprises before:
The operation of described PC end and the mapping relations of the discernible operation of described mobile terminal are set.
7. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 1, is characterized in that, described " screen-picture of described mobile terminal is mapped to described PC end " also comprises afterwards:
Click synchronous control switch and be broadcast to described mobile terminal to send synchronous operation;
Described mobile terminal is opened background service according to the described synchronous operation broadcast receiving.
8. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 7, is characterized in that, described " click synchronous control switch and be broadcast to described mobile terminal to send synchronous operation " also comprises before:
Described synchronous control switch is set.
9. the method for PC end synchro control mobile terminal in automatic test as claimed in claim 1, is characterized in that, described mobile terminal is android terminal.
CN201310728344.XA 2013-12-25 2013-12-25 Mobile terminal synchronous control method of PC (personal computer) end in automated testing Pending CN103744763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310728344.XA CN103744763A (en) 2013-12-25 2013-12-25 Mobile terminal synchronous control method of PC (personal computer) end in automated testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310728344.XA CN103744763A (en) 2013-12-25 2013-12-25 Mobile terminal synchronous control method of PC (personal computer) end in automated testing

Publications (1)

Publication Number Publication Date
CN103744763A true CN103744763A (en) 2014-04-23

Family

ID=50501783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310728344.XA Pending CN103744763A (en) 2013-12-25 2013-12-25 Mobile terminal synchronous control method of PC (personal computer) end in automated testing

Country Status (1)

Country Link
CN (1) CN103744763A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007983A (en) * 2014-06-18 2014-08-27 北京金和软件股份有限公司 Method and device for displaying real browsing effect of mobile phone interface through PC
CN104166610A (en) * 2014-07-24 2014-11-26 深圳天珑无线科技有限公司 Mobile terminal detection method and detection system
CN104468260A (en) * 2014-11-13 2015-03-25 百度在线网络技术(北京)有限公司 Recognition method, device and system for mobile terminal device
CN104980552A (en) * 2015-06-18 2015-10-14 惠州Tcl移动通信有限公司 Method and system for realizing automatic test of Android mobile terminal
CN105094839A (en) * 2015-08-14 2015-11-25 深圳市众联悠游科技有限公司 Method for achieving running of Android system applications based on PC machine
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software
CN105227597A (en) * 2014-06-10 2016-01-06 阿里巴巴集团控股有限公司 A kind of method, Apparatus and system obtaining terminal equipment screen-picture
WO2016070372A1 (en) * 2014-11-06 2016-05-12 北京安奇智联科技有限公司 Method for implementing synchronous display between mobile terminal and web terminal
CN105607086A (en) * 2015-12-18 2016-05-25 上海华测导航技术股份有限公司 Automatic detection method for GNSS receiver
CN105739857A (en) * 2016-01-25 2016-07-06 北京小米移动软件有限公司 Mobile terminal control method and apparatus
CN105893067A (en) * 2015-06-03 2016-08-24 福建创意嘉和软件有限公司 Method for implementing running of Android system application based on PC machine
CN106487847A (en) * 2015-08-28 2017-03-08 腾讯科技(深圳)有限公司 A kind of information processing method and transfer server
CN106980553A (en) * 2017-03-28 2017-07-25 北京奇虎科技有限公司 A kind of method and apparatus that data transfer is carried out based on event
CN107508854A (en) * 2017-07-12 2017-12-22 武汉卡比特信息有限公司 Method and system that are a kind of while controlling multiple mobile phone screens
CN111158925A (en) * 2019-12-05 2020-05-15 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium
CN112445662A (en) * 2019-08-30 2021-03-05 上海哔哩哔哩科技有限公司 Internet data broadcast socket testing method, server and storage medium
US12032866B2 (en) 2019-06-20 2024-07-09 Huawei Technologies Co., Ltd. Input method, electronic device, and screen projection system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269497A (en) * 2013-05-08 2013-08-28 百度在线网络技术(北京)有限公司 Method and system capable of conducting managing and testing on mobile phone
CN103338290A (en) * 2013-06-04 2013-10-02 宁波大学 A method for automatically testing performance of an Android handset

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269497A (en) * 2013-05-08 2013-08-28 百度在线网络技术(北京)有限公司 Method and system capable of conducting managing and testing on mobile phone
CN103338290A (en) * 2013-06-04 2013-10-02 宁波大学 A method for automatically testing performance of an Android handset

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227597A (en) * 2014-06-10 2016-01-06 阿里巴巴集团控股有限公司 A kind of method, Apparatus and system obtaining terminal equipment screen-picture
CN104007983A (en) * 2014-06-18 2014-08-27 北京金和软件股份有限公司 Method and device for displaying real browsing effect of mobile phone interface through PC
CN104007983B (en) * 2014-06-18 2017-07-21 北京金和软件股份有限公司 A kind of true result of browse methods of exhibiting of the PC of mobile phone interface and equipment
CN104166610A (en) * 2014-07-24 2014-11-26 深圳天珑无线科技有限公司 Mobile terminal detection method and detection system
WO2016070372A1 (en) * 2014-11-06 2016-05-12 北京安奇智联科技有限公司 Method for implementing synchronous display between mobile terminal and web terminal
CN104468260A (en) * 2014-11-13 2015-03-25 百度在线网络技术(北京)有限公司 Recognition method, device and system for mobile terminal device
CN105893067A (en) * 2015-06-03 2016-08-24 福建创意嘉和软件有限公司 Method for implementing running of Android system application based on PC machine
CN104980552A (en) * 2015-06-18 2015-10-14 惠州Tcl移动通信有限公司 Method and system for realizing automatic test of Android mobile terminal
CN105094839A (en) * 2015-08-14 2015-11-25 深圳市众联悠游科技有限公司 Method for achieving running of Android system applications based on PC machine
CN106487847A (en) * 2015-08-28 2017-03-08 腾讯科技(深圳)有限公司 A kind of information processing method and transfer server
CN106487847B (en) * 2015-08-28 2020-03-17 腾讯科技(深圳)有限公司 Information processing method and transfer server
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software
CN105607086B (en) * 2015-12-18 2018-05-08 上海华测导航技术股份有限公司 A kind of automated detection method on GNSS receiver
CN105607086A (en) * 2015-12-18 2016-05-25 上海华测导航技术股份有限公司 Automatic detection method for GNSS receiver
CN105739857A (en) * 2016-01-25 2016-07-06 北京小米移动软件有限公司 Mobile terminal control method and apparatus
CN106980553A (en) * 2017-03-28 2017-07-25 北京奇虎科技有限公司 A kind of method and apparatus that data transfer is carried out based on event
CN106980553B (en) * 2017-03-28 2021-07-23 北京奇虎科技有限公司 Method and equipment for data transmission based on event
CN107508854A (en) * 2017-07-12 2017-12-22 武汉卡比特信息有限公司 Method and system that are a kind of while controlling multiple mobile phone screens
US12032866B2 (en) 2019-06-20 2024-07-09 Huawei Technologies Co., Ltd. Input method, electronic device, and screen projection system
CN112445662A (en) * 2019-08-30 2021-03-05 上海哔哩哔哩科技有限公司 Internet data broadcast socket testing method, server and storage medium
CN112445662B (en) * 2019-08-30 2022-12-02 上海哔哩哔哩科技有限公司 Internet data broadcast socket testing method, server and storage medium
CN111158925A (en) * 2019-12-05 2020-05-15 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium
CN111158925B (en) * 2019-12-05 2024-02-23 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium

Similar Documents

Publication Publication Date Title
CN103744763A (en) Mobile terminal synchronous control method of PC (personal computer) end in automated testing
CN106021095B (en) A kind of Android application automated testing method based on push-mechanism
CN103338290B (en) A kind of method of automatic test Android phone touch screen performance
CN107071551B (en) Multi-screen interactive screen response method applied to smart television system
CN103559150A (en) Realizing method and device for external camera of host, and mobile terminal
CN104778121A (en) Game program test method, device and system
WO2014138097A1 (en) Mobile device monitoring and testing
CN104333844A (en) Interconnection method of vehicle-mounted terminal and smart phone
CN109873728B (en) Terminal testing method and device and storage medium
CN103124283A (en) Electronic device and method capable of collaboratively editing with a plurality of mobile devices
US20190051147A1 (en) Remote control method, apparatus, terminal device, and computer readable storage medium
CN102594984A (en) Mobile terminal, and system and method for quickly photographing mobile terminal
CN105491293A (en) Shooting control method, device, mobile terminal, selfie stick and shooting control system
WO2021042612A1 (en) Wireless screen projection method and apparatus, device and storage medium
CN107631750B (en) Method, device, terminal and storage medium for testing terminal to be tested
CN105022687A (en) Implementation method and device of sliding operation in automated testing scheme
CN104750237A (en) Multi-screen interactive connection method and device as well as electronic equipment
CN104935613A (en) Scene synchronization method, terminal, server and system
CN105847408B (en) A kind of method, device and equipment that data are synchronous
CN104572311A (en) Application program synchronization device and method based on Bluetooth
US9939886B2 (en) Data communication method via touch surface
CN109922484A (en) A kind of test method and test device
CN104536789A (en) Data burning method and data burning device
CN104616682A (en) Blu-ray player test method, intelligent equipment and Blu-ray player
CN106997291B (en) Control method, master node and slave node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140423