CN105808073B - Application operating instructs distribution method and terminal - Google Patents

Application operating instructs distribution method and terminal Download PDF

Info

Publication number
CN105808073B
CN105808073B CN201410843178.2A CN201410843178A CN105808073B CN 105808073 B CN105808073 B CN 105808073B CN 201410843178 A CN201410843178 A CN 201410843178A CN 105808073 B CN105808073 B CN 105808073B
Authority
CN
China
Prior art keywords
terminal
operational order
application
graphical interfaces
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410843178.2A
Other languages
Chinese (zh)
Other versions
CN105808073A (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

Abstract

The invention discloses a kind of application operating instruction distribution method the following steps are included: first terminal obtains the second terminal currently connecting with the first terminal;The first terminal controls the second terminal and runs application to be tested;The first terminal receives the graphical interfaces that the second terminal runs the application to be tested, and passes through graphical interfaces described in web displaying;The first terminal receives webpage and issues request based on the operation generation operational order that the graphical interfaces inputs;The first terminal parses the operational order and issues request, and generates the corresponding operational order of the second terminal, and the operational order is issued to the second terminal, so that second terminal executes corresponding operation.The invention also discloses a kind of application operatings to instruct distribution terminal.Present invention reduces the difficulty of application test.

Description

Application operating instructs distribution method and terminal
Technical field
The present invention relates to using the field of test technology more particularly to application operating instruction distribution method and terminal.
Background technique
Currently, generalling use automatized script on intelligent devices and recording and playback is carried out using compatibility test, the survey Examination scheme must be operated by the code that application is write, therefore to the more demanding of test, the difficulty of test is larger.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of application operating instruction distribution method and terminals, it is intended to reduce application and survey The difficulty of examination.
To achieve the above object, a kind of application operating instruction distribution method provided by the invention the following steps are included:
First terminal obtains the second terminal currently connecting with the first terminal;
The first terminal controls the second terminal and runs application to be tested;
The first terminal receives the graphical interfaces that the second terminal runs the application to be tested, and aobvious by webpage Show the graphical interfaces;
The first terminal receives webpage and issues request based on the operation generation operational order that the graphical interfaces inputs;
The first terminal parses the operational order and issues request, and generates the corresponding operation life of the second terminal It enables, the operational order is issued to the second terminal, so that second terminal executes corresponding operation.
Preferably, the first terminal, which controls the second terminal and runs application to be tested, includes:
Each second terminal got is distributed the port numbers of unique identification by the first terminal;
The first terminal will enter the application to be tested that predetermined directory selection obtains by webpage according to the port numbers It is sent to the second terminal, installs to control the second terminal and runs the application to be tested.
Preferably, the first terminal is received webpage and is issued based on the operation generation operational order that the graphical interfaces inputs Request includes:
First terminal receives webpage and is assisted according to the operation information that record user inputs on the graphical interfaces according to http The operational order that view generates issues request.
Preferably, when the operation inputted in the graphical interfaces is clicking operation, the operation information includes: operation pair As mark and click coordinate information;
When the operation inputted in the graphical interfaces is character entering function, the operation information includes: operation object The character information of mark, click coordinate information and input;
When the operation inputted in the graphical interfaces be click drag operation when, the operation information include: origin coordinates, Terminating coordinates and glide direction.
Preferably, after the second terminal that the first terminal acquisition is currently connect with the first terminal further include:
The first terminal is monitored the corresponding starting of each second terminal one and is serviced;
The first terminal parses the operational order and issues request, and generates the corresponding operation life of the second terminal It enables, the operational order is issued to the second terminal, so that the step of second terminal execution corresponding operation includes:
The operational order is issued into request and is sent to all monitoring services;
The operational order is parsed based on monitoring service, and eventually according to the first terminal and described second The communications protocol at end is packaged into the executable operational order of corresponding second terminal;
The operational order is issued to the second terminal, so that second terminal executes corresponding operation.
In addition, to achieve the above object, the present invention also provides a kind of application operating instruction distribution terminals to include:
Module is obtained, for obtaining the second terminal for currently distribution terminal being instructed to connect with application operating;
Control module runs application to be tested for controlling the second terminal;
First receiving module runs the graphical interfaces of the application to be tested for receiving the second terminal, and passes through Graphical interfaces described in web displaying;
Second receiving module, the operation inputted for receiving webpage based on the graphical interfaces, which is generated operational order and issues, asks It asks;
Parsing module issues request for parsing the operational order, and generates the corresponding operation life of the second terminal It enables, the operational order is issued to the second terminal, so that second terminal executes corresponding operation.
Preferably, the control module includes:
Allocation unit, for each second terminal got to be distributed to the port numbers of unique identification;
Control unit, for according to the port numbers application to be tested that predetermined directory selection obtains will to be entered by webpage It is sent to the second terminal, installs to control the second terminal and runs the application to be tested.
Preferably, it is defeated on the graphical interfaces according to record user to be specifically used for reception webpage for second receiving module The operation information entered issues request according to the operational order that http agreement generates.
Preferably, when the operation inputted in the graphical interfaces is clicking operation, the operation information includes: operation pair As mark and click coordinate information;
When the operation inputted in the graphical interfaces is character entering function, the operation information includes: operation object The character information of mark, click coordinate information and input;
When the operation inputted in the graphical interfaces be click drag operation when, the operation information include: origin coordinates, Terminating coordinates and glide direction.
Preferably, the application operating instruction distribution terminal further include:
Starting module is monitored, is serviced for monitoring the corresponding starting of each second terminal one;
The parsing module includes:
Transmission unit is sent to all monitoring services for the operational order to be issued request;
It unloads unit, for being parsed based on monitorings service to the operational order, and according to application behaviour Make instruction distribution terminal and is packaged into the executable operational order of corresponding second terminal with the communications protocol of the second terminal;
Order issuance unit, for the operational order to be issued to the second terminal, so that second terminal executes phase The operation answered.
The embodiment of the present invention controls the second terminal by the first terminal and runs application to be tested, and first terminal connects The graphical interfaces that the second terminal runs the application to be tested is received, and passes through graphical interfaces described in web displaying;Described One terminal receives webpage and issues request based on the operation generation operational order that the graphical interfaces inputs;The first terminal parsing The operational order issues request, and generates the corresponding operational order of the second terminal, and the operational order is issued to institute Second terminal is stated, so that second terminal executes corresponding operation.Since application operating provided by the invention instruction distribution method is adopted With the graphical interfaces of the web displaying of first terminal application to be tested, it is defeated that the graphic interface based on the display carries out operational order Enter, carry out operational order distribution using by scripting language compared with the existing technology, reduces the difficulty using test.
Detailed description of the invention
Fig. 1 is the flow diagram that application operating of the present invention instructs one embodiment of distribution method;
Fig. 2 is the refinement flow diagram that control second terminal runs application to be tested in Fig. 1;
Fig. 3 is the flow diagram that application operating of the present invention instructs another embodiment of distribution method;
Fig. 4 is the functional block diagram of application operating of the present invention instruction distribution one embodiment of terminal;
Fig. 5 is the refinement the functional block diagram of control module in Fig. 4;
Fig. 6 is the refinement the functional block diagram of parsing module in Fig. 4.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of application operating instruction distribution method, and referring to Fig.1, in one embodiment, which refers to The distribution method is enabled to include:
Step S10, first terminal obtain the second terminal currently connecting with the first terminal;
Application operating instruction distribution method provided in this embodiment is mainly used in mobile terminal to mobile application software Test, specifically, can by user input operational order be distributed to each mobile terminal.Second connect with above-mentioned first terminal Terminal quantity 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 Think mobile terminal (such as mobile phone, pad etc.).Second terminal can establish connection by USB data line and first terminal.This implementation In example, above-mentioned first terminal will acquire corresponding information (such as the type number and port numbers of mobile phone of the second terminal currently connected Deng).
Step S20, the first terminal control the second terminal and run application to be tested;
Step S30, the first terminal receives the second terminal and runs the graphical interfaces of the application to be tested, and leads to Cross graphical interfaces described in web displaying;
In the present embodiment, above-mentioned application to be tested is mobile application, this is mounted in each second terminal and to be tested is answered With, and controlled after all second terminal runs application to be tested by first terminal, it will currently be transported by a wherein second terminal The graphical interfaces data that the row mobile application is shown are sent to first terminal, after first terminal receives the graphical interfaces data, It is controlled to be shown on webpage;To realize that the display interface of second terminal carries out simultaneous display on first terminal.
Step S40, the first terminal are received webpage and are generated under operational order based on the operation that the graphical interfaces inputs Hair request;
Step S50, the first terminal parses the operational order and issues request, and it is corresponding to generate the second terminal The operational order is issued to the second terminal by operational order, so that second terminal executes corresponding operation.
In the present embodiment, user can carry out operational order input in the graphical interfaces of web displaying by mouse, specifically, The incidence relation that user carries out the operational order that operation corresponds on mobile phone in the graphical interfaces of web displaying can be preset.Example As user clicks on webpage or double-click the click of corresponding mobile phone;Character input of the user on webpage corresponds on mobile phone Character input;Click dragging of the user on webpage (such as is clicked and chooses target, and target dragged under state of clicking preset Single-click operation is discharged after distance) sliding of corresponding mobile phone.After above-mentioned second terminal is connect with first terminal, to each second terminal A monitoring service is enabled, for the request that analyzing web page end is sent, and the Information encapsulation that parsing is obtained is second terminal The operational order that can be identified, i.e., be packaged formation operation order according to the communications protocol of first terminal and second terminal.Specifically Ground, when user inputs operation on webpage, the operation that webpage is inputted according to user generates operational order and issues request, then will Request is sent to the corresponding monitoring service of each second terminal below the operational order, parses the operational order by monitoring to service Request is issued, and is encapsulated as corresponding operational order and is sent to second terminal, so that the application execution to be tested of second terminal should Operational order.
The embodiment of the present invention controls the second terminal by the first terminal and runs application to be tested, and first terminal connects The graphical interfaces that the second terminal runs the application to be tested is received, and passes through graphical interfaces described in web displaying;Described One terminal receives webpage and issues request based on the operation generation operational order that the graphical interfaces inputs;The first terminal parsing The operational order issues request, and generates the corresponding operational order of the second terminal, and the operational order is issued to institute Second terminal is stated, so that second terminal executes corresponding operation.Since application operating provided by the invention instruction distribution method is adopted With the graphical interfaces of the web displaying of first terminal application to be tested, it is defeated that the graphic interface based on the display carries out operational order Enter, carry out operational order distribution using by scripting language compared with the existing technology, reduces the difficulty using test.
Specifically, referring to Fig. 2, based on the above embodiment, in the present embodiment, above-mentioned steps S20 includes:
Each second terminal got is distributed the port numbers of unique identification by step S21, the first terminal;
Step S22, the first terminal according to the port numbers by by webpage enter predetermined directory selection obtain to Test application is sent to the second terminal, installs to control the second terminal and runs the application to be tested.
By taking computer as an example, second terminal takes the mobile phone as an example to be explained in detail first terminal.Specifically, when mobile phone passes through electricity After USB interface on brain is normally connect with computer, user can enter predetermined directory by webpage on first terminal and select user It is uploaded to the application to be tested of the predetermined directory.After user's selection, bridge funcation order is debugged based on Android client service end, Bridge is debugged using monitoring designated port by the way of, allows electronic integrated driver and mobile phone Android system Direct Communication on computer, Allow to direct operational administrative Android system and runs order.Specifically, the mobile phone of each connection starts a monitoring clothes Business, and is randomly assigned a port number, and the mobile phone that each random port numbers and access recognize is set as one-to-one Mapping relations, and established according to mobile phone model and port numbers and save following table:
Mobile phone model Port numbers
Millet 3 4008
Huawei P7 3536
Hammer T1 7676
…… ……
Samsung Glaxy S4 9999
Then whether real-time monitoring receives application transport to be tested and instructs, can be from computer when monitoring transmission instruction Default upload catalogue, the specified directory of mobile phone is copied to using the Files.copyFile method of JAVA programming language, then The user interface automation framework for initializing Android primary application, carries out installing corresponding application to be tested, after installation is complete Installed application to be tested can directly be run.After all mobile phones are all installed and run the application to be tested, it will receive The corresponding graphical interfaces of the operation that a preset mobile phone the is sent application to be tested, and control the graphical interfaces and carried out on webpage Display.
Specifically, based on the above embodiment, in the present embodiment, above-mentioned steps S40 includes that the first terminal receives webpage Operation generation operational order based on graphical interfaces input issues request and includes:
First terminal receives webpage and is assisted according to the operation information that record user inputs on the graphical interfaces according to http The operational order that view generates issues request.
In the present embodiment, the operation in operation information and mobile phone that user is operated on the graphic interface of web displaying It is corresponding.Such as user is clicked by mouse and (clicks or double-click) point on the corresponding mobile phone of operation in the graphic interface of web displaying Hit operation;User carries out clicking drag operation in the graphic interface of web displaying by mouse corresponds to slide on mobile phone.
When the operation inputted in the graphical interfaces is clicking operation, the operation information includes: operated object mark With click coordinate information;
When the operation inputted in the graphical interfaces is character entering function, the operation information includes: operation object The character information of mark, click coordinate information and input;
When the operation inputted in the graphical interfaces be click drag operation when, the operation information include: origin coordinates, Terminating coordinates and glide direction.
Above-mentioned object identity is control button unique identification (such as ID number of the control button), and aforesaid operations instruction issues Request is http request, i.e., all can include following information in each operation of user:
Name of the information Meaning
rule Mobile phone application type
operate Action type, click/sliding/input
opvalue Control button unique identification, ID number
textkey Control title
value The content of input
direction Operate direction
The information for including in different operation, http request is different, and the field for including is consistent, and the content of field is different.
Further, referring to Fig. 3, based on the above embodiment, in the present embodiment, after above-mentioned S10 further include:
Step S60, the first terminal are monitored the corresponding starting of each second terminal one and are serviced;
Above-mentioned S50 step includes:
The operational order is issued request and is sent to all monitoring services by step S51;
Step S52 parses the operational order based on monitoring service, and according to the first terminal and institute The communications protocol for stating second terminal is packaged into the executable operational order of corresponding second terminal;
The operational order is issued to the second terminal by step S53, so that second terminal executes corresponding operation.
In the present embodiment, since each second terminal is correspondingly provided with a port number, it is based on Android client service end Bridge funcation order is debugged, debugs bridge by the way of monitoring designated port, each second terminal starting one can be corresponded to and monitor service, To monitor the corresponding port of each second terminal.
Specifically, when progress operational order issues request analysis, operational order is issued into request first and passes through single thread Or the mode of multithreading is sent to each monitoring service, and it is each when monitoring service and receiving operational order and issue request, it will be by each Second terminal is corresponding monitor service to above-mentioned http request carry out parsing obtain mobile phone application type in above-mentioned http request, Action type, control unique identifier, control title, input content and operation direction.Then by mobile phone application type, operation Type, control unique identifier, control title, input content and operation direction according to first terminal and second terminal communication Protocol encapsulation is that operational order is sent to second terminal.Second terminal is answered after receiving the operational order according to Android primary User interface automation framework, obtains the active tree at current application interface, which includes to own on the page Control, element.Bridge is debugged by Android client-server, mobile phone is according to the information in the operational order received, in mobile phone tree It is executed in shape structure, completes operation.
The present invention also provides a kind of application operatings to instruct distribution terminal, and referring to Fig. 4, in one embodiment, the present invention is provided Application operating instruction distribution terminal include:
Module 100 is obtained, for obtaining the second terminal for currently distribution terminal being instructed to connect with application operating;
Application operating instruction distribution terminal provided in this embodiment, specifically, can mainly to the test of mobile application software The operational order that user inputs is distributed to each mobile terminal.The second terminal for instructing distribution terminal to connect with above-mentioned application operating Quantity can be configured according to actual needs, and in the present embodiment, above-mentioned application operating instruction distribution terminal can be PC, and above-mentioned the Two terminals can be mobile terminal (such as mobile phone, pad etc.).Second terminal can pass through USB data line and application operating instruction point Hair terminal establishes connection.In the present embodiment, above-mentioned first terminal will acquire the second terminal currently connected corresponding information (such as The type number of mobile phone and port numbers etc.).It should be noted that the application operating instruction distribution terminal of the present embodiment is above-mentioned first Terminal.
Control module 200 runs application to be tested for controlling the second terminal;
First receiving module 300 runs the graphical interfaces of the application to be tested for receiving the second terminal, and leads to Cross graphical interfaces described in web displaying;
In the present embodiment, above-mentioned application to be tested is mobile application, this is mounted in each second terminal and to be tested is answered With, and after instructing all second terminal of distribution terminal control to run application to be tested by application operating, by wherein one second Terminal will currently run the graphical interfaces data that the mobile application is shown and be sent to application operating instruction distribution terminal, application operating After instruction distribution terminal receives the graphical interfaces data, controls it and shown on webpage;To realize second terminal Display interface instructs in application operating and carries out simultaneous display in distribution terminal.
Second receiving module 400 is generated under operational order for receiving webpage based on the operation that the graphical interfaces inputs Hair request;
Parsing module 500 issues request for parsing the operational order, and generates the corresponding operation of the second terminal Order, is issued to the second terminal for the operational order, so that second terminal executes corresponding operation.
In the present embodiment, user can carry out operational order input in the graphical interfaces of web displaying by mouse, specifically, The incidence relation that user carries out the operational order that operation corresponds on mobile phone in the graphical interfaces of web displaying can be preset.Example As user clicks on webpage or double-click the click of corresponding mobile phone;Character input of the user on webpage corresponds on mobile phone Character input;Click dragging of the user on webpage (such as is clicked and chooses target, and target dragged under state of clicking preset Single-click operation is discharged after distance) sliding of corresponding mobile phone.It is right after above-mentioned second terminal instructs distribution terminal to connect with application operating Each second terminal enables a monitoring service, and for the request that analyzing web page end is sent, and the information that parsing is obtained is sealed Dress is the operational order that can identify of second terminal, i.e., according to application operating instruct the communications protocol of distribution terminal and second terminal into Row encapsulation formation operation order.Specifically, when inputting operation on webpage as user, webpage is generated according to the operation that user inputs Operational order issues request, and request below the operational order is then sent to the corresponding monitoring of each second terminal and is serviced, is led to It crosses monitoring service and parses the operational order and issue request, and be encapsulated as corresponding operational order and be sent to second terminal, for the The application execution to be tested of the two terminals operational order.
The embodiment of the present invention instructs second terminal described in distribution terminal control to run to be tested answer by the application operating With application operating instruction distribution terminal receives the second terminal and runs the graphical interfaces of the application to be tested, and passes through net Page shows the graphical interfaces;The application operating instruction distribution terminal receives the operation that webpage is inputted based on the graphical interfaces It generates operational order and issues request;The application operating instruction distribution terminal parses the operational order and issues request, and generates The corresponding operational order of the second terminal, is issued to the second terminal for the operational order, for second terminal execution Corresponding operation.Since application operating provided by the invention instructs distribution terminal using the webpage of application operating instruction distribution terminal The graphical interfaces for showing application to be tested, the graphic interface based on the display carry out operational order input, compared with the existing technology Operational order distribution is carried out using by scripting language, reduces the difficulty using test.
Specifically, referring to Fig. 5, based on the above embodiment, in the present embodiment, above-mentioned control module 200 includes:
Allocation unit 201, for each second terminal got to be distributed to the port numbers of unique identification;
Control unit 202, for according to the port numbers the to be tested of predetermined directory selection acquisition will to be entered by webpage Using being sent to the second terminal, installs to control the second terminal and run the application to be tested.
By taking computer as an example, second terminal takes the mobile phone as an example to be explained in detail application operating instruction distribution terminal.Specifically, After mobile phone is normally connect by the USB interface on computer with computer, user can instruct in application operating to be passed through in distribution terminal Webpage enters the application to be tested that predetermined directory selection user is uploaded to the predetermined directory.After user's selection, based on Android visitor Family end server-side debugs bridge funcation order, debugs bridge by the way of monitoring designated port, allows electronics integrated driving on computer Device and mobile phone Android system Direct Communication, allow to direct operational administrative Android system and run order.Specifically, Mei Gelian The mobile phone connect starts a monitoring service, and is randomly assigned a port number, each random port numbers and access recognize Mobile phone be set as one-to-one mapping relations, and established according to mobile phone model and port numbers and save following table:
Mobile phone model Port numbers
Millet 3 4008
Huawei P7 3536
Hammer T1 7676
…… ……
Samsung Glaxy S4 9999
Then whether real-time monitoring receives application transport to be tested and instructs, can be from computer when monitoring transmission instruction Default upload catalogue, the specified directory of mobile phone is copied to using the Files.copyFile method of JAVA programming language, then The user interface automation framework for initializing Android primary application, carries out installing corresponding application to be tested, after installation is complete Installed application to be tested can directly be run.After all mobile phones are all installed and run the application to be tested, it will receive The corresponding graphical interfaces of the operation that a preset mobile phone the is sent application to be tested, and control the graphical interfaces and carried out on webpage Display.
Specifically, based on the above embodiment, in the present embodiment, the second receiving module 400 described above is specifically used for receiving Webpage is issued according to the operation information that record user inputs on the graphical interfaces according to the operational order that http agreement generates Request.
In the present embodiment, the operation in operation information and mobile phone that user is operated on the graphic interface of web displaying It is corresponding.Such as user is clicked by mouse and (clicks or double-click) point on the corresponding mobile phone of operation in the graphic interface of web displaying Hit operation;User carries out clicking drag operation in the graphic interface of web displaying by mouse corresponds to slide on mobile phone.
When the operation inputted in the graphical interfaces is clicking operation, the operation information includes: operated object mark With click coordinate information;
When the operation inputted in the graphical interfaces is character entering function, the operation information includes: operation object The character information of mark, click coordinate information and input;
When the operation inputted in the graphical interfaces be click drag operation when, the operation information include: origin coordinates, Terminating coordinates and glide direction.
Above-mentioned object identity is control button unique identification (such as ID number of the control button), and aforesaid operations instruction issues Request is http request, i.e., all can include following information in each operation of user:
Name of the information Meaning
rule Mobile phone application type
operate Action type, click/sliding/input
opvalue Control button unique identification, ID number
textkey Control title
value The content of input
direction Operate direction
The information for including in different operation, http request is different, and the field for including is consistent, and the content of field is different.
Further, referring to Fig. 6, based on the above embodiment, in the present embodiment, above-mentioned application operating instruction distribution terminal is also Include:
Starting module is monitored, is serviced for monitoring the corresponding starting of each second terminal one;
Parsing module 500 includes:
Transmission unit 501 is sent to all monitoring services for the operational order to be issued request;
It unloads unit 502, the operational order is parsed for being serviced based on monitorings, and according to the application Operational order distributes terminal and is packaged into the executable operational order of corresponding second terminal with the communications protocol of the second terminal;
Order issuance unit 503, for the operational order to be issued to the second terminal, for second terminal execution Corresponding operation.
In the present embodiment, since each second terminal is correspondingly provided with a port number, it is based on Android client service end Bridge funcation order is debugged, debugs bridge by the way of monitoring designated port, each second terminal starting one can be corresponded to and monitor service, To monitor the corresponding port of each second terminal.
Specifically, when progress operational order issues request analysis, operational order is issued into request first and passes through single thread Or the mode of multithreading is sent to each monitoring service, and it is each when monitoring service and receiving operational order and issue request, it will be by each Second terminal is corresponding monitor service to above-mentioned http request carry out parsing obtain mobile phone application type in above-mentioned http request, Action type, control unique identifier, control title, input content and operation direction.Then by mobile phone application type, operation Type, control unique identifier, control title, input content and operation direction instruct distribution terminal and the according to application operating The communications protocol of two terminals is encapsulated as operational order and is sent to second terminal.Second terminal is after receiving the operational order, root According to the user interface automation framework that Android primary is applied, the active tree at current application interface is obtained, which includes All controls, element on the page.Bridge is debugged by Android client-server, mobile phone is according to the letter in the operational order received Breath, is executed in mobile phone tree structure, completes operation.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of application operating instructs distribution method, which is characterized in that the application operating instruction distribution method includes following step It is rapid:
First terminal obtains the second terminal currently connecting with the first terminal;
The first terminal controls the second terminal and runs application to be tested;
The first terminal receives the graphical interfaces that the second terminal runs the application to be tested, and passes through web displaying institute State graphical interfaces;
The first terminal receives webpage and issues request based on the operation generation operational order that the graphical interfaces inputs;
The first terminal parses the operational order and issues request, and generates the corresponding operational order of the second terminal, will The operational order is issued to the second terminal, so that second terminal executes corresponding operation;
Wherein, the operation pair in operation information and the second terminal that user is operated on the graphical interfaces of web displaying It answers.
2. application operating as described in claim 1 instructs distribution method, which is characterized in that the first terminal control described the The application to be tested of two terminal operatings includes:
Each second terminal got is distributed the port numbers of unique identification by the first terminal;
The first terminal will enter the application to be tested that predetermined directory selection obtains by webpage according to the port numbers and send To the second terminal, installs to control the second terminal and run the application to be tested.
3. application operating as described in claim 1 instructs distribution method, which is characterized in that the first terminal receives webpage base Issuing request in the operation generation operational order of graphical interfaces input includes:
It is raw according to http agreement that first terminal receives the operation information that webpage inputs on the graphical interfaces according to record user At operational order issue request.
4. application operating as claimed in claim 3 instructs distribution method, which is characterized in that
When the operation inputted in the graphical interfaces is clicking operation, the operation information includes: operated object mark and point Hit coordinate information;
When the operation inputted in the graphical interfaces be character entering function when, the operation information include: operated object mark, The character information of click coordinate information and input;
When the operation inputted in the graphical interfaces is to click drag operation, the operation information includes: origin coordinates, terminates Coordinate and glide direction.
5. application operating according to any one of claims 1 to 4 instructs distribution method, which is characterized in that described first eventually End obtains after the second terminal currently connecting with the first terminal further include:
The first terminal is monitored the corresponding starting of each second terminal one and is serviced;
The first terminal parses the operational order and issues request, and generates the corresponding operational order of the second terminal, will The operational order is issued to the second terminal, so that the step of second terminal execution corresponding operation includes:
The operational order is issued into request and is sent to all monitoring services;
The operational order is parsed based on monitoring service, and according to the first terminal and the second terminal Communications protocol is packaged into the executable operational order of corresponding second terminal;
The operational order is issued to the second terminal, so that second terminal executes corresponding operation.
6. a kind of application operating instruction distribution terminal, which is characterized in that the application operating instruction distributes terminal and includes:
Module is obtained, for obtaining the second terminal for currently distribution terminal being instructed to connect with application operating;
Control module runs application to be tested for controlling the second terminal;
First receiving module runs the graphical interfaces of the application to be tested for receiving the second terminal, and passes through webpage Show the graphical interfaces;
Second receiving module issues request based on the operation generation operational order that the graphical interfaces inputs for receiving webpage;
Parsing module issues request for parsing the operational order, and generates the corresponding operational order of the second terminal, will The operational order is issued to the second terminal, so that second terminal executes corresponding operation;
Wherein, the operation pair in operation information and the second terminal that user is operated on the graphical interfaces of web displaying It answers.
7. application operating as claimed in claim 6 instruction distribution terminal, which is characterized in that the control module includes:
Allocation unit, for each second terminal got to be distributed to the port numbers of unique identification;
Control unit is sent for will enter the application to be tested that predetermined directory selection obtains by webpage according to the port numbers To the second terminal, installs to control the second terminal and run the application to be tested.
8. application operating instruction distribution terminal as claimed in claim 6, which is characterized in that second receiving module is specifically used Referred to according to the operation information that record user inputs on the graphical interfaces according to the operation that http agreement generates in receiving webpage Order issues request.
9. application operating instruction distribution terminal as claimed in claim 8, which is characterized in that
When the operation inputted in the graphical interfaces is clicking operation, the operation information includes: operated object mark and point Hit coordinate information;
When the operation inputted in the graphical interfaces be character entering function when, the operation information include: operated object mark, The character information of click coordinate information and input;
When the operation inputted in the graphical interfaces is to click drag operation, the operation information includes: origin coordinates, terminates Coordinate and glide direction.
10. the application operating instruction distribution terminal as described in any one of claim 6 to 9, which is characterized in that the application behaviour Make instruction distribution terminal further include:
Starting module is monitored, is serviced for monitoring the corresponding starting of each second terminal one;
The parsing module includes:
Transmission unit is sent to all monitoring services for the operational order to be issued request;
It unloads unit, the operational order is parsed for being serviced based on monitorings, and is referred to according to the application operating Distribution terminal is enabled to be packaged into the executable operational order of corresponding second terminal with the communications protocol of the second terminal;
Order issuance unit, for the operational order to be issued to the second terminal, so that second terminal executes accordingly Operation.
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 CN105808073A (en) 2016-07-27
CN105808073B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001026329A2 (en) * 1999-10-06 2001-04-12 Sensoria Corporation Method for the networking of sensors
FI120065B (en) * 2001-06-05 2009-06-15 Sanako Oy A system for managing online learning activities
CN104219314B (en) * 2014-09-10 2017-07-28 珠海市君天电子科技有限公司 The method and system of electronic equipment, remotely controlling electronic devices

Also Published As

Publication number Publication date
CN105808073A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN108733552B (en) FPGA remote debugging system and remote debugging method
CN108182060B (en) Hybrid application point burying method, mobile terminal and system
CN104820565B (en) Slide command processing method and terminal
CN103051693B (en) Apparatus control method and mobile communication terminal
CN108763086B (en) Script recording method, terminal and computer readable storage medium based on remote true machine
CN103312850B (en) A kind of mobile phone automatized test macro and method of work
CN106776294B (en) Automatic android mobile phone testing method and system
CN106547687A (en) Application testing method, apparatus and system
US10817819B2 (en) Workflow compilation
CN102752369B (en) The supplying method of TV applications service and virtual content service platform
CN104598380A (en) Method and system for automatic testing based on control
CN105808073B (en) Application operating instructs distribution method and terminal
CN103152392B (en) Installation kit supplying method, acquisition methods, equipment and system
JP2015534688A (en) Application development, compilation, and debugging method and apparatus
CN105120483B (en) Automatic testing method and system for compatibility of smart card and mobile terminal
CN105653438B (en) The striding course automated testing method and device of Android device
US11245601B2 (en) Automated integrated test system and method thereof
CN107608901A (en) Method of testing and device based on Jmteter, storage medium, electronic equipment
CN104102578B (en) Test method and system and operation terminal
CN111400167A (en) Redfish service compliance verification method, device, equipment and medium
CN105302364B (en) It is remotely controlled the method and system of Android device
Huang et al. Remote mobile test system: a mobile phone cloud for application testing
CN111159047A (en) Android equipment auxiliary debugging device with visual interface and operation method thereof
CN113672441B (en) Method and device for testing intelligent equipment
CN112333057A (en) Intelligent household equipment distribution network testing method and device, execution machine and storage medium

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