CN104699591A - Reappearing method and device of test scenes - Google Patents

Reappearing method and device of test scenes Download PDF

Info

Publication number
CN104699591A
CN104699591A CN201310656519.0A CN201310656519A CN104699591A CN 104699591 A CN104699591 A CN 104699591A CN 201310656519 A CN201310656519 A CN 201310656519A CN 104699591 A CN104699591 A CN 104699591A
Authority
CN
China
Prior art keywords
test scene
described operation
test
user
operation log
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
CN201310656519.0A
Other languages
Chinese (zh)
Other versions
CN104699591B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310656519.0A priority Critical patent/CN104699591B/en
Priority to PCT/CN2014/092764 priority patent/WO2015081841A1/en
Publication of CN104699591A publication Critical patent/CN104699591A/en
Application granted granted Critical
Publication of CN104699591B publication Critical patent/CN104699591B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

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

Abstract

The invention is suitable for test fields, and provides a reappearing method and device of test scenes. The reappearing method of test scenes comprises the following steps: establishing remote-control connection with a mobile terminal, and mapping the operation interface of the mobile terminal; acquiring the operation of a user on the mapped operation interface, and recording the operation in an operation diary; when a test scene needs to be reappeared, executing the operation recorded in the operation diary on the mapped operation interface so as to enable the mobile terminal to synchronously execute the operation. Through the adoption of the reappearing method, the test scene is reappeared, and random problems or abnormal problems, which are discovered in the former operation, are reappeared.

Description

A kind of test scene replay method and device
Technical field
The invention belongs to field tests, particularly relate to a kind of test scene replay method and device.
Background technology
In daily life, the mobile terminal that people use is divided into two classes substantially, comprising: the mobile terminal using Android operation system, uses the mobile terminal of handheld equipment operating system (Iphone Operation System, IOS); Wherein, this IOS system is developed by Apple.
At present, to when using the mobile terminal of IOS system to test, because IOS system is relatively closed, test the source code that the control used all needs to obtain in advance this control key at every turn.But when testing, the operation of user certainly can not be just the same, therefore, the stochastic problem found for certain operation or abnormal problem, when needing to reappear the test scene of this problem, prior art does not also realize.Even if the test scene of this problem is able to similar reproduction, all need a large amount of human and material resources of waste and time.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of test scene replay method and device, is intended to solve prior art when testing mobile terminal, cannot reappear the problem of test scene.
On the one hand, a kind of test scene replay method, described test scene replay method comprises:
Set up Long-distance Control with mobile terminal to be connected, map out the operation interface of described mobile terminal;
Obtain the operation of user at the operation interface mapped out, and by described operation note in Operation Log;
When needs reappear test scene, perform in described Operation Log the described operation of recording at the described operation interface mapped out, perform described operation to make described mobile terminal synchronization.
On the one hand, another object of the present invention is to provide a kind of test scene reproducer, and described test scene reproducer comprises:
Connection establishment unit, being connected for setting up Long-distance Control with mobile terminal, mapping out the operation interface of described mobile terminal;
Test record unit, for obtaining the operation of user at the operation interface mapped out, and by described operation note in Operation Log;
Scene reproducing unit, for when needs reappear test scene, performs in described Operation Log the described operation of recording, performs described operation to make described mobile terminal synchronization at the described operation interface mapped out.
The invention has the beneficial effects as follows: when testing mobile terminal, obtaining the operation of user at described operation interface, and by described operation note in Operation Log; When needs reappear test scene, perform described Operation Log, with the operation of duplicate customer at described operation interface; Thus reproduction test scene, to reappear stochastic problem or the abnormal problem of prior operation discovery.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the realization flow figure of the first test scene replay method that the embodiment of the present invention one provides;
Fig. 2 is the realization flow figure of the second test scene replay method that the embodiment of the present invention one provides;
Fig. 3 is the realization flow figure of the third test scene replay method that the embodiment of the present invention one provides;
Fig. 4 is the realization flow figure of the 4th kind of test scene replay method that the embodiment of the present invention one provides
Fig. 5 is the composition structural drawing of the first test scene reproducer that the embodiment of the present invention two provides;
Fig. 6 is the composition structural drawing of the second test scene reproducer that the embodiment of the present invention two provides;
Fig. 7 is the composition structural drawing of the third test scene reproducer that the embodiment of the present invention two provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
embodiment one:
Fig. 1 shows the realization flow of the first test scene replay method that the present embodiment provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention, details are as follows for its realization flow:
Step S11, sets up Long-distance Control with mobile terminal and is connected, and maps out the operation interface of described mobile terminal.
In the present embodiment, test terminal is set up in advance and is connected with the Long-distance Control of mobile terminal, particularly, sets up the synchronized links with mobile terminal; Thus, test terminal not only can map out the operation interface of described mobile terminal, so that user operates the operation interface mapped out, and the operation that mobile terminal can detect according to test terminal, perform the operation synchronous with this operation, control mobile terminal by this operation and complete test.Such as: in test terminal, when user uses mouse to operate at the operation interface mapped out, be equivalent to user on the touch-screen of mobile terminal, directly carry out corresponding touch control operation, all can control mobile terminal and test accordingly.
Preferably, before execution step S11, the application program of Virtual network computer (Virtual Network Computing, VNC) server end is installed at described mobile terminal in advance, such as: VNCServer is installed.The application program of VNC client is installed in advance, such as: VNC Viewer is installed in test terminal.And then perform following steps and be connected to set up Long-distance Control between test terminal with mobile terminal, this step comprises:
1, after standby communication terminal starts NVC server end, and after test terminal startup VNC client, this VNC client-requested is connected to NVC server end, such as: VNC client is connected to NVC server end by browser or VNC Viewer request;
2, VNC client receives the dialog box that NVC server end transmits, and inputs connection password, in addition, also receive the display device of the NVC server end of access by this dialog box prompting user;
3, until user in this dialog box after the careful code of typing, this password is sent to NVC server end by VNC client, whether has access right with NVC server end checking NVC client;
4, if this NVC client is by the checking of NVC server end, then NVC client requirements VNC server end: the control obtaining the desktop environment of this mobile terminal;
6, NVC server end takes over the desktop environment of this mobile terminal, such as: NVC server end passes through X Protocol adapter X Server to the control of this desktop environment.
7, due to by the checking of NVC server end, the control of this desktop environment is given VNC client by VNC communication protocol by NVC server, completes between test terminal with mobile terminal, to set up Long-distance Control be connected; Like this, user can directly operate the carrying out of the desktop environment mapped out in VNC client, and this desktop environment is described operation interface.
Preferably, usb bus and corresponding USB interface is adopted to connect between test terminal with mobile terminal.
In the present embodiment, when test terminal is connected with described mobile terminal by usb bus, once test terminal starts VNC client, namely can trigger at mobile terminal and start VNC service end, complete when the certification of VNC service end until VNC client, successfully set up Long-distance Control and connect.
After having set up control linkage, the operation interface of described mobile terminal can be mapped out in the display of test terminal, and then can step S12 have been performed.
Step S12, obtains the operation of user at the operation interface mapped out, and by described operation note in Operation Log.
In the present embodiment, after Long-distance Control to be done connects, user can operate the operation interface mapped out in test terminal, synchronously, also can carry out identical operation at the operation interface of the mobile terminal of Long-distance Control; And then mobile terminal produces corresponding test instruction to carry out corresponding test to test point according to this operation.What deserves to be explained is, user often performs single job, and test terminal all can by this operation note in described Operation Log.In described Operation Log, record described operation to I haven't seen you for ages and perform the duration of described operation.
Preferably, when mobile terminal being tested from outside by test terminal, comprise in the described operation of the described operation interface mapped out: the action type of described operation, and at the described operation interface mapped out, the coordinate points of described operation occurs.It should be noted that, if complete described action need track with auxiliary realization, then this track is made up of at least two described coordinate points.
Particularly, described in be operating as: for the coordinate points on the described operation interface mapped out, one or more actions of execution; Especially, if complete described action need track with auxiliary realization, then described operation comprises at least two actions, simultaneously this track by perform each action for coordinate points form, wherein, described action triggers in the operation interface mapped out in test terminal.
When user's line operate enterprising to the described operation interface mapped out, test terminal can receive action command successively, and each action command can trigger an action; And then the one or more action of continuous print can form described operation.Like this, test terminal completes the response to the operation of user on the described operation interface mapped out.User is to while the enterprising line operate of the described operation interface mapped out, and mobile terminal also can be followed test terminal and be performed corresponding action.
What deserves to be explained is, test terminal or mobile terminal have often needed once to test, and all need to perform complete operation and just can realize, as: the double click operation for certain coordinate points need be completed, need the click action completing twice at the appointed time.Therefore, one or more actions that different operating comprises are also different, and then different action types can be adopted to distinguish described operation; Wherein, for concrete each operation, be all made up of the action type of correspondence and the coordinate points of its execution.Therefore, described Operation Log needs to record operation that is complete, that comprise everything.
In the present embodiment, described action type comprises: click, double-click, dragging etc.Wherein, clicking is the operation carried out for single coordinate points, and, click and be only the click action that a single key command triggers execution; Double-click also be for single coordinate points (when each click in double click operation for coordinate points be in preset range time, think the double click operation triggered single coordinate points) operation that completes, and, double-click is two click action, and these two click action trigger execution successively by two single key commands; Dragging be for origin coordinates point, drag the operation etc. carried out of the track of process and terminal left side point, and, drag and form by clicking, dragging and discharge, particularly, first click action is triggered by single key command, then drag this by dragging instruction triggers and click the target chosen, then trigger when receiving and releasing order the release movement discharging this target at changing coordinates point.
As one embodiment of the invention, Fig. 2 shows the realization flow of the second test scene replay method that the present embodiment provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
It should be noted that, the second test scene replay method that the present embodiment provides provides based on the first test scene replay method.Therefore, this second test scene replay method also comprises: S31, sets up Long-distance Control and is connected, map out the operation interface of described mobile terminal with mobile terminal; This second test scene replay method also comprises: S33, when needs reappear test scene, performs in described Operation Log the described operation of recording, perform described operation to make described mobile terminal synchronization at the described operation interface mapped out.Wherein, step S31 is identical with the step S11 that the first test scene replay method provides; And step S33 is identical with the step S13 that the first test scene replay method provides.
Therefore, the step S12 that the present embodiment only provides for the first test scene replay method carries out refinement, provides a kind of embodiment; Particularly, described acquisition user in the operation of described operation interface, and by the step of described operation note in Operation Log, is specially:
S32, when user uses input equipment in the described operation interface operation mapped out, flutter the event of catching described input equipment and triggering, and be kept in Operation Log by flutterring the event grasped, described operation flutters the composition of matter triggering grasped described in one or more.
Particularly, when user uses input equipment in the described operation interface operation mapped out, when test terminal receive one or more described in flutter event (event received meets triggering action command) grasped time, perform the action that this action command is corresponding.The like, because described operation is made up of one or more action, therefore, can catch by repeatedly flutterring event (flutter to catch to flutter at every turn and grasp one or more event), performing the everything that described operation comprises successively.
In the present embodiment, flutterring the event grasped described in is: input equipment, as a physical equipment, when input equipment receives a physical operations, triggers corresponding physical signalling.Such as: user clicks the mouse, mouse can trigger a click signal (physical signalling), forms the event of clicking the mouse; When user presses keyboard, respective keys in keyboard can be triggered and produce look-at-me (physical signalling), form the event pressing keyboard.
Thus, when meet one or more described in flutter the event grasped, can combine and trigger corresponding action command, and then perform corresponding action at the operation interface mapped out; After the action comprised until described operation performs all successively, represent single job once to test.Meanwhile, mobile terminal also can perform identical action command at its operation interface.Such as: pin the ctrl key (event) in keyboard as user, when using mouse clickable icon (event) simultaneously, often click to trigger successively once to choose instruction and perform and action is chosen to an icon, that treats that selection operation comprises allly chooses action and all performs, and completes and chooses (operation) while multiple icon.
As the present embodiment one embodiment, described input equipment comprises mouse and/or keyboard; Particularly, be configured with mouse and/keyboard in test terminal, therefore, after user is by the current operation changing interface of test terminal to the operation interface mapped out, mouse and/or keyboard can be used in the operation interface mapped out to control.Particularly, when user manipulates mouse, test terminal is flutterred in real time the event that this mouse produces and is caught, and is recorded in Operation Log by flutterring the mouse event grasped; During user's manipulation keyboard, test terminal is flutterred in real time the event that this keyboard produces and is caught, and is recorded in Operation Log by flutterring the KeyEvent grasped; In addition, when user uses mouse and keyboard to carry out co-operating simultaneously, thus test terminal is monitoring mouse event and KeyEvent respectively in real time, will flutter the mouse event grasped and/or KeyEvent is recorded in Operation Log.
Preferably, when user uses mouse and/or keyboard in described operation interface operation, flutterred the event of catching described mouse and triggering by JavaHook technology, and/or flutterred the event of catching described keyboard and triggering by Java Hook technology, and be kept at flutterring the event grasped in Operation Log.
It should be noted that, Java Hook technology is: when installing JAVA programming language, this JAVA programming language includes Hook and realizes, and realizes carrying out real-time listening (flutter in real time and catch) to the event of mouse and/or the event of keyboard by this Hook.
In the present embodiment, when test terminal has installed JAVA programming language, the event that the event adopting Hook wherein to realize triggering described mouse and described keyboard trigger is flutterred and is caught.And then, record in Operation Log and realize by this Hook the event that gets, comprising: the event that described mouse triggers and/or the event that described keyboard triggers.
Step S13, when needs reappear test scene, performs in described Operation Log the described operation of recording, performs described operation to make described mobile terminal synchronization at the described operation interface mapped out.
In the present embodiment, when needing the test scene reappearing previously test, directly can find out described Operation Log in test terminal, perform and previously tested relevant described Operation Log, namely re-execute in previous test, user is in the operation of the described operation interface mapped out.
Preferably, read described Operation Log, identify by Sikuli technology the action that described Operation Log comprises, perform the described action command that this action is corresponding.
Particularly, Sikuli is figure script, can be used for extracting from described Operation Log everything that described operation comprises and each action for coordinate points; And then generate the action command mated with action.Perform each action command successively to perform corresponding action successively, reappear described operation, namely reappear test scene.
As one embodiment of the invention, a kind of embodiment of the step S33 that the present embodiment only provides for the second test scene replay method carries out refinement.Particularly, the step of the described Operation Log of described execution, is specially:
Read described Operation Log, identify the event that described Operation Log comprises, perform described event.
In the present embodiment, user is when the operation of described operation interface, and Operation Log not only records operation, and also record triggers the time point of event that this operation comprises and correspondence; Therefore, when needs reappear test scene, determine to perform the time interval between each event according to time point, and then again perform each event successively according to the time interval, reappear this operation.
As one embodiment of the invention, Fig. 3 shows the realization flow of the third test scene replay method that the present embodiment provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
It should be noted that, provide based on the first test scene replay method during the third test scene replay method that the present embodiment provides.Therefore, this second test scene replay method also comprises: S51, sets up Long-distance Control and is connected, map out the operation interface of described mobile terminal with mobile terminal; This second test scene replay method also comprises: S52, obtains the operation of user at the operation interface mapped out, and by described operation note in Operation Log.Wherein, step S51 is identical with the step S11 that the first test scene replay method provides; And step S52 is identical with the step S12 that the first test scene replay method provides.
Therefore, a kind of embodiment of step S13 that the present embodiment only provides for the first test scene replay method carries out refinement.Particularly, described when needs reappear test scene, perform the step of described Operation Log, be specially:
S53, when needs preset times reappears test scene, performs Operation Log described in described preset times.
It should be noted that, described preset times is: the number of times setting, repeat described Operation Log according to the required number of times reappearing test scene of test.
In the present embodiment, during in order to monitor each reproduction test scene, judging that whether the test result that each test scene reappeared comprises is the same, whether stablizing to determine to test.For each needs reappeared, user can revise described preset times.Thus, when reappearing preset times test scene, can compare for each test scene reappeared, and accordingly, the result for each test compares analysis.
Preferably, Fig. 4 shows the realization flow of the 4th kind of test scene replay method that the present embodiment provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
It should be noted that, provide based on the third test scene replay method during the 4th kind of test scene replay method that the present embodiment provides.Therefore, the 4th kind of test scene replay method also comprises: S61, sets up Long-distance Control and is connected, map out the operation interface of described mobile terminal with mobile terminal; This second test scene replay method also comprises: S62, obtains the operation of user at the operation interface mapped out, and by described operation note in Operation Log.Wherein, step S61 is identical with the step S51 that the third test scene replay method provides; And step S62 is identical with the step S52 that the first test scene replay method provides.
In an embodiment, described when needs reappear test scene, before performing the step of described Operation Log, described test scene replay method also comprises:
S63, encapsulates described Operation Log and generates wrapper;
S64, for described wrapper adds a user interface, described user interface is used for: arrange user input described preset times and receive user input execution instruction;
Simultaneously, as the further refinement of the step S53 provided the third test scene replay method, described when needs preset times reappears test scene, perform the step of Operation Log described in described preset times, be specially:
S65, according to the execution instruction that described user inputs, repeats in Operation Log described in described preset times the described operation of recording at the described operation interface mapped out.
Particularly, in test terminal, described Operation Log is encapsulated, if desired, the described Operation Log of execution is also encapsulated into wrapper with the program of reappearing test scene simultaneously.Meanwhile, newly add with a user interface in advance in test terminal, by this user interface, user directly can set the number of times performing the Operation Log that described wrapper comprises; When needs reappear test scene, received the execution instruction of user's input by this user interface, this execution instruction triggers performs the action of the Operation Log that described wrapper comprises, and wherein, the number of times performing the Operation Log that described wrapper comprises is preset times.And then, reappear preset times test scene, so that user analyzes this test.Preferably, operate below this execution instruction triggers: adopt that described wrapper comprises, for performing the program of described Operation Log, perform the action of the Operation Log that described wrapper comprises.
As an embodiment: in the test of smart mobile phone, the test scene replay method adopting the present embodiment to provide, can realize the reproduction to test scene, such as: smart mobile phone often uses Android system or IOS system; The test scene replay method adopting the present embodiment to provide can be performed successively, the stochastic problem occurred when reappearing test or abnormal problem.
What deserves to be explained is, to when using the mobile terminal of IOS system directly to test, because IOS system is relatively closed, be externally equivalent to black box, prior art to this IOS system implant source code, can only be tested using the mobile terminal of this IOS system.Because the test scene of each testing mobile terminal all can not the same (reason: user operates can exist difference, and also exist for the system environments of testing mobile terminal do not cause test scene different on an equal basis) at every turn, thus test scene cannot be reappeared.The test scene replay method that the present embodiment provides, tests from test terminal (outside) using the mobile terminal of this IOS system; When testing, operation at the operation interface mapped out is recorded and playback, reappear test scene, particularly, the operation interface of described mobile terminal is mapped out in advance by remote control technology, the operation of user at the operation interface mapped out is obtained in test terminal, and by described operation note in Operation Log; When the test scene needing reproduction to test mobile terminal, test terminal performs in described Operation Log the described operation of recording at the described operation interface mapped out, perform described operation to make described mobile terminal synchronization.And then, realize the reproduction to the mobile terminal test of use IOS system from outside.
embodiment two:
Fig. 5 shows the composition structure of the first test scene reproducer that second embodiment of the invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.It should be noted that, the test scene reproducer that embodiment two provides and the test scene replay method that embodiment one provides are suitable for mutually.
A kind of test scene reproducer, described test scene reproducer comprises:
Connection establishment unit 61, being connected for setting up Long-distance Control with mobile terminal, mapping out the operation interface of described mobile terminal;
Test record unit 62, for obtaining the operation of user at the operation interface mapped out, and by described operation note in Operation Log;
Scene reproducing unit 63, for when needs reappear test scene, performs in described Operation Log the described operation of recording, performs described operation to make described mobile terminal synchronization at the described operation interface mapped out.
As one embodiment of the invention, comprise in the described operation of the described operation interface mapped out: the action type of described operation, and at the described operation interface mapped out, the coordinate points of described operation occurs.
Fig. 6 shows the composition structure of the second test scene reproducer that second embodiment of the invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.This second test scene reproducer optimizes realization further based on the first test scene reproducer.
As one embodiment of the invention, described test record unit 62, specifically for:
When user uses input equipment in the described operation interface operation mapped out, flutter the event of catching described input equipment and triggering, and be kept in Operation Log by flutterring the event grasped, described operation flutters the composition of matter triggering grasped described in one or more.
Preferably, described scene reproducing unit 63, also comprises:
Event execution unit 631, for reading described Operation Log, identifying the event that described Operation Log comprises, performing described event.
As one embodiment of the invention, described scene reproducing unit 63, specifically for:
When needs preset times reappears test scene, perform Operation Log described in described preset times.
Fig. 7 shows the composition structure of the third test scene reproducer that second embodiment of the invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.This third test scene reproducer optimizes realization further based on the second test scene reproducer.
Encapsulation unit 64, for encapsulating described Operation Log and generating wrapper;
User interface elements 65, for adding a user interface for described wrapper, described user interface is used for: arrange user input described preset times and receive user input execution instruction;
Described scene reproducing unit 63, more specifically for:
According to the execution instruction that described user inputs, repeat in Operation Log described in described preset times the described operation of recording at the described operation interface mapped out.
Another object of the embodiment of the present invention is to provide a kind of test terminal, and described test terminal comprises above-mentioned test scene reproducer.
As one embodiment of the invention, this test scene reproducer can be the software unit run in test terminal, also can be integrated in test terminal as independently suspension member or run in the application system of test terminal.
In embodiments of the present invention, when testing mobile terminal, obtain the operation of user at described operation interface, and by described operation note in Operation Log; When needs reappear test scene, perform described Operation Log, with the operation of duplicate customer at described operation interface; Thus reproduction test scene, to reappear stochastic problem or the abnormal problem of prior operation discovery.
It will be appreciated by those skilled in the art that the unit comprised for above-described embodiment two is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; make some equivalent alternative or obvious modification without departing from the inventive concept of the premise; and performance or purposes identical, all should be considered as belonging to the scope of patent protection that the present invention is determined by submitted to claims.

Claims (12)

1. a test scene replay method, is characterized in that, described test scene replay method comprises:
Set up Long-distance Control with mobile terminal to be connected, map out the operation interface of described mobile terminal;
Obtain the operation of user at the operation interface mapped out, and by described operation note in Operation Log;
When needs reappear test scene, perform in described Operation Log the described operation of recording at the described operation interface mapped out, perform described operation to make described mobile terminal synchronization.
2. test scene replay method as claimed in claim 1, is characterized in that, comprise: the action type of described operation in the described operation of the described operation interface mapped out, and at the described operation interface mapped out, the coordinate points of described operation occurs.
3. test scene replay method as claimed in claim 1, is characterized in that, described acquisition user in the operation of the operation interface mapped out, and by the step of described operation note in Operation Log, is specially:
When user uses input equipment in the described operation interface operation mapped out, flutter the event of catching described input equipment and triggering, and be kept in Operation Log by flutterring the event grasped, described operation flutters the composition of matter triggering grasped described in one or more.
4. test scene replay method as claimed in claim 3, it is characterized in that, the step of the described Operation Log of described execution, is specially:
Read described Operation Log, identify the event that described Operation Log comprises, perform described event.
5. test scene replay method as claimed in claim 1, is characterized in that, described when needs reappear test scene, performs the step of described Operation Log, is specially:
When needs preset times reappears test scene, perform Operation Log described in described preset times.
6. test scene replay method as claimed in claim 5, is characterized in that, described when needs reappear test scene, before performing the step of described Operation Log, described test scene replay method also comprises:
Encapsulate described Operation Log and generate wrapper;
For described wrapper adds a user interface, described user interface is used for: arrange user input described preset times and receive user input execution instruction;
Described when needs preset times reappears test scene, perform the step of Operation Log described in described preset times, be specially:
According to the execution instruction that described user inputs, repeat in Operation Log described in described preset times the described operation of recording at the described operation interface mapped out.
7. a test scene reproducer, is characterized in that, described test scene reproducer comprises:
Connection establishment unit, being connected for setting up Long-distance Control with mobile terminal, mapping out the operation interface of described mobile terminal;
Test record unit, for obtaining the operation of user at the operation interface mapped out, and by described operation note in Operation Log;
Scene reproducing unit, for when needs reappear test scene, performs in described Operation Log the described operation of recording, performs described operation to make described mobile terminal synchronization at the described operation interface mapped out.
8. test scene reproducer as claimed in claim 7, is characterized in that, comprise: the action type of described operation in the described operation of the described operation interface mapped out, and at the described operation interface mapped out, the coordinate points of described operation occurs.
9. test scene reproducer as claimed in claim 7, is characterized in that, described test record unit, specifically for:
When user uses input equipment in the described operation interface operation mapped out, flutter the event of catching described input equipment and triggering, and be kept in Operation Log by flutterring the event grasped, described operation flutters the composition of matter triggering grasped described in one or more.
10. test scene reproducer as claimed in claim 9, it is characterized in that, described scene reproducing unit, also comprises:
Event execution unit, for reading described Operation Log, identifying the event that described Operation Log comprises, performing described event.
11. test scene reproducers as claimed in claim 7, is characterized in that, described scene reproducing unit, specifically for:
When needs preset times reappears test scene, perform Operation Log described in described preset times.
12. test scene reproducers as claimed in claim 11, it is characterized in that, described test scene reproducer also comprises:
Encapsulation unit, for encapsulating described Operation Log and generating wrapper;
User interface elements, for adding a user interface for described wrapper, described user interface is used for: arrange user input described preset times and receive user input execution instruction;
Described scene reproducing unit, more specifically for:
According to the execution instruction that described user inputs, repeat in Operation Log described in described preset times the described operation of recording at the described operation interface mapped out.
CN201310656519.0A 2013-12-06 2013-12-06 A kind of test scene replay method and device Active CN104699591B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310656519.0A CN104699591B (en) 2013-12-06 2013-12-06 A kind of test scene replay method and device
PCT/CN2014/092764 WO2015081841A1 (en) 2013-12-06 2014-12-02 Devices and methods for test scenario reproduction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310656519.0A CN104699591B (en) 2013-12-06 2013-12-06 A kind of test scene replay method and device

Publications (2)

Publication Number Publication Date
CN104699591A true CN104699591A (en) 2015-06-10
CN104699591B CN104699591B (en) 2019-01-11

Family

ID=53272887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310656519.0A Active CN104699591B (en) 2013-12-06 2013-12-06 A kind of test scene replay method and device

Country Status (2)

Country Link
CN (1) CN104699591B (en)
WO (1) WO2015081841A1 (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software
CN106055451A (en) * 2016-05-23 2016-10-26 努比亚技术有限公司 Information processing method and electronic device
CN106326129A (en) * 2016-09-09 2017-01-11 福建中金在线信息科技有限公司 Program abnormity information generating method and device
CN106528402A (en) * 2016-09-28 2017-03-22 惠州Tcl移动通信有限公司 Method and system for testing terminal
CN107623716A (en) * 2017-08-13 2018-01-23 惠州市德赛西威汽车电子股份有限公司 A kind of method of testing at vehicle-mounted multimedia terminal HMI interfaces
CN108459952A (en) * 2017-02-21 2018-08-28 网易(杭州)网络有限公司 The processing method and system of program exception
CN108874612A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of method of acquisition of information, relevant device and system
CN108992924A (en) * 2018-08-21 2018-12-14 苏州蜗牛数字科技股份有限公司 A method of triggering orderly touch screen operation event
CN109359044A (en) * 2018-10-10 2019-02-19 四川长虹电器股份有限公司 It is a kind of based on codeception towards automation system for testing
CN109408345A (en) * 2018-09-25 2019-03-01 深圳壹账通智能科技有限公司 Operate replay method, device, computer equipment and storage medium
CN110347577A (en) * 2018-04-04 2019-10-18 阿里巴巴集团控股有限公司 A kind of page test method, device and its equipment
CN111106975A (en) * 2018-10-26 2020-05-05 中移物联网有限公司 Test method, test equipment and computer readable storage medium
CN111475346A (en) * 2019-01-23 2020-07-31 上海博泰悦臻电子设备制造有限公司 USBIF authentication triggering method, tested device and vehicle
CN111694752A (en) * 2020-07-28 2020-09-22 中移(杭州)信息技术有限公司 Application testing method, electronic device and storage medium
CN111949515A (en) * 2020-07-23 2020-11-17 上海硬通网络科技有限公司 Test scene reproduction method and device and electronic equipment
CN112052164A (en) * 2020-08-19 2020-12-08 深圳创维-Rgb电子有限公司 Remote debugging method of Android device, storage medium and debugging terminal
CN112100052A (en) * 2020-08-07 2020-12-18 北京奇艺世纪科技有限公司 Interface test scene playback method and device
CN113608988A (en) * 2021-08-10 2021-11-05 南京师范大学 Reproduction-oriented geographical simulation scene recording method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106066827A (en) * 2016-05-30 2016-11-02 中车株洲电力机车研究所有限公司 A kind of software test scenario building method, data relay device and system
CN106294184B (en) * 2016-08-30 2019-01-22 广州华多网络科技有限公司 The graphical creation method of test scene, device and terminal device
CN112685296A (en) * 2020-12-25 2021-04-20 江苏云柜网络技术有限公司 Test method, test device, electronic equipment and storage medium
CN113934353A (en) * 2021-09-30 2022-01-14 北京五八信息技术有限公司 Information processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421793B1 (en) * 1999-07-22 2002-07-16 Siemens Information And Communication Mobile, Llc System and method for automated testing of electronic devices
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
CN103269497A (en) * 2013-05-08 2013-08-28 百度在线网络技术(北京)有限公司 Method and system capable of conducting managing and testing on mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421793B1 (en) * 1999-07-22 2002-07-16 Siemens Information And Communication Mobile, Llc System and method for automated testing of electronic devices
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
CN103269497A (en) * 2013-05-08 2013-08-28 百度在线网络技术(北京)有限公司 Method and system capable of conducting managing and testing on mobile phone

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software
CN106055451B (en) * 2016-05-23 2019-02-15 努比亚技术有限公司 Information processing method and electronic equipment
CN106055451A (en) * 2016-05-23 2016-10-26 努比亚技术有限公司 Information processing method and electronic device
CN106326129A (en) * 2016-09-09 2017-01-11 福建中金在线信息科技有限公司 Program abnormity information generating method and device
CN106528402A (en) * 2016-09-28 2017-03-22 惠州Tcl移动通信有限公司 Method and system for testing terminal
CN108459952A (en) * 2017-02-21 2018-08-28 网易(杭州)网络有限公司 The processing method and system of program exception
CN108459952B (en) * 2017-02-21 2024-05-24 网易(杭州)网络有限公司 Program exception processing method and system
CN108874612A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of method of acquisition of information, relevant device and system
CN107623716A (en) * 2017-08-13 2018-01-23 惠州市德赛西威汽车电子股份有限公司 A kind of method of testing at vehicle-mounted multimedia terminal HMI interfaces
CN107623716B (en) * 2017-08-13 2020-08-25 惠州市德赛西威汽车电子股份有限公司 Test method for HMI (human machine interface) of vehicle-mounted multimedia terminal
CN110347577A (en) * 2018-04-04 2019-10-18 阿里巴巴集团控股有限公司 A kind of page test method, device and its equipment
CN110347577B (en) * 2018-04-04 2024-04-09 阿里巴巴集团控股有限公司 Page testing method, device and equipment thereof
CN108992924A (en) * 2018-08-21 2018-12-14 苏州蜗牛数字科技股份有限公司 A method of triggering orderly touch screen operation event
CN109408345A (en) * 2018-09-25 2019-03-01 深圳壹账通智能科技有限公司 Operate replay method, device, computer equipment and storage medium
CN109359044B (en) * 2018-10-10 2022-02-22 四川长虹电器股份有限公司 Codecep-based test-oriented automation system
CN109359044A (en) * 2018-10-10 2019-02-19 四川长虹电器股份有限公司 It is a kind of based on codeception towards automation system for testing
CN111106975A (en) * 2018-10-26 2020-05-05 中移物联网有限公司 Test method, test equipment and computer readable storage medium
CN111106975B (en) * 2018-10-26 2022-08-12 中移物联网有限公司 Test method, test equipment and computer readable storage medium
CN111475346A (en) * 2019-01-23 2020-07-31 上海博泰悦臻电子设备制造有限公司 USBIF authentication triggering method, tested device and vehicle
CN111949515A (en) * 2020-07-23 2020-11-17 上海硬通网络科技有限公司 Test scene reproduction method and device and electronic equipment
CN111949515B (en) * 2020-07-23 2024-08-09 上海硬通网络科技有限公司 Test scene reproduction method and device and electronic equipment
CN111694752B (en) * 2020-07-28 2023-09-05 中移(杭州)信息技术有限公司 Application testing method, electronic device and storage medium
CN111694752A (en) * 2020-07-28 2020-09-22 中移(杭州)信息技术有限公司 Application testing method, electronic device and storage medium
CN112100052A (en) * 2020-08-07 2020-12-18 北京奇艺世纪科技有限公司 Interface test scene playback method and device
CN112100052B (en) * 2020-08-07 2023-08-18 北京奇艺世纪科技有限公司 Playback method and device of interface test scene
CN112052164A (en) * 2020-08-19 2020-12-08 深圳创维-Rgb电子有限公司 Remote debugging method of Android device, storage medium and debugging terminal
CN113608988A (en) * 2021-08-10 2021-11-05 南京师范大学 Reproduction-oriented geographical simulation scene recording method

Also Published As

Publication number Publication date
WO2015081841A1 (en) 2015-06-11
CN104699591B (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN104699591A (en) Reappearing method and device of test scenes
CN102841845B (en) Automatic testing method of Android device software
CN106326104B (en) Terminal control testing method and device
CN108959000A (en) A kind of server stress test method, system and terminal
CN104484273A (en) Test method for application program, device and system
CN106844181B (en) Method, system and mobile terminal for recording user behavior
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
Wang et al. Automatic Android GUI traversal with high coverage
CN105260082B (en) A kind of test data methods of exhibiting and exploitation terminal
CN105975367B (en) Test method and device for mobile equipment
CN110727572A (en) Buried point data processing method, device, equipment and storage medium
WO2021120544A1 (en) Method and apparatus for debugging device
CN110321189B (en) Method and equipment for presenting hosted program in hosted program
CN108769175A (en) Remote real machine access control method, device, storage medium and electronic equipment
CN107741902A (en) Program application detection method and program application detection means
CN111934908A (en) Internet of things simulation method, device and system and storage medium
CN114490383A (en) Remote debugging system, remote debugging method, computing device and readable medium
CN107102937B (en) User interface testing method and device
CN111901155B (en) Internet of things debugging method, device and system and storage medium
CN116192835A (en) Method, device, equipment and medium for inquiring network data packet of pre-start execution environment
CN110837467A (en) Software testing method, device and system
CN108491483B (en) Method and device for remotely monitoring running state of program
CN107391354B (en) Method and system for automatically monitoring terminal performance and storage device
CN108984238A (en) Gesture processing method, device and the electronic equipment of application program
CN111752827A (en) Test script generation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant