CN106021099A - System and method for achieving UI automatic test of intelligent terminal - Google Patents

System and method for achieving UI automatic test of intelligent terminal Download PDF

Info

Publication number
CN106021099A
CN106021099A CN201610311161.1A CN201610311161A CN106021099A CN 106021099 A CN106021099 A CN 106021099A CN 201610311161 A CN201610311161 A CN 201610311161A CN 106021099 A CN106021099 A CN 106021099A
Authority
CN
China
Prior art keywords
test
intelligent terminal
module
operational order
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610311161.1A
Other languages
Chinese (zh)
Inventor
陈正勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI LIANTONG NETWORK COMMUNICATIONS TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI LIANTONG NETWORK COMMUNICATIONS TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI LIANTONG NETWORK COMMUNICATIONS TECHNOLOGY Co Ltd filed Critical SHANGHAI LIANTONG NETWORK COMMUNICATIONS TECHNOLOGY Co Ltd
Priority to CN201610311161.1A priority Critical patent/CN106021099A/en
Publication of CN106021099A publication Critical patent/CN106021099A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a system and a method for achieving an UI automatic test of an intelligent terminal, used for executing a user interface test on the intelligent terminal. The system comprises: a recording module, used for acquiring user operation information from the intelligent terminal and recording the user operation information into an operation instruction script, wherein the user operation information comprises operation data and a control ID associated with the operation; and a playback module, used for converting the operation instruction script into an operation instruction and sending the operation instruction to the intelligent terminal, so that the intelligent terminal executes the test according to the operation instruction. By adopting the system and the method for achieving the UI automatic test of the intelligent terminal adopting the structure, multiple tests of the same intelligent terminal is effectively and greatly simplified, different intelligent terminals are compatible, the same test script can be executed on the intelligent terminals with different resolutions, and multiple quick automatic tests can be carried out on different intelligent terminals by once recording.

Description

Realize the system and method for intelligent terminal's UI automatic test
Technical field
The present invention relates to UI technical field of measurement and test, particularly relate to intelligent terminal's UI technical field of measurement and test, specifically refer to a kind of realization The system and method for intelligent terminal's UI automatic test.
Background technology
User interface (User interface, UI) test refers to that the layout testing the functional module of user interface is the most reasonable, whole Body style is the most consistent, and whether the placement location of each control meets client's use habit etc., it is therefore an objective to guarantee user interface Corresponding access or function of browse can be provided the user by the function of test object.Therefore UI tests for various intelligent terminal Extensively application such as mobile phone, panel computer etc. is particularly significant.Simultaneously as the kind of intelligent terminal and quantity are various, simple Manual testing's cost and time-consumingly can be very big, thus expedite the emergence of UI automatic test.
UI automatic test of the prior art is typically based on screen recording, and event (such as clicking on) location is based on screen coordinate. Event is reduced according to screen coordinate, it is achieved UI automatic test during playback.As it is shown in figure 1, UI automatization of the prior art The process of test is generally: controls server and obtains the packet of tested program, packet is handed down to test terminal;Test is eventually Hold and obtain the interface coordinate of every control in user interface according to packet;Control is simulated by test terminal according to interface coordinate Operation;The test result that test terminal record control produces.This mode can be saved tester and write test case, Reduce the working strength of tester to a certain extent.
However as the growth of the development demand different with user of science and technology, the kind of intelligent terminal gets more and more.Prior art In UI automatic test simply solve intelligence same kind, especially display screen to same size and equal resolution The simplification that energy terminal is repeatedly tested, and do not solve the test compatibling problem on different intelligent terminal.Due to intelligent terminal's Variation, different intelligent terminal generally has multiple screen resolution, and the most same playback script is in the terminal of different resolution During playback, it is impossible to truly reduce event, it is necessary to record different scripts for different resolution, remain from the point of view of this angle Add workload.Therefore, the compatibling problem of UI test seems very urgent.
Summary of the invention
It is an object of the invention to the shortcoming overcoming above-mentioned prior art, it is provided that one is capable of once recording can be in difference The upper automatic test of intelligent terminal, improve the test of multiple different resolution user interface compatible to realize intelligent terminal UI automatic Change the system and method for test.
To achieve these goals, the system and method realizing intelligent terminal's UI automatic test of the present invention has a following composition:
This realizes the system of intelligent terminal's UI automatic test, for intelligent terminal performs ui testing, described system Including:
Record module, in order to obtain user's operation information from described intelligent terminal, and record into operational order script, described User's operation information includes the control ID operating data and associating with operation;With
Playback module, in order to operational order script to be converted into operational order, and sends to described intelligent terminal;So that it is described Intelligent terminal perform test according to described operational order.
Alternatively, playback module after operational order script is converted into operational order, operational order is divided into every and according to Order in script is sent to described intelligent terminal successively.
Described intelligent terminal is in order to perform test according to described operational order.
Alternatively, described system can also include test evaluation module, in order to carry out test evaluation according to test result.
Technical scheme is by selecting control ID as control at the mark recorded and in replayed section, and it is intelligent terminal Operating system has uniqueness and not replaceability and not affected by resolution, thus not only have effectively achieved of the same race What intelligent terminal repeatedly tested is greatly simplified, and achieves the compatibility for different intelligent terminal.
In order in the acquisition and replayed section that the control ID structure of test event, alternatively, institute are better achieved in recording process The system stated also includes following functional module:
Test agent module, in order to obtain and to operate the control ID associated, sends described control ID and operation data to institute The recording module stated, and according to described operational order structure test event;With
Control memory module, in order to obtain the operation data of user, and perform test according to described test event.
Alternatively, described test agent module includes:
Communication unit, in order to carry out communication with described recording module and playback module;
Operation monitoring unit, in order to the operation by described control memory module monitoring users, and looks in intelligent terminal stores Ask the control ID associated with operation;
Event simulation unit, in order to described operational order to resolve to control ID and operation data, and constructs test event, with And the program that test event is inserted intelligent terminal performs queue.
Wherein, the intelligent terminal of the present invention can be that smart mobile phone, panel computer, Set Top Box etc. are multiple have intelligent operating system Equipment, range of application is quite varied, and communication unit can use various ways, such as USB or network to carry out with test main frame Communication.
The operational order script of the present invention is possible not only to record control coordinate, in addition it is also necessary to record control ID.Event simulation unit exists During structure test event, it is also required to equally by the control corresponding to control ID in described control memory module look-up command Part.
Technical solution of the present invention also provides for a kind of method realizing intelligent terminal's UI automatic test, and described method includes following step Rapid:
(1) user's operation information is sent to described recording module by the intelligent terminal described in, and described user's operation information includes Operation data and the control ID associated with operation;
(2) described user's operation information is recorded into operational order script by the recording module described in;
(3) operational order script is converted into operational order and sends to described intelligent terminal by the playback module described in;
(4) intelligent terminal described in performs test according to described operational order.
As shown from the above technical solution, control is obtained by test agent module, memory module and control module based on test frame ID processed, in test job, test agent module, memory module and control module coordinated, before test need not be special again Do not write test case, record module and can record the data that intelligent terminal sends over as required and obtain test script, significantly Improve testing efficiency, even if intelligent terminal has different resolution, also can be generally applicable to same method of testing, and not Test can be caused to make mistakes because of the change of control coordinate, it is adaptable to large-scale popularization and application.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the method for UI automatic test in prior art.
Fig. 2 is the structural representation of the system realizing intelligent terminal's UI automatic test of the present invention.
Fig. 3 is the flow chart of the method realizing intelligent terminal's UI automatic test of the present invention.
Fig. 4 be the present invention method in the schematic diagram of recording process.
Fig. 5 be the present invention method in the schematic diagram of replayed section.
Fig. 6 is the schematic diagram being obtained control ID by test frame of the present invention.
Reference:
100 record module
200 playback module
300 test agent modules
301 communication units
302 operation monitoring units
303 event simulation unit
400 memory modules
500 control modules
Detailed description of the invention
In order to more clearly describe the technology contents of the present invention, conduct further description below in conjunction with specific embodiment.
To achieve these goals, the ultimate principle of technical scheme is: record module 100 by the user behaviour to interface Getting off as recording, be stored in operational order script file, recording module 100 needs acquisition to associate with operation in recording process Control ID;Playback module 200 call operation command script file, is converted into operational order operational order script file, behaviour Comprise in instructing and the control ID that associate of operation, and send operational order and complete test event to intelligent terminal and simulate.
Below the present invention is realized the description that the system and method for intelligent terminal's UI automatic test refines further:
System firstly for the present invention is introduced.As in figure 2 it is shown, the present invention's realizes intelligent terminal UI automatic test System includes recording module 100 and playback module 200, records module 100 and playback module 200 can select to set as required Put in intelligent terminal or test main frame, Fig. 2 gives one recording module 100 and playback module 200 are arranged at test The embodiment of main frame, is not limited to this setup, wherein in actual applications:
Record module 100, in order to obtain user's operation information from described intelligent terminal, and record into operational order script, institute The user's operation information stated includes the control ID operating data and associating with operation;With playback module 200, in order to by operational order Script is converted into operational order, and sends to described intelligent terminal;Described intelligent terminal is in order to according to described operational order Perform test.
The recording module 100 of the present invention, when recording operation command script, needs to comprise in the user's operation information of acquisition and operation The control ID of association.In software development process, generating mode general for control ID is: when adding a control, integrated open Hair ring border can add a sequence number to automatically generate ID with control name.The most each control only has a corresponding control ID, This control ID thus there is uniqueness and irreplaceability.
In one preferably embodiment, described system also includes test agent module 300, control module 500 and storage Module 400, similarly, these three module can be arranged as required in intelligent terminal or test main frame, wherein:
Test agent module 300, in order to obtain and to operate the control ID associated, sends described control ID and operation data extremely Described recording module 100, and according to described operational order structure test event;Memory module 400, can be that intelligence is whole The system module of end operating system, in order to obtain the operation data of user, inquires about intelligent operating system information;Control module 500, Analog subscriber input can be carried out with tectonic event data, perform test according to described test event.
The present invention is by control ID corresponding on test agent module 300 query event coordinate, and control ID is the most only One, can uniquely position.Recording module 100, when recording operation command script, not only records coordinate, also record control ID. And playback module 200 is when becoming operational order by operational order file translation, the coordinate position of inquiry control ID, can reduce thing Part coordinate, thus reach to operate the purpose of identical control.
Wherein, test agent module 300 can inquire about control ID according to screen coordinate, it is also possible to inquires about control according to control ID Coordinate and size.
It is functional division to the division of module in intelligent terminal herein, i.e. needs the function having to carry out according to intelligent terminal One finer classification.And other have the technical scheme of these functions, even if having selected different functions to divide, i.e. divide Become different functional modules, also can realize the purpose of the present invention and technique effect, and these contain the technical scheme of above-mentioned functions, Within falling within protection scope of the present invention.
In order to be illustrated more clearly that technical scheme, the function of described test agent module 300 is carried out further Dividing, described test agent module 300 includes communication unit 301, operation monitoring unit 302 and event simulation unit 303, Wherein:
Communication unit 301, in order to carry out communication with described recording module 100 and playback module 200;Operation monitoring unit 302, In order to the operation by described memory module 400 monitoring users, and inquire about in intelligent terminal stores and operate the control associated ID;Event simulation unit 303, in order to described operational order to resolve to control ID and operation data, obtains control information, And construct test event, and the program that test event is inserted intelligent terminal performs queue.
In one preferably embodiment, described communication unit 301 can be received by the monitoring service end that Socket sets up Described operational order.Described communication unit 301 can be by TCP or UDP and described recording module 100 and playback Module 200 carries out communication, and communication modes uses the Communication Model of client-side/server-side.Test Agent communication module can use socket DLL realizes.
But in actual applications, described intelligent terminal can also use other suitable means with the communication of test main frame, Can be selected with environment according to demand by user.Can be by wireless, USB, indigo plant between intelligent terminal and test main frame Tooth, the mode such as infrared transmit data.Communication unit 301 obtains the mode of operational order and can also change, as long as can be in real time from returning Amplification module 200 gets the operational order carrying out testing and can realize the technical program.
Test agent module 300 needs the System Privileges of intelligent terminal, it is possible to monitoring system event, at system layer intercepting system Event, the most all events all can be through test agent module 300.Operation monitoring unit 302 inquires about intelligent terminal operation system Memory module 400, obtains, by the control ID of operation UI, forming operational order, giving communication unit.
In one preferably embodiment, described system also includes that the test that can be arranged at intelligent terminal or test main frame is commented Valency module, described intelligent terminal is also in order to send test execution result to described test evaluation module, and described test is commented Valency module is in order to carry out test evaluation according to described test execution result.
In actual applications, having a lot to the mode of test execution evaluation of result, user can be carried out according to the emphasis difference of test and appraisal Select.In a kind of detailed description of the invention of the present invention, described test execution result needs to include the UI attribute letter of current active Breath, described test evaluation module is in order to carry out contrasting and judge to test whether by the UI attribute information of current active and benchmark data Pass through, if UI attribute information is within the preset range of benchmark data, then judge that test is passed through, otherwise judge that test is not passed through.
In one preferably embodiment, described user's operation information can also include the coordinate of control that associates with operation and Size, more convenient position control and tests.
In one preferably embodiment, described intelligent terminal includes but not limited to mobile phone, panel computer, notebook computer Or Set Top Box, described test main frame includes but not limited to PC, work station or server.Technical scheme may be used for The automatic test of multiple different intelligent terminal, range of application is quite varied.Intelligent terminal needs have intelligent operating system, intelligence Communication can be carried out by USB, network between terminal and test main frame.
Based on said system, the flow process of the method realizing intelligent terminal's UI automatic test of the present invention as it is shown on figure 3, include as Lower step:
(1) user's operation information is sent to described recording module 100, described user's operation information by the intelligent terminal described in Including operating data and the control ID associated with operation;
(2) described user's operation information is recorded into operational order script by the recording module 100 described in;
(3) operational order script is converted into operational order and sends to described intelligent terminal by the playback module 200 described in;
(4) intelligent terminal described in performs test according to described operational order.
In one preferably embodiment, after described step (4), further comprising the steps of:
(5) the test evaluation module described in carries out test evaluation according to test result.
The method realizing intelligent terminal's UI automatic test of the present invention it is further described below with a specific embodiment:
The method realizing intelligent terminal's UI automatic test of the present invention mainly includes two large divisions: recording process and replayed section.
1, recording process
As shown in Figure 4, record module 100 and realize the recording of user operation.Recording process is divided into four-stage, basic process to retouch State as follows:
(1) the test agent module 300 of intelligent terminal is set up with test main frame and is connected and communicates;
(2) start tested program intelligent terminal, enter initial interface, record recording to click on module 100 interface.Record Module 100 notifies that test agent module 300 enters recording mode, test agent module 300 depositing from intelligent terminal operation system Storage module 400 obtains all operations input on intelligent terminal.
(3) test agent module 300 is inquired about by the control of operation UI element from the memory module 400 of intelligent terminal operation system ID.The data such as control ID, event, duration are passed to recording module 100.
The type transmitting data between test agent module 300 and recording module 100 can be revised according to actual needs, event Various related datas can use general form to record, thus realizes the general compatibility of test script in different intelligent terminal Property, it is also possible to additional formatted data distinctive for certain intelligent terminal, it is achieved the different types of functional test of intelligent terminal UI.
(4) recording click end recording on module 100 interface, recording module 100 and generate operational order script file, record Process terminates.
Owing to containing the control ID with system uniqueness in this operational order script, and there is the thing of general format and content Number of packages evidence, it is possible to achieve same test script is advantageously applied to the test of various different intelligent terminal, without for difference Intelligent terminal write different test scripts, save recording time, also save multiple test script and multiple intelligent terminal Between search time of coupling, substantially increase testing efficiency.
2, replayed section
Playback module 200 completes the automated execution of test script.The UI operation simulation of playback module 200 by test main frame and Intelligent terminal completes alternately, and the test agent module 300 of intelligent terminal is set up one by Socket and monitored service end, prison Listen the instruction that test host PC end is sent, and the execution of modeling event action.Test agent module 300 in the present embodiment has Two major functions: one is and test main-machine communication, and two is monitoring action.
As it is shown in figure 5, the operation simulation of an operational order needs following four step to complete:
(1) playback module 200 described in according in described operational order script record operation order play back, program from Script reads operational order, is sent operational order successively by socket to test agent module 300;
Wherein, it is a four-tuple that playback module 200 is sent to the operational order of test agent module 300, and the form of expression is:
(ControlID,EventType,Action,EventData)
Each operational order represents a user operation, and it has reacted control and user's operation of carrying out control of operation accurately.
Wherein, ControlID is the ID of UI element, has system uniqueness and not replaceability;EventType represents event Type, including key event, motion event and time event.Wherein key represents click input through keyboard type.Motion table Showing click, drag-type, time represents timed event type;Action represents event-action, such as key event have key down, key up;EventData represents that the data of event correlation, such as key type are keycode.
It it is a simple example of operational order herein.In actual application, content that operational order comprises, form, event The data of the classification of type, the classification of event-action and event correlation all independently can be defined by tester, as long as can wrap Containing controlling ID, and other data comprised can go back the operation before original subscriber.
(2) after described test agent module 300 receives an instruction, first check for whether operational order meets definition.By All have unified form and definition in operational order, test agent module 300 can easily from an operational order to letter Breath is classified, and isolates control ID, EventType, Action, EventData information respectively from operational order.
Then described test agent module 300, according to control ID, inquires about intelligent operating system by described memory module 400 The control of middle correspondence, inquires the position of control in system further, by positional information and action, constructs system event;This The test agent module 300 of invention can obtain control ID by the coordinate inquiry of control in recording process, it is also possible in playback During obtain the coordinate of control by control ID inquiry;
(3) system event of structure is sequentially inserted into the message queue of intelligent terminal system by the test agent module 300 described in In.The when that intelligent terminal system processing these events, complete simulation;
(4), after instruction is finished, described test agent module 300 returns and performs result to test host PC end.Meanwhile, During playback program performs, system checkpoint to be judged.At checkpoint, after having performed action, system to obtain current Activity UI attribute information, information and benchmark data are contrasted by described test evaluation module, it is judged that test whether to pass through.In reality In the application of border, the method for test evaluation can also be adopted in other ways, and can be by tester from main separation, in order to mate not UI functional test with type.
In described test agent module 300 monitors the function of event and analog systems event, it is required for obtaining control ID, this Individual can be realized by test frame in the present embodiment.Such as Robotium, it provides simulation various gesture operations (point Hit, long by, slip etc.), search and assert mechanism API (API is the calling interface that operating system leaves application program for, Application program makes operating system go to perform the order of application program by the API of call operation system), it is possible to various controls are entered Row operation.
As shown in Figure 6, in the present embodiment, the interface that test frame offer is provided of test agent module 300, Inquire about control ID during action listener, in event simulation unit 303, parse control ID, event information, pass through test frame Interface, mails to the event queue of intelligent terminal system.In actual applications, technical scheme is not limited to use this kind of side Formula obtains control ID and performs test event.
Have employed the system and method realizing intelligent terminal's UI automatic test in this invention, have the advantages that
(1) technical scheme is used, by selecting control ID as control at the mark recorded and in replayed section, It has uniqueness and not replaceability and not affected by resolution in intelligent terminal operation system, thus the most only effectively Achieve being greatly simplified that intelligent terminal of the same race repeatedly tests, and achieve the compatibility for different intelligent terminal, permissible The intelligent terminal have different resolution performs same test script, can accomplish once to record, in different intelligence eventually Quick automatic test is carried out repeatedly on end;
(2) method of the invention is particularly suitable for UI Automation regression testing;After regression test refers to have modified old code, weight Newly carrying out testing to confirm that amendment does not introduce new mistake or causes other codes to produce mistake, automatic regression test will significantly drop The cost in the stages such as low system test, maintenance upgrade, it is surveyed at whole software as an ingredient of software life-cycle Occupying the biggest workload proportion during examination, each stage of software development all can carry out multiple regression test, progressive and fast In speed iterative development, it is more frequent that the issuing continuously of redaction makes regression test carry out, and in Extreme Programming method, especially Require all carry out regression test several times every day.Therefore, by selecting correct regression testing policy to improve regression tested effect Rate and effectiveness are significantly;
(3) playback module of the present invention is when sending operational order, Checkpointing, test main frame feed back according to test program The test result returned carries out overall merit with benchmark data contrast, it is ensured that being smoothed out of whole test process, and in key Point is fully understood by test case, reaches the purpose of UI functional test;
(4) technical scheme is obtained based on test frame by test agent module, memory module and control module Control ID, in test job, test agent module, memory module and control module coordinated, before test need not be again Write test case especially, record module and can record the data that intelligent terminal sends over as required and obtain test script, greatly Improve greatly testing efficiency, can be widely applied to the UI automatic test of various intelligent terminal such as mobile phone, panel computer etc., tool There is wider application scope.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that still may be made that various Amendment and conversion are without departing from the spirit and scope of the present invention.Therefore, specification and drawings is considered as illustrative rather than limits Property processed.

Claims (21)

1. realizing a system for intelligent terminal's UI automatic test, for intelligent terminal is performed ui testing, it is special Levying and be, described system includes:
Record module, in order to obtain user's operation information from described intelligent terminal, and record into operational order script, described User's operation information includes the control ID operating data and associating with operation;With
Playback module, in order to operational order script to be converted into operational order, and sends to described intelligent terminal;So that it is described Intelligent terminal perform test according to described operational order.
The system realizing intelligent terminal's UI automatic test the most according to claim 1, it is characterised in that described is System also includes:
Test agent module, in order to obtain and to operate the control ID associated, sends described control ID and operation data to institute The recording module stated, and according to described operational order structure test event;With
Memory module, in order to obtain the operation data of user and to store;
Control module, in order to perform intelligent terminal user interface detection according to described test event.
The system realizing intelligent terminal's UI automatic test the most according to claim 2, it is characterised in that described survey Examination proxy module includes:
Communication unit, in order to carry out communication with described recording module and playback module;
Operation monitoring unit, in order to the operation by described memory module monitoring users, and intelligent terminal store in inquiry with The control ID of operation association;
Event simulation unit, in order to described operational order to resolve to control ID and operation data, and constructs test event, with And the program that test event is inserted intelligent terminal performs queue.
The system realizing intelligent terminal's UI automatic test the most according to claim 3, it is characterised in that described is logical The operational order described in the reception of monitoring service end that news unit is set up by Socket;Or described communication unit by TCP or UDP carries out communication with described recording module and playback module, and communication modes uses the Communication Model of client-side/server-side.
The system realizing intelligent terminal's UI automatic test the most according to claim 1, it is characterised in that described is System also includes test evaluation module, described intelligent terminal also in order to test execution result is sent to the most described test evaluation module, Described test evaluation module is in order to carry out test evaluation according to described test execution result.
The system realizing intelligent terminal's UI automatic test the most according to claim 5, it is characterised in that described survey Examination performs result and includes the UI attribute information of current active, and described test evaluation module is in order to believe the UI attribute of current active Breath contrasts with benchmark data, if UI attribute information is within the preset range of benchmark data, then judges that test is passed through, no Then judge that test is not passed through.
The system realizing intelligent terminal's UI automatic test the most according to claim 1, it is characterised in that described behaviour Including action type, operational motion and the data associated with operation as data, described action type includes that input through keyboard type is grasped Make, click/drag-type operates and timed event type operation.
The system realizing intelligent terminal's UI automatic test the most according to claim 1, it is characterised in that described use Family operation information also includes and the coordinate operating the control associated and size.
The system realizing intelligent terminal's UI automatic test the most according to claim 1, it is characterised in that described intelligence Can terminal be mobile phone, panel computer, notebook computer or Set Top Box.
10. the method realizing intelligent terminal's UI automatic test based on the system according to any one of claim 1 to 9, It is characterized in that, described method comprises the following steps:
(1) user's operation information is sent to described recording module by the intelligent terminal described in, and described user's operation information includes Operation data and the control ID associated with operation;
(2) described user's operation information is recorded into operational order script by the recording module described in;
(3) operational order script is converted into operational order and sends to described intelligent terminal by the playback module described in;
(4) intelligent terminal described in performs test according to described operational order.
11. methods realizing intelligent terminal's UI automatic test according to claim 10, it is characterised in that described System also includes test agent module and memory module, described step (1), comprises the following steps:
(1-1) memory module described in obtains the operation data of user;
(1-2) the control ID that the test agent module described in is associated with operation by described memory module inquiry;
(1-3) described operation data and the control ID associated with operation are sent to described record by the test agent module described in Molding block.
12. methods realizing intelligent terminal's UI automatic test according to claim 11, it is characterised in that described Test agent module includes operating monitoring unit, described step (1-2), comprises the following steps:
(1-2-1) the operation monitoring unit operation by described memory module monitoring users described in;
(1-2-2) the operation monitoring unit described in is inquired about in intelligent terminal stores and operates the control ID associated.
13. methods realizing intelligent terminal's UI automatic test according to claim 11, it is characterised in that described System also includes control module, described step (4), comprises the following steps:
(4-1) the test agent module described in constructs test event according to operational order;
(4-2) control module described in performs test according to described test event.
14. methods realizing intelligent terminal's UI automatic test according to claim 13, it is characterised in that described Test agent module includes communication unit and event simulation unit, described step (4-1), comprises the following steps:
(4-1-1) operational order described in communication unit reception described in;
(4-1-2) described operational order is resolved to control ID and operation data by the event simulation unit described in;
(4-1-3) the event simulation unit structure test event described in;
(4-1-4) test event is inserted the program of intelligent terminal and is performed queue by the event simulation unit described in.
15. methods realizing intelligent terminal's UI automatic test according to claim 14, it is characterised in that described Operational order described in communication unit reception, particularly as follows:
The monitoring service end that described communication unit is set up by Socket receive described in operational order.
16. methods realizing intelligent terminal's UI automatic test according to claim 10, it is characterised in that described Step (3), comprises the following steps:
(3-1) described operational order script is converted into operational order by the playback module described in;
(3-2) described operational order is sent successively to described intelligence eventually by the playback module described according to the order in script End.
17. methods realizing intelligent terminal's UI automatic test according to claim 10, it is characterised in that described System also includes test evaluation module, after described step (4), further comprising the steps of:
(5-1) test execution result is sent to described test evaluation module by the intelligent terminal described in;
(5-2) the test evaluation module described in carries out test evaluation according to described test execution result.
18. methods realizing intelligent terminal's UI automatic test according to claim 17, it is characterised in that described Test execution result includes that the UI attribute information of current active, described test evaluation module enter according to described test execution result Row test evaluation, particularly as follows:
The UI attribute information of current active is contrasted by described test evaluation module with benchmark data, if UI attribute information Within the preset range of benchmark data, then judge that test is passed through, otherwise judge that test is not passed through.
19. methods realizing intelligent terminal's UI automatic test according to claim 17, it is characterised in that described After step (5-2), further comprising the steps of:
(5-3) whether the operational order script described in playback module judgement described in is finished, if it is, terminate to exit, Otherwise continue step (3).
20. methods realizing intelligent terminal's UI automatic test according to claim 19, it is characterised in that described (5-1) and between (5-2), further comprising the steps of:
(5-1-1) the test evaluation module described in judges whether present node is systemic presupposition checkpoint, if it is, continue step Suddenly (5-2), step (5-3) is otherwise continued.
21. methods realizing intelligent terminal's UI automatic test according to claim 10, it is characterised in that described Operation data include action type, operational motion and the data associated with operation, and described action type includes input through keyboard type Operation, the operation of click/drag-type and timed event type operation.
CN201610311161.1A 2016-05-12 2016-05-12 System and method for achieving UI automatic test of intelligent terminal Pending CN106021099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610311161.1A CN106021099A (en) 2016-05-12 2016-05-12 System and method for achieving UI automatic test of intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610311161.1A CN106021099A (en) 2016-05-12 2016-05-12 System and method for achieving UI automatic test of intelligent terminal

Publications (1)

Publication Number Publication Date
CN106021099A true CN106021099A (en) 2016-10-12

Family

ID=57099173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610311161.1A Pending CN106021099A (en) 2016-05-12 2016-05-12 System and method for achieving UI automatic test of intelligent terminal

Country Status (1)

Country Link
CN (1) CN106021099A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528413A (en) * 2016-10-27 2017-03-22 北京锐安科技有限公司 Method and device for testing application program
CN106649128A (en) * 2016-12-30 2017-05-10 上海二三四五网络科技有限公司 Method for automatically controlling running of terminal
CN106874190A (en) * 2016-12-30 2017-06-20 上海亿账通互联网科技有限公司 The method of testing and server of user interface
CN107193750A (en) * 2017-07-04 2017-09-22 北京云测信息技术有限公司 A kind of script method for recording and device
CN107357726A (en) * 2017-07-04 2017-11-17 广州云测信息技术有限公司 A kind of application compatibility method of testing and device
CN107562609A (en) * 2017-09-06 2018-01-09 叶进蓉 A kind of operating user interface method for recording and system
CN108717393A (en) * 2018-05-16 2018-10-30 平安科技(深圳)有限公司 A kind of applied program testing method and mobile terminal
CN109783389A (en) * 2019-01-22 2019-05-21 未来电视有限公司 Element control automatic test approach, device and electronic equipment
CN109800135A (en) * 2017-11-17 2019-05-24 腾讯科技(深圳)有限公司 A kind of information processing method and terminal
CN110502437A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A kind of test macro and its method of on-vehicle Bluetooth application program
CN110716849A (en) * 2018-07-11 2020-01-21 亿度慧达教育科技(北京)有限公司 Method and device for recording test cases of application programs
CN110727578A (en) * 2019-08-30 2020-01-24 苏宁智能终端有限公司 Automatic testing method and device for intelligent terminal
CN111061630A (en) * 2019-11-26 2020-04-24 歌尔股份有限公司 Product debugging method, debugging device and readable storage medium
CN111104315A (en) * 2019-11-29 2020-05-05 京东数字科技控股有限公司 Test script generation method and device and computer readable storage medium
CN111444091A (en) * 2020-03-23 2020-07-24 北京字节跳动网络技术有限公司 Test case generation method and device
CN111913869A (en) * 2019-05-08 2020-11-10 立端科技股份有限公司 Test method and test system for automatically testing host operating system
CN111984526A (en) * 2020-07-06 2020-11-24 珠海金山网络游戏科技有限公司 Android hand-trip test method and system
CN112596848A (en) * 2020-12-30 2021-04-02 北京达佳互联信息技术有限公司 Screen recording method and device, electronic equipment, storage medium and program product
CN113110987A (en) * 2020-01-13 2021-07-13 中车唐山机车车辆有限公司 Method and device for debugging single carriage brake of motor train unit
CN113760750A (en) * 2021-08-13 2021-12-07 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium
CN117609060A (en) * 2023-12-01 2024-02-27 上海鱼尔网络科技有限公司 Recording script generation method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241466A (en) * 2007-02-08 2008-08-13 深圳迈瑞生物医疗电子股份有限公司 Embedded software test method and system
CN101620564A (en) * 2008-06-30 2010-01-06 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
CN103365779A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Software test method and system
CN104572447A (en) * 2014-12-19 2015-04-29 中国电子科技集团公司第十五研究所 Method and system for business process recording and replaying based on Android operation system
CN104615538A (en) * 2015-02-05 2015-05-13 天津市康凯特软件科技有限公司 Mobile phone application testing method based on mobile phone interface control elements
US20150254173A1 (en) * 2014-03-07 2015-09-10 Ca, Inc. Automated generation of test cases for regression testing
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241466A (en) * 2007-02-08 2008-08-13 深圳迈瑞生物医疗电子股份有限公司 Embedded software test method and system
CN101620564A (en) * 2008-06-30 2010-01-06 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
CN103365779A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Software test method and system
US20150254173A1 (en) * 2014-03-07 2015-09-10 Ca, Inc. Automated generation of test cases for regression testing
CN104572447A (en) * 2014-12-19 2015-04-29 中国电子科技集团公司第十五研究所 Method and system for business process recording and replaying based on Android operation system
CN104615538A (en) * 2015-02-05 2015-05-13 天津市康凯特软件科技有限公司 Mobile phone application testing method based on mobile phone interface control elements
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张浩华 等: "《软件质量保证与测试技术研究》", 31 January 2015, 北京:中国水利水电出版社 *
米卡赤子: "智能手机自动化测试方案", 《HTTP://WWW.360DOC.CN/ARTICLE/2776353_234234739.HTML》 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528413A (en) * 2016-10-27 2017-03-22 北京锐安科技有限公司 Method and device for testing application program
CN106649128A (en) * 2016-12-30 2017-05-10 上海二三四五网络科技有限公司 Method for automatically controlling running of terminal
CN106874190A (en) * 2016-12-30 2017-06-20 上海亿账通互联网科技有限公司 The method of testing and server of user interface
CN107193750A (en) * 2017-07-04 2017-09-22 北京云测信息技术有限公司 A kind of script method for recording and device
CN107357726A (en) * 2017-07-04 2017-11-17 广州云测信息技术有限公司 A kind of application compatibility method of testing and device
CN107562609A (en) * 2017-09-06 2018-01-09 叶进蓉 A kind of operating user interface method for recording and system
CN109800135B (en) * 2017-11-17 2022-01-07 腾讯科技(深圳)有限公司 Information processing method and terminal
CN109800135A (en) * 2017-11-17 2019-05-24 腾讯科技(深圳)有限公司 A kind of information processing method and terminal
CN108717393A (en) * 2018-05-16 2018-10-30 平安科技(深圳)有限公司 A kind of applied program testing method and mobile terminal
WO2019218458A1 (en) * 2018-05-16 2019-11-21 平安科技(深圳)有限公司 Application program test method and device, mobile terminal and medium
CN108717393B (en) * 2018-05-16 2022-05-27 平安科技(深圳)有限公司 Application program testing method and mobile terminal
CN110716849A (en) * 2018-07-11 2020-01-21 亿度慧达教育科技(北京)有限公司 Method and device for recording test cases of application programs
CN109783389A (en) * 2019-01-22 2019-05-21 未来电视有限公司 Element control automatic test approach, device and electronic equipment
CN111913869B (en) * 2019-05-08 2024-02-13 立端科技股份有限公司 Test method and test system for automatically testing host operating system
CN111913869A (en) * 2019-05-08 2020-11-10 立端科技股份有限公司 Test method and test system for automatically testing host operating system
CN110502437A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A kind of test macro and its method of on-vehicle Bluetooth application program
CN110502437B (en) * 2019-07-31 2023-07-28 惠州市德赛西威汽车电子股份有限公司 Test system and method for vehicle-mounted Bluetooth application program
CN110727578B (en) * 2019-08-30 2024-05-31 苏宁智能终端有限公司 Automatic testing method and device for intelligent terminal
CN110727578A (en) * 2019-08-30 2020-01-24 苏宁智能终端有限公司 Automatic testing method and device for intelligent terminal
CN111061630A (en) * 2019-11-26 2020-04-24 歌尔股份有限公司 Product debugging method, debugging device and readable storage medium
CN111104315A (en) * 2019-11-29 2020-05-05 京东数字科技控股有限公司 Test script generation method and device and computer readable storage medium
CN113110987A (en) * 2020-01-13 2021-07-13 中车唐山机车车辆有限公司 Method and device for debugging single carriage brake of motor train unit
CN113110987B (en) * 2020-01-13 2024-04-09 中车唐山机车车辆有限公司 Method and equipment for debugging braking of single carriage of motor train unit
CN111444091A (en) * 2020-03-23 2020-07-24 北京字节跳动网络技术有限公司 Test case generation method and device
CN111984526A (en) * 2020-07-06 2020-11-24 珠海金山网络游戏科技有限公司 Android hand-trip test method and system
CN112596848A (en) * 2020-12-30 2021-04-02 北京达佳互联信息技术有限公司 Screen recording method and device, electronic equipment, storage medium and program product
CN112596848B (en) * 2020-12-30 2024-06-04 北京达佳互联信息技术有限公司 Screen recording method, device, electronic equipment, storage medium and program product
CN113760750A (en) * 2021-08-13 2021-12-07 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium
CN117609060A (en) * 2023-12-01 2024-02-27 上海鱼尔网络科技有限公司 Recording script generation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106021099A (en) System and method for achieving UI automatic test of intelligent terminal
CN102693183B (en) Method and system for realizing automatic software testing
CN106021095B (en) A kind of Android application automated testing method based on push-mechanism
CN104484273B (en) The method of testing of application program, equipment and system
CN104699591B (en) A kind of test scene replay method and device
CN108959000A (en) A kind of server stress test method, system and terminal
CN101710352B (en) Method, system and graphical user interface for configuring simulator and simulating a plurality of devices
CN106569801A (en) Complex parameter-based configuration display control system
CN106250307A (en) A kind of bank's mobile phone application automated testing method and system
CN104572444A (en) Cloud testing platform for game performance and testing method for cloud testing platform
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN102053911A (en) Automated testing method and system based on Android and mobile terminal
CN101710351B (en) Method and system for simulating a plurality of devices
CN102916848B (en) Automatic test method of Ethernet interface equipment based on script technology
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN108664386A (en) A kind of automated testing method and platform
CN105204991A (en) Internet of things test method and device
CN102411540A (en) Automatic management system of workflow-based common software testing process
CN112579455B (en) Automatic interface testing method and device, electronic equipment and storage medium
CN110502434A (en) A kind of automatic test approach and device
CN110298007A (en) User behavior statistical method, device, electronic equipment and computer readable storage medium
CN111245671B (en) Automatic integrated test system for ground test of satellite laser communication terminal
CN109871221A (en) A kind of system for deployment mobile application software of quickly installing for mobile terminal device
CN109445384B (en) Multi-device control system

Legal Events

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

Application publication date: 20161012