CN105808419A - Application test method and terminal - Google Patents

Application test method and terminal Download PDF

Info

Publication number
CN105808419A
CN105808419A CN201410849909.4A CN201410849909A CN105808419A CN 105808419 A CN105808419 A CN 105808419A CN 201410849909 A CN201410849909 A CN 201410849909A CN 105808419 A CN105808419 A CN 105808419A
Authority
CN
China
Prior art keywords
terminal
tested
application
operation information
operational order
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
CN201410849909.4A
Other languages
Chinese (zh)
Other versions
CN105808419B (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 CN201410849909.4A priority Critical patent/CN105808419B/en
Publication of CN105808419A publication Critical patent/CN105808419A/en
Application granted granted Critical
Publication of CN105808419B publication Critical patent/CN105808419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an application test method. The application test method comprises the following steps that a first terminal obtains a second terminal currently connected with the first terminal; the first terminal controls the second terminal to run a to-be-tested application; the first terminal judges whether preset operation information exists or not in a preset storage region, wherein the operation information is operation information generated by performing operation input in a graphic interface displayed based on the to-be-tested application; and if yes, the first terminal generates an operation command corresponding to the second terminal and sends the operation command to the second terminal for enabling the second terminal to test the to-be-tested application according to the operation command. The invention furthermore discloses an application test terminal. According to the method and terminal, the difficulty in application testing is lowered.

Description

Application testing method and terminal
Technical field
The present invention relates to application testing technical field, particularly relate to application testing 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 testing method of offer and terminal, it is intended to reduce the difficulty of application testing.
For achieving the above object, a kind of application testing 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 judges whether there is preset operation information in territory, preset memory areas;Described operation information is based on being operated the operation information that input produces on the graphical interfaces shown by described application to be tested;
If so, then described first terminal generates, according to described preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
Preferably, described first terminal also includes after judging whether to there is preset operation information in territory, preset memory areas:
When being absent from described operation information in territory, described preset memory areas, described first terminal receives the operation of described second terminal transmission graphical interfaces shown by described application to be tested, and by graphical interfaces described in web displaying;
Described first terminal obtains webpage and detects user based on being operated the operation information that input produces on described graphical interfaces;
The operation information that described operation input produces is saved as described preset operation information by described first terminal;And proceed to the described operational order corresponding according to described second terminal of preset operation information generation of execution, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
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, 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 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 generates, according to preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, and the step according to described operational order, described application to be tested tested for the second terminal includes:
Described operation information is converted into operational order, and sends to all of monitoring service;
Based on the described operational order that described monitoring service receives, described operational order is issued to described second terminal by the communications protocol according to described first terminal Yu described second terminal, described application to be tested is tested according to described operational order for the second terminal.
Additionally, for achieving the above object, the present invention also provides for a kind of application testing terminal and includes:
First acquisition module, for obtaining the second terminal that current and described application testing terminal is connected;
Control module, be used for controlling described second terminal operating application to be tested;
Judge module, is used for judging whether there is preset operation information in territory, preset memory areas;Described operation information is based on being operated the operation information that input produces on the graphical interfaces shown by described application to be tested;
Processing module, for when there is preset operation information in territory, described preset memory areas, the operational order that described second terminal is corresponding is generated according to described preset operation information, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
Preferably, described application testing terminal also includes:
Display module, for when being absent from described operation information in territory, described preset memory areas, what receive described second terminal transmission runs the graphical interfaces shown by described application to be tested, and by graphical interfaces described in web displaying;
Second acquisition module, detects user based on being operated the operation information that input produces on described graphical interfaces for obtaining webpage;
Storage module, for saving as described preset operation information by the operation information that described operation input produces;And performed the described operational order corresponding according to described second terminal of preset operation information generation by described processing module, and described operational order is issued to described second terminal, for the operation that described application to be tested is tested by the second terminal according to described operational order.
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 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, described application testing terminal also includes:
Monitor and start module, for each described second terminal correspondence is started a monitoring service;
Described processing module includes:
Converting unit, for described operation information is converted into operational order, and sends to all of monitoring service;
Transmitting element, for the described operational order received based on described monitoring service, described operational order is issued to described second terminal by the communications protocol according to described application testing terminal Yu described second terminal, described application to be tested is tested according to described operational order for the second terminal.
The embodiment of the present invention obtains the second terminal being currently connected with described first terminal by first terminal;Control described second terminal operating application to be tested;Judge in territory, preset memory areas, whether there is preset operation information;When there is preset operation information in territory, first terminal preset memory areas, described first terminal generates, according to described preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.Owing to application testing method provided by the invention and terminal adopt preset operation information to be operated order distribution, adopt relative to prior art and be operated instruction distribution by script, achieve and be automatically operated instruction distribution according to historical operation information, reduce the difficulty of application testing.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of application testing 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 another embodiment of application testing method of the present invention;
Fig. 4 is the high-level schematic functional block diagram of application testing terminal one embodiment of the present invention;
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 processing 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 testing method, and with reference to Fig. 1, in one embodiment, this application testing method includes:
Step S10, first terminal obtains the second terminal being currently connected with described first terminal;
The test that the application testing 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;
In the present embodiment, above-mentioned application to be tested is Mobile solution, is mounted on this application to be tested, and controls all of second terminal operating application to be tested by first terminal in each second terminal.
Step S30, described first terminal judges whether there is preset operation information in territory, preset memory areas;Described operation information is based on being operated the operation information that input produces on the graphical interfaces shown by described application to be tested;If so, step S40 is then performed;
Step S40, described first terminal generates, according to described preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
In the present embodiment, the type of aforesaid operations information can be configured according to actual needs.Specifically, after the above-mentioned second above-mentioned application to be tested of terminal operating, can operation interface corresponding to this application to be tested displayed on the terminals, and this operation interface is sent to first terminal, display for first terminal, user can be operated input on first terminal, to produce the operation information of correspondence.
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.
It should be noted that, above-mentioned preset operation information can be operated, for the last time, the operation information that test preserves.Preferably, in the present embodiment, also include after above-mentioned steps S30:
Step S50, when being absent from described operation information in territory, described preset memory areas, described first terminal receives the operation of described second terminal transmission graphical interfaces shown by described application to be tested, and by graphical interfaces described in web displaying;
Step S60, described first terminal obtains webpage and detects user based on being operated the operation information that input produces on described graphical interfaces;
Step S70, the operation information that described operation input produces is saved as described preset operation information by described first terminal;And proceed to the described step S40 of execution.
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.
Should be noted that, above-mentioned object identity is that control button uniquely identifies (No. ID of such as this control button), after the input of operation every time that user carries out on above-mentioned graphical interfaces, it is possible to the data based on lightweight exchange JSON specification, and operation information is assembled into JSON form.This JSON form includes the field informations such as mobile phone application type, action type, control unique identifier, control title, input content, direction of operating.Encoding according to background java program language, each operating procedure before user can be stored as JSON form and set up under respective directories with the text of case name by name by system, the data of JSON form is put in file.
Above-mentioned first terminal judges whether to there is preset operation information in territory, preset memory areas specifically, search whether there is above-mentioned case, and when there is case, user can be performed manually by operation input, it is also possible to select case to be repeated operation before performing.When user selects corresponding case to perform, operation information in the case select user reads above-mentioned text by JAVA program language, and the data of the inside JSON form are converted to operational order, the field that wherein every operational order comprises is all consistent, and only the content in field is different.Specifically, as shown in the table:
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
After the second terminal (such as mobile phone) gets aforesaid operations order, user interface automatization framework according to Android native applications, obtaining the active tree of the graphical interfaces of current application to be tested, this tree structure comprises all controls, element on this page.Debugging bridge by Android client-server, the second terminal, according to the information in the operational order received, performs on the second terminal tree structure, completes operation.
The embodiment of the present invention obtains the second terminal being currently connected with described first terminal by first terminal;Control described second terminal operating application to be tested;Judge in territory, preset memory areas, whether there is preset operation information;When there is preset operation information in territory, first terminal preset memory areas, described first terminal generates, according to described preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.Owing to application testing method provided by the invention adopts preset operation information to be operated order distribution, adopt relative to prior art and be operated instruction distribution by script, achieve and be automatically operated instruction distribution according to historical operation information, reduce the difficulty of application testing.
Further, 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.
Further, with reference to Fig. 3, based on above-described embodiment, in the present embodiment, also include after above-mentioned steps S10:
Step S80, each described second terminal correspondence is started a monitoring service by described first terminal;
Above-mentioned steps S40 includes:
Step S41, is converted into described operation information operational order, and sends to all of monitoring service;
Step S42, based on the described operational order that described monitoring service receives, described operational order is issued to described second terminal by the communications protocol according to described first terminal Yu described second terminal, described application to be tested is tested according to described operational order for the second terminal.
Specifically, when being operated instruction and issuing, first pass through JAVA program language and aforesaid operations information is converted into the operational order that the second terminal is corresponding;Then pass through single-threaded or multithreading mode to send to each monitoring service, when each monitoring service receives operational order, by the monitoring service corresponding with each second terminal, this operational order will be sent to the second corresponding terminal with the communications protocol of described second terminal according to first terminal, thus being realized described application to be tested is tested by the second terminal.
The present invention also provides for a kind of application testing terminal, and with reference to Fig. 4, in one embodiment, application testing terminal provided by the invention includes:
First acquisition module 100, for obtaining the second terminal that current and described application testing terminal is connected;
The application testing terminal that the present embodiment provides mainly test 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 application testing terminal can be configured according to actual needs, and in the present embodiment, above-mentioned application testing 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 the foundation of application testing terminal.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 testing 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;
In the present embodiment, above-mentioned application to be tested is Mobile solution, is mounted on this application to be tested in each second terminal, and by all of second terminal operating application to be tested of application testing terminal control.
Judge module 300, is used for judging whether there is preset operation information in territory, preset memory areas;Described operation information is based on being operated the operation information that input produces on the graphical interfaces shown by described application to be tested;
Processing module 400, for when there is preset operation information in territory, described preset memory areas, the operational order that described second terminal is corresponding is generated according to described preset operation information, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
In the present embodiment, the type of aforesaid operations information can be configured according to actual needs.Specifically, after the above-mentioned second above-mentioned application to be tested of terminal operating, can operation interface corresponding to this application to be tested displayed on the terminals, and this operation interface is sent to application testing terminal, display for application testing terminal, user can be operated input in application testing terminal, to produce the operation information of correspondence.
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.
It should be noted that, above-mentioned preset operation information can be operated, for the last time, the operation information that test preserves.Preferably, in the present embodiment, above-mentioned application testing terminal also includes:
Display module 500, for when being absent from described operation information in territory, described preset memory areas, what receive described second terminal transmission runs the graphical interfaces shown by described application to be tested, and by graphical interfaces described in web displaying;
Second acquisition module 600, detects user based on being operated the operation information that input produces on described graphical interfaces for obtaining webpage;
Storage module 700, for saving as described preset operation information by the operation information that described operation input produces;And performed the described operational order corresponding according to described second terminal of preset operation information generation by described processing module 400, and described operational order is issued to described second terminal, for the operation that described application to be tested is tested by the second terminal according to described operational order.
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.
Should be noted that, above-mentioned object identity is that control button uniquely identifies (No. ID of such as this control button), after the input of operation every time that user carries out on above-mentioned graphical interfaces, it is possible to the data based on lightweight exchange JSON specification, and operation information is assembled into JSON form.This JSON form includes the field informations such as mobile phone application type, action type, control unique identifier, control title, input content, direction of operating.Encoding according to background java program language, each operating procedure before user can be stored as JSON form and set up under respective directories with the text of case name by name by system, the data of JSON form is put in file.
Whether there is preset operation information in territory, above-mentioned application testing terminal judges preset memory areas specifically, search whether there is above-mentioned case, when there is case, user can be performed manually by operation input, it is also possible to selects case to be repeated operation before performing.When user selects corresponding case to perform, operation information in the case select user reads above-mentioned text by JAVA program language, and the data of the inside JSON form are converted to operational order, the field that wherein every operational order comprises is all consistent, and only the content in field is different.Specifically, as shown in the table:
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
After the second terminal (such as mobile phone) gets aforesaid operations order, user interface automatization framework according to Android native applications, obtaining the active tree of the graphical interfaces of current application to be tested, this tree structure comprises all controls, element on this page.Debugging bridge by Android client-server, the second terminal, according to the information in the operational order received, performs on the second terminal tree structure, completes operation.
The embodiment of the present invention obtains the second terminal being currently connected with described application testing terminal by application testing terminal;Control described second terminal operating application to be tested;Judge in territory, preset memory areas, whether there is preset operation information;When there is preset operation information in application testing terminal preset memory area, described application testing terminal generates, according to described preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.Owing to application testing terminal provided by the invention adopts preset operation information to be operated order distribution, adopt relative to prior art and be operated instruction distribution by script, achieve and be automatically operated instruction distribution according to historical operation information, reduce the difficulty of application testing.
Further, 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 201, 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 testing 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 in application testing 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.
Further, with reference to Fig. 3, based on above-described embodiment, in the present embodiment, above-mentioned application testing terminal also includes:
Monitor and start module, for each described second terminal correspondence is started a monitoring service;
Described processing module 400 includes:
Converting unit 401, for described operation information is converted into operational order, and sends to all of monitoring service;
Transmitting element 402, for the described operational order received based on described monitoring service, described operational order is issued to described second terminal by the communications protocol according to described application testing terminal Yu described second terminal, described application to be tested is tested according to described operational order for the second terminal.
Specifically, when being operated instruction and issuing, first pass through JAVA program language and aforesaid operations information is converted into the operational order that the second terminal is corresponding;Then pass through single-threaded or multithreading mode to send to each monitoring service, when each monitoring service receives operational order, by the monitoring service corresponding with each second terminal, this operational order will be sent to the second corresponding terminal with the communications protocol of described second terminal according to application testing terminal, thus being realized described application to be tested is tested by the second terminal.
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 testing method, it is characterised in that described application testing 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 judges whether there is preset operation information in territory, preset memory areas;Described operation information is based on being operated the operation information that input produces on the graphical interfaces shown by described application to be tested;
If so, then described first terminal generates, according to described preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
2. application testing method as claimed in claim 1, it is characterised in that described first terminal also includes after judging whether to there is preset operation information in territory, preset memory areas:
When being absent from described operation information in territory, described preset memory areas, described first terminal receives the operation of described second terminal transmission graphical interfaces shown by described application to be tested, and by graphical interfaces described in web displaying;
Described first terminal obtains webpage and detects user based on being operated the operation information that input produces on described graphical interfaces;
The operation information that described operation input produces is saved as described preset operation information by described first terminal;And proceed to the described operational order corresponding according to described second terminal of preset operation information generation of execution, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
3. application testing method as claimed in claim 2, 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.
4. application testing 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.
5. the application testing 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 generates, according to preset operation information, the operational order that described second terminal is corresponding, and described operational order is issued to described second terminal, and the step according to described operational order, described application to be tested tested for the second terminal includes:
Described operation information is converted into operational order, and sends to all of monitoring service;
Based on the described operational order that described monitoring service receives, described operational order is issued to described second terminal by the communications protocol according to described first terminal Yu described second terminal, described application to be tested is tested according to described operational order for the second terminal.
6. an application testing terminal, it is characterised in that described application testing terminal includes:
First acquisition module, for obtaining the second terminal that current and described application testing terminal is connected;
Control module, be used for controlling described second terminal operating application to be tested;
Judge module, is used for judging whether there is preset operation information in territory, preset memory areas;Described operation information is based on being operated the operation information that input produces on the graphical interfaces shown by described application to be tested;
Processing module, for when there is preset operation information in territory, described preset memory areas, the operational order that described second terminal is corresponding is generated according to described preset operation information, and described operational order is issued to described second terminal, described application to be tested is tested according to described operational order for the second terminal.
7. application testing terminal as claimed in claim 6, it is characterised in that described application testing terminal also includes:
Display module, for when being absent from described operation information in territory, described preset memory areas, what receive described second terminal transmission runs the graphical interfaces shown by described application to be tested, and by graphical interfaces described in web displaying;
Second acquisition module, detects user based on being operated the operation information that input produces on described graphical interfaces for obtaining webpage;
Storage module, for saving as described preset operation information by the operation information that described operation input produces;And performed the described operational order corresponding according to described second terminal of preset operation information generation by described processing module, and described operational order is issued to described second terminal, for the operation that described application to be tested is tested by the second terminal according to described operational order.
8. application testing terminal as claimed in claim 7, 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.
9. application testing 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.
10. the application testing terminal as according to any one of claim 6 to 9, it is characterised in that described application testing terminal also includes:
Monitor and start module, for each described second terminal correspondence is started a monitoring service;
Described processing module includes:
Converting unit, for described operation information is converted into operational order, and sends to all of monitoring service;
Transmitting element, for the described operational order received based on described monitoring service, described operational order is issued to described second terminal by the communications protocol according to described application testing terminal Yu described second terminal, described application to be tested is tested according to described operational order for the second terminal.
CN201410849909.4A 2014-12-30 2014-12-30 Application testing method and terminal Active CN105808419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849909.4A CN105808419B (en) 2014-12-30 2014-12-30 Application testing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849909.4A CN105808419B (en) 2014-12-30 2014-12-30 Application testing method and terminal

Publications (2)

Publication Number Publication Date
CN105808419A true CN105808419A (en) 2016-07-27
CN105808419B CN105808419B (en) 2018-08-10

Family

ID=56421427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849909.4A Active CN105808419B (en) 2014-12-30 2014-12-30 Application testing method and terminal

Country Status (1)

Country Link
CN (1) CN105808419B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009096A (en) * 2017-12-26 2018-05-08 上海展扬通信技术有限公司 A kind of test method and terminal
CN108595320A (en) * 2018-04-03 2018-09-28 新华三信息安全技术有限公司 a kind of test method and device
CN109922484A (en) * 2017-12-13 2019-06-21 大唐移动通信设备有限公司 A kind of test method and test device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4625312A (en) * 1983-10-06 1986-11-25 Honeywell Information Systems Inc. Test and maintenance method and apparatus for investigation of intermittent faults in a data processing system
CN102609192A (en) * 2012-01-17 2012-07-25 华为终端有限公司 Mobile terminal operating method by computer and mobile terminal
CN102655518A (en) * 2011-03-03 2012-09-05 哈尔滨工业大学 Service processing system and method
CN103513888A (en) * 2012-06-19 2014-01-15 联想(北京)有限公司 Electronic device and control method
CN103699400A (en) * 2012-09-27 2014-04-02 联想(北京)有限公司 Control method and electronic device
CN103902377A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Terminal device and operating state synchronization method of terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4625312A (en) * 1983-10-06 1986-11-25 Honeywell Information Systems Inc. Test and maintenance method and apparatus for investigation of intermittent faults in a data processing system
CN102655518A (en) * 2011-03-03 2012-09-05 哈尔滨工业大学 Service processing system and method
CN102609192A (en) * 2012-01-17 2012-07-25 华为终端有限公司 Mobile terminal operating method by computer and mobile terminal
CN103513888A (en) * 2012-06-19 2014-01-15 联想(北京)有限公司 Electronic device and control method
CN103699400A (en) * 2012-09-27 2014-04-02 联想(北京)有限公司 Control method and electronic device
CN103902377A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Terminal device and operating state synchronization method of terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922484A (en) * 2017-12-13 2019-06-21 大唐移动通信设备有限公司 A kind of test method and test device
CN108009096A (en) * 2017-12-26 2018-05-08 上海展扬通信技术有限公司 A kind of test method and terminal
CN108595320A (en) * 2018-04-03 2018-09-28 新华三信息安全技术有限公司 a kind of test method and device

Also Published As

Publication number Publication date
CN105808419B (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN108763086B (en) Script recording method, terminal and computer readable storage medium based on remote true machine
CN101706725B (en) Method and system for loading and debugging relocatable program
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
CN107688529B (en) Component debugging method and device
CN105975367B (en) Test method and device for mobile equipment
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN103312850A (en) Mobile phone automation testing system and work method
CN103246606B (en) The performance test methods of ESB platform and system
CN105354025A (en) Service model configuration system and method based on mobile application
CN104978266A (en) Application test method and device
CN104820565A (en) Method and terminal for processing sliding operation instruction
CN110704095A (en) Workflow-based configuration processing method and device, computer equipment and storage medium
CN110555073A (en) data processing method and device, electronic equipment and storage medium
CN109871221B (en) System for quickly installing and deploying mobile application software for mobile terminal equipment
CN105808419A (en) Application test method and terminal
CN106550022B (en) Application program distribution control processing method and system
CN104935639A (en) Intelligent terminal, and applied distributed exploitation system and method
CN111400167A (en) Redfish service compliance verification method, device, equipment and medium
CN107170218B (en) Remote assistance method and system for debugging fire alarm system
CN105808073A (en) Application operation instruction distribution method and terminal
CN105117339A (en) Method and apparatus for debugging native command debugging program by utilizing plugin
CN108804120B (en) Page construction method, device, equipment and storage medium
CN103324567B (en) A kind of adjustment method of application engine and debug system
CN104834594A (en) Method and apparatus for testing web system
CN103095882A (en) Automated testing method and automated testing system for intelligent mobile terminal external field

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