CN1356634A - Method and device for automatically recording and reproducing operation path on simulator - Google Patents
Method and device for automatically recording and reproducing operation path on simulator Download PDFInfo
- Publication number
- CN1356634A CN1356634A CN 00113998 CN00113998A CN1356634A CN 1356634 A CN1356634 A CN 1356634A CN 00113998 CN00113998 CN 00113998 CN 00113998 A CN00113998 A CN 00113998A CN 1356634 A CN1356634 A CN 1356634A
- Authority
- CN
- China
- Prior art keywords
- playback
- action
- record
- virtual file
- courses
- 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
Links
Images
Abstract
A method and system for automatically recording and replaying the operation route on simulator features that the record and replay functions are added to the debug and test systems of simulator by means of the arithmatic operating, logic judging and autoamtic repeating of pesudo code. In recording process, the UI thread sends the information to CPU thread while the data in queque mode is recorded in virtual archives. In replay process, the operation records are read from virtual file by UI thread and sent to CPU thread. The user can edit or modify the virtual file.
Description
A kind of method and apparatus of realizing automatic record of courses of action and playback of going up at emulator (Emulator), particularly about utilizing pseudo-code (Pseudo Code) to realize the courses of action of user on emulator are carried out record, and can carry out a kind of apparatus and method of automatic playback.
At present, on the market in popular test and the debug system also not to the record of courses of action and the function of playback, the tester can only carry out the description of language to the problem points of finding in the process of test, yet because the diversity of language and everyone understandability is different, tend to throw into question and express deviation inaccurate or that problem points is understood, thereby make program personnel expensive time when seeking problem points.Particularly when the test of the identity function of different emulators, at present can only be by the artificial repeatedly repetitive operation of carrying out of tester, it is loaded down with trivial details not only to have worked since like this, and efficient is not high, for example for the test of compute classes, a kind of especially super-strength manual labor of manual testing.In addition,, adopt execute-in-place or flash demo at present usually carrying out product function when showing, because on-the-spot atmosphere and the factor of time, the unavoidable anxiety of operator and language expression is unclear or careless omission occurs; And the process of making the flash demo file not only bothers, and expends also higher on the input of manpower and materials.
In view of this, the inventor utilizes the arithmetic operator, logic determines of pseudo-code (Pseudo Code), function such as repeats automatically, design a kind of the realization courses of action of user on emulator (Emulator) are carried out record, and can carry out a kind of apparatus and method of automatic playback.
Fundamental purpose of the present invention is that elimination traditional test and debug system can't write down problem points and searching once more of problem caused difficulty, reduce work efficiency, thereby provide a kind of pseudo-code of utilizing that courses of action are carried out record, generate virtual file, and by reading the method for the automatic playback operation process of virtual file.This method is not only applicable to the platform of different main frames, and the program personnel can utilize the automatic playback operation process of pseudo-code, finds problem points fast, thereby has avoided because of the inaccurate work delays of the text description time.
Second purpose of the present invention is to eliminate a large amount of repetitive operations that present tester is done when the identity function of test different product, and the virtual file that is generated by pseudo-code can be edited, be that the user can delete or increase operational motion in virtual file, number of times that also can the automatic playback of assigned operation.So not only reduce tester's labour intensity, also improved their work efficiency, more reduced the cost of product, shortened the Products Development time.
The 3rd purpose of the present invention provides to the user a kind of by making the virtual file of courses of action in advance, when product introduction by reading the straightforward procedure of the automatic exhibiting product function of virtual file, avoided when product function is demonstrated, operator's anxiety and language expression is unclear or careless omission occurs when carrying out execute-in-place, it is easy and light that the preliminary work that product function is showed becomes.
Based on above purpose, being implemented in of this method requires to have CPU, external storage, internal storage, display device and input media on the hardware; On software, require to install test and debug system with record and playback.This method is to utilize the arithmetic operator of pseudo-code, logic determines, function such as repeat automatically, increases record and playback function in the test of emulator and debug system.When the executive logging function, at first automatically, set up a virtual file, after each operation of user, the UI thread when message is sent to the CPU thread also the data turnover mode with formation (queue) be recorded in the virtual file, when sending the end record order, can stop record.When carrying out playback function, regularly take out action record from virtual file successively is sent to the CPU thread to the UI thread, realizes the automatic playback of courses of action by display device.The user also can edit virtual file, revises or increase and decrease operational motion wherein, can also specify the number of times that operating process repeated that is write down.When the playback number of times is also for the arrival set point number automatically, then stop playback if send the end playback command.
Relevant detailed content of the present invention and technology, existing just cooperation illustrates as follows:
Fig. 1 is of the present invention one relevant circuit structure calcspar, and description can realize the hardware circuit composition of this method;
Fig. 2 is that process flow diagram is write down in of the present invention one relevant operating process automatically, has described test and debug system and has utilized pseudo-code to realize the self registering process of courses of action;
Fig. 3 is the present invention's one relevant automatic playback process flow diagram of operating process, has described test and debug system and has utilized the process of pseudo-code realization to the automatic playback of courses of action; And
Fig. 4 is the present invention one most preferred embodiment figure, " adding " function in the description test emulation counter and the correctness of " taking advantage of " function.
Arriving along with the E epoch, people's life more and more relies on electronic product, therefore the quality that improves electronic product has become competition focal point between each producer, all wishes also to be in debugging or existing problem points can be found out and revise to test phase just as much as possible at product.Yet the programmer of each producer and tester can only carry out artificial repeatable operation in the process of production debugging and test at present, and all provide in popular test and the debug system on the market courses of action are not write down function with playback.Therefore programmer and tester tend to the expensive time when seeking problem points, particularly when the test of the identity function of different emulators, present method of testing is complex operation not only, and efficient is not high, for example for the test of compute classes, a kind of especially super-strength manual labor of manual testing.
In addition,, adopt execute-in-place or flash demo at present usually carrying out product function when showing, because on-the-spot atmosphere and the factor of time, the unavoidable anxiety of operator and language expression is unclear or careless omission occurs; And the process of making the flash demo file not only bothers, and expends also higher on the input of manpower and materials.
For these reasons, the present invention is exactly about utilizing pseudo-code to realize the courses of action of user on emulator are carried out record, and can carry out a kind of apparatus and method of automatic playback.At first, the present invention is that a kind of pseudo-code of utilizing is carried out record to courses of action, generates virtual file, and by reading the method for the automatic playback operation process of virtual file.This method is not only applicable to the platform of different main frames, and can also avoid because of traditional test and debug system can't write down problem points and literal can't carry out precise and to the point accurate description to problem points, and make searching once more of problem is caused difficulty.Secondly, be used for the virtual file in recording operation path among the present invention can edit, the operator can delete in virtual file or increases operational motion according to demands of individuals, can also specify the number of times of the automatic playback of courses of action.A large amount of repetitive operations that present tester is done have so not only been eliminated when the identity function of test different product, reduced tester's labour intensity, also improve their work efficiency, more reduced the cost of product, shortened the Products Development time.In addition, it is a kind of by making the virtual file of courses of action in advance that the present invention also offers the user, when product introduction by reading the straightforward procedure of the automatic exhibiting product function of virtual file, avoided when product function is demonstrated, operator's anxiety and language expression is unclear or careless omission occurs when carrying out execute-in-place, it is easy and light that the preliminary work that product function is showed becomes.
Therefore, of the present invention being implemented on the hardware requires as shown in Figure 1, comprises CPU 10, external storage 20, internal storage 30, display driver circuit 40, display device 50 and input media 60; On software, require to install test and debug system with record and playback.
See also Fig. 1 circuit structure calcspar, in when record, at first utilize input media 60 to open a virtual file and be stored in the external storage 20, each operational motion that the operator implemented all can be recorded in this file (virtual file) automatically.When playback, by carrying out in the internal storage 30 related software, read operation action from virtual file successively, and by display driver circuit 40 in display device 50 automatically playback go out courses of action.
Fig. 2 is that process flow diagram is write down in of the present invention one relevant operating process automatically, has described test and debug system and has utilized pseudo-code to realize the self registering process of courses of action, and add record and end record function in the debug system of emulator.At first, open the virtual record function, set up a virtual file opening entry operating process (step 210); And judge whether to want end record (step 220); Then judged whether operation requests (step 230),, then got back to step 220 if there is not operation requests; If operation requests is arranged, after the each operation of user, the UI thread when message is sent to the CPU thread also the data turnover mode with formation be recorded in (step 240) in the virtual file; When the user sent the end record order, the UI thread just was sent to the CPU thread to message, stopped record simultaneously.
In the virtual file that system generates automatically, the user can increase or deletion operational motion wherein the number of times of all right automatic playback in free assigned operation path according to the test needs of oneself.
Fig. 3 is the relevant automatic playback process flow diagram of operating process of the present invention, has described test and debug system and has utilized the process of pseudo-code realization to the automatic playback of courses of action; In the debug system of emulator, add playback and finish the playback function item.At first, open playback function (step 310), and open one and edited the virtual file of finishing, then whether playback number of times in decision operation path is zero (step 320), if be zero, then finish the playback flow process, whether to finish playback (step 330) otherwise look the user; UI thread timing this moment is taken out action record and is sent to CPU thread (step 340) from virtual file, by display device this action playback is come out then; Courses of action playback number of times subtracts 1 (step 350) simultaneously.When courses of action playback number of times be zero or the user send when finishing playback command, the operating process playback finishes.
For the clearer explanation the present invention of energy, be described as follows: " adding " function in the test emulation counter and the correctness of " taking advantage of " function especially exemplified by a most preferred embodiment.
The simulation calculation device is as shown in Figure 4:
1. at first open writing function, set up the virtual file of a .mac.
3. judged result, misregistration.
5. judged result, misregistration.
6. editor's virtual file is set the playback number of times.
7. open playback function, system is automatically according to the number of times playback operation path of appointment.
Checking " 2+3 ", the result of " 5*5 ", pseudo-code is described below.
The coordinate figure of each button of // definition;
″2″=Button(130,122);
″+″=Button(190,142);
″3″=Button(160,120);
″5″=Button(130,100);
″=″=Button(220,145);
″*″=Button(190,95);
ResultAddress=0×1234;
RepeaStart (100); The automatic playback number of times of // setting
// key entry " 2 " on computer simulatoi, " 3 " "=";
An if (ReadDoube (ResultAddress)!=5.0) // result is judged, and misregistration;
{
RecordError(″2+3=?″);
}
// key entry " 5 ", " " 5 " " on computer simulatoi="
An if (ReadDoube (ResultAddress)!=25.0) // result is judged, and misregistration;
{
RecordError(“5*5=?”);
}
RepeatEnd (); A playback of // operating process finishes, and the playback number of times subtracts 1;
As can be seen from the above embodiments, use the present invention can finish up to a hundred times repeated test fast automatically by system, and can note mistake automatically.This method is not only applicable to various host platform, and simple to operation, can improve tester and program personnel's work efficiency by a relatively large margin, improves the quality of product, reduces product and expends, and reduces the Products Development time.How painful just think if change artificial repeatable operation into up to a hundred time will be a thing! Equally also can utilize this method that the function in the product is made into a virtual file, playback is come out automatically when product introduction.
The above only is preferred embodiment of the present invention, and all equivalences of being done according to the present patent application claim change and revise, and all should belong to the scope of patent of the present invention.
Claims (7)
1. realize that on emulator this method comprises the following step at least to the method for automatic record of courses of action and playback for one kind:
Automatically write down flow process:
Open a virtual file, with the recording operation process;
When user's interface thread is sent to the CPU thread to message, be recorded in this virtual file in the data turnover mode of formation;
Wait for the end record order, to stop this recording operation process;
Automatic playback flow process:
Open this virtual file;
Regularly from this virtual file, take out action record at user's interface thread and be sent to this CPU thread; And
Repeating courses of action, is zero to the playback number of times, to finish this playback flow process.
2. as the 1st described method that realizes on emulator automatic record of courses of action and playback of claims, wherein this virtual file more can be according to testing the operational motion that need increase or delete wherein.
3. realize that as the 1st of claims are described wherein this virtual file more can freely be specified the number of times of the automatic playback of these courses of action to the courses of action method of record and playback automatically on emulator.
4. realize that as the 1st of claims are described wherein an external storage is opened and be stored in to this virtual file by an input media to the courses of action method of record and playback automatically on emulator.
5. realize that as the 1st of claims are described wherein this action record is by a display device this action record playback to be come out to the courses of action method of record and playback automatically on emulator.
6. as the 1st described method that on emulator, realizes automatic record of courses of action and playback of claims, wherein utilize the arithmetic operator, logic determines of pseudo-code (Pseudo Code), the function that repeats automatically, in the debug system of this emulator and test macro, increase this record and this playback function.
7. realize that on emulator this device comprises at least to the device of automatic record of courses of action and playback for one kind:
One external storage utilizes an input media to open a virtual file, and this virtual file is stored in this external storage;
One internal storage is in order to the related software of automatic record of these courses of action of storage execution and playback; And
One display device by display driver circuit read operation action from this virtual file successively, and is come out this action record playback.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001139983A CN1152303C (en) | 2000-12-06 | 2000-12-06 | Method and device for automatically recording and reproducing operation path on simulator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001139983A CN1152303C (en) | 2000-12-06 | 2000-12-06 | Method and device for automatically recording and reproducing operation path on simulator |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1356634A true CN1356634A (en) | 2002-07-03 |
CN1152303C CN1152303C (en) | 2004-06-02 |
Family
ID=4583727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB001139983A Expired - Fee Related CN1152303C (en) | 2000-12-06 | 2000-12-06 | Method and device for automatically recording and reproducing operation path on simulator |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1152303C (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100465840C (en) * | 2004-07-07 | 2009-03-04 | 西门子公司 | Method for simulating a technical installation |
CN101493790A (en) * | 2009-02-27 | 2009-07-29 | 北京中星微电子有限公司 | Record playback system and record playback method |
CN1656478B (en) * | 2003-03-27 | 2010-05-05 | 微软公司 | File system for displaying items of different types and from different physical locations |
CN1519703B (en) * | 2003-01-23 | 2010-05-05 | 英业达股份有限公司 | Computer multithreading test system capable of being combined and linked as well as its method |
CN101499088B (en) * | 2003-03-27 | 2013-10-30 | 微软公司 | System for filtering and organizing items based on common elements |
CN103870272A (en) * | 2014-03-06 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and device |
CN104932478A (en) * | 2014-03-20 | 2015-09-23 | 上海宝信软件股份有限公司 | Production process reproduction method of process control product |
-
2000
- 2000-12-06 CN CNB001139983A patent/CN1152303C/en not_active Expired - Fee Related
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1519703B (en) * | 2003-01-23 | 2010-05-05 | 英业达股份有限公司 | Computer multithreading test system capable of being combined and linked as well as its method |
CN1656478B (en) * | 2003-03-27 | 2010-05-05 | 微软公司 | File system for displaying items of different types and from different physical locations |
CN101499088B (en) * | 2003-03-27 | 2013-10-30 | 微软公司 | System for filtering and organizing items based on common elements |
CN100465840C (en) * | 2004-07-07 | 2009-03-04 | 西门子公司 | Method for simulating a technical installation |
CN101493790A (en) * | 2009-02-27 | 2009-07-29 | 北京中星微电子有限公司 | Record playback system and record playback method |
CN101493790B (en) * | 2009-02-27 | 2015-08-05 | 北京中星微电子有限公司 | Record playback system and record back method |
CN103870272A (en) * | 2014-03-06 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and device |
CN103870272B (en) * | 2014-03-06 | 2017-09-22 | 联想(北京)有限公司 | A kind of information processing method and device |
CN104932478A (en) * | 2014-03-20 | 2015-09-23 | 上海宝信软件股份有限公司 | Production process reproduction method of process control product |
CN104932478B (en) * | 2014-03-20 | 2019-02-15 | 上海宝信软件股份有限公司 | The production process reproducting method of process control product |
Also Published As
Publication number | Publication date |
---|---|
CN1152303C (en) | 2004-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9063766B2 (en) | System and method of manipulating virtual machine recordings for high-level execution and replay | |
CN1540517A (en) | Just-My-Code modulation tech | |
Gregg et al. | DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X, and FreeBSD | |
EP2223210B1 (en) | Advancing and rewinding a replayed program execution | |
US8924912B2 (en) | Method of recording and replaying call frames for a test bench | |
US7380235B1 (en) | Application program interface call replay tool | |
CN112074817A (en) | Execution control with cross-level trace mapping | |
US20160335167A1 (en) | Stepping and application state viewing between points | |
CN108459967B (en) | Web application test case generation method based on user interface state flow diagram | |
EP3577564B1 (en) | Efficient retrieval of memory values during trace replay | |
CN117389900A (en) | Tentative execution of code in debugger | |
US6810503B1 (en) | Method and apparatus for controlling the timing of the invocation of events within a computer runtime environment | |
US8478953B2 (en) | Buffer snapshots from unmodifiable data piece tables | |
US6543011B1 (en) | Method for event recording in java | |
CN1356634A (en) | Method and device for automatically recording and reproducing operation path on simulator | |
KR930003105A (en) | Program reservation recording for each block of VTR | |
CN102306162A (en) | Implementation method for storing and playing back multimedia objects | |
Hines et al. | Optimizing communication in embedded system co-simulation | |
CN110515958A (en) | Data consistency method, apparatus, equipment and storage medium based on big data | |
US8997048B1 (en) | Method and apparatus for profiling a virtual machine | |
US20060069682A1 (en) | Profiler tool for database servers | |
CN114981783A (en) | Distinguishing between a subject replayable execution trace and a comparison replayable execution trace | |
CN110704316A (en) | Office software and hardware testing method in domestic environment | |
CN109522050B (en) | Memory data real-time recording method and system based on processor control flow recording characteristics | |
Dannenberg | Real Time Control For Interactive Computer Music and Animation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C57 | Notification of unclear or unknown address | ||
DD01 | Delivery of document by public notice |
Addressee: Liu Changchun Document name: Notification to Pay the Fees |
|
C19 | Lapse of patent right due to non-payment of the annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |