CN105808419B - Application testing method and terminal - Google Patents

Application testing method and terminal Download PDF

Info

Publication number
CN105808419B
CN105808419B CN201410849909.4A CN201410849909A CN105808419B CN 105808419 B CN105808419 B CN 105808419B CN 201410849909 A CN201410849909 A CN 201410849909A CN 105808419 B CN105808419 B CN 105808419B
Authority
CN
China
Prior art keywords
terminal
application
tested
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.)
Active
Application number
CN201410849909.4A
Other languages
Chinese (zh)
Other versions
CN105808419A (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

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

Abstract

The invention discloses a kind of application testing method, the application testing method includes the following steps:First terminal obtains the second terminal currently being connect with the first terminal;The first terminal controls the second terminal and runs application to be tested;The first terminal judges to whether there is preset operation information in the domain of preset memory areas;The operation information is based on the operation information for carrying out operation input generation on the graphical interfaces shown by the application to be tested;If so, the first terminal generates the corresponding operational order of the second terminal according to the preset operation information, and the operational order is issued to the second terminal, so that second terminal tests the application to be tested according to the operational order.The invention also discloses a kind of applications to test terminal.Present invention reduces the difficulty of application test.

Description

Application testing method and terminal
Technical field
The present invention relates to using technical field of measurement and test more particularly to application testing method and terminal.
Background technology
Currently, generally use automatized script and recording and playback carry out applying compatibility test, the survey on intelligent devices The code that examination scheme must rely on application to write is operated, therefore to the more demanding of test, the difficulty of test is larger.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
The main purpose of the present invention is to provide a kind of application testing method and terminals, it is intended to reduce the difficulty of application test Degree.
To achieve the above object, a kind of application testing method provided by the invention includes the following steps:
First terminal obtains the second terminal currently being connect with the first terminal;
The first terminal controls the second terminal and runs application to be tested;
The first terminal judges to whether there is preset operation information in the domain of preset memory areas;The operation information be based on The operation information of operation input generation is carried out on graphical interfaces shown by the application to be tested;
It is ordered if so, the first terminal generates the corresponding operation of the second terminal according to the preset operation information Enable, and the operational order be issued to the second terminal, for second terminal according to the operational order to described to be measured Examination application is tested.
Preferably, the first terminal judges that whether there is preset operation information in the domain of preset memory areas further includes later:
When the operation information is not present in the preset memory areas domain, the first terminal receives the second terminal Graphical interfaces shown by the operation application to be tested of transmission, and pass through graphical interfaces described in web displaying;
The first terminal obtains webpage and detects user based on the behaviour for carrying out operation input generation on the graphical interfaces Make information;
The operation information that the operation input generates is stored as the preset operation information by the first terminal;And it is transferred to Execute it is described the corresponding operational order of the second terminal is generated according to preset operation information, and the operational order is issued to The second terminal, so that second terminal tests the application to be tested according to the operational order.
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 is to click drag operation, the operation information includes:Origin coordinates, Terminating coordinates and glide direction.
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 mark by the first terminal;
The first terminal will enter the application to be tested that predetermined directory selection obtains according to the port numbers by webpage It is sent to the second terminal, installs to control the second terminal and runs the application to be tested.
Preferably, further include after the first terminal obtains the second terminal currently being connect with the first terminal:
The first terminal, which corresponds to each second terminal, starts a monitoring service;
The first terminal generates the corresponding operational order of the second terminal according to preset operation information, and by the behaviour Make order and be issued to the second terminal, so that second terminal tests the application to be tested according to the operational order The step of include:
It converts the operation information to operational order, and is sent to all monitoring services;
Based on the operational order that the monitoring service receives, according to the first terminal and the second terminal The operational order is issued to the second terminal by communications protocol, so that second terminal is waited for according to the operational order described Test application is tested.
In addition, to achieve the above object, the present invention also provides a kind of application test terminals to include:
First acquisition module, for obtaining the current second terminal being connect with application test terminal;
Control module runs application to be tested for controlling the second terminal;
Judgment module whether there is preset operation information for judging in the domain of preset memory areas;The operation information is base The operation information of operation input generation is carried out on graphical interfaces shown by the application to be tested;
Processing module, for when in the preset memory areas domain there are when preset operation information, according to the preset operation Information generates the corresponding operational order of the second terminal, and the operational order is issued to the second terminal, for the Two terminals test the application to be tested according to the operational order.
Preferably, the application test terminal further includes:
Display module, for when the operation information is not present in the preset memory areas domain, receiving described second eventually The graphical interfaces shown by the operation application to be tested that end is sent, and pass through graphical interfaces described in web displaying;
Second acquisition module detects user based on progress operation input generation on the graphical interfaces for obtaining webpage Operation information;
Storage module, the operation information for generating the operation input are stored as the preset operation information;And by The processing module execute it is described the corresponding operational order of the second terminal is generated according to preset operation information, and by the behaviour Make order and be issued to the second terminal, so that second terminal tests the application to be tested according to the operational order Operation.
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 is to click drag operation, the operation information includes:Origin coordinates, Terminating coordinates and glide direction.
Preferably, the control module includes:
Allocation unit, the port numbers for each second terminal got to be distributed to unique mark;
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, the application test terminal further includes:
Starting module is monitored, is serviced for corresponding to one monitoring of startup to each second terminal;
The processing module includes:
Converting unit for converting the operation information to operational order, and is sent to all monitoring services;
Transmission unit, the operational order for being received based on the monitoring service, is tested eventually according to the application The operational order is issued to the second terminal by end and the communications protocol of the second terminal, so that second terminal is according to institute Operational order is stated to test the application to be tested.
The embodiment of the present invention obtains the second terminal currently being connect with the first terminal by first terminal;Described in control Second terminal runs application to be tested;Judge to whether there is preset operation information in the domain of preset memory areas;When first terminal is preset For storage region there are when preset operation information, the first terminal generates the second terminal pair according to the preset operation information The operational order answered, and the operational order is issued to the second terminal, so that second terminal is according to the operational order The application to be tested is tested.Due to application testing method provided by the invention and terminal using preset operation information into Row operational order is distributed, and is carried out operational order distribution using by script compared with the existing technology, is realized according to history Operation information carries out operational order distribution automatically, reduces the difficulty using test.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of application testing method of the present invention;
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 of another embodiment of application testing method of the present invention;
Fig. 4 is the high-level schematic functional block diagram that one embodiment of terminal is tested in present invention application;
Fig. 5 is the refinement high-level schematic functional block diagram of control module in Fig. 4;
Fig. 6 is the refinement high-level schematic functional block diagram of processing 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 implementation mode
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 testing method, and referring to Fig.1, in one embodiment, which includes:
Step S10, first terminal obtain the second terminal currently being connect with the first terminal;
Application testing method provided in this embodiment is mainly used in the test to mobile application software in mobile terminal, tool Body, operational order input by user can be distributed to each mobile terminal.The second terminal quantity being connect with above-mentioned first terminal It can be configured according to actual needs, in the present embodiment, above-mentioned first terminal can be PC, and above-mentioned second terminal can be movement Terminal (such as mobile phone, pad etc.).Second terminal can be established by USB data line and first terminal and be connected.In the present embodiment, on State the corresponding information (such as type number of mobile phone and port numbers etc.) that first terminal will obtain the second terminal currently connected.
Step S20, the first terminal control the second terminal and run application to be tested;
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 all second terminals are controlled by first terminal and run application to be tested.
Step S30, the first terminal judge to whether there is preset operation information in the domain of preset memory areas;The operation letter Breath is based on the operation information for carrying out operation input generation on the graphical interfaces shown by the application to be tested;If so, holding Row step S40;
Step S40, the first terminal generate the corresponding operation of the second terminal according to the preset operation information and order Enable, and the operational order be issued to the second terminal, for second terminal according to the operational order to described to be measured Examination application is tested.
In the present embodiment, the type of aforesaid operations information can be configured according to actual needs.Specifically, above-mentioned second eventually After end runs above-mentioned application to be tested, can the corresponding operation interface of the application to be tested displayed on the terminals, and by operation circle Face is sent to first terminal, and so that first terminal is shown, user can carry out operation input on first terminal, to generate Corresponding operation information.
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 is to click drag operation, the operation information includes:Origin coordinates, Terminating coordinates and glide direction.
It should be noted that above-mentioned preset operation information can carry out the operation letter that operation test is preserved for the last time Breath.Preferably, in the present embodiment, further include after above-mentioned steps S30:
Step S50, when the operation information is not present in the preset memory areas domain, described in the first terminal reception The graphical interfaces shown by the operation application to be tested that second terminal is sent, and pass through graphical interfaces described in web displaying;
Step S60, the first terminal acquisition webpage detect user and are based on carrying out operation input on the graphical interfaces The operation information of generation;
Step S70, the operation information that the operation input generates is stored as the preset operation by the first terminal to be believed Breath;And it is transferred to and executes the step S40.
In the present embodiment, the graphical interfaces that user can be by mouse in web displaying carries out operational order input, 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 pre-set.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 should be noted that above-mentioned object identity is control button unique mark (such as ID number of the control button), use After each operation input that family carries out on above-mentioned graphical interfaces, it can will be grasped based on the data exchange JSON specifications of lightweight It is assembled into JSON formats as information.The JSON formats include mobile phone application type, action type, control unique identifier, control The field informations such as part title, input content, operation direction.It is encoded according to background java program language, system can will be before user Each single item operating procedure is stored as JSON formats and is established with the text file of the entitled name of case, by JSON under respective directories The data of format are put into file.
Above-mentioned first terminal judges in the domain of preset memory areas with the presence or absence of preset operation information specifically, searching whether exist Above-mentioned case, when there are case, user can carry out operation input manually, and case can also be selected to carry out weight to operation before It is multiple to execute.When user selects corresponding case to execute, the operation information in the case of user's selection is passed through into JAVA program languages Above-mentioned text file is read, and the data of the inside JSON formats are converted to operational order, wherein every operational order includes Field is consistent, and the content only in field is different.Specifically, as shown in the table:
Name of the information Meaning
rule Mobile phone application type
operate Action type, click/sliding/input
opvalue Control button unique mark, ID number
textkey Control title
value The content of input
direction Operate direction
After second terminal (such as mobile phone) gets aforesaid operations order, the user interface applied according to Android primary is automatic Change frame, obtain the active trees of the graphical interfaces of current application to be tested, the tree structure comprising all controls on the page, Element.Bridge is debugged by Android client-server, second terminal is according to the information in the operational order received, in second terminal It is executed in tree structure, completes operation.
The embodiment of the present invention obtains the second terminal currently being connect with the first terminal by first terminal;Described in control Second terminal runs application to be tested;Judge to whether there is preset operation information in the domain of preset memory areas;When first terminal is preset For storage region there are when preset operation information, the first terminal generates the second terminal pair according to the preset operation information The operational order answered, and the operational order is issued to the second terminal, so that second terminal is according to the operational order The application to be tested is tested.Since application testing method provided by the invention is operated using preset operation information Order distribution, carries out operational order distribution using by script compared with the existing technology, realizes and believed according to historical operation The automatic difficulty for carrying out operational order distribution, reducing using test of breath.
Further, with reference to Fig. 2, it is based on above-described embodiment, in the present embodiment, above-mentioned steps S20 includes:
Each second terminal got is distributed the port numbers of unique mark by step S21, the first terminal;
Step S22, the first terminal will enter waiting for for predetermined directory selection acquisition according to the port numbers by webpage 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 is explained in detail first terminal by taking mobile phone as an example.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 selects, 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 each connected starts one and monitors 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 preserve following table:
Mobile phone model Port numbers
Millet 3 4008
Huawei P7 3536
Hammer T1 7676
…… ……
Samsung Glaxy S4 9999
Then monitor whether that receiving application transport to be tested instructs in real time, it, can be from computer when monitoring transmission instruction Acquiescence upload catalogue, the specified directory of mobile phone is copied to using the Files.copyFile methods of JAVA programming languages, 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.
Further, it with reference to Fig. 3, is based on above-described embodiment, in the present embodiment, further includes after above-mentioned steps S10:
Step S80, the first terminal, which corresponds to each second terminal, starts a monitoring service;
Above-mentioned steps S40 includes:
Step S41 converts the operation information to operational order, and is sent to all monitoring services;
Step S42, based on the operational order that receives of monitoring service, according to the first terminal and described the The operational order is issued to the second terminal by the communications protocol of two terminals, so that second terminal is according to the operational order The application to be tested is tested.
Specifically, it when progress operational order issues, is first converted aforesaid operations information to by JAVA program languages The corresponding operational order of second terminal;Then each monitoring service is sent to by way of single thread or multithreading, it is each to monitor clothes When business receives operational order, it will be serviced the operational order according to first terminal by monitoring corresponding with each second terminal It is sent to corresponding second terminal with the communications protocol of the second terminal, to be tested is answered to described to be realized by second terminal With being tested.
The present invention also provides a kind of applications to test terminal, and with reference to Fig. 4, in one embodiment, application provided by the invention is surveyed Trying terminal includes:
First acquisition module 100, for obtaining the current second terminal being connect with application test terminal;
Application test terminal provided in this embodiment, specifically, can be defeated by user mainly to the test of mobile application software The operational order entered is distributed to each mobile terminal.The second terminal quantity being connect with above application test terminal can be according to practical need It is configured, in the present embodiment, above application, which tests terminal, to be PC, and above-mentioned second terminal can be mobile terminal (example Such as mobile phone, pad).Second terminal can be established with application test terminal by USB data line and be connected.In the present embodiment, above-mentioned One terminal will obtain the corresponding information (such as type number of mobile phone and port numbers etc.) of the second terminal currently connected.It should illustrate , the application test terminal of the present embodiment is above-mentioned first terminal.
Control module 200 runs application to be tested for controlling the second terminal;
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 all second terminals of terminal control are tested by application and run application to be tested.
Judgment module 300 whether there is preset operation information for judging in the domain of preset memory areas;The operation information is Based on the operation information for carrying out operation input generation on the graphical interfaces shown by the application to be tested;
Processing module 400, for when in the preset memory areas domain there are when preset operation information, according to the preset behaviour Make information and generate the corresponding operational order of the second terminal, and the operational order is issued to the second terminal, for Second terminal tests the application to be tested according to the operational order.
In the present embodiment, the type of aforesaid operations information can be configured according to actual needs.Specifically, above-mentioned second eventually After end runs above-mentioned application to be tested, can the corresponding operation interface of the application to be tested displayed on the terminals, and by operation circle Face is sent to using test terminal, and so that application test terminal is shown, user can grasp in application test terminal It inputs, to generate corresponding operation information.
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 is to click drag operation, the operation information includes:Origin coordinates, Terminating coordinates and glide direction.
It should be noted that above-mentioned preset operation information can carry out the operation letter that operation test is preserved for the last time Breath.Preferably, in the present embodiment, above application test terminal further includes:
Display module 500, for when the operation information is not present in the preset memory areas domain, receiving described second The graphical interfaces shown by the operation application to be tested that terminal is sent, and pass through graphical interfaces described in web displaying;
Second acquisition module 600, for obtain webpage detect user be based on the graphical interfaces on carry out operation input The operation information of generation;
Storage module 700, the operation information for generating the operation input are stored as the preset operation information;And By the processing module 400 execute it is described the corresponding operational order of the second terminal is generated according to preset operation information, and will The operational order is issued to the second terminal, for second terminal according to the operational order to it is described it is to be tested apply into The operation of row test.
In the present embodiment, the graphical interfaces that user can be by mouse in web displaying carries out operational order input, 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 pre-set.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 should be noted that above-mentioned object identity is control button unique mark (such as ID number of the control button), use After each operation input that family carries out on above-mentioned graphical interfaces, it can will be grasped based on the data exchange JSON specifications of lightweight It is assembled into JSON formats as information.The JSON formats include mobile phone application type, action type, control unique identifier, control The field informations such as part title, input content, operation direction.It is encoded according to background java program language, system can will be before user Each single item operating procedure is stored as JSON formats and is established with the text file of the entitled name of case, by JSON under respective directories The data of format are put into file.
Above application test terminal judges in the domain of preset memory areas with the presence or absence of preset operation information specifically, searching whether There are above-mentioned cases, and when there are case, user can carry out operation input manually, can also select case to operation before into Row repeats.When user selects corresponding case to execute, the operation information in the case of user's selection is passed through into JAVA programs Language reads above-mentioned text file, and the data of the inside JSON formats are converted to operational order, wherein every operational order packet The field contained is consistent, and the content only in field is different.Specifically, as shown in the table:
Name of the information Meaning
rule Mobile phone application type
operate Action type, click/sliding/input
opvalue Control button unique mark, ID number
textkey Control title
value The content of input
direction Operate direction
After second terminal (such as mobile phone) gets aforesaid operations order, the user interface applied according to Android primary is automatic Change frame, obtain the active trees of the graphical interfaces of current application to be tested, the tree structure comprising all controls on the page, Element.Bridge is debugged by Android client-server, second terminal is according to the information in the operational order received, in second terminal It is executed in tree structure, completes operation.
The embodiment of the present invention tests terminal by application and obtains the second terminal currently being connect with application test terminal; It controls the second terminal and runs application to be tested;Judge to whether there is preset operation information in the domain of preset memory areas;Work as application Terminal preset storage region is tested there are when preset operation information, the application test terminal is given birth to according to the preset operation information It is issued to the second terminal at the corresponding operational order of the second terminal, and by the operational order, for second terminal The application to be tested is tested according to the operational order.Since application provided by the invention test terminal is using preset Operation information carries out operational order distribution, carries out operational order distribution using by script compared with the existing technology, realizes According to historical operation information operational order distribution is carried out automatically, reduce the difficulty using test.
Further, with reference to Fig. 5, it is based on above-described embodiment, in the present embodiment, above-mentioned control module 200 includes:
Allocation unit 201, the port numbers for each second terminal got to be distributed to unique mark;
Control unit 201, 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.
Using test terminal by taking computer as an example, second terminal is explained in detail by taking mobile phone as an example.Specifically, when mobile phone is logical It crosses after the USB interface on computer normally connect with computer, user can enter predetermined directory in application test terminal by webpage Selection user is uploaded to the application to be tested of the predetermined directory.After user selects, bridge is debugged based on Android client service end Function command, debugging bridge allow electronic integrated driver and mobile phone Android system on computer using monitoring designated port by the way of Direct Communication so that directly operational administrative Android system and order can be run.Specifically, the mobile phone each connected starts one The mobile phone that a monitoring service, and be randomly assigned a port number, each random port numbers and access recognize is set as one One corresponding mapping relations, and established according to mobile phone model and port numbers and preserve following table:
Mobile phone model Port numbers
Millet 3 4008
Huawei P7 3536
Hammer T1 7676
…… ……
Samsung Glaxy S4 9999
Then monitor whether that receiving application transport to be tested instructs in real time, it, can be from computer when monitoring transmission instruction Acquiescence upload catalogue, the specified directory of mobile phone is copied to using the Files.copyFile methods of JAVA programming languages, 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.
Further, with reference to Fig. 3, it is based on above-described embodiment, in the present embodiment, above application test terminal further includes:
Starting module is monitored, is serviced for corresponding to one monitoring of startup to each second terminal;
The processing module 400 includes:
Converting unit 401 for converting the operation information to operational order, and is sent to all monitoring services;
Transmission unit 402, the operational order for being received based on the monitoring service, is tested according to the application The operational order is issued to the second terminal by the communications protocol of terminal and the second terminal, for second terminal according to The operational order tests the application to be tested.
Specifically, it when progress operational order issues, is first converted aforesaid operations information to by JAVA program languages The corresponding operational order of second terminal;Then each monitoring service is sent to by way of single thread or multithreading, it is each to monitor clothes When business receives operational order, it will be serviced by monitoring corresponding with each second terminal and test the operational order according to application Terminal is sent to corresponding second terminal with the communications protocol of the second terminal, to be realized to described to be measured by second terminal Examination application is tested.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every 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 testing method, which is characterized in that the application testing method includes the following steps:
First terminal obtains the second terminal currently being connect with the first terminal;
The first terminal controls the second terminal and runs application to be tested;
The first terminal judges to whether there is preset operation information in the domain of preset memory areas;The operation information is based on described The operation information of operation input generation is carried out on graphical interfaces shown by application to be tested;The preset operation information is record There is the historical operation information of each single item operating procedure before user;
If so, the first terminal generates the corresponding operational order of the second terminal according to the preset operation information, and The operational order is issued to the second terminal, for second terminal according to the operational order to the application to be tested It is tested.
2. application testing method as described in claim 1, which is characterized in that the first terminal judges in the domain of preset memory areas Further include later with the presence or absence of preset operation information:
When the operation information is not present in the preset memory areas domain, the first terminal receives the second terminal and sends The operation application to be tested shown by graphical interfaces, and pass through graphical interfaces described in web displaying;
The first terminal obtains webpage and detects user based on the operation letter for carrying out operation input generation on the graphical interfaces Breath;
The operation information that the operation input generates is stored as the preset operation information by the first terminal;And it is transferred to execution It is described that the corresponding operational order of the second terminal is generated according to preset operation information, and the operational order is issued to described Second terminal, so that second terminal tests the application to be tested according to the operational order.
3. application testing method as claimed in claim 2, 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 is character entering function, the operation information includes: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, termination Coordinate and glide direction.
4. application testing method as described in claim 1, which is characterized in that the first terminal controls the second terminal fortune Row application to be tested includes:
Each second terminal got is distributed the port numbers of unique mark 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.
5. application testing method according to any one of claims 1 to 4, which is characterized in that
The first terminal obtains the second terminal currently being connect with the first terminal:
The first terminal, which corresponds to each second terminal, starts a monitoring service;
The first terminal generates the corresponding operational order of the second terminal according to preset operation information, and the operation is ordered Order is issued to the second terminal, the step tested the application to be tested according to the operational order for second terminal Suddenly include:
It converts the operation information to operational order, and is sent to all monitoring services;
Based on the operational order that the monitoring service receives, according to the communication of the first terminal and the second terminal The operational order is issued to the second terminal by agreement, for second terminal according to the operational order to described to be tested Using being tested.
6. terminal is tested in a kind of application, which is characterized in that the application tests terminal and includes:
First acquisition module, for obtaining the current second terminal being connect with application test terminal;
Control module runs application to be tested for controlling the second terminal;
Judgment module whether there is preset operation information for judging in the domain of preset memory areas;The operation information is based on institute State the operation information that operation input generation is carried out on the graphical interfaces shown by application to be tested;The preset operation information is note Record has the historical operation information of each single item operating procedure before user;
Processing module, for when in the preset memory areas domain there are when preset operation information, according to the preset operation information The corresponding operational order of the second terminal is generated, and the operational order is issued to the second terminal, eventually for second The application to be tested is tested according to the operational order in end.
7. application test terminal as claimed in claim 6, which is characterized in that the application tests terminal and further includes:
Display module, for when the operation information is not present in the preset memory areas domain, receiving the second terminal hair The graphical interfaces shown by the operation application to be tested sent, and pass through graphical interfaces described in web displaying;
Second acquisition module detects user based on the behaviour for carrying out operation input generation on the graphical interfaces for obtaining webpage Make information;
Storage module, the operation information for generating the operation input are stored as the preset operation information;And by described Processing module execution is described to generate the corresponding operational order of the second terminal according to preset operation information, and the operation is ordered Order is issued to the second terminal, the behaviour tested the application to be tested according to the operational order for second terminal Make.
8. test terminal the use as claimed in claim 7, 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 is character entering function, the operation information includes: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, termination Coordinate and glide direction.
9. application test terminal as claimed in claim 6, which is characterized in that the control module includes:
Allocation unit, the port numbers for each second terminal got to be distributed to unique mark;
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.
10. the application test terminal as described in any one of claim 6 to 9, which is characterized in that the application test terminal is also Including:
Starting module is monitored, is serviced for corresponding to one monitoring of startup to each second terminal;
The processing module includes:
Converting unit for converting the operation information to operational order, and is sent to all monitoring services;
Transmission unit, for based on the operational order that receives of monitoring service, according to the application test terminal and The operational order is issued to the second terminal by the communications protocol of the second terminal, so that second terminal is according to the behaviour It orders and the application to be tested is tested.
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 CN105808419A (en) 2016-07-27
CN105808419B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922484B (en) * 2017-12-13 2021-01-22 大唐移动通信设备有限公司 Test method and test device
CN108009096B (en) * 2017-12-26 2021-02-09 上海展扬通信技术有限公司 Test method and terminal
CN108595320B (en) * 2018-04-03 2022-03-22 新华三信息安全技术有限公司 Test method and 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

Also Published As

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

Similar Documents

Publication Publication Date Title
US9720569B2 (en) Cloud-based custom metric/timer definitions and real-time analytics of mobile applications
US9846699B2 (en) System and methods thereof for dynamically updating the contents of a folder on a device
US8826240B1 (en) Application validation through object level hierarchy analysis
US8467987B1 (en) Methods and systems for testing mobile device builds
CN107688529B (en) Component debugging method and device
CN103152392B (en) Installation kit supplying method, acquisition methods, equipment and system
CN104765678A (en) Method and device for testing applications on mobile terminal
CN105975367B (en) Test method and device for mobile equipment
CN104978266A (en) Application test method and device
CN104820565B (en) Slide command processing method and terminal
KR20130092847A (en) Method for providing information of application, device performing the same, and computer readable recording medium thereof
CN107608901A (en) Method of testing and device based on Jmteter, storage medium, electronic equipment
CN105808419B (en) Application testing method and terminal
US11656883B2 (en) Systems and methods for robotic process automation of mobile platforms
CN112015654A (en) Method and apparatus for testing
CN113672441A (en) Method and device for testing intelligent equipment
CN105808073B (en) Application operating instructs distribution method and terminal
CN114036501A (en) APP detection method, system, device, equipment and storage medium
CN112631939A (en) Use case configuration method, use case configuration device, and readable storage medium
CN111400167A (en) Redfish service compliance verification method, device, equipment and medium
CN104899140A (en) Test method for mobile terminal assembly
CN107102937B (en) User interface testing method and device
CN109921916B (en) Message processing method and device in multi-user group, storage medium and terminal equipment
CN104834594A (en) Method and apparatus for testing web system
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service

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