CN105808073A - Application operation instruction distribution method and terminal - Google Patents

Application operation instruction distribution method and terminal Download PDF

Info

Publication number
CN105808073A
CN105808073A CN201410843178.2A CN201410843178A CN105808073A CN 105808073 A CN105808073 A CN 105808073A CN 201410843178 A CN201410843178 A CN 201410843178A CN 105808073 A CN105808073 A CN 105808073A
Authority
CN
China
Prior art keywords
terminal
operational order
application
graphical interfaces
operating instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410843178.2A
Other languages
Chinese (zh)
Other versions
CN105808073B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201410843178.2A priority Critical patent/CN105808073B/en
Publication of CN105808073A publication Critical patent/CN105808073A/en
Application granted granted Critical
Publication of CN105808073B publication Critical patent/CN105808073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an application operation instruction distribution method. The method comprises the following steps that a first terminal obtains a second terminal connected with the first terminal currently; the first terminal controls the second terminal to run a to-be-tested application; the first terminal receives a graphic interface for the second terminal to run the to-be-tested application and displays the graphic interface through a webpage; the first terminal receives an operation input by the webpage based on the graphic interface to generate an operation instruction transmission request; and the first terminal analyzes the operation instruction transmission request, generates an operation command corresponding to the second terminal and transmits the operation command to the second terminal for performing a corresponding operation. The invention furthermore discloses an application operation instruction distribution terminal. According to the method and terminal, the difficulty in application testing is lowered.

Description

Application operating instruction distribution method and terminal
Technical field
The present invention relates to application testing technical field, particularly relate to application operating instruction distribution method and terminal.
Background technology
At present, generally adopting automatized script and recording and playback to carry out application compatibility test on smart machine, this testing scheme must rely on the code that application is write to be operated, and therefore that the requirement of test is higher, the difficulty of test is bigger.
Foregoing is only used for assisting understanding technical scheme, does not represent and admits that foregoing is prior art.
Summary of the invention
Present invention is primarily targeted at a kind of application operating instruction distribution method of offer and terminal, it is intended to reduce the difficulty of application testing.
For achieving the above object, a kind of application operating instruction distribution method provided by the invention comprises the following steps:
First terminal obtains the second terminal being currently connected with described first terminal;
Described first terminal controls described second terminal operating application to be tested;
Described first terminal receives the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;
Described first terminal reception webpage generates operational order based on the operation that described graphical interfaces inputs and issues request;
Described first terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
Preferably, the described second terminal operating application to be tested of described first terminal control includes:
Described first terminal is by each described second terminal distribution uniquely identified port numbers got;
Described first terminal will enter predetermined directory by webpage according to described port numbers and select the application to be tested obtained to send to described second terminal, install and run described application to be tested controlling described second terminal.
Preferably, described first terminal receives the operation that webpage inputs based on described graphical interfaces and generates operational order and issue request and include:
The operation information that first terminal reception webpage inputs on described graphical interfaces according to record user issues request according to the operational order of http protocol generation.
Preferably, when the operation inputted at described graphical interfaces is clicking operation, described operation information includes: operated object mark and click coordinate information;
When the operation inputted at described graphical interfaces is character entering function, described operation information includes: the character information of operated object mark, click coordinate information and input;
When the operation inputted at described graphical interfaces is for clicking drag operation, described operation information includes: origin coordinates, termination coordinate and glide direction.
Preferably, described first terminal also includes after obtaining the second terminal being currently connected with described first terminal:
Each described second terminal correspondence is started a monitoring service by described first terminal;
Described first terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, and the step performing corresponding operation for the second terminal includes:
The request that issued by described operational order sends to all of monitoring service;
Based on described monitoring service, described operational order is resolved, and be packaged into the second corresponding executable operational order of terminal with the communications protocol of described second terminal according to described first terminal;
Described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
Additionally, for achieving the above object, the present invention also provides for a kind of application operating instruction distribution terminal and includes:
Acquisition module, for obtaining current the second terminal being connected with application operating instruction distribution terminal;
Control module, be used for controlling described second terminal operating application to be tested;
First receiver module, for receiving the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;
Second receiver module, the operation generation operational order inputted based on described graphical interfaces for receiving webpage issues request;
Parsing module, is used for resolving described operational order and issues request, and generate the operational order that described second terminal is corresponding, described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
Preferably, described control module includes:
Allocation units, for by each described second terminal distribution uniquely identified port numbers got;
Control unit, selects the application to be tested obtained to send extremely described second terminal for entering predetermined directory by webpage according to described port numbers, installs and run described application to be tested controlling described second terminal.
Preferably, the operation information that described second receiver module inputs according to record user specifically for receiving webpage on described graphical interfaces issues request according to the operational order of http protocol generation.
Preferably, when the operation inputted at described graphical interfaces is clicking operation, described operation information includes: operated object mark and click coordinate information;
When the operation inputted at described graphical interfaces is character entering function, described operation information includes: the character information of operated object mark, click coordinate information and input;
When the operation inputted at described graphical interfaces is for clicking drag operation, described operation information includes: origin coordinates, termination coordinate and glide direction.
Preferably, described application operating instruction distribution terminal also includes:
Monitor and start module, for each described second terminal correspondence is started a monitoring service;
Described parsing module includes:
Transmitting element, sends to all of monitoring service for described operational order issues request;
Unload unit, for described operational order being resolved based on described monitoring service, and distribute terminal according to described application operating instruction and be packaged into the second corresponding executable operational order of terminal with the communications protocol of described second terminal;
Order issues unit, for described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
The embodiment of the present invention controls described second terminal operating application to be tested by described first terminal, and first terminal receives the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;Described first terminal reception webpage generates operational order based on the operation that described graphical interfaces inputs and issues request;Described first terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, performs corresponding operation for the second terminal.The graphical interfaces of the web displaying application to be tested of first terminal is adopted due to application operating instruction distribution method provided by the invention, graphic interface based on this display is operated instruction input, adopt relative to prior art and be operated instruction distribution by script, reduce the difficulty of application testing.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of application operating instruction distribution method one embodiment of the present invention;
Fig. 2 is the refinement schematic flow sheet controlling the second terminal operating application to be tested in Fig. 1;
Fig. 3 is the schematic flow sheet of application operating instruction another embodiment of distribution method of the present invention;
Fig. 4 is the high-level schematic functional block diagram of application operating instruction of the present invention distribution terminal one embodiment;
Fig. 5 is the refinement high-level schematic functional block diagram controlling module in Fig. 4;
Fig. 6 is the refinement high-level schematic functional block diagram of parsing module in Fig. 4.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of application operating instruction distribution method, and with reference to Fig. 1, in one embodiment, this application operating instruction distribution method includes:
Step S10, first terminal obtains the second terminal being currently connected with described first terminal;
The test that the application operating instruction distribution method that the present embodiment provides is mainly used in mobile terminal to Mobile solution software, specifically, can be distributed to each mobile terminal by the operational order that user inputs.The second terminal quantity being connected with above-mentioned first terminal can be configured according to actual needs, and in the present embodiment, above-mentioned first terminal can be PC, and above-mentioned second terminal can be mobile terminal (such as mobile phone, pad etc.).Second terminal can be passed through USB data line and be connected with first terminal foundation.In the present embodiment, above-mentioned first terminal will obtain the corresponding information (type number of such as mobile phone and port numbers etc.) of current the second terminal connected.
Step S20, described first terminal controls described second terminal operating application to be tested;
Step S30, described first terminal receives the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;
In the present embodiment, above-mentioned application to be tested is Mobile solution, each second terminal is mounted on this application to be tested, and after controlling all of second terminal operating application to be tested by first terminal, by wherein one second terminal, the graphical interfaces data that this Mobile solution currently running shows are sent to first terminal, first terminal controls it and displays on webpage after receiving these graphical interfaces data;Thus the display interface realizing the second terminal carries out simultaneous display on first terminal.
Step S40, described first terminal reception webpage generates operational order based on the operation that described graphical interfaces inputs and issues request;
Step S50, described first terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
In the present embodiment, user can be operated instruction input by mouse at the graphical interfaces of web displaying, specifically, can pre-set user and be operated corresponding to the incidence relation of the operational order on mobile phone at the graphical interfaces of web displaying.Such as user carries out clicking or double-clicking the click of corresponding mobile phone on webpage;Character input on the user's corresponding mobile phone of character input on webpage;User's slip clicking dragging (such as click and choose target, and target is dragged under clicking state release single-click operation after preset distance) corresponding mobile phone on webpage.After above-mentioned second terminal is connected with first terminal, each second terminal is all enabled a monitoring service, for the request that analyzing web page end sends, and by resolve obtain Information encapsulation be the operational order that the second terminal can recognise that, namely according to the communications protocol of first terminal and the second terminal be packaged formed operational order.Specifically, when user's input operation on webpage, webpage generates operational order according to the operation that user inputs and issues request, then request below this operational order is sent the monitoring service that extremely each second terminal is corresponding, resolve this operational order by monitoring service and issue request, and the operational order being encapsulated as correspondence sends to the second terminal, the application to be tested for the second terminal performs this operational order.
The embodiment of the present invention controls described second terminal operating application to be tested by described first terminal, and first terminal receives the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;Described first terminal reception webpage generates operational order based on the operation that described graphical interfaces inputs and issues request;Described first terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, performs corresponding operation for the second terminal.The graphical interfaces of the web displaying application to be tested of first terminal is adopted due to application operating instruction distribution method provided by the invention, graphic interface based on this display is operated instruction input, adopt relative to prior art and be operated instruction distribution by script, reduce the difficulty of application testing.
Specifically, with reference to Fig. 2, based on above-described embodiment, in the present embodiment, above-mentioned steps S20 includes:
Step S21, described first terminal is by each described second terminal distribution uniquely identified port numbers got;
Step S22, described first terminal will enter predetermined directory by webpage according to described port numbers and select the application to be tested obtained to send to described second terminal, install and run described application to be tested controlling described second terminal.
First terminal is for computer, and the second terminal makes detailed description for mobile phone.Specifically, after mobile phone is normally connected with computer by the USB interface on computer, user can enter predetermined directory by webpage on first terminal and select user to be uploaded to the application to be tested of this predetermined directory.After user selects, bridge funcation order is debugged based on Android client service end, debugging bridge adopts the mode monitoring designated port, allows the ide on computer and mobile phone Android system Direct Communication so that can direct operation management Android system run order.Specifically, the mobile phone of each connection, starts a monitoring service one port numbers of random assortment, the mobile phone that each random port numbers and access recognize is set to mapping relations one to one, and sets up and preserve following form according to mobile phone model and port numbers:
Mobile phone model Port numbers
Semen setariae 3 4008
Huawei P7 3536
Hammer T1 7676
…… ……
Samsung Glaxy S4 9999
Then monitor whether in real time to receive application transport instruction to be tested, when monitoring this transmission instruction, catalogue can be uploaded from the acquiescence of computer, the Files.copyFile method using JAVA programming language is copied to the assigned catalogue of mobile phone, then the user interface automatization framework of Android native applications is initialized, carry out corresponding application to be tested is installed, can directly run the application to be tested installed after installation is complete.After this application to be tested is all installed and run to all of mobile phone, this application graph of a correspondence interface to be tested of operation that a preset mobile phone sends will be received, and control this graphical interfaces and display on webpage.
Specifically, based on above-described embodiment, in the present embodiment, above-mentioned steps S40 includes, and described first terminal reception webpage issues request based on the operation generation operational order that described graphical interfaces inputs and includes:
The operation information that first terminal reception webpage inputs on described graphical interfaces according to record user issues request according to the operational order of http protocol generation.
In the present embodiment, the operation information that user is operated on the graphic interface of web displaying is corresponding with the operation on mobile phone.Such as user is undertaken clicking clicking operation on the corresponding mobile phone of (click or double-click) operation by mouse at the graphic interface of web displaying;User is undertaken clicking slide on drag operation correspondence mobile phone by mouse at the graphic interface of web displaying.
When the operation inputted at described graphical interfaces is clicking operation, described operation information includes: operated object mark and click coordinate information;
When the operation inputted at described graphical interfaces is character entering function, described operation information includes: the character information of operated object mark, click coordinate information and input;
When the operation inputted at described graphical interfaces is for clicking drag operation, described operation information includes: origin coordinates, termination coordinate and glide direction.
Above-mentioned object identity is that control button uniquely identifies (No. ID of such as this control button), and aforesaid operations instruction issues request and is http request, namely in the operation every time of user, all can comprise following information:
Name of the information Implication
rule Mobile phone application type
operate Action type, clicks/slides/input
opvalue Control button uniquely identifies, No. ID
textkey Control title
value The content of input
direction Direction of operating
In different operations, the information comprised in http request is different, and the field comprised is consistent, and the content of field is different.
Further, with reference to Fig. 3, based on above-described embodiment, in the present embodiment, also include after above-mentioned S10:
Step S60, each described second terminal correspondence is started a monitoring service by described first terminal;
Above-mentioned S50 step includes:
Step S51, the request that issued by described operational order sends to all of monitoring service;
Step S52, resolves described operational order based on described monitoring service, and is packaged into the second corresponding executable operational order of terminal with the communications protocol of described second terminal according to described first terminal;
Step S53, is issued to described second terminal by described operational order, performs corresponding operation for the second terminal.
In the present embodiment, owing to each second terminal is all correspondingly provided with a port numbers, bridge funcation order is debugged based on Android client service end, debugging bridge adopts the mode monitoring designated port, corresponding each second terminal can start a monitoring service, so that the port that each the second terminal is corresponding to be monitored.
Specifically, when being operated instruction and issuing request analysis, first the request of being issued by operational order is sent to each monitoring service by single-threaded or multithreading mode, each monitoring service receives operational order when issuing request, carries out the monitoring service corresponding by each second terminal above-mentioned http request resolving the mobile phone application type, action type, control unique identifier, control title, input content and the direction of operating that obtain in above-mentioned http request.Then according to the communications protocol of first terminal and the second terminal, mobile phone application type, action type, control unique identifier, control title, input content and direction of operating are encapsulated as operational order to send to the second terminal.Second terminal is after receiving this operational order, and the user interface automatization framework according to Android native applications, the active tree at acquisition current application interface, this tree structure comprises all controls, element on this page.Debugging bridge by Android client-server, mobile phone, according to the information in the operational order received, performs on mobile phone tree structure, completes operation.
The present invention also provides for a kind of application operating instruction distribution terminal, and with reference to Fig. 4, in one embodiment, application operating instruction provided by the invention distribution terminal includes:
Acquisition module 100, for obtaining current the second terminal being connected with application operating instruction distribution terminal;
The application operating instruction distribution terminal mainly test to Mobile solution software that the present embodiment provides, specifically, can be distributed to each mobile terminal by the operational order that user inputs.The second terminal quantity being connected with above-mentioned application operating instruction distribution terminal can be configured according to actual needs, in the present embodiment, above-mentioned application operating instruction distribution terminal can be PC, and above-mentioned second terminal can be mobile terminal (such as mobile phone, pad etc.).Second terminal can be passed through USB data line and be connected with application operating instruction distribution terminal foundation.In the present embodiment, above-mentioned first terminal will obtain the corresponding information (type number of such as mobile phone and port numbers etc.) of current the second terminal connected.It should be noted that, the application operating instruction distribution terminal of the present embodiment is above-mentioned first terminal.
Control module 200, be used for controlling described second terminal operating application to be tested;
First receiver module 300, for receiving the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;
In the present embodiment, above-mentioned application to be tested is Mobile solution, each second terminal is mounted on this application to be tested, and by after the application operating instruction distribution all of second terminal operating application to be tested of terminal control, by wherein one second terminal, the graphical interfaces data that this Mobile solution currently running shows are sent to application operating instruction and distribute terminal, application operating instruction distribution terminal controls it and displays on webpage after receiving these graphical interfaces data;Thus the display interface realizing the second terminal is distributed in application operating instruction carries out simultaneous display in terminal.
Second receiver module 400, the operation generation operational order inputted based on described graphical interfaces for receiving webpage issues request;
Parsing module 500, is used for resolving described operational order and issues request, and generate the operational order that described second terminal is corresponding, described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
In the present embodiment, user can be operated instruction input by mouse at the graphical interfaces of web displaying, specifically, can pre-set user and be operated corresponding to the incidence relation of the operational order on mobile phone at the graphical interfaces of web displaying.Such as user carries out clicking or double-clicking the click of corresponding mobile phone on webpage;Character input on the user's corresponding mobile phone of character input on webpage;User's slip clicking dragging (such as click and choose target, and target is dragged under clicking state release single-click operation after preset distance) corresponding mobile phone on webpage.After above-mentioned second terminal is connected with application operating instruction distribution terminal, each second terminal is all enabled a monitoring service, for the request that analyzing web page end sends, and be the operational order that the second terminal can recognise that by resolving the Information encapsulation obtained, namely distribute the communications protocol of terminal and the second terminal according to application operating instruction and be packaged forming operational order.Specifically, when user's input operation on webpage, webpage generates operational order according to the operation that user inputs and issues request, then request below this operational order is sent the monitoring service that extremely each second terminal is corresponding, resolve this operational order by monitoring service and issue request, and the operational order being encapsulated as correspondence sends to the second terminal, the application to be tested for the second terminal performs this operational order.
The embodiment of the present invention distributes the second terminal operating application to be tested described in terminal control by described application operating instruction, application operating instruction distribution terminal receives the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;Described application operating instruction distribution terminal reception webpage generates operational order based on the operation that described graphical interfaces inputs and issues request;Described application operating instruction distribution terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, performs corresponding operation for the second terminal.Owing to the graphical interfaces that terminal adopts the web displaying application to be tested of application operating instruction distribution terminal is distributed in application operating instruction provided by the invention, graphic interface based on this display is operated instruction input, adopt relative to prior art and be operated instruction distribution by script, reduce the difficulty of application testing.
Specifically, with reference to Fig. 5, based on above-described embodiment, in the present embodiment, above-mentioned control module 200 includes:
Allocation units 201, for by each described second terminal distribution uniquely identified port numbers got;
Control unit 202, selects the application to be tested obtained to send extremely described second terminal for entering predetermined directory by webpage according to described port numbers, installs and run described application to be tested controlling described second terminal.
Application operating instruction distribution terminal is for computer, and the second terminal makes detailed description for mobile phone.Specifically, after mobile phone is normally connected with computer by the USB interface on computer, user can distribute, in application operating instruction, the application to be tested being uploaded to this predetermined directory in terminal by webpage entrance predetermined directory selection user.After user selects, bridge funcation order is debugged based on Android client service end, debugging bridge adopts the mode monitoring designated port, allows the ide on computer and mobile phone Android system Direct Communication so that can direct operation management Android system run order.Specifically, the mobile phone of each connection, starts a monitoring service one port numbers of random assortment, the mobile phone that each random port numbers and access recognize is set to mapping relations one to one, and sets up and preserve following form according to mobile phone model and port numbers:
Mobile phone model Port numbers
Semen setariae 3 4008
Huawei P7 3536
Hammer T1 7676
…… ……
Samsung Glaxy S4 9999
Then monitor whether in real time to receive application transport instruction to be tested, when monitoring this transmission instruction, catalogue can be uploaded from the acquiescence of computer, the Files.copyFile method using JAVA programming language is copied to the assigned catalogue of mobile phone, then the user interface automatization framework of Android native applications is initialized, carry out corresponding application to be tested is installed, can directly run the application to be tested installed after installation is complete.After this application to be tested is all installed and run to all of mobile phone, this application graph of a correspondence interface to be tested of operation that a preset mobile phone sends will be received, and control this graphical interfaces and display on webpage.
Specifically, based on above-described embodiment, in the present embodiment, the operation information that the second receiver module 400 described above inputs according to record user specifically for receiving webpage on described graphical interfaces issues request according to the operational order of http protocol generation.
In the present embodiment, the operation information that user is operated on the graphic interface of web displaying is corresponding with the operation on mobile phone.Such as user is undertaken clicking clicking operation on the corresponding mobile phone of (click or double-click) operation by mouse at the graphic interface of web displaying;User is undertaken clicking slide on drag operation correspondence mobile phone by mouse at the graphic interface of web displaying.
When the operation inputted at described graphical interfaces is clicking operation, described operation information includes: operated object mark and click coordinate information;
When the operation inputted at described graphical interfaces is character entering function, described operation information includes: the character information of operated object mark, click coordinate information and input;
When the operation inputted at described graphical interfaces is for clicking drag operation, described operation information includes: origin coordinates, termination coordinate and glide direction.
Above-mentioned object identity is that control button uniquely identifies (No. ID of such as this control button), and aforesaid operations instruction issues request and is http request, namely in the operation every time of user, all can comprise following information:
Name of the information Implication
rule Mobile phone application type
operate Action type, clicks/slides/input
opvalue Control button uniquely identifies, No. ID
textkey Control title
value The content of input
direction Direction of operating
In different operations, the information comprised in http request is different, and the field comprised is consistent, and the content of field is different.
Further, with reference to Fig. 6, based on above-described embodiment, in the present embodiment, above-mentioned application operating instruction distribution terminal also includes:
Monitor and start module, for each described second terminal correspondence is started a monitoring service;
Parsing module 500 includes:
Transmitting element 501, sends to all of monitoring service for described operational order issues request;
Unload unit 502, for described operational order being resolved based on described monitoring service, and distribute terminal according to described application operating instruction and be packaged into the second corresponding executable operational order of terminal with the communications protocol of described second terminal;
Order issues unit 503, for described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
In the present embodiment, owing to each second terminal is all correspondingly provided with a port numbers, bridge funcation order is debugged based on Android client service end, debugging bridge adopts the mode monitoring designated port, corresponding each second terminal can start a monitoring service, so that the port that each the second terminal is corresponding to be monitored.
Specifically, when being operated instruction and issuing request analysis, first the request of being issued by operational order is sent to each monitoring service by single-threaded or multithreading mode, each monitoring service receives operational order when issuing request, carries out the monitoring service corresponding by each second terminal above-mentioned http request resolving the mobile phone application type, action type, control unique identifier, control title, input content and the direction of operating that obtain in above-mentioned http request.Then according to the communications protocol of application operating instruction distribution terminal and the second terminal, mobile phone application type, action type, control unique identifier, control title, input content and direction of operating are encapsulated as operational order to send to the second terminal.Second terminal is after receiving this operational order, and the user interface automatization framework according to Android native applications, the active tree at acquisition current application interface, this tree structure comprises all controls, element on this page.Debugging bridge by Android client-server, mobile phone, according to the information in the operational order received, performs on mobile phone tree structure, completes operation.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (10)

1. an application operating instruction distribution method, it is characterised in that described application operating instruction distribution method comprises the following steps:
First terminal obtains the second terminal being currently connected with described first terminal;
Described first terminal controls described second terminal operating application to be tested;
Described first terminal receives the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;
Described first terminal reception webpage generates operational order based on the operation that described graphical interfaces inputs and issues request;
Described first terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
2. application operating instruction distribution method as claimed in claim 1, it is characterised in that described first terminal controls described second terminal operating application to be tested and includes:
Described first terminal is by each described second terminal distribution uniquely identified port numbers got;
Described first terminal will enter predetermined directory by webpage according to described port numbers and select the application to be tested obtained to send to described second terminal, install and run described application to be tested controlling described second terminal.
3. application operating instruction distribution method as claimed in claim 1, it is characterised in that described first terminal reception webpage issues request based on the operation generation operational order that described graphical interfaces inputs and includes:
The operation information that first terminal reception webpage inputs on described graphical interfaces according to record user issues request according to the operational order of http protocol generation.
4. application operating instruction distribution method as claimed in claim 3, it is characterised in that
When the operation inputted at described graphical interfaces is clicking operation, described operation information includes: operated object mark and click coordinate information;
When the operation inputted at described graphical interfaces is character entering function, described operation information includes: the character information of operated object mark, click coordinate information and input;
When the operation inputted at described graphical interfaces is for clicking drag operation, described operation information includes: origin coordinates, termination coordinate and glide direction.
5. the application operating instruction distribution method as according to any one of Claims 1-4, it is characterised in that described first terminal also includes after obtaining the second terminal being currently connected with described first terminal:
Each described second terminal correspondence is started a monitoring service by described first terminal;
Described first terminal resolves described operational order and issues request, and generates the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, and the step performing corresponding operation for the second terminal includes:
The request that issued by described operational order sends to all of monitoring service;
Based on described monitoring service, described operational order is resolved, and be packaged into the second corresponding executable operational order of terminal with the communications protocol of described second terminal according to described first terminal;
Described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
6. an application operating instruction distribution terminal, it is characterised in that described application operating instruction distribution terminal includes:
Acquisition module, for obtaining current the second terminal being connected with application operating instruction distribution terminal;
Control module, be used for controlling described second terminal operating application to be tested;
First receiver module, for receiving the graphical interfaces of application to be tested described in described second terminal operating, and by graphical interfaces described in web displaying;
Second receiver module, the operation generation operational order inputted based on described graphical interfaces for receiving webpage issues request;
Parsing module, is used for resolving described operational order and issues request, and generate the operational order that described second terminal is corresponding, described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
7. application operating instruction distribution terminal as claimed in claim 6, it is characterised in that described control module includes:
Allocation units, for by each described second terminal distribution uniquely identified port numbers got;
Control unit, selects the application to be tested obtained to send extremely described second terminal for entering predetermined directory by webpage according to described port numbers, installs and run described application to be tested controlling described second terminal.
8. application operating instruction distribution terminal as claimed in claim 6, it is characterised in that the operation information that described second receiver module inputs according to record user specifically for receiving webpage on described graphical interfaces issues request according to the operational order of http protocol generation.
9. application operating instruction distribution terminal as claimed in claim 8, it is characterised in that
When the operation inputted at described graphical interfaces is clicking operation, described operation information includes: operated object mark and click coordinate information;
When the operation inputted at described graphical interfaces is character entering function, described operation information includes: the character information of operated object mark, click coordinate information and input;
When the operation inputted at described graphical interfaces is for clicking drag operation, described operation information includes: origin coordinates, termination coordinate and glide direction.
10. the application operating instruction distribution terminal as according to any one of claim 6 to 9, it is characterised in that described application operating instruction distribution terminal also includes:
Monitor and start module, for each described second terminal correspondence is started a monitoring service;
Described parsing module includes:
Transmitting element, sends to all of monitoring service for described operational order issues request;
Unload unit, for described operational order being resolved based on described monitoring service, and distribute terminal according to described application operating instruction and be packaged into the second corresponding executable operational order of terminal with the communications protocol of described second terminal;
Order issues unit, for described operational order is issued to described second terminal, performs corresponding operation for the second terminal.
CN201410843178.2A 2014-12-30 2014-12-30 Application operating instructs distribution method and terminal Active CN105808073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410843178.2A CN105808073B (en) 2014-12-30 2014-12-30 Application operating instructs distribution method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410843178.2A CN105808073B (en) 2014-12-30 2014-12-30 Application operating instructs distribution method and terminal

Publications (2)

Publication Number Publication Date
CN105808073A true CN105808073A (en) 2016-07-27
CN105808073B CN105808073B (en) 2019-01-29

Family

ID=56419869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410843178.2A Active CN105808073B (en) 2014-12-30 2014-12-30 Application operating instructs distribution method and terminal

Country Status (1)

Country Link
CN (1) CN105808073B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488016A (en) * 2016-09-30 2017-03-08 努比亚技术有限公司 A kind of application control method and mobile terminal
CN107608685A (en) * 2017-10-18 2018-01-19 湖南警察学院 The automatic execution method of Android application
CN109324741A (en) * 2018-09-30 2019-02-12 广州云测信息技术有限公司 A kind of method of controlling operation thereof, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001026338A2 (en) * 1999-10-06 2001-04-12 Sensoria Corporation Apparatus for remote access of vehicle components
CN1513161A (en) * 2001-06-05 2004-07-14 萨纳科公司 Activity control system for networked computer-aided learning
CN104219314A (en) * 2014-09-10 2014-12-17 珠海市君天电子科技有限公司 Electronic device and remote control method and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001026338A2 (en) * 1999-10-06 2001-04-12 Sensoria Corporation Apparatus for remote access of vehicle components
CN1513161A (en) * 2001-06-05 2004-07-14 萨纳科公司 Activity control system for networked computer-aided learning
CN104219314A (en) * 2014-09-10 2014-12-17 珠海市君天电子科技有限公司 Electronic device and remote control method and system thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488016A (en) * 2016-09-30 2017-03-08 努比亚技术有限公司 A kind of application control method and mobile terminal
CN106488016B (en) * 2016-09-30 2020-03-27 努比亚技术有限公司 Application control method and mobile terminal
CN107608685A (en) * 2017-10-18 2018-01-19 湖南警察学院 The automatic execution method of Android application
CN109324741A (en) * 2018-09-30 2019-02-12 广州云测信息技术有限公司 A kind of method of controlling operation thereof, device and system

Also Published As

Publication number Publication date
CN105808073B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN108763086B (en) Script recording method, terminal and computer readable storage medium based on remote true machine
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
CN106649107B (en) Automatic testing method and device for stability of android system
CN107688529B (en) Component debugging method and device
CN102752369B (en) The supplying method of TV applications service and virtual content service platform
CN105975367B (en) Test method and device for mobile equipment
CN104820565B (en) Slide command processing method and terminal
CN105159833A (en) Automatic testing device and method
CN104407980A (en) Mobile application automated testing device and method
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN104821954A (en) Cross-platform remote procedure call method
CN103246606B (en) The performance test methods of ESB platform and system
CN105354025A (en) Service model configuration system and method based on mobile application
CN104246702A (en) Workflow compilation
CN111666217B (en) Method and apparatus for testing code
CN105450463A (en) Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN109871221B (en) System for quickly installing and deploying mobile application software for mobile terminal equipment
CN105808073A (en) Application operation instruction distribution method and terminal
CN104935639A (en) Intelligent terminal, and applied distributed exploitation system and method
CN113672441B (en) Method and device for testing intelligent equipment
CN106550022B (en) Application program distribution control processing method and system
CN109684571A (en) A kind of collecting method and device, storage medium
CN104504587A (en) Advertisement monitoring method and device, electronic apparatus
CN105302364A (en) Android device remote controlling method and system
CN105808419A (en) Application test method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant