Summary of the invention
In view of this, the embodiment of the present invention provides a kind of record playback system and record back method, and the operation information that can logger computer perform also carries out playback.
For solving the problem, the embodiment of the present invention provides a kind of record playback system, comprising:
First acquisition module, for obtaining the operation information that the first computing machine performs;
First logging modle, for recording described operation information;
Second acquisition module, for the first human window information of the first computing machine described in obtaining when described operation information starts to perform;
Second logging modle, for recording described first human window information;
Whether judge module, for described in needs playback during operation information, judge to need the second human window information of the second computer of operation information described in playback identical with described first human window information;
Playback module, for when described second human window information is identical with described first human window information, according to default playback rules, described second computer performs described operation information.
Described record playback system also comprises:
3rd acquisition module, for the first running environment information of the first computing machine described in obtaining when described operation information starts to perform;
3rd logging modle, for recording described first running environment information;
Detection module, for performing in described operation information process in described playback module, detects whether there is execution error;
Comparison module, for detect described playback module perform there is execution error in described operation information process time, whether the second running environment information of more described second computer identical with described first running environment information;
Reminding module, for providing prompting when described second running environment is different from described first running environment.
Described first logging modle is further used for recording execution time corresponding to described operation information;
Described playback module comprises:
First performance element, for the execution time corresponding according to described operation information, obtain the true execution time interval between described operation information, and according to the true execution time interval between described operation information, described second computer performs described operation information.
Described first logging modle is further used for the execution sequence recording described operation information;
Described playback module comprises:
Second performance element, for according to the execution sequence of described operation information and default Fixed Time Interval, described second computer performs described operation information.
Described record playback system also comprises:
Grabgraf module, for when obtaining described operation information, captures the video image of current human window corresponding to described operation information;
4th logging modle, for recording described video image;
Playing module, for when described playback module performs described operation information, plays the video image of the current human window corresponding with described operation information.
Described record playback system also comprises:
Microphone, for when obtaining described operation information, obtains voice signal;
Trigger module, for when detecting that the instruction of described voice signal captures the video image of current human window corresponding to described operation information, triggers the video image that described grabgraf module captures current human window corresponding to described operation information.
The embodiment of the present invention also provides a kind of record back method, comprises the following steps:
Obtain the operation information that the first computing machine performs;
Record described operation information;
Obtain the first human window information of the first computing machine described in when described operation information starts to perform;
Record described first human window information;
Described in needs playback during operation information, judge to need the second human window information of the second computer of operation information described in playback whether identical with described first human window information;
When described second human window information is identical with described first human window information, according to default playback rules, described second computer performs described operation information.
Described according to default playback rules, also comprise before described second computer performs described operation information:
Obtain the first running environment information of the first computing machine described in when described operation information starts to perform;
Record described first running environment information;
Described according to default playback rules, also comprise after described second computer performs described operation information:
In the process performing described operation information, detect whether there is execution error;
Detect there is execution error in the process performing described operation information time, whether the second running environment information of more described second computer identical with described first running environment information;
Prompting is provided when described second running environment is different from described first running environment.
Describedly record described operation information and be specially:
Record described operation information and execution time corresponding to described operation information;
Described according to default playback rules, described second computer performs described operation information and is specially:
The execution time corresponding according to described operation information, obtain the true execution time interval between described operation information, and according to the true execution time interval between described operation information, described second computer performs described operation information.
Describedly record described operation information and be specially:
Record the execution sequence of described operation information and described operation information;
Described according to default playback rules, described second computer performs described operation information and is specially:
According to execution sequence and the default Fixed Time Interval of described operation information, described second computer performs described operation information.
Described record back method also comprises:
When obtaining described operation information, capture the video image of current human window corresponding to described operation information;
Record described video image;
Described according to default playback rules, also comprise after described second computer performs described operation information:
Described in playback during operation information, play the video image of the current human window corresponding with described operation information.
Described operation information is mouse action information and keyboard operation information.
Embodiments of the invention have following beneficial effect:
The human window information that the operation information perform computing machine and described operation information start when performing carries out record, when the human window information of the human window information with described record that need the computing machine of playback is identical, playback is carried out to described operation information, the embodiment of the present invention can be put on record to needing the computer operation of record, in addition, in hardware or software test procedure, the bug occurred in test process can be recorded, thus realize the reproduction of bug easily.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.
Be illustrated in figure 1 the structural representation of the record playback system of the embodiment of the present invention, described record playback system comprises:
First acquisition module 101, for obtaining the operation information that the first computing machine performs;
Described operation information comprises mouse action information and keyboard operation information, certainly, in the computing machine using touch pad, described operation information also comprises touchpad operation information, described mouse action information spinner will comprise: the information such as right and left key is clicked, click coordinate on the computer screen, dragging and pulley operation, described keyboard operation information is key information.
In the computing machine installing Windows, Hook (hook) technology that above-mentioned first acquisition module 101 can be provided by Windows, obtains the operation information of mouse and keyboard.
First logging modle 102, for recording described operation information;
Second acquisition module 103, for the first human window information of the first computing machine described in obtaining when described operation information starts to perform;
Described human window information can comprise: the title of human window, the position etc. of human window, or is the icon information, icon arrangement position etc. in computer desktop.
Second logging modle 104, for recording described first human window information;
Whether judge module 105, for described in needs playback during operation information, judge to need the second human window information of the second computer of operation information described in playback identical with described first human window information;
Described second computer is for needing the computing machine of operation information described in playback, can be same computing machine with described first computing machine, also can be different computing machines, no matter whether described second computer and described first computing machine are same computing machine, described in needs playback during operation information, the current human window information (i.e. the second human window information) of described second computer, described in when must start to perform with the described operation information of record, the initial launch window information (the first human window information) of the first computing machine is identical.
Playback module 106, for when described second human window information is identical with described first human window information, according to default playback rules, described second computer performs described operation information.
By the system that above-described embodiment provides, when operating computing machine, the operation information that can logger computer perform, and when needed, re-execute described operation information on computers, for user provides conveniently in use computing machine.
In above-described embodiment, described first computing machine performs corresponding operating information, not merely may relate to the software at current human window (i.e. the first human window) place of the first computing machine, other human windows of described first computing machine may also be related to, other software or hardware etc. in described first computing machine, when needs playback, if need not exist in the second computer of operation information described in playback necessary human window involved in described operation information implementation, software or hardware etc., may just cannot be correct playback described in operation information, therefore, as shown in Figure 2, on the basis of above-described embodiment, described record playback system also comprises:
3rd acquisition module 107, for the first running environment information of the first computing machine described in obtaining when described operation information starts to perform;
Described running environment information comprises: the software or hardware information etc. installed in the current human window of computing machine, computing machine;
3rd logging modle 108, for recording described first running environment information;
Detection module 109, for performing in the process of described operation information in described playback module 106, detects whether there is execution error;
Comparison module 110, for detect described playback module 106 perform there is execution error in the process of described operation information time, whether the second running environment information of more described second computer identical with described first running environment information;
Reminding module 111, for providing prompting when described second running environment is different from described first running environment.
User can point out according to described reminding module 111, checks the second running environment information of described second computer and the difference of described first running environment information, thus obtains the reason of execution error, such as, does not install necessary software etc.
By the system that above-described embodiment provides, can while the operation information of logger computer, the running environment of logger computer, described in playback during operation information, if operation information described in playback computing machine do not meet described operation information perform time necessary running environment, then can point out user.
In addition, above-mentioned playback module 106 can according to different demand playback operation information, as shown in Figure 3, on the basis of the embodiment shown in Fig. 1, described first logging modle 102 is further used for recording execution time corresponding to described operation information;
The described execution time of record can be the corresponding true execution time of operation information in described first computing machine, such as, 14: 57: 20 on the 20th January in 2008, certainly, when also can be designated as 00 the execution time of first operation information 00 point 00 second, the execution time of other operation informations adds up successively;
Described playback module 106 comprises:
First performance element 1061, for the execution time corresponding according to described operation information, obtain the true execution time interval between described operation information, and according to the true execution time interval between described operation information, described second computer performs described operation information.
The playback mode of described first performance element 1061 can be called " simulation playback " mode, and this kind of playback mode is the simulation to real implementation, but if the implementation of operation information is long, this kind of mode then can be more time-consuming;
In addition, described playback module 106 can also comprise:
Second performance element 1062, for according to the execution sequence of described operation information and default Fixed Time Interval, described second computer performs described operation information.
Such as, when the execution time of described operation information is longer, in order to accelerate the execution time, the execution time interval of two adjacent operator information can be set as less numerical value, the execution time such as setting two adjacent operation informations is spaced apart 2 seconds, to realize quick playback, therefore, this kind of playback mode also can be called " free fast playback " mode;
Certainly, the playback mode of above-mentioned playback module 106 also can be more complicated playback mode, such as, from 00 time 00 point 00 second, to 00 time 20 points of 10 second time periods in, with the Fixed Time Interval of 2 seconds, described operation information is carried out " free fast playback ", from 00 time 20 points 11 seconds, described operation information is carried out " simulation playback ".
By the system that above-described embodiment provides, as required according to operation information described in different playback mode playback, the experience of user can be improve.
In above-described embodiment, when described operation information performs, the video image of human window corresponding to a certain operation information can be captured and preserve, when needs playback, the video frame sync display that can will capture, such as, in hardware or software test procedure, while the operation information of logger computer, when there is Bug after a certain operation completes, video image when there is Bug can be captured, the simultaneous display when playback, to point out user.
Be illustrated in figure 4 a structural representation again of the record playback system of the embodiment of the present invention, on the basis of the embodiment shown in Fig. 1, described record playback system also comprises:
Grabgraf module 112, for when obtaining described operation information, captures the video image of human window corresponding to described operation information;
4th logging modle 113, for recording described video image;
Playing module 114, for performing described operation information in described playback module 106, plays the video image of the human window corresponding with described operation information.
Certainly, also can carry out independent playback to the video image captured as required, such as, in hardware or software test procedure, obtain video image when all Bug occur, and when needed, the video image of independent those Bug of playback.
Grabgraf module 112 described above can be captured the video image of human window corresponding to described operation information by operating mouse, keyboard etc. by user, also can by voice-operated mode, control the video image that described grabgraf module 112 captures human window corresponding to described operation information, as shown in Figure 4, described record playback system also comprises:
Microphone 115, for when obtaining described operation information, obtains voice signal;
Trigger module 116, for when detecting that the instruction of described voice signal captures the video image of human window corresponding to described operation information, triggers the video image that described grabgraf module 112 captures human window corresponding to described operation information.
By the system that above-described embodiment provides, while the operation information that can perform on logger computer, obtain the video image of human window corresponding to specific operation information, such as, when there is Bug in hardware or software process, the video image of current human window corresponding to described Bug can be captured, at video image described in simultaneous display during operation information described in playback, to reach prompting user, and with the function such as human window during playback compares.
Be illustrated in figure 5 the schematic flow sheet of the record back method of the embodiment of the present invention, described record back method comprises the following steps:
Step 501, obtains the operation information that the first computing machine performs, and described operation information is mouse action information and keyboard operation information etc.;
Step 502, records described operation information;
Step 503, obtains the first human window information of the first computing machine described in when described operation information starts to perform;
Step 504, records described first human window information;
Step 505, described in needs playback during operation information, judge to need the second human window information of the second computer of operation information described in playback whether identical with described first human window information, when described second human window information is identical with described first human window information, enter step 507, otherwise, enter step 506;
Step 506, described in prompting user, the second human window information is different from described first human window information;
Step 507, according to default playback rules, described second computer performs described operation information.
By the method that above-described embodiment provides, when operating computing machine, the operation information that can logger computer perform, and when needed, re-execute described operation information on computers, for user provides conveniently when using computing machine.
Be illustrated in figure 6 another schematic flow sheet of the record back method of the embodiment of the present invention, described record back method comprises the following steps:
Step 601, obtains the operation information that the first computing machine performs, and described operation information is mouse action information and keyboard operation information etc.;
Step 602, records described operation information;
Step 603, obtains the first human window information of the first computing machine described in when described operation information starts to perform;
Step 604, records described first human window information;
Step 605, obtain the first running environment information of the first computing machine described in when described operation information starts to perform, described running environment information is: when described operation information starts to perform, the software information installed in the human window information of described first computing machine, described first computing machine and hardware information etc.;
Step 606, records described first running environment information;
Step 607, described in needs playback during operation information, judge to need the second human window information of the second computer of operation information described in playback whether identical with described first human window information, when described second human window information is identical with described first human window information, enter step 609, otherwise, enter step 608;
Step 608, described in prompting user, the second human window information is different from described first human window information;
Step 609, according to default playback rules, described second computer performs described operation information;
Described default playback rules can be:
According to the true execution time interval between described operation information, described second computer performs described operation information; Now, in above-mentioned steps 602, also need to record execution time corresponding to described operation information, obtain the true execution time interval between adjacent operator information with this;
Or described default playback rules can also be:
According to the Fixed Time Interval preset, described second computer performs described operation information, now, in above-mentioned steps 602, also needs the execution sequence recording described operation information.
Step 610, in the process performing described operation information, detects whether there is execution error;
Step 611, detect there is execution error in the process performing described operation information time, whether the second running environment information of more described second computer identical with described first running environment information;
Step 612, provides prompting when described second running environment is different from described first running environment.
By the method that above-described embodiment provides, can while the operation information of logger computer, the running environment of logger computer, described in playback during operation information, if the computing machine of operation information described in playback does not meet necessary running environment when described operation information performs, then user is pointed out, in addition, according to operation information described in different playback mode playback, Consumer's Experience can also be improve.
Be illustrated in figure 7 the another schematic flow sheet of the record back method of the embodiment of the present invention, described record back method comprises the following steps:
Step 701, obtains the operation information that the first computing machine performs;
Step 702, records described operation information;
Step 703, obtains the first human window information of the first computing machine described in when described operation information starts to perform;
Step 704, records described first human window information;
Step 705, when obtaining described operation information, obtains voice signal;
Step 706, when detecting that the instruction of described voice signal captures the video image of human window corresponding to described operation information, captures described video image;
Step 707, records described video image;
Step 708, described in needs playback during operation information, judge to need the second human window information of the second computer of operation information described in playback whether identical with described first human window information, when described second human window information is identical with described first human window information, enter step 710, otherwise, enter step 709;
Step 709, described in prompting user, the second human window information is different from described first human window information;
Step 710, according to default playback rules, described second computer performs described operation information;
Step 711, described in playback during operation information, plays the video image of the human window corresponding with described operation information.
By the system that above-described embodiment provides, while the operation information that can perform on logger computer, obtain the video image of human window corresponding to specific operation information, at video image described in simultaneous display during operation information described in playback, to reach the functions such as prompting user.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.