CN101179434B - Automatic time-counting method in network management system - Google Patents

Automatic time-counting method in network management system Download PDF

Info

Publication number
CN101179434B
CN101179434B CN2007101514958A CN200710151495A CN101179434B CN 101179434 B CN101179434 B CN 101179434B CN 2007101514958 A CN2007101514958 A CN 2007101514958A CN 200710151495 A CN200710151495 A CN 200710151495A CN 101179434 B CN101179434 B CN 101179434B
Authority
CN
China
Prior art keywords
timing
resource object
finishes
begins
management system
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.)
Expired - Fee Related
Application number
CN2007101514958A
Other languages
Chinese (zh)
Other versions
CN101179434A (en
Inventor
刘金洋
尹勇
程兵旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2007101514958A priority Critical patent/CN101179434B/en
Publication of CN101179434A publication Critical patent/CN101179434A/en
Application granted granted Critical
Publication of CN101179434B publication Critical patent/CN101179434B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an automatic timing method in a network management system, which comprises the processes that: the resource objects of the execution starting and the execution ending of the application used for characterizing the execution time to be evaluated in the network management system and the status flags of the resource objects used for representing the starting of the timing and the ending of the timing are determined and the status flags of the resource objects representing the starting of the timing and the ending of the timing are input into a test control center; the test control center real-timely monitors the current status of the resource object according to the status flags of the resource object representing the starting of the timing and the ending of the timing. When the status flag representing that the timing begins occurs in the resource object, the timing begins; when the status flag representing that the timing ends occurs in the resource object, the timing ends. The invention delivers high timing precision, can be operated conveniently and enhances the test efficiency.

Description

The method of self-clocking in a kind of network management system
Technical field
The present invention relates to the communications field, relate in particular to the automatic timing method of a kind of a certain application time of implementation of network management system.
Background technology
In the application of network management system, the processing time of system is people's questions of common concern, also is that the tester does and must survey one of content in the performance test.The processing time that test macro is also promptly used a certain function, concrete operations were usually in the mode of manual test: timing when beginning to carry out a certain applications in system stops timing after carrying out end using.Another method adopts special testing tool exactly, utilizes system itself that the testability interface is provided, and starts timer when beginning to carry out a certain application, when system finishes a certain application and carries out, stops timer, and the time that is consumed is noted.
Adopt the manual test method to carry out timing, have following shortcoming:
1, the time long, the tester is tired easily.In most cases, be to have disposed under the situation of big data quantity in network management system, so that assess the efficient of network management system, just need carry out the assessment of time of implementation.In this case, carry out a certain application, possibility dozens of minutes consuming time even a few hours are acid tests to the tester.
2, retest.Test beginning and the opportunity that finishes need hold proper, just need restart to test opportunity otherwise miss timing.Such as, need disappear at login frame, topological menu shows in a flash, timing at once.If the tester misses this moment, just need retest to guarantee the accurate of time.
3, time inaccuracy.Manual time-keeping if the time is accurate to branch, can guarantee accuracy basically.But be accurate to second a level or a Millisecond if desired, because tester's individual difference, subjective sensation difference, and the assurance deviation etc. that test is begun to finish decision condition, all can cause timing error to occur.
Adopt special testing tool, the testing tools such as Rational Robot as IBM utilize system itself that the testability interface is provided.This mode has overcome simple manual testing's drawback.But need at the beginning of system testing, promptly propose the testability demand, test interface is provided.For those network management system of having finalized the design,, then powerless if the interface of this respect is not provided.And, make in this way and test, need the test script of write specialized, and when test committed memory more.
Therefore, how to assess the time that network management system is carried out a certain application, alleviate tester's burden, become the problem of a reality.
Summary of the invention
The technical problem to be solved in the present invention is exactly the method that proposes self-clocking in a kind of network management system, do not provide under the situation of self-clocking interface in network management system to solve, manual time-keeping exists deviation, very long wait, the problem of tired and inefficiency easily.
In order to solve the problems of the technologies described above, the invention provides the method for self-clocking in a kind of network management system, comprise the steps:
(1) execution of determining to be used in the network management system to characterize the application of time of implementation to be assessed begins and carries out the resource object that finishes, and described resource object is used to the Status Flag of representing that timing begins, timing finishes;
(2) the Status Flag input test control centre that the timing with described resource object begins, timing finishes;
(3) the test control center Status Flag that timing begins according to resource object, timing finishes is monitored the current state of resource object in real time, when Status Flag that timing begins appears in resource object, picks up counting; When the Status Flag that timing finishes appears in resource object, finish timing.
Further, described resource object is the resource that network management system inside comprises, and when described application was carried out beginning and carried out end, the state of resource object had the evident difference feature.
Further, described resource object comprises dialog box, menu.
Further, in the described step (1), be used to characterize the resource object that the execution of the application of time of implementation to be assessed begins and be used to characterize that to carry out the resource object that finishes be same resource object.
Further, in the described step (1), be used to characterize the resource object that the execution of the application of time of implementation to be assessed begins and be used to characterize that to carry out the resource object that finishes be the different resource object.
Further, described step (2) also comprises initialization test control centre step, initialization time of implementation parameter before carrying out.
Further, described initialization time of implementation parameter comprises and will be used to add up the counter O reset of time of implementation, composes initial value for timing initial state sign and done state sign.
Further, described step (3) comprises the steps:
(A) the test control center Status Flag that timing begins according to resource object, timing finishes is monitored the current state of resource object in real time;
(B) network management system has started the application of time of implementation to be assessed, and the Status Flag that timing begins appears in resource object, and test control center picks up counting;
(C) network management system is carried out described application;
(D) described application is finished, and the Status Flag that timing finishes appears in resource object, and test control center finishes timing.
Further, after described step (D) test control center finishes timing, the output timing result.
The present invention has overcome in network management system not to be provided under the situation of self-clocking interface, and manual time-keeping exists deviation, very long wait, shortcoming such as tired and inefficiency easily, and a kind of method of carrying out self-clocking based on the network management system own resources is provided.Accuracy of timekeeping of the present invention can be at Millisecond, and is easy to operate, improved testing efficiency.
Description of drawings
Fig. 1 is the system block diagram of the embodiment of the invention;
Fig. 2 is the flow chart of the embodiment of the invention;
Fig. 3 is the detailed process flow chart of application example of the present invention.
Embodiment
The present invention is described in detail below in conjunction with drawings and the specific embodiments.
As shown in Figure 1, the system framework of the embodiment of the invention comprises the NMS test control center of unifying, wherein can carry out multinomial application on the network management system, certainly also comprised a certain application of running time to be assessed in this example, from described network management system, the execution that is identified for characterizing the application of time of implementation to be assessed begins and carries out the resource object that finishes, and described resource object is used to the Status Flag of representing that timing begins, timing finishes; The Status Flag that described test control center is used for that timing begins according to resource object, timing finishes is monitored the current state of resource object in real time, when timing initial state sign appears in resource object, picks up counting; In described application implementation, test control center is monitored the state of described resource object in real time, when timing done state sign appears in described resource object, finishes timing.
As described in Figure 2, the embodiment of the invention comprises the steps:
Step 201, the execution of determining to be used in the network management system to characterize the application of time of implementation to be assessed begins and carries out the resource object that finishes, and described resource object is used to the Status Flag of representing that timing begins, timing finishes;
Described resource object is meant the resource that network management system inside comprises, and this resource object is relevant with the application of time of implementation to be assessed, and when described application was carried out beginning and carried out end, the state of resource object had the evident difference feature.Such as, resource object can be dialog box, menu etc.;
Being applied in when carrying out beginning and carrying out end of described time of implementation to be assessed, definite resource object can be identical, also can be different; That is to say that the execution that can have one or more resource objects to be used for described application begins and/or carries out end;
Step 202 is with the Status Flag input test control centre that timing begins, timing finishes of described resource object;
Before this step is carried out, can also comprise the initialized process of test control center, comprise initialization time of implementation parameter, as being used to add up the counter O reset of time of implementation, compose initial value etc. for timing initial state sign and done state sign;
Step 203, the test control center Status Flag that timing begins according to resource object, timing finishes is monitored the current state of resource object in real time, when Status Flag that timing begins appears in resource object, represent that then network management system has started the application of time of implementation to be assessed, test control center picks up counting;
Step 204, in the described application implementation of network management system, test control center is the state of the selected resource object of monitoring in real time, when the Status Flag that timing finishes appears in resource object, represent that described application operating finishes, finish timing, and can export timing result.
As shown in Figure 3,, further be elaborated as application example with the test of the login time in the Element management system of network management system:
Step 301, the execution of determining login time begins and carries out the resource object that finishes is login window;
In this example, tester's purpose is the time that register consumed of testing network element management system, and start login window and login window and disappear and have the notable difference feature, login window is register when finishing when disappearing, so, the login window of Element management system is used the resource object that timing begins, finishes reference as this;
Step 302, determine Status Flag: when clicking " login " button as representing timing initial state sign; When login window disappears as expression timing done state sign;
In Element management system, register is as follows: open " login window ", the input username and password is clicked the login of " login " button then; Therefore will click " login " button as timing initial state sign; Login window is disappeared as timing done state sign;
Step 303, the test control center initiation parameter;
Initiation parameter comprises counter O reset, composes initial value for timing initial state sign and done state sign;
Step 304, because the timing initial state is masked as click " login " button, the timing done state is masked as login window and disappears, so test control center need be stored the association attributes and the incident of login window " login " button, and the association attributes of login window and incident;
Step 305, Element management system starts login window; The real-time monitoring state of test control center this moment has click " login " incident to take place in login window, just picks up counting;
In Element management system, it is as follows to start the login window operation: open " login window ", the input username and password is clicked the login of " login " button then;
The step-length of monitoring can be provided with as required, can be as accurate as Millisecond;
Step 306, in the login process of Element management system, the real-time monitoring state of test control center;
Step 307 disappears when test control center monitors login window, finishes timing;
Step 308, test control center output timing result.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (9)

1. the method for self-clocking in the network management system comprises the steps:
(1) execution of determining to be used in the network management system to characterize the application of time of implementation to be assessed begins and carries out the resource object that finishes, and described resource object is used to the Status Flag of representing that timing begins, timing finishes;
(2) the Status Flag input test control centre that the timing with described resource object begins, timing finishes;
(3) the test control center Status Flag that timing begins according to resource object, timing finishes is monitored the current state of resource object in real time, when Status Flag that timing begins appears in resource object, picks up counting; When the Status Flag that timing finishes appears in resource object, finish timing.
2. the method for claim 1 is characterized in that, described resource object is the resource that network management system inside comprises, and when described application was carried out beginning and carried out end, the state of resource object had the evident difference feature.
3. method as claimed in claim 2 is characterized in that described resource object comprises dialog box, menu.
4. the method for claim 1 is characterized in that, in the described step (1), is used to characterize the resource object that the execution of the application of time of implementation to be assessed begins and is used to characterize that to carry out the resource object that finishes be same resource object.
5. the method for claim 1 is characterized in that, in the described step (1), is used to characterize the resource object that the execution of the application of time of implementation to be assessed begins and is used to characterize that to carry out the resource object that finishes be the different resource object.
6. the method for claim 1 is characterized in that, described step (2) also comprises initialization test control centre step, initialization time of implementation parameter before carrying out.
7. method as claimed in claim 6 is characterized in that, described initialization time of implementation parameter comprises and will be used to add up the counter O reset of time of implementation, composes initial value for timing initial state sign and done state sign.
8. the method for claim 1 is characterized in that, described step (3) comprises the steps:
(A) the test control center Status Flag that timing begins according to resource object, timing finishes is monitored the current state of resource object in real time;
(B) network management system has started the application of time of implementation to be assessed, and the Status Flag that timing begins appears in resource object, and test control center picks up counting;
(C) network management system is carried out described application;
(D) described application is finished, and the Status Flag that timing finishes appears in resource object, and test control center finishes timing.
9. method as claimed in claim 8 is characterized in that, after described step (D) test control center finishes timing, and the output timing result.
CN2007101514958A 2007-10-24 2007-10-24 Automatic time-counting method in network management system Expired - Fee Related CN101179434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101514958A CN101179434B (en) 2007-10-24 2007-10-24 Automatic time-counting method in network management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101514958A CN101179434B (en) 2007-10-24 2007-10-24 Automatic time-counting method in network management system

Publications (2)

Publication Number Publication Date
CN101179434A CN101179434A (en) 2008-05-14
CN101179434B true CN101179434B (en) 2010-06-09

Family

ID=39405534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101514958A Expired - Fee Related CN101179434B (en) 2007-10-24 2007-10-24 Automatic time-counting method in network management system

Country Status (1)

Country Link
CN (1) CN101179434B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615525B (en) * 2013-11-01 2018-09-04 腾讯科技(深圳)有限公司 The method and device of the operation duration of application program in a kind of detection mobile terminal
CN106201841A (en) * 2016-06-24 2016-12-07 青岛海信移动通信技术股份有限公司 The statistical method of a kind of application program service data and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383276A (en) * 2001-04-25 2002-12-04 华为技术有限公司 Method for measuring distance in passive optical ATM network
CN1441570A (en) * 2002-02-28 2003-09-10 深圳市中兴通讯股份有限公司上海第二研究所 Timing method of timer in embedded real-time operation system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383276A (en) * 2001-04-25 2002-12-04 华为技术有限公司 Method for measuring distance in passive optical ATM network
CN1441570A (en) * 2002-02-28 2003-09-10 深圳市中兴通讯股份有限公司上海第二研究所 Timing method of timer in embedded real-time operation system

Also Published As

Publication number Publication date
CN101179434A (en) 2008-05-14

Similar Documents

Publication Publication Date Title
CN103164328B (en) The regression testing method of a kind of business function, Apparatus and system
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN114924990A (en) Abnormal scene testing method and electronic equipment
CN115757150A (en) Production environment testing method, device, equipment and storage medium
CN101179434B (en) Automatic time-counting method in network management system
CN108122070B (en) Method and device for determining reliability of power distribution network
US8458664B2 (en) Command line interface permutation executor
CN115794525A (en) BMC (baseboard management controller) pressure testing method, device, equipment and storage medium
Han et al. Automated warship software testing system based on loadrunner automation API
CN111381937A (en) Experimental scene snapshot generating system and method based on time base line
CN115086384B (en) Remote control test method, device, equipment and storage medium
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN115576827A (en) Performance test method, device, equipment and storage medium of business process software
CN113377156A (en) RTC (real time clock) accuracy verification method and device
CN111679924B (en) Reliability simulation method and device for componentized software system and electronic equipment
CN114444087A (en) Unauthorized vulnerability detection method and device, electronic equipment and storage medium
CN113220550B (en) Performance test method and device for flow layout software
CN106293897B (en) Automatic scheduling system of subassembly
CN107272822A (en) A kind of system clock monitoring method and device
CN115374012A (en) Automatic regression testing method and device, electronic equipment and storage medium
CN117493203A (en) Method, device, equipment and storage medium for testing server software
CN118656233A (en) Method, device, equipment, medium and program product for testing multiple tasks of FA
CN118733065A (en) Recording method, recording device and recording system
CN117349609A (en) Power grid data recall method and device, electronic equipment and storage medium
CN117129206A (en) Nuclear power station nuclear grade valve periodic test method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100609

Termination date: 20171024