CN102147756A - Methods and systems for testing terminal - Google Patents

Methods and systems for testing terminal Download PDF

Info

Publication number
CN102147756A
CN102147756A CN2010101072795A CN201010107279A CN102147756A CN 102147756 A CN102147756 A CN 102147756A CN 2010101072795 A CN2010101072795 A CN 2010101072795A CN 201010107279 A CN201010107279 A CN 201010107279A CN 102147756 A CN102147756 A CN 102147756A
Authority
CN
China
Prior art keywords
action events
incident
event
character
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010101072795A
Other languages
Chinese (zh)
Other versions
CN102147756B (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN 201010107279 priority Critical patent/CN102147756B/en
Publication of CN102147756A publication Critical patent/CN102147756A/en
Application granted granted Critical
Publication of CN102147756B publication Critical patent/CN102147756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a system for testing a terminal. The method comprises the step of: when an operation event is recorded, only recording a time length with a longer time interval of start of two adjacent operation events instead of recording the time length of every operation event, wherein the time length is used as a time delay event record; the data quantity for generating a test script is reduced and the process for generating the test script is simplified; moreover, as the terminal does not need to count the time length corresponding to every operation event when playing back the event, the safety and the reliability of a test result are guaranteed and the burden that the test terminal plays back the event is reduced. Meanwhile, in the embodiment 1 of the invention, a longer time delay between the two adjacent operation events is recorded in the form of a time delay event, so the test scripts and the contents and the generated number of the test scripts are decreased, and the system burden is reduced. The invention also discloses another two methods and systems for testing the terminal.

Description

The terminal test method and system
Technical field
The present invention relates to the communications field, relate in particular to a kind of terminal test method and system.
Background technology
When the performance of terminal was tested, main method of testing was the simulation manual operation, and test terminal equipment is applied operational order, by watch-dog the running status of terminal was detected the performance state of definite terminal simultaneously.Under this performance test mode, need write test script program (as the Java language test code) according to test case by the personnel that possess certain development ability, then written program is passed through software or hardware mode input test terminal.For the test script program that the test terminal can correct execution be write, need on the test terminal, install and move special test client, by the client identification and the operation test script program of installing, to reach purpose to terminal test.
Existing measuring technology to terminal generally relies on the comparatively complicated test script program of manually writing in advance, be subjected to long influence of construction cycle, many test script programs perfect do not catch up with actual test needs, manual compiling test script program also is subjected to developer's level and state constraint simultaneously, directly has influence on the correctness and the reliability of test procedure self.
In order to address the above problem, proposed at present to record, the terminal test mode (as the Android test macro) of playback mode, this mode is that the button operation that the tester is carried out on the test terminal and the information such as screen picture of operation are noted, transfer to treating apparatus then and generate automatic test script, require the operation of test terminal playback, and then realize test terminal performance in the operation replayed section.
Record, the terminal test mode of playback mode is in the tempo of development that to a certain degree can improve test script, can satisfy the needs of function, performance and pressure test to the test terminal substantially.But the execution duration of each incident and the time interval between incident have also been write down in the script that generates after the course of event that the tester carries out is handled on the test terminal, need extra control time delay when causing the script playback to carry out, simultaneously some to speed insensitive operation also spun out by meaningless; In addition, also indistinguishably record, reduced the efficient when playback is carried out as Action Events for the incident of some character Introduced cases; Distinguishingly, for slide at touch-screen, because slide is the unit execution that is decomposed with the pixel coordinate, therefore, each is that the Action Events of unit also needs all record and generates test scripts, the burden when complicacy that the aggravation test script generates and test script operation with the pixel coordinate.
Summary of the invention
First goal of the invention of the present invention is:
The embodiment of the invention provides a kind of terminal test method and system, the incident key element that is used for generating test script with solution has write down the execution duration of each incident and the time interval between incident, causes script generates needs extra control time delay when complexity and playback are carried out problem.
Realize that the technical scheme that first goal of the invention adopts mainly comprises:
A kind of terminal test method, described method comprises:
Determine the test terminal is carried out in every twice adjacent Action Events, last Action Events begins time interval of beginning to back one Action Events;
Write down the incident key element of each Action Events, if the described time interval less than first setting threshold, is not then write down the duration of last Action Events; Otherwise, with the described time interval as a time delay incident, and with this time delay incident be arranged on described last Action Events and the back one Action Events between;
The test terminal when carrying out event replay, the Action Events of executive logging successively, the perhaps Action Events of executive logging and time delay incident successively.
A kind of terminal test system, described system comprises:
At interval determination module is used for determining every twice adjacent Action Events carried out in the test terminal, and last Action Events begins time interval of beginning to back one Action Events;
Comparison module is used for the described time interval and first setting threshold are compared;
Logging modle is used to write down the incident key element of each Action Events, if the described time interval less than first setting threshold, is not then write down the duration of last Action Events; Otherwise, with the described time interval as a time delay incident, and with this time delay incident be arranged on described last Action Events and the back one Action Events between;
Playback module is used for when carrying out event replay, the Action Events of executive logging successively, the perhaps Action Events of executive logging and time delay incident successively.
The beneficial effect of present embodiment is as follows:
Because when the embodiment of the invention writes down Action Events, only write down the bigger duration of the time interval that adjacent twice Action Events begins, and the duration of each Action Events is not carried out record, and reduced the data volume that is used to generate test script, simplified the generative process of test script; And,, in the security of guaranteeing test result and reliability, reduced the burden of test terminal when carrying out event replay because timing needn't be carried out to the duration of each Action Events correspondence in the test terminal when carrying out event replay.Simultaneously, the embodiment of the invention one has reduced the generation quantity of test script and content and test script also with the form record of time delay long between two adjacent Action Events with the time delay incident, has reduced system burden.
Second goal of the invention of the present invention is:
The embodiment of the invention also provides a kind of terminal test method and system, also indistinguishably records as Action Events to solve the character incoming event, has reduced the problem of the efficient when playback is carried out.
Realize that the technical scheme that second goal of the invention adopts mainly comprises:
A kind of terminal test method, described method comprises:
Whether the Action Events that judgement is carried out the test terminal is the character incoming event, if then write down the character of this incident input;
The test terminal is when carrying out event replay, according to the character execution character incoming event of record.
A kind of terminal test system, described system comprises:
The incident judge module is used to judge whether the Action Events that the test terminal is carried out is the character incoming event;
Logging modle is used for when whether the decision operation incident is the character incoming event, writes down the character of this incident input;
Playback module is used for when carrying out event replay, according to the character execution character incoming event of record.
The beneficial effect of present embodiment is as follows:
Because the embodiment of the invention extracts the character incoming event, the character of record character incoming event input, avoid that the Action Events of each character input all is used as the button incoming event and handle, can once import a plurality of characters at a relatively high speed, thus avoid button operation than long time delay.
The 3rd goal of the invention of the present invention is:
The embodiment of the invention also provides a kind of terminal test method and system, when solving the slide of touch-screen, because being the Action Events of unit with the pixel coordinate, each in the touch-screen slide process also need all record and generation test script, the problem of the burden when complicacy that the aggravation test script generates and test script operation.
Realize that the technical scheme that the 3rd goal of the invention adopts mainly comprises:
A kind of terminal test method, described method comprises:
When the touch-screen slide is carried out in the test terminal, the Action Events when Action Events when record touch-screen slide begins and touch-screen slide finish;
The test terminal when carrying out event replay, the Action Events the when Action Events when the touch-screen slide of executive logging begins and touch-screen slide finish.
A kind of terminal test system, described system comprises:
Logging modle is used for when the touch-screen slide is carried out in the test terminal, the Action Events when Action Events when record touch-screen slide begins and touch-screen slide finish;
Playback module is used for when carrying out event replay, the Action Events when Action Events when the touch-screen slide of executive logging begins and touch-screen slide finish.
The beneficial effect of present embodiment is as follows:
Because the embodiment of the invention only writes down the beginning Action Events and the end operation incident of touch-screen slide, the beginning of test terminal playback key when carrying out the playback of touch-screen slip event and the touch event of end make the touch-screen slip event finish playback in very short time.
Description of drawings
Fig. 1 is a terminal test method synoptic diagram in the embodiment of the invention one;
Fig. 2 is a terminal test system schematic in the embodiment of the invention two;
Fig. 3 is a terminal test method synoptic diagram in the embodiment of the invention three;
Fig. 4 is a terminal test system schematic in the embodiment of the invention four;
Fig. 5 is a terminal test method synoptic diagram in the embodiment of the invention five;
Fig. 6 is a terminal test system schematic in the embodiment of the invention six.
Embodiment
Below in conjunction with Figure of description the embodiment of the invention is described in detail.
The Action Events of in various embodiments of the present invention the test terminal being carried out can be directly to the operation of test terminal, also can be to connect the test terminal by modes such as PC, by USB interface or adb-Server server program by the pc access test terminal.The terminal that present embodiment relates to can be based on the terminal of linux system under the Android, can be not directly under the/dev/input/ each event device file read Action Events to the test terminal, present embodiment also is not limited to implant special-purpose Agent and catches Action Events on the test terminal.In addition, can directly on the test terminal, finish the function that incident is caught, generated test script and carry out script in the embodiment of the invention by ASE (AndroidScripting Environment), also can finish the function that incident is caught, generated test script, carry out script by the test terminal again by peripheral hardware.
The incident key element of the Action Events that writes down in various embodiments of the present invention can comprise following three key elements at least:
1, event type; For example Ce Shi incident is key-press event (comprise and push button, lift button), touchscreen events (comprise and press, lift), inductor incident etc.
2, incident value coding; For example keyboard-coding (as pressing " 1 " key), touch-screen position coordinates (position coordinates of pressing as touchscreen events).
3, state-event; For example press or lift.
Each Action Events that comprises above-mentioned three key elements can constitute a single incident.
Embodiment one:
In the scheme of the embodiment of the invention one, consideration present record, under the terminal test mode of playback mode, the duration that needs record each Action Events itself, and the duration of the running time correspondence noted joined in the incident key element, an incident key element of this incident become.In the case, because the duration of each Action Events is all noted, the quantity of information of the incident key element that writes down in the test duration section is very big, makes the process that generates test script become very complicated; Simultaneously and since the test terminal when carrying out event replay according to test script needs the duration of each Action Events correspondence is carried out timing, aggravated the burden of test terminal when carrying out event replay.To this, the embodiment of the invention one proposes a kind of terminal test mode, as shown in Figure 1, can significantly reduce the incident factor content of Action Events of record and the burden when reducing event replay.
The scheme of the embodiment of the invention one is as follows:
Step 101: determine the test terminal is carried out in every twice adjacent Action Events, last Action Events begins time interval of beginning to back one Action Events.
In the present embodiment, supposing that the tester has successively carried out twice adjacent operation to the test terminal, is respectively that button push incident (last Action Events) and button lift Action Events (back one Action Events).Start timer when button push incident begins, lift at button and stop timing when Action Events begins, at this moment, the time of timer record is that button push incident and button lift the time interval between the Action Events.
For another example, after carrying out button to lift Action Events, the tester to carry out button push incident once more, then when case is lifted Action Events and is begun, start another timer once more, when beginning once more to carry out button push incident, finish timing, at this moment, the time of timer record is that button lifts the time interval between Action Events and the button push incident.
Step 102: the described time interval and first setting threshold are compared, if less than first setting threshold, then execution in step 103; Otherwise, execution in step 104.
In the present embodiment, first setting threshold can be set or rule of thumb value setting according to test request, and upgrades according to different demands.For example, if higher, can set first setting threshold less to the accuracy requirement of terminal test; If the accuracy requirement to terminal test is lower, but wish that the resource that takies when test script generates is less, take less resource when then moving test script, can set first setting threshold bigger.
Step 103: the incident key element of recording operation incident, and do not write down the duration of last Action Events, at this moment,, then jump to step 105 if the test duration finishes; Otherwise, jump to step 101, the incident key element of next event is carried out record.
In this step, because the time interval of adjacent twice Action Events less (first Action Events begins to have again in the short time afterwards second Action Events to begin to carry out), the time delay of test terminal process self when the operation test script can have been guaranteed the normal execution of twice Action Events, therefore, can not write down the duration of the first Action Events correspondence, and the time interval of determining does not need record yet in step 101.
Step 104: the incident key element of recording operation incident, with the described time interval as a time delay incident, and this time delay incident is arranged between described last Action Events and back one Action Events, and write down this time delay incident, if the test duration finishes, then jump to step 105; Otherwise, jump to step 101, the incident key element of next event is carried out record.
If after an Action Events begins, still not having new events in first setting threshold takes place, then need to write down the duration of this Action Events, when the next operation event comes, just finish timing, and the time interval of timing will be compiled as test script as a time delay incident, and with this time delay incident be arranged on described last Action Events and the back one Action Events between.When event replay is carried out according to test script in the test terminal, during a certain incident that in carrying out test script, compiles, execute this Action Events after, will carry out next event, and next event is if the time delay incident, then waits for the Action Events of carrying out the back behind the described duration again.For example: last Action Events is a button push incident, but continuing to push button 3 seconds carries out just beginning button after the shortcut operation and lifts Action Events, at this moment, if first setting threshold less than 3 seconds, then need with 3 seconds time intervals between twice Action Events as a time delay incident.
By the scheme of circulation execution in step 101~step 104, each Action Events that the tester is carried out on the test terminal has carried out record, and then can carry out the Huis to the incident in the test duration section and put according to the incident key element of record.
Step 105: when carrying out event replay, the Action Events of executive logging successively, the perhaps Action Events of executive logging and time delay incident successively.
In time interval of determining during,, carry out the Action Events of each incident key element correspondence according to the incident key element of record less than first setting value; If write down the time delay incident, the test terminal Action Events and the time delay incident of executive logging successively then.
Because there was very short time delay in process switch when shell script was carried out, therefore, in this step, last Action Events finishes do not have extra time delay to having time delay to be meant between twice Action Events between back one Action Events begins.
Scheme by the embodiment of the invention one, because when each Action Events that the tester is carried out on the test terminal writes down, only write down the bigger duration of the time interval that adjacent twice Action Events begins, and the duration of each Action Events is not carried out record, reduce the data volume that is used to generate test script, simplified the generative process of test script; And,, in the security of guaranteeing test result and reliability, reduced the burden of test terminal when carrying out event replay because timing needn't be carried out to the duration of each Action Events correspondence in the test terminal when carrying out event replay.Simultaneously, the embodiment of the invention one has reduced the generation quantity of test script and content and test script also with the form record of time delay long between two adjacent Action Events with the time delay incident, has reduced system burden.
Embodiment two:
The embodiment of the invention also provides a kind of terminal test system, as shown in Figure 2, described system comprises: interval determination module 11, comparison module 12, logging modle 13 and playback module 14, wherein: at interval determination module 11 is used for determining every twice adjacent Action Events carried out in the test terminal, and last Action Events begins time interval of beginning to back one Action Events; Comparison module 12 is used for the described time interval and first setting threshold are compared; Logging modle 13 is used to write down the incident key element of each Action Events, if the described time interval less than first setting threshold, is not then write down the duration of last Action Events; Otherwise, with the described time interval as a time delay incident, and with this time delay incident be arranged on described last Action Events and the back one Action Events between; Playback module 14 is used for when carrying out event replay, the Action Events of executive logging successively, the perhaps Action Events of executive logging and time delay incident successively.
Each module in the present embodiment can be the logical block in the test terminal, and determination module 11 and comparison module 12 also can be other logical blocks that are used for the peripheral hardware of logout at interval.
Embodiment three:
In the scheme of the embodiment of the invention three, consideration present record, under the terminal test mode of playback mode, if tester's execution character input operation incident, character of then every input, need record one-touch push incident and a button to lift Action Events, further, if the Action Events of input of character string, then need to write down a large amount of button push incident and button and lift Action Events, therefore, can bring a large amount of redundant incidents to test script, have a strong impact on the efficient of test terminal when carrying out playback according to test script.To this, the embodiment of the invention three proposes a kind of terminal test mode, as shown in Figure 3, can significantly reduce the redundant operation incident of record, the efficient when playback is carried out to character input operation incident in the raising test terminal.
The scheme of the embodiment of the invention three is as follows:
Step 301: judge whether the Action Events that the test terminal is carried out is the character incoming event, if then execution in step 302; Otherwise, according to normal recording mode recording operation incident.
The normal recordings mode that relates in the present embodiment can be meant recording of relating in the background technology, playback mode, also can be meant the test mode of record among the embodiment one.
Present embodiment is resolved by incident value coding and state-event to Action Events, judges whether this Action Events is the character incoming event.Specific implementation is:
Whether the incident value coding of at first judging twice adjacent Action Events is key-press event, and whether state-event is that button is pressed incident and button lifts incident, if, judge further that then whether button press the duration of incident correspondence less than second setting threshold, the duration of pressing the incident correspondence at button determines that described twice adjacent Action Events is the character incoming event during less than second setting threshold.
Second setting threshold here can rule of thumb be worth setting.For example, the length of representing shortcut when rule of thumb value is determined lasting duration that button is pressed for how long by, then the second setting threshold setting is pressed duration less than the length of expression shortcut.
Step 302: the character of record symbol incoming event input.
Distinguishingly, if a plurality of Action Events of carrying out all are the character incoming events continuously, promptly there is repeatedly continuous character incoming event, and the interval between each character incoming event is no more than the 3rd setting threshold, what represent current tester's execution is the character string incoming event, the character that then at every turn writes down is set to character string according to the sequencing of record, and with the character string of noting store into the corresponding configuration file of test script program in, give this character string a newly-built variable simultaneously.
The 3rd threshold value here is the identification parameter to the end point of character string, if the interval between twice character input operation incident excessive (surpassing the 3rd setting threshold), the character of representing this twice character input operation incident input may not have incidence relation, record respectively.
Step 303: when carrying out event replay, according to the character execution character incoming event of record.
If record is character string in step 302, then the button operation that no longer is broken down into repeatedly of character string is imported one by one, but directly according to the character string of record, carries out described character string input operation.For example, if the test terminal in the present embodiment be under the Android based on the terminal of linux system, the disposable input of sendText method that then can directly call the com.android.commands.input object has the character string of newly-built variable.
Method of testing by the embodiment of the invention three, avoiding that the Action Events of each character input all is used as the button input handles, send system to through directly calling physical layer interface after the discrimination arrangement, can once import a plurality of characters at a relatively high speed, thus avoid button operation than long time delay; Simultaneously, the variate-value in the configuration file of store character string can be revised, and perhaps gives many class values, and test data is separated with test process, and higher flexibility is provided, and has reduced the frequency of the test procedure adjustment of test case modification initiation.
Embodiment four:
The embodiment of the invention also provides a kind of terminal test system, as shown in Figure 4, described system comprises incident judge module 21, logging modle 22 and playback module 23, and wherein: incident judge module 21 is used to judge whether the Action Events that the test terminal is carried out is the character incoming event; Logging modle 22 is used for when whether the decision operation incident is the character incoming event, writes down the character of this incident input; Playback module 23 is used for when carrying out event replay, according to the character execution character incoming event of record.
Described incident judge module comprises that 21 comprise: first implementation sub-module 31 is used to judge whether twice adjacent Action Events is that button is pressed incident and button lifts incident; Whether second implementation sub-module 32 is used in the decision operation incident is that button is when pressing incident and button and lifting incident, further judge that whether button press the duration of incident correspondence less than second setting threshold, the duration of pressing the incident correspondence at button determines that described twice adjacent Action Events is the character incoming event during less than second setting threshold.
Described system also comprises determination module 24, is used to determine whether to exist repeatedly continuous character incoming event; Described logging modle 22 also is used for determine having repeatedly continuous character incoming event, and the interval between each character incoming event is when being no more than the 3rd setting threshold, and Ji Lu character is set to character string according to the sequencing that writes down at every turn; Described playback module 23 also is used for the character string according to record, carries out described character string input operation.
Each module in the present embodiment can be the logical block in the test terminal, and incident judge module 21 and logging modle 22 also can be other logical blocks that are used for the peripheral hardware of logout.
Embodiment five:
In the scheme of the embodiment of the invention five, consideration present record, under the terminal test mode of playback mode, if the test terminal is a touch screen terminal, then when carrying out the touch-screen slide, the tester (do not drag icon etc.) as what finger did not leave touch-screen, need the corresponding a plurality of sequences of events of record, just with once somewhere coordinate press incident and begin, each location of pixels coordinate all has an incident to go on record in sliding path then, finishes up to discharging in the target location to touch.The test script that generates is when actual playback, and these slip event are unit executions that be decomposed with the location of pixels coordinate still, and one time the touch-screen slip event is broken down into a plurality of incidents playbacks, causes a large amount of time delays.To this, the embodiment of the invention five proposes a kind of terminal test mode, as shown in Figure 5, present embodiment only is concerned about reference position coordinate and the end position coordinate in the touch-screen slide process, and the Action Events in the sliding process is considered as redundant incident and does not need record.
The scheme of the embodiment of the invention five is as follows:
Step 501: when the touch-screen slide is carried out in the test terminal, the Action Events when Action Events when record touch-screen slide begins and touch-screen slide finish.
The Action Events that writes down in this step can be according to the mode record of embodiment one record, the content of record can only be Action Events and touch-screen slide the Action Events when finishing of touch-screen slide when beginning, the also further Action Events of one or more (continuous or discontinuous) between the Action Events when Action Events during start-of-record and EO, but do not write down whole Action Events of touch-screen slide.
In the incident key element of the Action Events when the touch-screen slide begins, event type is that touchscreen events, incident value coding are that touch-screen position coordinates, state-event are to press;
In the incident key element of the Action Events when the touch-screen slide finishes, event type is that touchscreen events, incident value coding are that touch-screen position coordinates, state-event are to lift.
Step 502: the test terminal when carrying out event replay, the Action Events the when Action Events when the touch-screen slide of executive logging begins and touch-screen slide finish.
By the method for the embodiment of the invention five, the beginning of test terminal playback key when carrying out the playback of touch-screen slip event and the touch event of end make the touch-screen slip event finish playback in very short time.The beginning of record, the position coordinates of end also leave in the configuration file as the value of newly-built variable, and the start-stop coordinate figure of variable can be modified to improve dirigibility.
Embodiment six:
The embodiment of the invention six also provides a kind of terminal test system, as shown in Figure 6, described system comprises logging modle 31 and playback module 32, wherein: logging modle 31 is used for when the touch-screen slide is carried out in the test terminal, the Action Events when Action Events when record touch-screen slide begins and touch-screen slide finish; Playback module 32 is used for when carrying out event replay, the Action Events when Action Events when the touch-screen slide of executive logging begins and touch-screen slide finish.
Each module in the present embodiment can be the logical block in the test terminal, and logging modle 31 also can be other logical blocks that are used for the peripheral hardware of logout.
In the various embodiments of the present invention, the test terminal can be used for test to terminal capabilities to the playback operation of incident, also can be used for the reproduction of incident.
Those skilled in the art should understand that the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware embodiment, complete software implementation example or in conjunction with the form of the embodiment of software and hardware aspect.And the application can adopt the form that goes up the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The application is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the present application.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of carrying out on computing machine or other programmable devices is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Although described the application's preferred embodiment, in a single day those skilled in the art get the basic creative notion of cicada, then can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the application's scope.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (12)

1. a terminal test method is characterized in that, described method comprises:
Determine the test terminal is carried out in every twice adjacent Action Events, last Action Events begins time interval of beginning to back one Action Events;
Write down the incident key element of each Action Events, if the described time interval less than first setting threshold, is not then write down the duration of last Action Events; Otherwise, with the described time interval as a time delay incident, and with this time delay incident be arranged on described last Action Events and the back one Action Events between;
The test terminal when carrying out event replay, the Action Events of executive logging successively, the perhaps Action Events of executive logging and time delay incident successively.
2. the method for claim 1 is characterized in that,
The incident key element of described Action Events comprises: event type, incident value coding and state-event.
3. a terminal test system is characterized in that, described system comprises:
At interval determination module is used for determining every twice adjacent Action Events carried out in the test terminal, and last Action Events begins time interval of beginning to back one Action Events;
Comparison module is used for the described time interval and first setting threshold are compared;
Logging modle is used to write down the incident key element of each Action Events, if the described time interval less than first setting threshold, is not then write down the duration of last Action Events; Otherwise, with the described time interval as a time delay incident, and with this time delay incident be arranged on described last Action Events and the back one Action Events between;
Playback module is used for when carrying out event replay, the Action Events of executive logging successively, the perhaps Action Events of executive logging and time delay incident successively.
4. a terminal test method is characterized in that, described method comprises:
Whether the Action Events that judgement is carried out the test terminal is the character incoming event, if then write down the character of this incident input;
The test terminal is when carrying out event replay, according to the character execution character incoming event of record.
5. method as claimed in claim 4 is characterized in that, whether the decision operation incident is the character incoming event, comprising:
Judge whether twice adjacent Action Events is that button is pressed incident and button lifts incident, if, judge further that then whether button press the duration of incident correspondence less than second setting threshold, the duration of pressing the incident correspondence at button determines that described twice adjacent Action Events is the character incoming event during less than second setting threshold.
6. method as claimed in claim 5 is characterized in that, before carrying out event replay, described method also comprises:
Determine to have repeatedly continuous character incoming event, and the interval between each character incoming event is when being no more than the 3rd setting threshold, Ji Lu character is set to character string according to the sequencing that writes down at every turn;
When carrying out event replay, the character execution character incoming event according to record comprises:
According to the character string of record, carry out described character string input operation.
7. a terminal test system is characterized in that, described system comprises:
The incident judge module is used to judge whether the Action Events that the test terminal is carried out is the character incoming event;
Logging modle is used for when whether the decision operation incident is the character incoming event, writes down the character of this incident input;
Playback module is used for when carrying out event replay, according to the character execution character incoming event of record.
8. system as claimed in claim 7 is characterized in that, described incident judge module comprises:
First implementation sub-module is used to judge whether twice adjacent Action Events is that button is pressed incident and button lifts incident;
Second implementation sub-module, whether be used in the decision operation incident is that button is when pressing incident and button and lifting incident, further judge that whether button press the duration of incident correspondence less than second setting threshold, the duration of pressing the incident correspondence at button determines that described twice adjacent Action Events is the character incoming event during less than second setting threshold.
9. system as claimed in claim 8 is characterized in that, described system also comprises:
Determination module is used to determine whether to exist repeatedly continuous character incoming event;
Described logging modle also is used for determine having repeatedly continuous character incoming event, and the interval between each character incoming event is when being no more than the 3rd setting threshold, and Ji Lu character is set to character string according to the sequencing that writes down at every turn;
Described playback module also is used for the character string according to record, carries out described character string input operation.
10. a terminal test method is characterized in that, described method comprises:
When the touch-screen slide is carried out in the test terminal, the Action Events when Action Events when record touch-screen slide begins and touch-screen slide finish;
The test terminal when carrying out event replay, the Action Events the when Action Events when the touch-screen slide of executive logging begins and touch-screen slide finish.
11. method as claimed in claim 10 is characterized in that, in the incident key element of the Action Events when the touch-screen slide begins, event type is that touchscreen events, incident value coding are that touch-screen position coordinates, state-event are to press;
In the incident key element of the Action Events when the touch-screen slide finishes, event type is that touchscreen events, incident value coding are that touch-screen position coordinates, state-event are to lift.
12. a terminal test system is characterized in that, described system comprises:
Logging modle is used for when the touch-screen slide is carried out in the test terminal, the Action Events when Action Events when record touch-screen slide begins and touch-screen slide finish;
Playback module is used for when carrying out event replay, the Action Events when Action Events when the touch-screen slide of executive logging begins and touch-screen slide finish.
CN 201010107279 2010-02-05 2010-02-05 Methods and systems for testing terminal Active CN102147756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010107279 CN102147756B (en) 2010-02-05 2010-02-05 Methods and systems for testing terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010107279 CN102147756B (en) 2010-02-05 2010-02-05 Methods and systems for testing terminal

Publications (2)

Publication Number Publication Date
CN102147756A true CN102147756A (en) 2011-08-10
CN102147756B CN102147756B (en) 2013-04-03

Family

ID=44422029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010107279 Active CN102147756B (en) 2010-02-05 2010-02-05 Methods and systems for testing terminal

Country Status (1)

Country Link
CN (1) CN102147756B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019899A (en) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 Method and system for replaying intelligent terminal event as well as intelligent terminal
CN103135813A (en) * 2011-11-25 2013-06-05 亚旭电子科技(江苏)有限公司 Handheld type electronic device testing method
CN103558976A (en) * 2013-09-24 2014-02-05 工业和信息化部电信研究院 Terminal testing method and device
WO2014169565A1 (en) * 2013-08-21 2014-10-23 中兴通讯股份有限公司 Terminal testing method and device
CN106055442A (en) * 2016-05-31 2016-10-26 周奇 Operation reproduction method and device
CN106155886A (en) * 2015-03-31 2016-11-23 北京奇虎科技有限公司 The method and apparatus that a kind of key Mus script processes
CN106155649A (en) * 2015-03-31 2016-11-23 北京奇虎科技有限公司 A kind of key Mus script processing method and device
CN106886245A (en) * 2015-12-16 2017-06-23 天脉聚源(北京)科技有限公司 A kind of accurate countdown realization method and system
CN107908554A (en) * 2017-11-06 2018-04-13 珠海金山网络游戏科技有限公司 A kind of method and system of the motion capture of mobile phone games, recording and recurrence
CN109739707A (en) * 2018-12-29 2019-05-10 Tcl移动通信科技(宁波)有限公司 A kind of test processing method, mobile terminal and storage medium
CN113377632A (en) * 2021-05-25 2021-09-10 北京猿力教育科技有限公司 User behavior backtracking method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587969B1 (en) * 1998-06-22 2003-07-01 Mercury Interactive Corporation Software system and methods for testing the functionality of a transactional server
CN101082877A (en) * 2006-05-30 2007-12-05 上海科泰世纪科技有限公司 Automatically testing interface of graphical user interface program and automatically testing method thereof
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587969B1 (en) * 1998-06-22 2003-07-01 Mercury Interactive Corporation Software system and methods for testing the functionality of a transactional server
CN101082877A (en) * 2006-05-30 2007-12-05 上海科泰世纪科技有限公司 Automatically testing interface of graphical user interface program and automatically testing method thereof
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135813A (en) * 2011-11-25 2013-06-05 亚旭电子科技(江苏)有限公司 Handheld type electronic device testing method
CN103019899A (en) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 Method and system for replaying intelligent terminal event as well as intelligent terminal
WO2014169565A1 (en) * 2013-08-21 2014-10-23 中兴通讯股份有限公司 Terminal testing method and device
CN104424089A (en) * 2013-08-21 2015-03-18 中兴通讯股份有限公司 Terminal testing method and device
CN103558976A (en) * 2013-09-24 2014-02-05 工业和信息化部电信研究院 Terminal testing method and device
CN103558976B (en) * 2013-09-24 2016-08-17 工业和信息化部电信研究院 A kind of terminal test method and device
CN106155649A (en) * 2015-03-31 2016-11-23 北京奇虎科技有限公司 A kind of key Mus script processing method and device
CN106155886A (en) * 2015-03-31 2016-11-23 北京奇虎科技有限公司 The method and apparatus that a kind of key Mus script processes
CN106155886B (en) * 2015-03-31 2019-05-14 北京奇虎科技有限公司 A kind of method and apparatus of key mouse script processing
CN106155649B (en) * 2015-03-31 2020-02-14 北京奇虎科技有限公司 Keyboard and mouse script processing method and device
CN106886245A (en) * 2015-12-16 2017-06-23 天脉聚源(北京)科技有限公司 A kind of accurate countdown realization method and system
CN106055442A (en) * 2016-05-31 2016-10-26 周奇 Operation reproduction method and device
CN106055442B (en) * 2016-05-31 2019-06-25 周奇 Operate replay method and device
CN107908554A (en) * 2017-11-06 2018-04-13 珠海金山网络游戏科技有限公司 A kind of method and system of the motion capture of mobile phone games, recording and recurrence
CN109739707A (en) * 2018-12-29 2019-05-10 Tcl移动通信科技(宁波)有限公司 A kind of test processing method, mobile terminal and storage medium
CN109739707B (en) * 2018-12-29 2023-08-11 Tcl移动通信科技(宁波)有限公司 Test processing method, mobile terminal and storage medium
CN113377632A (en) * 2021-05-25 2021-09-10 北京猿力教育科技有限公司 User behavior backtracking method and device

Also Published As

Publication number Publication date
CN102147756B (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN102147756B (en) Methods and systems for testing terminal
CN102841845B (en) Automatic testing method of Android device software
Halpern et al. Mosaic: cross-platform user-interaction record and replay for the fragmented android ecosystem
CN102521118B (en) Automatic testing method of Android program
CN104461521B (en) A kind of application program playback method and system
US9600399B2 (en) Content recording method and device
TWI515655B (en) Method, system, and computer-readable memory for switching threads within routines
CN108664380B (en) After-execution software debugging system with performance display and debugging method
CN101887393B (en) Equipment fault reproduction method and system based on para-virtualization technique
WO2019035610A1 (en) Game test automation device and method
CN105612485B (en) A kind of method and device running application program
CN111143200A (en) Method and device for recording and playing back touch event, storage medium and equipment
US20130138381A1 (en) Handheld electronic device testing method
Lin et al. Improving the accuracy of automated GUI testing for embedded systems
Jovic et al. Automating performance testing of interactive java applications
US20240189724A1 (en) Videogame telemetry data and game asset tracker for session recordings
CN110083404A (en) The data processing method and system and human interface devices of human interface devices
CN102999419A (en) Android test incident record and playback methods and device
CN101446915B (en) Method and device for recording BIOS level logs
CN108984380A (en) A kind of server test method, device and medium based on linux system
JP2013143044A (en) Program, information processing method and information processing apparatus
CN110837467B (en) Software testing method, device and system
CN112346935A (en) Rendering time-consuming acquisition and display method, performance monitoring method, device and equipment
EP3014426B1 (en) Self-revealing symbolic gestures
CN113535029A (en) Operation recording method, terminal, computer device and computer-readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant