CN105487971A - Method and system for recording and reproducing operation steps in software testing - Google Patents
Method and system for recording and reproducing operation steps in software testing Download PDFInfo
- Publication number
- CN105487971A CN105487971A CN201410802088.9A CN201410802088A CN105487971A CN 105487971 A CN105487971 A CN 105487971A CN 201410802088 A CN201410802088 A CN 201410802088A CN 105487971 A CN105487971 A CN 105487971A
- Authority
- CN
- China
- Prior art keywords
- step number
- alarm
- record
- operation step
- note
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and a system for recording and reproducing operation steps in software testing. The method comprises: setting processes required to be monitored and setting a warning value of occupation of each process to system resources; setting an operation step number required to be recorded in a testing process; recording the specific operation content and a system resource occupation condition of each operation step in real time in software testing, and generating an operation record; if a current operation step number exceeds the operation step number required to be recorded, only reserving operation records of a latest operation step number, and deleting previous operation records in sequence; if the occupation of a process to the system resources exceeds the warning value in the software testing, giving an alarm; and calling operation records of the operation step number before the alarm by test personnel according to the need. According to the technical scheme provided by the invention, the specific operation content of a predetermined operation step number and the influence of occupation of each operation step on the system resources before software crash in the testing can be given, so that the test personnel can better locate problem points and find reasons of problems.
Description
Technical field
The present invention relates to software testing technology field, particularly relate to the method and system of operation steps record and reproduction in a kind of software test.
Background technology
In the Black-box Testing process of software, often can run into the situation being difficult to reappear or locate concrete reason difficulty.Some result in serious consequence without object operation or complex operations combination unavoidably, and these are without object operation, and more difficult repetition of tester is also just not easy reproduction.And complex combination operation, it is more difficult that location which step concrete directly causes problem to occur, needs more trial.
At present, often produced problem comprises in testing: collapse, and after being through a series of operation, system directly points out software to occur collapse, and causes the reason of collapsing to have a variety of.One, may be that the operation of collapse back directly results in the collapse of software; The combination of two, collapsing the operation of former step result in collapse; Collapse is caused after the situation cumulative operation a period of time such as not closing after three, having RAM leakage or handle to use; Four, long-time a large amount of occupying system resources, causes system cloud gray model slowly to operate not smooth appearance collapse.Software is guarded some process, once find that the disappearance of collapse process can start again automatically, now system also can not provide prompting.And restart frequently and illustrate that software still has problems, and some are abnormal to cause user in use to occur.The problem repetition of the first situation is easy to very intuitively, but second and third is relative just so not directly perceived with the situation of four, needs more trial just may reappear.
Summary of the invention
For above-mentioned technical matters, the invention provides the method and system of operation steps record and reproduction in a kind of software test, due to can after test gives the alarm, the operation note of predetermined registration operation step number before extraction alarm, by the concrete operations content often walked and the impact taken system resource can be checked in operation note, thus reach accurate orientation problem reason, and then Optimization Software better.
The present invention adopts and realizes with the following method: a kind of method of operation steps record and reproduction in software test, comprising:
The process needing monitoring is set, and the warning value that each demand for system resources takies is set;
The operation step number recorded is needed in setting test process;
The concrete operations content that in software test, real time record often walks operation and the situation that system resource is taken, and generating run record;
If when current operation step number exceedes the operation step number of needs record, then only retain the operation note of operation step number recently, operation note is before deleted in turn;
If there is taking of demand for system resources in software test to have exceeded warning value, then give the alarm;
Tester operates the operation note of step number before transferring alarm as required.
Further, the described warning value arranging each demand for system resources and take, comprising: the warning value of CPU usage, CPU time, EMS memory occupation, handle count or magnetic disc i/o.
Further, described operation step number sets according to the complexity of software under testing.
Further, before described tester transfers alarm as required, the operation note of operation step number is, plays window indicating alarm reason, and user selects the operation note ignoring or check alarm front operation step number.
Further, described tester again operates according to the concrete operations content of operation note, generates new operation note after operating the operation note of step number before transferring alarm as required, and contrasts twice operation note removal redundant operation.
The present invention adopts following system to realize: the system of operation steps record and reproduction in a kind of software test, comprising:
Process arranges module, for arranging the process needing monitoring, and arranges the warning value that each demand for system resources takies;
Step number arranges module, for setting in test process the operation step number needing to record;
Operation note module, the concrete operations content often walking operation for real time record in software test and the situation that system resource is taken, and generating run record;
Upgrade removing module, when exceeding the operation step number of needs record for current operation step number, then only retain the operation note of operation step number recently, operation note is before deleted in turn;
Alarm modules, for having exceeded warning value when there is taking of demand for system resources in software test, has then given the alarm;
Module transferred in record, for operating the operation note of step number before transferring alarm as required.
Further, the described warning value arranging each demand for system resources and take, comprising: the warning value of CPU usage, CPU time, EMS memory occupation, handle count or magnetic disc i/o.
Further, described operation step number sets according to the complexity of software under testing.
Further, described record transfer module specifically for, play window indicating alarm reason, user selects to ignore or check the operation note of operation step number before alarm.
Further, also comprise repetitive operation module, again operate for the concrete operations content according to operation note, generate new operation note, and contrast twice operation note removal redundant operation.
In sum, first technical scheme of the present invention arranges the process needing monitoring, and the warning value that the system resource arranging each process takies, once the system resource of monitoring process takies situation exceed warning value in test process, then give the alarm, tester is reminded to note, on this basis, preset the operation step number needing record, the concrete operations content that in test, real time record often walks operation and the situation that system resource is taken, when operating step number and exceeding preset value, then only retain the operation note of operation step number in the recent period, expired operation note is deleted.Once give the alarm, then can select to check the operation note operating step number before giving the alarm.
Beneficial effect of the present invention is: if the present invention considers the operation note storing all operations step, will be very large for taking of local disk, and the operation steps too early apart from alarm is very little for the impact of alarm, and instant reproduction out also has little significance.Therefore, the give chapter and verse complexity of software of the present invention presets the operation step number needing record, only record and the operation note of predetermined registration operation step number before reappearing alarm, the impact checked its concrete operations content and system resource is taken, thus location alarm cause, software is optimized, solves the problem that classic method is difficult to for the abnormal occurrence that software occurs reappear and locate.
Accompanying drawing explanation
In order to be illustrated more clearly in technical scheme of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in 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 embodiment of the method process flow diagram of operation steps record and reproduction in software test provided by the invention;
Fig. 2 is the operation note embodiment in the method for operation steps record and reproduction in software test provided by the invention;
Fig. 3 is the system embodiment structural drawing of operation steps record and reproduction in software test provided by the invention.
Embodiment
The present invention gives the method and system of operation steps record and reproduction in a kind of software test, technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable above-mentioned purpose of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the present invention is described in further detail:
The present invention provide firstly the embodiment of the method for operation steps record and reproduction in a kind of software test, as shown in Figure 1, comprising:
S101 arranges the process needing monitoring, and arranges the warning value that each demand for system resources takies;
S102 sets the operation step number needing in test process to record;
The concrete operations content that in S103 software test, real time record often walks operation and the situation that system resource is taken, and generating run record;
If when S104 current operation step number exceedes the operation step number of needs record, then only retain the operation note of operation step number recently, operation note is before deleted in turn;
In test job, testing software can carry out record to operations such as each input through keyboard or mouse clicks, and records these and operate the impact that takies system resource; But consider local memory limited, and operation steps too early before distance alarm is less for software anomaly impact, so only retain the operation note of operation step number recently, operation note is before deleted;
If there is taking of demand for system resources in S105 software test to have exceeded warning value, then give the alarm;
S106 tester operates the operation note of step number before transferring alarm as required.
Preferably, the described warning value arranging each demand for system resources and take, comprising: whether the PID of process changes, the warning value of CPU usage, CPU time, EMS memory occupation, handle count or magnetic disc i/o.
Preferably, described operation step number sets according to the complexity of software under testing.
Wherein, described operation step number is the operation step number needing before giving the alarm to record and reappear, and default action step number is 10, but tester can be arranged by the complexity of software, if software is comparatively simple, then what need the operation step number reappeared to arrange is less; If software is more complicated, then what need the operation step number reappeared to arrange is more.
Preferably, before described tester transfers alarm as required, the operation note of operation step number is, plays window indicating alarm reason, and user selects the operation note ignoring or check alarm front operation step number.
Such as: play window indicating alarm reason: " * * * (process name) collapse " " unique identification of * * * (process name) PID(process) change " " * * * (process name) internal memory exceedes limit value " etc.There is provided two buttons, " determination " and " details ".Click " determination " and directly close prompting.Click the operation note operating step number before " details " show alarm, as shown in Figure 2.
Preferably, described tester again operates according to the concrete operations content of operation note, generates new operation note after operating the operation note of step number before transferring alarm as required, and contrasts twice operation note removal redundant operation.That is, by contrasting twice operation note thus the step that simplifies the operation, repeatedly testing, finally confirming questions and prospect.
Secondly the present invention provides the system embodiment of operation steps record and reproduction in a kind of software test, as shown in Figure 3, comprising:
Process arranges module 301, for arranging the process needing monitoring, and arranges the warning value that each demand for system resources takies;
Step number arranges module 302, for setting in test process the operation step number needing to record;
Operation note module 303, the concrete operations content often walking operation for real time record in software test and the situation that system resource is taken, and generating run record;
Upgrade removing module 304, when exceeding the operation step number of needs record for current operation step number, then only retain the operation note of operation step number recently, operation note is before deleted in turn;
Alarm modules 305, for having exceeded warning value when there is taking of demand for system resources in software test, has then given the alarm;
Module 306 transferred in record, for operating the operation note of step number before transferring alarm as required.
Preferably, the described warning value arranging each demand for system resources and take, comprising: the warning value of CPU usage, CPU time, EMS memory occupation, handle count or magnetic disc i/o.
Preferably, described operation step number sets according to the complexity of software under testing.
Preferably, described record transfer module specifically for, play window indicating alarm reason, user selects to ignore or check the operation note of operation step number before alarm.
Preferably, also comprise repetitive operation module, again operate for the concrete operations content according to operation note, generate new operation note, and contrast twice operation note removal redundant operation.
In sum, traditional method of testing cannot carry out positioning problems accurately to software anomaly, cannot accurately reappear cause collapse, process is frequently restarted, RAM leakage or take the specific operation process of CPU etc. for a long time, thus make tester again and again attempt reproduction, waste the plenty of time.Technical solutions according to the invention arrange the process needing monitoring as required by tester, and the warning value that the system resource specifically arranging each process takies, meanwhile, need tester that the operation step number of needs record is set according to software own situation.When carrying out software test, then ensure at any time to the concrete operations content of new operation steps and the situation generating run record that takies system resource, and the old operation note exceeding default operation step number deleted in real time, thus reduce taking local resource; Once give the alarm, then can transfer the operation note of the nearest operation step number before giving the alarm, tester takies situation by the system resource of each step in analysis operation record, analyzes the reason causing software anomaly.On this basis, repetitive operation can be carried out to the concrete operations content of operation step number, after generating new operation note, contrast with operation note before, thus remove redundancy step by difference condition, thus more accurate orientation problem reason.
Above embodiment is unrestricted technical scheme of the present invention in order to explanation.Do not depart from any modification or partial replacement of spirit and scope of the invention, all should be encompassed in the middle of right of the present invention.
Claims (10)
1. a method for operation steps record and reproduction in software test, is characterized in that, comprising:
The process needing monitoring is set, and the warning value that each demand for system resources takies is set;
The operation step number recorded is needed in setting test process;
The concrete operations content that in software test, real time record often walks operation and the situation that system resource is taken, and generating run record;
If when current operation step number exceedes the operation step number of needs record, then only retain the operation note of operation step number recently, operation note is before deleted in turn;
If there is taking of demand for system resources in software test to have exceeded warning value, then give the alarm;
Tester operates the operation note of step number before transferring alarm as required.
2. the method for claim 1, is characterized in that, the described warning value arranging each demand for system resources and take, comprising: the warning value of CPU usage, CPU time, EMS memory occupation, handle count or magnetic disc i/o.
3. the method for claim 1, is characterized in that, described operation step number sets according to the complexity of software under testing.
4. the method for claim 1, is characterized in that, before described tester transfers alarm as required, the operation note of operation step number is, plays window indicating alarm reason, and user selects the operation note ignoring or check alarm front operation step number.
5. the method for claim 1, it is characterized in that, described tester operates again according to the concrete operations content of operation note after operating the operation note of step number before transferring alarm as required, generate new operation note, and contrast twice operation note removal redundant operation.
6. a system for operation steps record and reproduction in software test, is characterized in that, comprising:
Process arranges module, for arranging the process needing monitoring, and arranges the warning value that each demand for system resources takies;
Step number arranges module, for setting in test process the operation step number needing to record;
Operation note module, the concrete operations content often walking operation for real time record in software test and the situation that system resource is taken, and generating run record;
Upgrade removing module, when exceeding the operation step number of needs record for current operation step number, then only retain the operation note of operation step number recently, operation note is before deleted in turn;
Alarm modules, for having exceeded warning value when there is taking of demand for system resources in software test, has then given the alarm;
Module transferred in record, for operating the operation note of step number before transferring alarm as required.
7. system as claimed in claim 6, it is characterized in that, the described warning value arranging each demand for system resources and take, comprising: the warning value of CPU usage, CPU time, EMS memory occupation, handle count or magnetic disc i/o.
8. system as claimed in claim 6, it is characterized in that, described operation step number sets according to the complexity of software under testing.
9. system as claimed in claim 6, is characterized in that, described record transfer module specifically for, play window indicating alarm reason, user selects to ignore or check the operation note of operation step number before alarm.
10. system as claimed in claim 6, is characterized in that, also comprise repetitive operation module, again operate, generate new operation note for the concrete operations content according to operation note, and contrasts twice operation note removal redundant operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802088.9A CN105487971A (en) | 2014-12-22 | 2014-12-22 | Method and system for recording and reproducing operation steps in software testing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802088.9A CN105487971A (en) | 2014-12-22 | 2014-12-22 | Method and system for recording and reproducing operation steps in software testing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105487971A true CN105487971A (en) | 2016-04-13 |
Family
ID=55674963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410802088.9A Pending CN105487971A (en) | 2014-12-22 | 2014-12-22 | Method and system for recording and reproducing operation steps in software testing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105487971A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391360A (en) * | 2016-11-16 | 2017-11-24 | 广州爱九游信息技术有限公司 | Application exception information processing method, device, server and user terminal |
CN108334436A (en) * | 2018-01-31 | 2018-07-27 | 平安普惠企业管理有限公司 | Optimization method, device, equipment and the computer readable storage medium of application software |
CN109361531A (en) * | 2018-09-04 | 2019-02-19 | 瑞斯康达科技发展股份有限公司 | A kind of communication equipment is not easy to reappear the reproducing method of problem, system and equipment |
CN110221876A (en) * | 2019-05-30 | 2019-09-10 | 维沃移动通信有限公司 | A kind of reminding method and mobile terminal |
CN111258847A (en) * | 2020-01-13 | 2020-06-09 | 北京字节跳动网络技术有限公司 | File handle monitoring and analyzing method, device, medium and equipment |
CN112651199A (en) * | 2020-12-24 | 2021-04-13 | 山东高云半导体科技有限公司 | Quality verification platform and quality verification method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076184A1 (en) * | 2003-10-01 | 2005-04-07 | Schumacher Michael K. | Apparatus and method for detecting memory leaks |
CN1896957A (en) * | 2005-07-14 | 2007-01-17 | 中兴通讯股份有限公司 | Method for leaking memory of positioning virtual operation system |
CN101599048A (en) * | 2009-07-01 | 2009-12-09 | 福建星网锐捷网络有限公司 | A kind of method and apparatus of internal memory monitoring |
CN101883003A (en) * | 2009-05-08 | 2010-11-10 | 华北电力大学 | Mandatory running method of computer operating system |
US20130024869A1 (en) * | 2010-02-10 | 2013-01-24 | Zte Corporation | Picture loading method and terminal |
CN104182320A (en) * | 2013-05-23 | 2014-12-03 | 联想(北京)有限公司 | Method and device for monitoring leakage of memory |
-
2014
- 2014-12-22 CN CN201410802088.9A patent/CN105487971A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076184A1 (en) * | 2003-10-01 | 2005-04-07 | Schumacher Michael K. | Apparatus and method for detecting memory leaks |
CN1896957A (en) * | 2005-07-14 | 2007-01-17 | 中兴通讯股份有限公司 | Method for leaking memory of positioning virtual operation system |
CN101883003A (en) * | 2009-05-08 | 2010-11-10 | 华北电力大学 | Mandatory running method of computer operating system |
CN101599048A (en) * | 2009-07-01 | 2009-12-09 | 福建星网锐捷网络有限公司 | A kind of method and apparatus of internal memory monitoring |
US20130024869A1 (en) * | 2010-02-10 | 2013-01-24 | Zte Corporation | Picture loading method and terminal |
CN104182320A (en) * | 2013-05-23 | 2014-12-03 | 联想(北京)有限公司 | Method and device for monitoring leakage of memory |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391360A (en) * | 2016-11-16 | 2017-11-24 | 广州爱九游信息技术有限公司 | Application exception information processing method, device, server and user terminal |
CN108334436A (en) * | 2018-01-31 | 2018-07-27 | 平安普惠企业管理有限公司 | Optimization method, device, equipment and the computer readable storage medium of application software |
CN108334436B (en) * | 2018-01-31 | 2021-09-21 | 平安普惠企业管理有限公司 | Application software optimization method, device, equipment and computer readable storage medium |
CN109361531A (en) * | 2018-09-04 | 2019-02-19 | 瑞斯康达科技发展股份有限公司 | A kind of communication equipment is not easy to reappear the reproducing method of problem, system and equipment |
CN109361531B (en) * | 2018-09-04 | 2021-11-19 | 瑞斯康达科技发展股份有限公司 | Method, system and equipment for reproducing problem of communication equipment which is difficult to reproduce |
CN110221876A (en) * | 2019-05-30 | 2019-09-10 | 维沃移动通信有限公司 | A kind of reminding method and mobile terminal |
CN111258847A (en) * | 2020-01-13 | 2020-06-09 | 北京字节跳动网络技术有限公司 | File handle monitoring and analyzing method, device, medium and equipment |
CN111258847B (en) * | 2020-01-13 | 2023-08-22 | 北京字节跳动网络技术有限公司 | File handle monitoring and analyzing method, device, medium and equipment |
CN112651199A (en) * | 2020-12-24 | 2021-04-13 | 山东高云半导体科技有限公司 | Quality verification platform and quality verification method |
CN112651199B (en) * | 2020-12-24 | 2023-08-29 | 山东高云半导体科技有限公司 | Quality Verification Platform and Quality Verification Method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105487971A (en) | Method and system for recording and reproducing operation steps in software testing | |
US20190213115A1 (en) | Utilizing artificial intelligence to test cloud applications | |
CN106104496B (en) | The abnormality detection not being subjected to supervision for arbitrary sequence | |
CN104360878B (en) | A kind of method and device of application software deployment | |
CN105225049B (en) | High-expandability fault diagnosis expert system | |
CN107465575A (en) | The monitoring method and system of a kind of cluster | |
CN105260294A (en) | Monitoring method and device for memory occupied by application program | |
EP3583503B1 (en) | Analyzing large-scale data processing jobs | |
WO2016082649A1 (en) | Method and device for automatically processing static test data of rail transit vehicle | |
US11403202B2 (en) | Power monitoring system for virtual platform simulation | |
CN103310860A (en) | Functional analysis method of accident handling display of nuclear power plant adopting digital man-machine interface | |
JP2017512322A (en) | Software fault location method, apparatus and equipment | |
EP3121715A1 (en) | Event processing method and apparatus | |
CN103744730A (en) | Task scheduling method and device | |
CN104330764B (en) | Electricity consumption detection device for electricity meter and operation method thereof | |
CN113722134A (en) | Cluster fault processing method, device and equipment and readable storage medium | |
WO2016095091A1 (en) | Instrumentation of graphics instructions | |
CN104142959A (en) | Automated test device and method based on expert knowledge database | |
CN114184885A (en) | Fault detection method, device and storage medium | |
CN109242067A (en) | A kind of hospital gauze monitoring method and device | |
CN109947576A (en) | A kind of method of virtual machine internal broker program management | |
CN112558972A (en) | Application management platform, system, method, storage medium and program product | |
Hussein et al. | Scenario-based validation of requirements for context-aware adaptive services | |
CN112306529A (en) | System upgrading method, device, equipment and storage medium | |
CN104914726A (en) | Medical equipment control system and method |
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: 20160413 |