CN101534227B - Network management software test method and system - Google Patents

Network management software test method and system Download PDF

Info

Publication number
CN101534227B
CN101534227B CN2009100824617A CN200910082461A CN101534227B CN 101534227 B CN101534227 B CN 101534227B CN 2009100824617 A CN2009100824617 A CN 2009100824617A CN 200910082461 A CN200910082461 A CN 200910082461A CN 101534227 B CN101534227 B CN 101534227B
Authority
CN
China
Prior art keywords
network management
management software
response data
equipment
graphic file
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
CN2009100824617A
Other languages
Chinese (zh)
Other versions
CN101534227A (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2009100824617A priority Critical patent/CN101534227B/en
Publication of CN101534227A publication Critical patent/CN101534227A/en
Application granted granted Critical
Publication of CN101534227B publication Critical patent/CN101534227B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a network management software test method and a system thereof. The method comprises: triggering the network management software equipment to transmit the request message for acquiring response data to an SNMP emulator; acquiring the first curve diagram generated by the network management software equipment according to the response data in the response message returned by the SNMP emulator and preserving into a first graphics file; comparing the check value generated by the first graphics file and the check value generated by the preset graphics file, if the check values of the first graphics file and the preset graphics file are identical, the network management software test is passed. The technical proposal of the invention realizes the automatic test for the network management software, can shorten the period of software test, thus realizing efficient, exact and reliable network management software test.

Description

Network management software test method and system
Technical field
The present invention relates to automatization testing technique, particularly a kind of network management software test method and system belong to technical field of automation.
Background technology
Along with the develop rapidly of computer software industry, the speed of software development improves widely, and the task of software test is also more and more heavier.According to the difference of test execution object, test can be divided into manual testing and automatic test.The network management software is the responsible application software that the network equipment is managed, this network management software is managed mutual message by diverse network the network equipment is managed, the network equipment of being managed is the communication entity in the network, and the common network equipment includes switch, router, computer etc.
The test thinking of the real-time curve drafting function of the network management software is described below by an example.Real-time curve in the network management software is drawn function: the network management software is image data from the network equipment regularly, and as gathering cpu busy percentage, and according to the data that collect, real-time and dynamic is drawn out curve chart.Fig. 1 is the real-time curve chart of prior art cpu busy percentage, as shown in Figure 1, has shown the cpu busy percentage data that the network management software collected according to every interval from certain network equipment in five minutes, thus the curve chart of drawing out.The whole test thinking of this real-time curve being drawn function is:
At first operate this network management software, following parameter is set in a cpu busy percentage data acquisition plan of formulation, comprising:
Acquisition target: the IP address of the network equipment;
The performance index of gathering: cpu busy percentage;
Acquisition time interval: every interval 5 minutes; And
Duration: 30 minutes (promptly gathering altogether 10 times).
The network management software is according to the parameter of setting then, and the numerical value of the cpu busy percentage of primary network equipment was gathered at every interval in 5 minutes, carries out real-time curve again and draw on the interface, obtains the cpu busy percentage curve chart in 30 minutes.
Judge the whether correct of this cpu busy percentage chart plot at last, whether correct attractive in appearance whether correct the main checkpoint of this test be the etc. of the numerical value of the cpu busy percentage in the curve chart and curve picture.If above main checkpoint is all no problem, then test is passed through, otherwise test crash.
But owing to can't extract again for the internal information in the curve chart of drawing out, then can't obtain and check the correctness of numerical value in this curve chart, and this curve chart is as a pictures, needs also to check whether the position that reference numbers wherein places is attractive in appearance, whether the line between the numerical point is correct, the color of picture is whether soft etc.At present, the test at the drafting of the real-time curve in network management software function does not also have a kind of efficient, accurate, reliable method.
Summary of the invention
The purpose of this invention is to provide a kind of network management software test method and system, with realize a kind of efficient, accurately, the method for software test reliably.
For achieving the above object, the invention provides a kind of network management software test method, comprising:
The trigger network management software equipment sends the request message that obtains response data to Simple Network Management Protocol SNMP simulator;
Obtain first curve chart that the described response data in the response message that described network management software equipment returns according to described SNMP simulator generates, and preserve into first graphic file;
The check value that will generate according to described first graphic file with according to setting up the check value that the graphic file of corresponding relation generates with described response data and compare in the curve picture library that sets in advance, if to set up the check value of graphic file of corresponding relation identical with described response data in described first graphic file and the curve picture library that sets in advance, then network management software test passes through.
For achieving the above object, the present invention also provides a kind of network management software test system, comprising: automation equipment, network management software equipment and Simple Network Management Protocol SNMP simulator,
Described automation equipment, be used to trigger described network management software equipment and send the request message that obtains response data to described SNMP simulator, obtain first curve chart that the described response data in the response message that described network management software equipment returns according to described SNMP simulator generates, and preserve into first graphic file, and the check value that will generate according to described first graphic file with according to setting up the check value that the graphic file of corresponding relation generates with described response data and compare in the curve picture library that sets in advance, if to set up the check value of graphic file of corresponding relation identical with described response data in described first graphic file and the curve picture library that sets in advance, then network management software test passes through;
Described network management software equipment, send the request message that obtains response data to described SNMP simulator after being used to receive the triggering of described automation equipment, and the described response data in the response message that returns according to described SNMP simulator generates first curve chart;
Described SNMP simulator is used to receive the described request message, and generates response message according to the described request message, and described response message is sent to described network management software equipment.
As shown from the above technical solution, network management software test method of the present invention and system, the check value of the curve chart of storing in curve chart that the network management software equipment that gets access to is generated by automation equipment and the automation equipment is compared, solve in the prior art problem of can't be automatically the aesthetic property of the data of the curve chart inside of network management software equipment generation and curve chart being tested, simultaneously owing to adopted a kind of technical scheme of automatic test, can shorten the cycle of software test, thereby realize efficient, accurately, reliable network management software test.
Description of drawings
Fig. 1 is the real-time curve chart of prior art cpu busy percentage;
The curve chart of Fig. 2 for drawing among the chart plot work embodiment of the present invention;
Fig. 3 is the schematic flow sheet of network management software test method embodiment of the present invention;
Fig. 4 is the schematic flow sheet of network management software test method second embodiment of the present invention;
Fig. 5 A is the schematic diagram of first graphic file of network management software test method second embodiment of the present invention;
Fig. 5 B is the schematic diagram of the second graph file of network management software test method second embodiment of the present invention;
Fig. 6 is the structural representation of network management software test first embodiment of system of the present invention;
Fig. 7 is the structural representation of network management software test second embodiment of system of the present invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
The core of technical scheme of the present invention is carried out integral body identification and verification for the curve chart that adopts automated testing method that network management software equipment is drawn.After the test of network management software equipment passed through, this network management software equipment can be used for managing network device, as switch, router, computer etc.
By analyzing as can be known, network management software equipment can be drawn out curve chart according to the response data of the network equipment, in advance this curve chart is carried out the manual testing, grasps and preserve correct curve chart from network management software equipment; Grasp and preserve the curve chart of drawing out according to all possible response data of the network equipment and just formed a curve picture library.Curve chart in the curve picture library all is the process manual testing's, has therefore guaranteed correctness and this graphic file integral aesthetic property and the correctness of the every numerical value in the curve chart graph of a correspondence file in the curve picture library.To the network management software testing equipment time, match the graphic file in the curve picture library of preserving in advance according to the response data of the network equipment, the graphic file that network management software equipment is generated according to the response data of the network equipment and the check value of the graphic file in the curve picture library are compared again; If the check value of comparison is identical, the graphic file that the network management software equipment in the test process of the embodiment of the invention that then illustrates generates is identical with the graphic file in being kept at the curve picture library in advance, then illustrates the test of this network management software equipment is passed through.Because the curve picture library has been arranged, if promptly satisfied result's expection of the automatic test that the embodiment of the invention will realize and be the condition that basis for estimation is arranged, just can solve the problem that how realizes in the checking of the test result output of network management software equipment by automatic test.
But the uniqueness of the test of network management software equipment, an important problem of also bringing need to solve.Because the numerical value of network equipment response data is dynamic change, return cpu busy percentage data and formation curve figure as the network equipment, and cpu busy percentage is from any real number between the 0-100, as 0.2121,98.3120 or the like.Therefore, the curve chart of generation is unforeseen, if the equal formation curve figure and preserving in advance of all possible response data of the network equipment, enormous amount can not reality.So, can adopt a kind of network equipment that can predict response data to realize the technical scheme of this automatic test network management software equipment, promptly can adopt a simulator to come analog network equipment, this simulator can be Simple Network Management Protocol (Simple Network Management Protocol, SNMP) simulator.This response data that can predict is meant that a certain value request that sends at a certain moment of network management software equipment has the fixing response data that maybe can predict, so just can in advance that these are possible response data draw out curve chart, and store in the curve picture library, to realize automatic test.
In addition, before this SNMP simulator of employing is realized automatic test, need also to confirm that the graphic file of the curve chart that network management software equipment will generate is identical for same data source.Enumerate the process of the chart plot work on the network management software equipment below:
According to the difference of function, the process of this graphic plotting work can be divided into three phases: 1. initial phase, 2. scale value stage and 3. mixing colours the stage.Wherein initial phase is responsible for creating curve chart and initialization operation (comprising that mainly carrying out X, Y-axis division and scale distributes); The scale value stage mainly is responsible for network equipment response data is labeled on the curve chart; The toning stage is responsible for the background of numerical value, line and the curve chart of mark and tints.
The curve chart of Fig. 2 for drawing among the chart plot work embodiment of the present invention, as shown in Figure 2, concrete drawing process is: create the picture with X-axis and Y-axis, wherein X-axis is a time shaft, Y-axis is a number line, and the coordinate precision of X-axis is 1 minute, the every halfhour system time of mark on the X-axis, be limited to 100 on the Y-axis mark, be limited to 5 evenly divideds of 0 down, the length of X-axis was made as 3 hours; The title of mark X-axis and Y-axis, wherein X-axis is " time (min) ", and Y-axis is " CPU usage (%) ", and title shows on X-axis and Y-axis between two parties.Every interval collected network management software equipment in five minutes from the network equipment response data, collect the cpu busy percentage that numerical value 0.65,0.65 refers to the past 5 minutes on this network equipment as 10:00, according to (the time, be labeled in numerical value) that (X is Y) on the reference axis.Again with the background colour furnishing white of picture,, paint grass green (the diagonal line hatches closed area that is coupled together as figure middle polyline section) with the closed area that each numerical value connects into.
Analyze the process of this chart plot work, can draw, except the data source that gets access to from the outside, the response data that is the network equipment changes, other are all predicted, and same numerical value only has a kind of labeling position at X on the Y-axis, be same data source, the picture that this network management software equipment generates is identical.Identical this prerequisite of the labeling position of above-mentioned same data source on curve chart has been arranged, and the automatic test result that aforementioned analysis draws is exactly expected.
The technical scheme that the embodiment of the invention adopts mainly realizes by three functional entitys, comprises SNMP simulator, network management software equipment and automation equipment.Wherein, the network equipment actual in the former test macro is replaced to the SNMP simulator, it mainly acts on is analog network equipment, according to the value request in the request message of network management software equipment, match local response data, be packaged into response message again and send to network management software equipment, response data can think and set in advance in this SNMP simulator, and the data that get access to of network management software equipment collection just become expected like this; Network management software equipment is the responsible application software equipment that the network equipment (being the SNMP simulator herein) is managed, this equipment is managed mutual message by diverse network the network equipment is managed, and relates generally in the embodiment of the invention by the snmp protocol message network equipment is monitored; Automation equipment, be used for network management software equipment is carried out automatic test, wherein automation equipment is mainly used to network management software equipment is operated (for example input of data), and the correctness of judging the chart plot that generates on network management software equipment.In order to reach the purpose of automation, the present invention has increased a curve picture library in automation equipment, and the graphic file of preserving in this curve picture library is mainly in order to compare to the graphic file that generates on the network management software equipment in the automatic test course.
Fig. 3 is the schematic flow sheet of network management software test method embodiment of the present invention.As shown in Figure 3, comprise the steps:
Step 301, trigger network management software equipment send the request message that obtains response data to the SNMP simulator;
Step 302, obtain first curve chart that the response data in the response message that network management software equipment returns according to the SNMP simulator generates, and preserve into first graphic file;
The check value that step 303, the graphic file that will set in advance according to the check value and the basis of first graphic file generation generate be compared, if first graphic file is identical with the check value of the graphic file that sets in advance, then network management software test passes through.
Particularly, automation equipment trigger network management software equipment sends the request message that obtains response data to the SNMP simulator; Network management software equipment generates first curve chart thereon get access to response data from the response message that the SNMP simulator returns after; Automation equipment obtains this first curve chart from network management software equipment, and preserves into first graphic file; This automation equipment is compared the graphic file that sets in advance in first graphic file and this automation equipment, if this first graphic file is identical with the graphic file that sets in advance, then test is passed through, illustrate that promptly this network management software equipment is accurately to the drafting of curve chart, otherwise if inequality, then test is not passed through.
SNMP in the present embodiment is by the Internet engineering duty group (Internet Engineering TaskForce, IETF) one of definition cover NMP.The message that utilizes snmp protocol to formulate, management station can telemanagement all support the network equipment of this agreement, comprise the monitoring network state, revise network equipments configuration, receive network event warning etc.The message that the following embodiment of the present invention relates to by snmp protocol manages the network equipment.The type of the message of the snmp protocol that wherein relates to is mainly the request of obtaining (Get-Request) and obtains two types of responses (Get-Response).Wherein the SNMP of Get-Request type obtains (SNMP-Get) request message and is mainly used in the data acquisition request that network management software equipment sends to the network equipment, value request is included in the SNMP-Get request message, SNMP obtains (SNMP-Get) response message and is mainly used in after the network equipment receives the SNMP-Get request message, the concrete response data of returning according to value request.
The network management software test method that present embodiment provides, can realize automatic test to the network management software, solve in the prior art and can't be automatically the aesthetic property of the data of the curve chart inside of network management software equipment generation and curve chart to be carried out the problem of automatic test, the technical scheme of employing automatic test can shorten the cycle of software test, improves the coverage rate of the comprehensive and content measurement of software test.
Fig. 4 is the schematic flow sheet of network management software test method second embodiment of the present invention.As shown in Figure 4, comprise the steps:
Step 401, automation equipment trigger network management software equipment are obtained the data of the network equipment;
The keyboard operation that the automation equipment simulation is artificial, the trigger network management software equipment sends the SNMP-Get request message to SNMP simulator (network equipment of simulation), to gather response data from the SNMP simulator; Automation equipment also can constantly be monitored the SNMP simulator and whether return the SNMP-Response message therebetween.
Step 402, network management software equipment send the SNMP-Get request message to the SNMP simulator;
Step 403, SNMP simulator receive the SNMP-Get request message that network management software equipment sends, and parse value request from this SNMP-Get request message;
Step 404, SNMP simulator find from the correspondence table of himself and value request corresponding response data according to value request;
Step 405, SNMP simulator are encapsulated into response data in the SNMP-Response message, and are sent to network management software equipment;
In step 403~step 405, the SNMP simulator can be monitored incessantly from the message on the network management software equipment, after receiving the SNMP-Get request message, then parse the value request in this SNMP-Get request message, and in the correspondence table of self, search the corresponding response data.The correspondence table here is to be index with the value request, and it is value request corresponding response data in advance is customed, for example, value request is a time value, and response data is a cpu busy percentage, shown in following table one, this table one shows, response data when value request is some value presets, and can predict, and promptly can store in advance in the curve picture library of mentioning in the step below;
Table one
Value request Response data
9:00 0.15
9:05 0.60
9:10 0.25
Value request is a time value, response data is a cpu busy percentage, can also be with representing as following table two, as shown in Table 2, the optional value of the response data when value request is some value presets, be that response data can be selected in default several numerical value, promptly can store all possible curvilinear figure file in advance in the curve picture library of mentioning in the step below;
Table two
Value request Response data
9:00 {0.15,0.20,0.25}
9:05 {0.50,0.55,0.60}
9:10 {0.25,0.30,0.35}
The response data that the SNMP simulator obtains according to coupling again is packaged into the actual network equipment of SNMP-Response message simulation and sends to network management software equipment.
Step 406, network management software equipment generate first curve chart according to the response data in the response message;
Step 407, automation equipment are obtained first curve chart from network management software equipment;
In step 406~step 407, after network management software equipment gets access to response data from the SNMP simulator, can generate a curve chart, i.e. first curve chart, automation equipment grasps this first curve chart from network management software equipment after, it is preserved into graphic file, for example save as the A.bmp file.
Step 408, automation equipment are obtained the response message that the SNMP simulator is back to network management software equipment, and extract the response data in the response message;
Automation equipment not only grasps first curve chart, also monitor the SNMP simulator always and whether return the SNMP-Response message to network management software equipment, if network management software equipment receives the SNMP-Response message that the SNMP simulator returns, then obtain this SNMP-Response message, obtain response data in this SNMP-Response message by parsing.
Step 409, automation equipment find corresponding second graph file according to response data from the curve picture library that sets in advance;
Because all response datas of SNMP simulator are and pre-set, therefore the curve chart that adopts these response datas to draw also can obtain in advance, therefore, can be pre-rendered go out all curve charts, and will preserve into graphic file in the curve picture library of these curve charts in automation equipment; And set up the corresponding relation of response data and these graphic files; Automation equipment finds corresponding graphic file according to the response data that obtains in this step 408 and takes out from the curve picture library, for example D: B.bmp.
Step 410, automation equipment are carried out cryptographic algorithm to first graphic file and second graph file, generate check value that generates according to first graphic file and the check value that generates according to the second graph file respectively, if first graphic file is identical with the check value of second graph file, then test is passed through.
This cryptographic algorithm can be other cryptographic algorithm such as md5-challenge (MD5) or SHA1.Automation equipment is carried out the MD5 verification with the graphic file A.bmp and the B.bmp of step 407 and step 409 taking-up, if check value is identical, then the test of the software in this network management software equipment is passed through, promptly this network management software equipment can be used for the network equipment of reality is carried out network management.
MD5 is via MD2, MD3 and MD4 development, its effect is to allow big capacity information be ' compressed ' into a kind of secret form before with digital signature software signature private key, promptly the byte serial of a random length is transformed into the integer of a fixed length, be a kind of irreversible algorithm, greatly improved the fail safe of data encryption.It is that one section byte serial is produced fingerprint (fingerprint) that the typical case of MD5 uses, and " is distorted " by byte serial preventing.Such as one section word being write in the file that is readme.txt, and this readme.txt is produced value and the record of a MD5, can propagate this file then and give other people, if someone has revised any content in this document, the value of the MD5 of twice calculating is inequality before and after will finding when so this file being recomputated the value of MD5; If a third-party certification authority is arranged again, can also prevent the author of this e-file " denial " with MD5, so-called digital signature applications that Here it is.It is technical that MD5 also is widely used in encryption and decryption, in a lot of operating systems, user's password is that the mode of the value (or similarly other algorithm) with MD5 is preserved, when the user lands, operating system is that the cryptographic calculations of user input is become the value of MD5, and then go with operating system in the value of the MD5 that preserves compare because the value of password after with md5 encryption preserved, therefore operating system and do not know user's original password, the fail safe that has improved network operation.
With the whole contents of the graphic file among the present invention byte serial as MD5, MD5 just can produce one same unique " digital finger-print " for any graphic file (regardless of its size, form, quantity), and any change of graphic file inside can make that all the value of the MD5 that it is corresponding changes.
Such as the graphic file among the present invention being carried out verification by this MD5 technology.Fig. 5 A is the schematic diagram of first graphic file of network management software test method second embodiment of the present invention, and Fig. 5 B is the schematic diagram of the second graph file of network management software test method second embodiment of the present invention.Shown in Fig. 5 A and Fig. 5 B, the curve color of this two width of cloth figure the top is inequality (in this schematic diagram, the curve of the top of the figure below being arranged in dots, color difference with the curve that shows the top among the two secondary figure up and down), these two graphic files are carried out the MD5 verification, draw the value of MD5, promptly check value is unequal.Equally, if these two graphic files there are differences in other places, as only be the numerical value in somewhere show or the numerical value position deposit inequalityly, the check value that experiment draws also is different.If generate a copy and same graphic file copied, carry out the verification comparison of MD5 again with former graphic file, the check value that then draws is identical, illustrates that promptly two graphic files are identical.
The network management software test method that present embodiment provides, can realize automatic test to the network management software, solve in the prior art and can't be automatically the aesthetic property of the data of the curve chart inside of network management software equipment generation and curve chart to be carried out the problem of automatic test, the technical scheme of employing automatic test can shorten the cycle of software test, improves the coverage rate of the comprehensive and content measurement of software test.
In above-mentioned network management software test method embodiment, if network management software equipment only can generate a curve chart according to the response data that the SNMP simulator returns, be only to have a kind of response data in the SNMP simulator, then can omit step 408 and step 409, promptly automation equipment only needs the curve chart of a kind of form of storing the curve chart that will obtain from network management software equipment and the automation equipment to compare to get final product.The method of this automatic test is that cost is obtained simpler testing procedure to sacrifice accuracy rate.
Fig. 6 is the structural representation of network management software test first embodiment of system of the present invention.As shown in Figure 6, this system comprises: automation equipment 61, network management software equipment 62 and Simple Network Management Protocol (SNMP) simulator 63.Wherein, automation equipment 61 is used for trigger network management software equipment 62 and sends the request message that obtains response data to SNMP simulator 63, obtain first curve chart that the response data in the response message that network management software equipment 62 returns according to SNMP simulator 63 generates, and preserve into first graphic file, and will compare according to first graphic file check value that generates and the check value that generates according to the graphic file that sets in advance, if first graphic file is identical with the check value of the graphic file that sets in advance, then network management software test passes through; Network management software equipment 62 sends the request message that obtains response data to SNMP simulator 63 after being used to receive the triggering of automation equipment, and the response data in the response message that returns according to SNMP simulator 63 generates first curve chart; SNMP simulator 63 is used to receive request message, and generates response message according to request message, and response message is sent to network management software equipment 62.
Described in described concrete test process of each equipment in the network management software test system that present embodiment provides such as the above-mentioned network management software test method embodiment, do not repeat them here.
The network management software test system that present embodiment provides can realize the automatic test to the network management software, solve in the prior art and can't be automatically the aesthetic property of the data of the curve chart inside of network management software equipment generation and curve chart to be carried out the problem of automatic test, the technical scheme of employing automatic test can shorten the cycle of software test, improves the coverage rate of the comprehensive and content measurement of software test.
Fig. 7 is the structural representation of network management software test second embodiment of system of the present invention.As shown in Figure 7, this system comprises: automation equipment 71, network management software equipment 72 and Simple Network Management Protocol (SNMP) simulator 73, wherein the concrete function of each equipment such as above-mentioned network management software test first embodiment of system describe.These three equipment specifically can also comprise as lower module.
Automation equipment 71 can comprise: trigger module 711 is used for trigger network management software equipment 72 and sends the request message that obtains response data to SNMP simulator 73; First acquisition module 712 is used for obtaining first curve chart that the response data of the response message that network management software equipment 72 returns according to SNMP simulator 73 generates; Preserving module 713 is used for first curve chart that first acquisition module 712 obtains is preserved into first graphic file; Comparing module 714 is used for check value that will generate according to first graphic file of preserving module 713 preservations and the check value that generates according to the graphic file that sets in advance and compares, if first graphic file is identical with the check value of the graphic file that sets in advance, then network management software test passes through.
Wherein can also comprise in the automation equipment 71: second acquisition module 715 is used to obtain states the response message that SNMP simulator 73 is back to network management software equipment 72; Extraction module 716 is used for extracting the response data of the response message that second acquisition module 715 obtains; Presetting module 717 is used for all response datas according to SNMP simulator 73, forms to comprise the curve picture library of all response datas, and sets up the corresponding relation of the graphic file in response data and the curve picture library; First searches module 718 is used for the response data that extracts according to extraction module 716, finds corresponding second graph file from the default curve picture library of presetting module 717.When comprising above-mentioned module in this automation equipment 71, comparing module 714 also is used for will be according to preserving check value that first graphic file that module 713 preserves generates and searching the check value that second graph file that module 718 finds generates according to first and compare, if first graphic file is identical with the check value of second graph file, then the test of the network management software is passed through.
Network management software equipment 72 can comprise: first receiver module 721 is used to receive the triggering of automation equipment 71, and receives the response message that carries response data that SNMP simulator 73 returns; First sending module 722 is used for sending the request message that obtains response data according to the triggering that first receiver module 721 receives to SNMP simulator 73; Generation module 723 is used for generating first curve chart according to the response data of the response message of first receiver module, 721 receptions.
SNMP simulator 73 can comprise: second receiver module 731 is used for the request message that receiving network managing software equipment 72 sends; Parsing module 732 is used for parsing value request from the request message that second receiver module 731 receives; Second searches the value request that module 733 is used for parsing according to parsing module 732 finds and value request corresponding response data from correspondence table; Package module 734 is used for searching the response data that module 733 finds with second and is encapsulated into response message; Second sending module 735 is used for the response message that package module 734 is packaged into is sent to network management software equipment 72.
Described in described concrete test process of each equipment in the network management software test system that present embodiment provides such as the above-mentioned network management software test method embodiment, do not repeat them here.
The network management software test system that present embodiment provides can realize the automatic test to the network management software, solve in the prior art and can't be automatically the aesthetic property of the data of the curve chart inside of network management software equipment generation and curve chart to be carried out the problem of automatic test, the technical scheme of employing automatic test can shorten the cycle of software test, improves the coverage rate of the comprehensive and content measurement of software test.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a network management software test method is characterized in that, comprising:
The trigger network management software equipment sends the request message that obtains response data to Simple Network Management Protocol SNMP simulator;
Obtain first curve chart that the described response data in the response message that described network management software equipment returns according to described SNMP simulator generates, and preserve into first graphic file;
The check value that will generate according to described first graphic file with compare according to setting up the check value that the graphic file of corresponding relation generates with described response data in the curve picture library that sets in advance, if to set up the check value of graphic file of corresponding relation identical with described response data in described first graphic file and the curve picture library that sets in advance, then network management software test passes through.
2. network management software test method according to claim 1, it is characterized in that, in first curve chart that the described described response data of obtaining in the response message that described network management software equipment returns according to described SNMP simulator generates, also comprise:
Obtain described SNMP simulator and be back to the response message of described network management software equipment, and extract the described response data in the described response message;
According to described response data, from the curve picture library that sets in advance, find corresponding second graph file;
The then described check value that will generate according to described first graphic file with compare according to setting up the check value that the graphic file of corresponding relation generates with described response data in the curve picture library that sets in advance, if to set up the check value of graphic file of corresponding relation identical with described response data in described first graphic file and the curve picture library that sets in advance, then test by specifically comprising:
To compare according to the check value of described first graphic file generation with according to the check value that described second graph file generates, if described first graphic file is identical with the check value of second graph file, then network management software test passes through.
3. network management software test method according to claim 2 is characterized in that, also comprises the step that sets in advance the curve picture library, and the described step that sets in advance the curve picture library specifically comprises:
According to all response datas of described SNMP simulator, formation comprises the curve picture library of all response datas, and sets up the corresponding relation of the graphic file in described response data and the described curve picture library.
4. network management software test method according to claim 2 is characterized in that, described will comparing according to the check value of described first graphic file generation with according to the check value that described second graph file generates comprises:
Described first graphic file and described second graph file are carried out cryptographic algorithm, generate the check value of described first graphic file generation and the check value that described second graph file generates respectively, and compare.
5. according to the arbitrary described network management software test method of claim 1-4, it is characterized in that first curve chart that the described described response data of obtaining in the response message that described network management software equipment returns according to described SNMP simulator generates specifically comprises:
Described SNMP simulator receives the request message that described network management software equipment sends, and therefrom parses value request;
Described SNMP simulator finds from correspondence table and described request value corresponding response data according to the described request value;
Described SNMP simulator is encapsulated into described response data in the response message, and is sent to described network management software equipment;
Described network management software equipment generates first curve chart according to the described response data in the described response message;
Automation equipment is obtained described first curve chart from described network management software equipment.
6. a network management software test system is characterized in that, comprising: automation equipment, network management software equipment and Simple Network Management Protocol SNMP simulator,
Described automation equipment, be used to trigger described network management software equipment and send the request message that obtains response data to described SNMP simulator, obtain first curve chart that the described response data in the response message that described network management software equipment returns according to described SNMP simulator generates, and preserve into first graphic file, and the check value that will generate according to described first graphic file with compare according to setting up the check value that the graphic file of corresponding relation generates with described response data in the curve picture library that sets in advance, if to set up the check value of graphic file of corresponding relation identical with described response data in described first graphic file and the curve picture library that sets in advance, then network management software test passes through;
Described network management software equipment, send the request message that obtains response data to described SNMP simulator after being used to receive the triggering of described automation equipment, and the described response data in the response message that returns according to described SNMP simulator generates first curve chart;
Described SNMP simulator is used to receive the described request message, and generates response message according to the described request message, and described response message is sent to described network management software equipment.
7. network management software test according to claim 6 system is characterized in that described automation equipment comprises:
Trigger module is used to trigger described network management software equipment and sends the request message that obtains response data to described SNMP simulator;
First acquisition module is used for obtaining first curve chart that the described response data of the response message that described network management software equipment returns according to described SNMP simulator generates;
Preserve module, be used for described first curve chart that described first acquisition module obtains is preserved into first graphic file;
Comparing module, be used for the check value that will generate and setting up the check value that the graphic file of corresponding relation generates with described response data and compare according to the curve picture library that sets in advance according to described first graphic file that described preservation module is preserved, if to set up the check value of graphic file of corresponding relation identical with described response data in described first graphic file and the curve picture library that sets in advance, then network management software test passes through.
8. network management software test according to claim 7 system is characterized in that described automation equipment also comprises:
Second acquisition module is used to obtain the response message that described SNMP simulator is back to described network management software equipment;
Extraction module is used for extracting the described response data of the described response message that described second acquisition module obtains;
Presetting module is used for all response datas according to described SNMP simulator, forms to comprise the curve picture library of all response datas, and sets up the corresponding relation of the graphic file in described response data and the described curve picture library;
First searches module, is used for the described response data that extracts according to described extraction module, finds corresponding second graph file from the default curve picture library of described presetting module;
Described comparing module also is used for and will compares according to the check value of described first graphic file generation with according to the check value that described second graph file generates, if described first graphic file is identical with the check value of second graph file, then network management software test passes through.
9. network management software test according to claim 6 system is characterized in that described network management software equipment comprises:
First receiver module is used to receive the triggering of described automation equipment, and receives the response message that carries described response data that described SNMP simulator returns;
First sending module, the triggering that is used for receiving according to described first receiver module sends the request message that obtains response data to described SNMP simulator;
Generation module, the described response data that is used for the described response message that receives according to described first receiver module generates first curve chart.
10. according to the arbitrary described network management software test of claim 6-9 system, it is characterized in that described SNMP simulator comprises:
Second receiver module is used to receive the described request message that described network management software equipment sends;
Parsing module is used for parsing value request from the described request message that described second receiver module receives;
Second searches module, and the described request value that is used for parsing according to described parsing module finds and described request value corresponding response data from correspondence table;
Package module, be used for described second search module searches to described response data be encapsulated into response message;
Second sending module is used for the described response message that described package module is packaged into is sent to described network management software equipment.
CN2009100824617A 2009-04-16 2009-04-16 Network management software test method and system Expired - Fee Related CN101534227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100824617A CN101534227B (en) 2009-04-16 2009-04-16 Network management software test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100824617A CN101534227B (en) 2009-04-16 2009-04-16 Network management software test method and system

Publications (2)

Publication Number Publication Date
CN101534227A CN101534227A (en) 2009-09-16
CN101534227B true CN101534227B (en) 2011-07-20

Family

ID=41104629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100824617A Expired - Fee Related CN101534227B (en) 2009-04-16 2009-04-16 Network management software test method and system

Country Status (1)

Country Link
CN (1) CN101534227B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095513B (en) * 2011-11-02 2017-05-31 中国银联股份有限公司 Encryption equipment simulating test device and method
CN102880544A (en) * 2012-08-16 2013-01-16 苏州迈科网络安全技术股份有限公司 Method and system for automatically testing dynamic graph
CN104111885B (en) * 2013-04-22 2017-09-15 腾讯科技(深圳)有限公司 The method of calibration and device of interface testing result
CN103425497B (en) * 2013-08-15 2017-03-01 北京华胜天成科技股份有限公司 The method and apparatus that a kind of network engineering script is changed across producer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658579A (en) * 2004-02-16 2005-08-24 华为技术有限公司 Method for set-up artificial equipment agency
US7197428B1 (en) * 2003-11-12 2007-03-27 Sprint Communications Company L.P. Method for performance monitoring and modeling
CN1992635A (en) * 2005-12-27 2007-07-04 中兴通讯股份有限公司 Method of simulating SNMP network element and performing network management system test with the network element

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7197428B1 (en) * 2003-11-12 2007-03-27 Sprint Communications Company L.P. Method for performance monitoring and modeling
CN1658579A (en) * 2004-02-16 2005-08-24 华为技术有限公司 Method for set-up artificial equipment agency
CN1992635A (en) * 2005-12-27 2007-07-04 中兴通讯股份有限公司 Method of simulating SNMP network element and performing network management system test with the network element

Also Published As

Publication number Publication date
CN101534227A (en) 2009-09-16

Similar Documents

Publication Publication Date Title
Erramilli et al. Chaotic maps as models of packet traffic
CN111835585B (en) Inspection method and device for Internet of things equipment, computer equipment and storage medium
CN110413591A (en) A kind of industrial data acquisition method and edge calculations gateway
CN104717085B (en) A kind of daily record analysis method and device
CN101399710B (en) Detection method and system for protocol format exception
CN101902367A (en) Method and device for producing test case
CN106888194A (en) Intelligent grid IT assets security monitoring systems based on distributed scheduling
CN102695187B (en) Distributed Web-based device and method for testing 6LoWPAN protocol consistency
CN101534227B (en) Network management software test method and system
CN108919762A (en) Control method and device based on Industrial Ethernet
CN109450730A (en) A kind of dynamic application layer protocol test method based on standard data interchange format
CN106202722B (en) Large-scale power grid information physical real-time simulation platform
US20150172185A1 (en) Offline queries in software defined networks
CN105677574A (en) Android application vulnerability detection method and system based on function control flow
CN103577660B (en) Gray scale experiment system and method
CN102055621A (en) Method and apparatus for the efficient correlation of network traffic to related packets
JP2011041455A (en) Apparatus and method of testing report communication in power transformation automation system
US7797590B2 (en) Consensus testing of electronic system
Safonova On one approach to modeling enterprise-wide function-oriented computer networks
CN106802865A (en) For the response analogue means and method of software test
CN111930621A (en) DNS automation performance testing method, device, equipment and readable storage medium
Amrein et al. Security intelligence for industrial control systems
US7778804B2 (en) Network system analysis
CN103457957B (en) A kind of network penetration test macro and method with adaptation function
CN106612213A (en) An equipment test method and apparatus

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110720

Termination date: 20140416