CN104598370A - System and method for reproducing BUG - Google Patents
System and method for reproducing BUG Download PDFInfo
- Publication number
- CN104598370A CN104598370A CN201510018117.7A CN201510018117A CN104598370A CN 104598370 A CN104598370 A CN 104598370A CN 201510018117 A CN201510018117 A CN 201510018117A CN 104598370 A CN104598370 A CN 104598370A
- Authority
- CN
- China
- Prior art keywords
- operation note
- equipment
- lower levels
- bug
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention discloses a system and a method for reproducing a BUG. The system comprises an operation record storage unit (1), an operation record reading unit (2) and a reproducing unit (3), wherein the operation record storage unit (1) is used for starting an operation record option of SecureCrt, and recording the operation record of equipment, the operation record reading unit (2) is used for reading the operation record which is stored in the operation record storage unit (1) and corresponds to the equipment when the equipment BUG is reproduced, and sending the operation record of the equipment to the reproducing unit (3), and the reproducing unit (3) is used for receiving and analyzing the operation record sent by the operation record reading unit (2), and distributing a command to the corresponding equipment according to the analysis result. The system and the method for reproducing the BUG have the advantages that the historical operation record of the equipment is reproduced by the SecureCrt software, the difficulty in manual reproduction of the BUG is decreased, and the probability of BUG reproduction is improved.
Description
Technical field
The present invention relates to computer software engineering field, be specifically related to a kind of system and method reappearing BUG.
Background technology
In computer system or program, the general designation of some undiscovered defects of BUG Chang Zuowei or problem.In routine duties, software test personnel often need to connect serial ports by the software such as SecureCrt and are configured operation, if BUG will be reappeared, then tester must repeatedly on SecureCrt transmitting order to lower levels could occur.But for more equipment or more historical operation step, when tester will reappear certain BUG, need the equipment that comparison repeatedly operates, and the time etc. of the order of crossing of each equipment operating and operation, bring great difficulty to like this reproduction of BUG, and reduce the probability of BUG reproduction.
Summary of the invention
The object of this invention is to provide a kind of system and method reappearing BUG, by the historical operation record of software reproducing apparatus, greatly reduce the difficulty of artificial reproduction BUG, and improve the probability of BUG reproduction, to overcome the problem that difficulty is high, probability is low that prior art exists BUG reproduction.
According to an aspect of the present invention, a kind of system reappearing BUG is provided, comprises: operation note storage unit, for opening the operation note option of SecureCrt, the operation note of recording unit; Operation note reading unit, is connected to described operation note storage unit, for reading in described operation note storage unit when reappearing equipment B UG the operation note corresponding with this equipment stored, and the operation note of this equipment is sent to reproduction unit; And reproduction unit, be connected to described operation note reading unit, for receive and analyze described operation note reading unit send operation note, according to analysis result to corresponding device transmitting order to lower levels.
Wherein, in the present invention, described operation note storage unit is for opening the operation note option of SecureCrt, its operation note of serial ports star according to equipment is left in corresponding file, at least containing a log journal file in described file, described in each, log journal file records the operation note of corresponding device.
Wherein, in the present invention, described reproduction unit comprises: receiver module, for receiving the operation note that described operation note reading unit sends; Analysis module, for analyzing the operation note received by described receiver module; And issue module, for the result that analyzes according to described analysis module to corresponding equipment transmitting order to lower levels.
Wherein, in the present invention, described analysis module is used for the moment of the corresponding device transmitting order to lower levels recorded in read operation record, and calculates the interval time that every bar order issues.
Wherein, in the present invention, described in issue module for choosing the initial time point of transmitting order to lower levels, and the interval time issued according to every bar order that described analysis module calculates is again to the serial ports transmitting order to lower levels of the equipment of correspondence.
According to a further aspect in the invention, a kind of method reappearing BUG is provided, comprises: step S1, open the operation note option of SecureCrt, the operation note of recording unit; Step S2, the operation note corresponding with equipment that reading and sending has stored; Step S3, receives and analyzes the operation note of described equipment, according to analysis result to this equipment transmitting order to lower levels.
Wherein, in the present invention, described step S1 comprises: the operation note option opening SecureCrt, its operation note of serial ports star according to equipment is left in corresponding file, at least containing a log journal file in described file, described in each, log journal file records the operation note of corresponding device.
Wherein, in the present invention, described step S3 comprises: step S31, receives the operation note of described equipment; Step S32, analyzes the operation note of described equipment; Step S33, according to analysis result to described equipment transmitting order to lower levels.
Wherein, in the present invention, described step S32 comprises: the moment of the corresponding device transmitting order to lower levels recorded in read operation record, and calculates the interval time that every bar order issues.
Wherein, in the present invention, described step S33 comprises: the initial time point choosing transmitting order to lower levels, and the interval time issued according to every bar order that step S32 calculates is again to the serial ports transmitting order to lower levels of the equipment of correspondence.
According to a kind of system and method reappearing BUG of the present invention, utilize the historical operation record of SecureCrt software reproducing apparatus, when reappearing BUG, recalculated by the characteristic information of the operation note of extraction equipment, the order simulating manual operation record issues step, and then reduce the difficulty of artificial reproduction BUG, and improve the probability of BUG reproduction.
Accompanying drawing explanation
Fig. 1 shows the structural representation of the reproduction BUG system of the preferred embodiment of the present invention;
Fig. 2-Fig. 4 shows the schematic diagram of the store status of operation note in the preferred embodiment of the present invention;
Fig. 5 shows in Fig. 1 the structural representation reappearing unit;
Fig. 6 shows the process flow diagram of the reproduction BUG method of the preferred embodiment of the present invention;
Fig. 7 shows the process flow diagram of step S3 in Fig. 6.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with embodiment also with reference to accompanying drawing, the present invention is described in more detail.Should be appreciated that, these describe just exemplary, and do not really want to limit the scope of the invention.In addition, in the following description, the description to known features and technology is eliminated, to avoid unnecessarily obscuring concept of the present invention.
In prior art, software test personnel usually connect serial ports by the software such as SecureCrt and are configured operation, if BUG will be reappeared, tester must repeatedly on SecureCrt transmitting order to lower levels could occur.For more equipment or more historical operation step, when tester will reappear certain BUG, need the equipment that comparison repeatedly operates, and the time etc. of the order of crossing of each equipment operating and operation, bring great difficulty to like this reproduction of BUG, and reduce the probability of BUG reproduction.
Compared with prior art, the present invention utilizes the historical operation record of SecureCrt software reproducing apparatus, namely SecureCrt log information is utilized, this log information comprises operation moment, the name of connection device and the order that specifically issues, the reproduction of historical operation record is carried out by software, reduce the difficulty of artificial reproduction BUG, and improve the probability of BUG reproduction.
Fig. 1 shows the structural representation of the reproduction BUG system of the preferred embodiment of the present invention.
As shown in Figure 1, the reproduction BUG system of the preferred embodiment of the present invention comprises: operation note storage unit 1, operation note reading unit 2 and reproduction unit 3.
Operation note storage unit 1 is for opening the operation note option of SecureCrt, the operation note of recording unit.
Specifically, operation note storage unit 1 utilizes the operation note of SecureCrt software simulating to each equipment to store, operation note storage unit 1 can open the operation note option of SecureCrt, such SecureCrt can leave in corresponding file according to its operation note of serial ports star of equipment, sees Fig. 2.Wherein, for store operation note file at least containing a log journal file, see Fig. 3; As shown in Figure 4, each log journal file records the operation note of corresponding device, and the historical operation record of each like this equipment can be classified storage, for reproduction BUG lays a good foundation.
Operation note reading unit 2 is connected to operation note storage unit 1, for the operation note corresponding with this equipment stored in the read operation record storage unit 1 when reappearing equipment B UG, and the operation note of this equipment is sent to reproduction unit 3.
Specifically, reappear certain/BUG of multiple equipment time, operation note reading unit 2 reads the operation note of this equipment from operation note storage unit 1, here, operation note reading unit 2 needs the serial ports name of the equipment reappearing BUG to obtain the corresponding operation note be stored in operation note storage unit 1 by reading, and after the information obtaining operation note, be dealt into reproduction unit 3, by reproduction unit 3, it is analyzed.
Reproduction unit 3, is connected to operation note reading unit 2, for receiving and the operation note of analysis operation record reading unit 2 transmission, according to analysis result to corresponding device transmitting order to lower levels.
Specifically, the structure of reproduction unit 3 as shown in Figure 5, comprises receiver module 31, analysis module 32 and issues module 33.
The operation note that receiver module 31 sends for receiving described operation note reading unit 2.
Analysis module 32 is for analyzing the operation note received by receiver module 31.Particularly, the moment of corresponding device transmitting order to lower levels of analysis module 32 for recording in read operation record, and calculate the interval time that every bar order issues, the times that issue as 4 orders front in Fig. 4 are respectively 09:04:03,09:04:05,09:04:05 and 09:04:06, and the interval time of so these four orders is 2S, 0 and 1S.
Issue module 33 for the result that analyzes according to analysis module 32 to corresponding equipment transmitting order to lower levels.Particularly, issue module 33 for choosing the initial time point of transmitting order to lower levels, and the interval time issued according to every bar order that analysis module 32 calculates is again to the serial ports transmitting order to lower levels of the equipment of correspondence, as selected the first command (09:04:03) of operation note in Fig. 4 for initial time point, then the time that issues of first command is 0S, the time that issues of second and third order is respectively 0+2S, 0+2S, and the time that issues of Article 4 order is 0+2+1S.
On the whole, operation note storage unit 1 stores according to the operation note of each equipment of equipment of serial star, when needing the BUG reappearing certain equipment, operation note reading unit 2 extracts and sends the history transmitting order to lower levels of corresponding device and issue the moment from operation note storage unit 1, issue module 33 according to the analysis to obtained operation note information, calculate the interval time that each order issues, and according to computing time again to corresponding equipment transmitting order to lower levels, reappear the BUG of relevant device.
Fig. 6 shows the process flow diagram of the reproduction BUG method of the preferred embodiment of the present invention.
As shown in Figure 6, the reproduction BUG method of the preferred embodiment of the present invention comprises:
Step S1, opens the operation note option of SecureCrt, the operation note of recording unit.
Specifically, in step sl, utilize the operation note of SecureCrt software simulating to each equipment to store, namely open the operation note option of SecureCrt, such SecureCrt can leave in corresponding file according to its operation note of serial ports star of equipment, sees Fig. 2.Wherein, for store operation note file at least containing a log journal file, see Fig. 3; As shown in Figure 4, each log journal file records the operation note of corresponding device, and the historical operation record of each like this equipment can be classified storage, for reproduction BUG lays a good foundation.
Step S2, the operation note corresponding with equipment that reading and sending has stored.
Specifically, in step s 2, when to reappear certain/BUG of multiple equipment time, from storage folder, read the operation note of this equipment, here, the serial ports name of the equipment reappearing BUG is needed to obtain the corresponding operation note be stored in file by reading.
Step S3, receives and analyzes the operation note of described equipment, according to analysis result to this equipment transmitting order to lower levels.
Specifically, the flow process of step S3 as shown in Figure 6, comprising:
Step S31, receives the operation note of described equipment.
Step S32, analyzes the operation note of described equipment.Particularly, the characteristic information of the operation note of equipment is analyzed, the moment of the corresponding device transmitting order to lower levels recorded in read operation record, and calculate the interval time that every bar order issues, the times that issue as 4 orders front in Fig. 4 are respectively 09:04:03,09:04:05,09:04:05 and 09:04:06, and the interval time of so these four orders is 2S, 0 and 1S.
Step S33, according to analysis result to described equipment transmitting order to lower levels.Particularly, choose the initial time point of transmitting order to lower levels, and the interval time issued according to the every bar order calculated is again to the serial ports transmitting order to lower levels of the equipment of correspondence, as selected the first command (09:04:03) of operation note in Fig. 4 for initial time point, then the time that issues of first command is 0S, the time that issues of second and third order is respectively 0+2S, 0+2S, and the time that issues of Article 4 order is 0+2+1S.
As mentioned above, according to a kind of system and method reappearing BUG of the present invention, utilize the historical operation record of SecureCrt software reproducing apparatus, when reappearing BUG, recalculated by the characteristic information of the operation note of extraction equipment, the order simulating manual operation record issues step, and then reduces the difficulty of artificial reproduction BUG, and improves the probability of BUG reproduction.
Should be understood that, above-mentioned embodiment of the present invention only for exemplary illustration or explain principle of the present invention, and is not construed as limiting the invention.Therefore, any amendment made when without departing from the spirit and scope of the present invention, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.In addition, claims of the present invention be intended to contain fall into claims scope and border or this scope and border equivalents in whole change and modification.
Claims (10)
1. reappear a system of BUG, it is characterized in that, comprising:
Operation note storage unit (1), for opening the operation note option of SecureCrt, the operation note of recording unit;
Operation note reading unit (2), be connected to described operation note storage unit (1), for reading the operation note corresponding with this equipment stored in described operation note storage unit (1) when reappearing equipment B UG, and the operation note of this equipment is sent to reproduction unit (3); And
Reproduction unit (3), is connected to described operation note reading unit (2), for receiving and analyzing the operation note that described operation note reading unit (2) sends, according to analysis result to corresponding device transmitting order to lower levels.
2. system according to claim 1, it is characterized in that, described operation note storage unit (1) is for opening the operation note option of SecureCrt, its operation note of serial ports star according to equipment is left in corresponding file, at least containing a log journal file in described file, described in each, log journal file records the operation note of corresponding device.
3. system according to claim 1 and 2, is characterized in that, described reproduction unit (3) comprising:
Receiver module (31), for receiving the operation note that described operation note reading unit (2) sends;
Analysis module (32), for analyzing the operation note received by described receiver module (31); And
Issue module (33), for the result that analyzes according to described analysis module (32) to corresponding equipment transmitting order to lower levels.
4. system according to claim 3, is characterized in that, the moment of corresponding device transmitting order to lower levels of described analysis module (32) for recording in read operation record, and calculates the interval time that every bar order issues.
5. system according to claim 4, it is characterized in that, the described module (33) that issues is for choosing the initial time point of transmitting order to lower levels, and the interval time issued according to every bar order that described analysis module (32) calculates is again to the serial ports transmitting order to lower levels of the equipment of correspondence.
6. reappear a method of BUG, it is characterized in that, comprising:
Step S1, opens the operation note option of SecureCrt, the operation note of recording unit;
Step S2, the operation note corresponding with equipment that reading and sending has stored;
Step S3, receives and analyzes the operation note of described equipment, according to analysis result to this equipment transmitting order to lower levels.
7. method according to claim 6, is characterized in that, described step S1 comprises:
Open the operation note option of SecureCrt, its operation note of serial ports star according to equipment is left in corresponding file, at least containing a log journal file in described file, described in each, log journal file records the operation note of corresponding device.
8. the method according to claim 6 or 7, is characterized in that, described step S3 comprises:
Step S31, receives the operation note of described equipment;
Step S32, analyzes the operation note of described equipment;
Step S33, according to analysis result to described equipment transmitting order to lower levels.
9. method according to claim 8, is characterized in that, described step S32 comprises:
The moment of the corresponding device transmitting order to lower levels recorded in read operation record, and the interval time calculating that every bar order issues.
10. method according to claim 9, is characterized in that, described step S33 comprises:
Choose the initial time point of transmitting order to lower levels, and the interval time issued according to every bar order that step S32 calculates is again to the serial ports transmitting order to lower levels of the equipment of correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510018117.7A CN104598370A (en) | 2015-01-14 | 2015-01-14 | System and method for reproducing BUG |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510018117.7A CN104598370A (en) | 2015-01-14 | 2015-01-14 | System and method for reproducing BUG |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104598370A true CN104598370A (en) | 2015-05-06 |
Family
ID=53124182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510018117.7A Pending CN104598370A (en) | 2015-01-14 | 2015-01-14 | System and method for reproducing BUG |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104598370A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107509072A (en) * | 2017-08-30 | 2017-12-22 | 四川长虹电器股份有限公司 | A kind of automated testing method of automatic Memory test path |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1254128A (en) * | 1998-11-13 | 2000-05-24 | 英业达集团(西安)电子技术有限公司 | Error automatic detection device and method of personal digilal assistant device |
US20050071538A1 (en) * | 2003-09-30 | 2005-03-31 | Icp Electronics, Inc. | Method for storing access record in network communication device |
CN104125304A (en) * | 2014-08-13 | 2014-10-29 | 北京华夏威科软件技术有限公司 | Session-level application auditing method and system |
-
2015
- 2015-01-14 CN CN201510018117.7A patent/CN104598370A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1254128A (en) * | 1998-11-13 | 2000-05-24 | 英业达集团(西安)电子技术有限公司 | Error automatic detection device and method of personal digilal assistant device |
US20050071538A1 (en) * | 2003-09-30 | 2005-03-31 | Icp Electronics, Inc. | Method for storing access record in network communication device |
CN104125304A (en) * | 2014-08-13 | 2014-10-29 | 北京华夏威科软件技术有限公司 | Session-level application auditing method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107509072A (en) * | 2017-08-30 | 2017-12-22 | 四川长虹电器股份有限公司 | A kind of automated testing method of automatic Memory test path |
CN107509072B (en) * | 2017-08-30 | 2019-09-24 | 四川长虹电器股份有限公司 | A kind of automated testing method of automatic Memory test path |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107273280B (en) | Log processing method and device, electronic equipment and storage medium | |
CN102831052B (en) | Test exemple automation generating apparatus and method | |
CN107480039B (en) | Small file read-write performance test method and device for distributed storage system | |
CN107995283A (en) | A kind of data bury the method, equipment and system of point analysis | |
US9612936B2 (en) | Correlation of source code with system dump information | |
US20150169288A1 (en) | System operation tracing method on distributed system | |
CN104731896A (en) | Data processing method and system | |
CN106294116A (en) | Record and the methods, devices and systems of reproduction process process | |
CN105405221A (en) | Method and device for automated test | |
CN105207832A (en) | Server stress testing method and device | |
CN104270605A (en) | Method and device for processing video monitoring data | |
CN106250409A (en) | Data query method and device | |
CN106897211A (en) | For the localization method and system of obscuring script | |
CN113110995A (en) | System migration test method and device | |
CN114840286B (en) | Service processing method and server based on big data | |
CN108133017A (en) | A kind of multi-data source acquisition configuration method and device | |
CN104598370A (en) | System and method for reproducing BUG | |
CN103347005A (en) | Data report control method, client end device and server device | |
CN110347678B (en) | Financial data storage method, system, device and equipment | |
CN105207831A (en) | Detection method and apparatus for operation event | |
CN109359202B (en) | Electronic operation and maintenance work order automatic generation method and system based on audio and video recording | |
CN116775575A (en) | File merging method and device, electronic equipment and storage medium | |
CN107590044B (en) | Testing method, device and equipment for distributed storage cluster | |
CN102426555B (en) | The access control method of a kind of mobile memory, mobile memory and system | |
CN110222070B (en) | Report archiving method, report archiving device, report archiving medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150506 |