CN1933513A - Automatic testing device and method for digital user line intercommunity - Google Patents

Automatic testing device and method for digital user line intercommunity Download PDF

Info

Publication number
CN1933513A
CN1933513A CN 200610104254 CN200610104254A CN1933513A CN 1933513 A CN1933513 A CN 1933513A CN 200610104254 CN200610104254 CN 200610104254 CN 200610104254 A CN200610104254 A CN 200610104254A CN 1933513 A CN1933513 A CN 1933513A
Authority
CN
China
Prior art keywords
test
data
equipment under
submodule
under test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610104254
Other languages
Chinese (zh)
Other versions
CN100512343C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006101042543A priority Critical patent/CN100512343C/en
Publication of CN1933513A publication Critical patent/CN1933513A/en
Application granted granted Critical
Publication of CN100512343C publication Critical patent/CN100512343C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A method for automatically testing intercommunity of digital user line includes separating code of test action from data of device, obtaining data of device and carrying out loading, operating said code and loaded data of device then carrying out interaction with device to be tested for obtaining test result. The automated test device used for realizing said method is also disclosed.

Description

A kind of Digital Subscriber Line interoperability automatic test device and method
Technical field
The present invention relates to Digital Subscriber Line (DSL, Digital Subscriber Line) measuring technology, relate in particular to a kind of DSL interoperability automatic test device and method.
Background technology
The DSL technology not only can make full use of original huge copper cash resource and have advantage cheaply, and the performance that this technology provided has satisfied user's broadband access demand substantially.The mainstream technology of DSL technology on having come true on the access aspect of the communications industry.Along with asymmetric digital subscriber line (ADSL, Asymmetric Digital Subscriber Line) expansion in market and the higher DSL (VDSL of speed, Very High Speed DSL), the release of technology such as ADSL2+, the focus of test aspect just progressively turns to Interoperability Testing from the performance test and the uniformity test of original strictness.
Original performance test and uniformity test bias toward the Digital Subscriber Line Access Multiplexer (DSLAM to a certain specific software version, Digital Subscriber Line Access Multiplexer) and modulator-demodulator (MODEM, Modulator-DEModulator) combination is tested, be used to finish the automatic test module of this test, comprise the automatic test script of finishing test, only need write the control module corresponding at specific dsl device and just can reach test purpose with this dsl device.But the dsl device by this test is when being used with other dsl devices, because the interoperability between different DSLAM and the different MODEM there are differences, and often causes easily to go offline, the link establishment time is long, speed can't reach problems such as nominal value, poor anti jamming capability.
Interoperability Testing mainly proposes at this problem, in DSLAM that pays close attention at a plurality of software versions and the combination of the traversal between the multiple MODEM.When reality is carried out the interoperability automatic test, need to carry out information interaction with a plurality of dsl devices simultaneously, if press original framework with these modes of operation, control command is in the same place with the DSL module combinations that return information all there are differences, then need to prepare to travel through test again after the automatic test module of a version for the dsl device of each specific software version, if any N kind dsl device, then need prepare N automatic test module, when each characteristic index is tested, the dsl device of traversal N kind specific software version, need N automatic test module, each automatic test module comprises the motor unit of finishing different test actions respectively at the test of different qualities, and each motor unit comprises the code and the device data of this test action.Wherein, device data comprises various control commands, return information and user's configuration etc.Fig. 1 is the apparatus structure schematic diagram of interoperability automatic test in the prior art, and this device is by finishing the interoperability automatic test with the dsl device of N automatic test module traversal N kind specific software version.As shown in Figure 1, characteristic 1 when characteristic n carries out Interoperability Testing, is needed N automatic test module respectively, the test module of supposing each equipment of writing at characteristic 1 successively by the action shown in the figure 1, action 2 ... and action n forms; The test module of each equipment of writing at characteristic n successively by the action n shown in the figure, action 1 ... and move and 2 form.Wherein, each action is made up of the code and the device data of this action, is made up of code 1 and data I I-1 as the action in the module of equipment I I 1, and data I I-1 represents the device data relevant with equipment I I of execution 1.But this method of testing, when the software upgrading of a kind of equipment of every increase or certain equipment was the version that differs greatly, each characteristic of Interoperability Testing all needed to increase a test module, and the repeat usage of code is low, and test module quantity is huge, difficult management; When perhaps increasing a new test characteristic, also need the equipment of all particular versions is write its corresponding module, workload is huge.
At above-mentioned situation, existing automatic test module has been done some improvement, introduced action keyword (AW, Action Word) notion, the test action that is about to finish in a plurality of modules the same test function is separated, and constitutes the AW set, represents the set of everything 1 as AW1, AW2 represents the set of everything 2, and the like.To reach the multiplexing effect of AW.And be test logic module, adaptation layer module and three layer modules of device driver module with original Module Division, as shown in Figure 2, Fig. 2 is the apparatus structure schematic diagram of another interoperability automatic test in the prior art.Wherein comprise the set of the action corresponding in the device driver module, the action corresponding with various AW of one cover all arranged at the equipment of every kind of specific software version with various AW; Adaptation layer module is the interface between test logic module and the device driver module, is used for finishing the loading to the current action of device driver module; Test logic module still is used to describe the step of automation control procedure or test process, the action of different is control appliance is not one section complete code and data, but action AW, only need get final product according to the action corresponding with AW in the AW load operating device driver module in the test process, the AW of same action is identical.But when the software upgrading that increases a kind of equipment or equipment was the version that differs greatly, each AW needed to increase the action corresponding with AW of this equipment in this method, when the equipment action of the quantity required increase more for a long time of AW just many more; And the action that AW is identical all has identical code block, if code needs corrective pitting or increases function, all relevant codes all need to revise, and the reusability of code is low, and is difficult in maintenance; Device data is dispersed in each AW in addition, and the maintenance of device data is not easy.Therefore along with the increase of device category quantity, software version quantity to the increase that the maintenance workload and the development amount of module can present exponential form, be difficult to maintenance and management in the later stage.
Summary of the invention
In view of this, one aspect of the present invention provides a kind of DSL interoperability automated testing method, can improve the reusability of code.
The present invention provides a kind of DSL interoperability automatic test device on the other hand, can improve the reusability of code.
DSL interoperability automated testing method provided by the present invention is achieved by the following technical solution:
This method is separated the code of test action with device data, this method comprises the steps:
A, obtain device data and load;
B, the described code of operation and the device data that is loaded, and mutual with equipment under test, obtain test result.
Wherein, obtain device data described in the steps A and be:, obtain the device data of equipment under test according to user's configuration or the equipment under test type that is provided with according to test logic.
Preferably, set in advance the corresponding relation of test characteristic and each test characteristic and test action, described step B comprises:
B1, testing apparatus call test action according to the test characteristic of this test;
The code of the test action that B2, operation are called, and call the device data that is loaded, to the equipment under test transmitting control commands, this equipment under test is carried out the operation of this control command correspondence according to the control command that receives, and returns response message;
B3, testing apparatus receive the response message that equipment under test returns, and obtain test result according to this response message.
Preferably, before the equipment under test transmitting control commands, further comprising among the step B2: whether normal, if then carry out described operation to the equipment under test transmitting control commands if detecting the communication port that leads to equipment under test; Otherwise, return execution in step A.
In the said method, preferably, step B3 further comprises: after the response message that the reception equipment under test returns, judge whether the response message that receives is successful information, if the execution of the then parameter in the separate information, and continuation obtains the operation of test result; Otherwise, return the described operation of step B2 to the equipment under test transmitting control commands.
Preferably, described returning before the operation of equipment under test transmitting control commands further comprises: testing apparatus judges whether the number of times of failure allows the number of times maximum greater than default failure, if, process ends then; Otherwise, continue to carry out described operation to the equipment under test transmitting control commands.
DSL interoperability automatic test device provided by the present invention is achieved by the following technical solution:
This device comprises test logic module, device driver module and device data management module.
Wherein, test logic module is used for announcement apparatus driver module loading equipemtn data, and the code of announcement apparatus driver module operation test action and the device data that is loaded.
Device driver module, be used to receive the notice that comes from test logic module, according to the described notice that receives, obtain required device data in the slave unit data management module and load, the operation test action code, call the device data that is loaded, and mutual with equipment under test, obtain test result.
The device data management module is used for storage device data, and the data of being stored are offered device driver module.
Wherein, described device driver module comprises: behavior aggregate submodule, data set submodule and tunnel submodule.
Wherein, the behavior aggregate submodule, be built-in with the motor unit of each test action information of preservation, the Data Labels that contains the code of this test action in each motor unit and represent the corresponding device data, this behavior aggregate submodule is used to receive the notice from test logic module, calls the corresponding actions unit according to this notice, moves the code in this motor unit, and call device data in the data set submodule according to Data Labels, undertaken alternately by tunnel submodule and equipment under test.
The data set submodule is used to receive the notice from test logic module, and the device data according to loading in this notice buffer memory slave unit data management module offers the behavior aggregate submodule.
The tunnel submodule is used for opening the channel switch that carries out information interaction with equipment under test according to user's configuration, and carries out the information transfer between equipment under test and behavior aggregate submodule.
Method and apparatus provided by the present invention is separated by code and the device data with test action in the device driver module, and the code that same test is moved puts forward, call and move at every turn the code of corresponding test action according to the action sign, thereby improved the reusability of code, and owing to only use a cover code, reduced the quantity of code, safeguarded and the difficulty of upgrading thereby reduced; Simultaneously device data is managed concentratedly, load corresponding data according to Data Labels at every turn, manage concentratedly, reduced the difficulty of safeguarding by related data to each equipment.
In addition, introduced tunnel among the present invention, this passage provides a public command input interface, the switch of a control channel and the output interface of a plurality of and device association.The all operations order all is sent to this tunnel, open the channel switch that leads to corresponding control channel in advance according to user's configuration during initialization, thereby can realize the compatibility control of different control modes such as serial ports control, Telnet control and graphic interface control is improved the product category in the Interoperability Testing greatly.
In addition, be provided with Data Labels and data set among the present invention, wherein Data Labels comprises order sign and Information sign, data set comprises command set and information set, the device data that loads according to user's HRP-configured slave device data management module when data set is used for the buffer memory initialization, these device datas comprise and order sign and corresponding specific instructions of Information sign and information.Directly call the device data of loading from data centralization during test, thereby can realize compatible operations, reduced the module number of test logic different command and different information according to Data Labels.
At last, by the form that adopts data source data are classified among the present invention, thereby during equipment of every increase, only need to increase a data source and get final product, therefore reduce maintenance difficulties greatly, be easy to expand.
Description of drawings
Fig. 1 is the structural representation of first kind of DSL Interoperability Testing device of the prior art.
Fig. 2 is the structural representation of second kind of DSL Interoperability Testing device of the prior art.
Fig. 3 is the structural representation of a preferred embodiment of DSL interoperability automatic test device among the present invention.
Fig. 4 is the internal structure and the work relationship schematic diagram of middle device driver module embodiment illustrated in fig. 3.
Fig. 5 is the internal structure schematic diagram of middle device data management module embodiment illustrated in fig. 3.
Fig. 6 is the structural representation of a preferred embodiment of DSL interoperability automated testing method among the present invention.
Embodiment
Technical scheme for a better understanding of the present invention, technical solution of the present invention will be further described below in conjunction with embodiment and accompanying drawing.
Basic thought of the present invention is: be separated by code and device data with test action in the device driver module, and identical code is put forward separately, call corresponding action and code thereof according to the action sign at every turn; Simultaneously device data is managed concentratedly, at every turn according to loading the corresponding apparatus data in user's HRP-configured slave device data management module, thereby improved the reusability of code, and reduced maintenance difficulties.In addition, the present invention has also introduced tunnel and has comprised the data set of command set and information set, so that to realization compatible operations such as different control modes and different operational order, return informations.
Following elder generation is described in detail in conjunction with specific embodiments to DSL interoperability automatic test device among the present invention.
Referring to Fig. 3, Fig. 3 is the structural representation of a preferred embodiment of DSL interoperability automatic test device among the present invention.As shown in Figure 3, this device comprises: test logic module 310, device driver module 320 and device data management module 330.
Wherein, test logic module 310, be used to finish the logic control of DSL interoperability automatic test, send notice according to user's configuration or logic needs to device driver module 320, announcement apparatus driver module 320 loading equipemtn data, and the code of announcement apparatus driver module 320 operation test actions and the device data that is loaded.The notice here can adopt the mode of transmitting control commands, and wherein control command has the code of the control command of announcement apparatus driver module 320 loading equipemtn data and the 320 operation test actions of announcement apparatus driver module and the control command of the device data that loaded.
Device driver module 320, be used to receive the notice that comes from test logic module 310, according to the notice that receives, obtain required device data in the slave unit data management module 330 and load, the code of operation test action, call the device data that is loaded, and to the equipment under test transmitting control commands, the notice equipment under test is carried out corresponding operation, receive the response message of equipment under test, obtain test result according to response message.The control command is here carried out the control command of corresponding test operation for the notice equipment under test.
Device data management module 330 is used for storage device data, and the data of being stored are offered device driver module 320.
Wherein, comprise in the test logic module 310: the test submodule 311 of characteristic, call when being used for the individual features of DSL tested.The action sign that wherein comprises the required a series of test actions of this characteristic of test in the test submodule 311 of each characteristic is used for sending notice, the corresponding actions in the invocation facility driver module 320 according to this action sign to device driver module 320.Wherein, the test submodule 311 of the corresponding characteristic of each test characteristic.
Can comprise in the device driver module 320: behavior aggregate submodule 321, data set submodule 322 and tunnel submodule 323.
Wherein, behavior aggregate submodule 321, be built-in with the motor unit of each test action information of preservation, the Data Labels that contains the code of this test action in each motor unit and represent the corresponding device data, this behavior aggregate submodule 321 is used to receive the notice from test logic module 310, call the corresponding actions unit according to this notice, move the code of this motor unit, and call device data in the data set submodule 322 according to Data Labels, undertaken alternately by tunnel submodule 323 and equipment under test.
Data set submodule 322, the device data that loads according to the notice slave unit data management module 330 that is received from test logic module 310 when being used for the buffer memory initialization offers behavior aggregate submodule 321.
Tunnel submodule 323 is used for carrying out the information transfer between equipment under test and behavior aggregate submodule 321, sends the control command of behavior aggregate submodule 321 to equipment under test, and the response message that receives from equipment under test returns to behavior aggregate submodule 321.This tunnel submodule provides public command input interface, control channel and an equipment under test to carry out a plurality of channel switchs of information interaction and the output interface of a plurality of and device association.Open corresponding channel switch according to user configuration during initialization, realize and the serial ports control appliance, or the Telnet control appliance, or the graphic interface control appliance, or adopt the communication of the equipment of other control mode.Wherein all operations order all is sent to this tunnel submodule, carries out information interaction by pre-configured passage and equipment under test.
Wherein, comprise in the device data management module 330: a plurality of device data submodules 331, be used for storage device data, during initialization according to the user dispose with this test required device data be loaded in the device driver module 320.
Data in the device data submodule 331 comprise order data and information data, are respectively applied for device-dependent order of representative and information; Data Labels in the behavior aggregate submodule 321 comprises order sign and Information sign, is respectively applied for to represent device-dependent actual command or the actual information that will use; Data set in the data set submodule 322 comprises command set and information set, be respectively applied for the order of the order sign representative in the buffer memory behavior aggregate submodule 321 and the information of Information sign representative, these orders and information all are to load in the slave unit data submodule 331.
Below in conjunction with Fig. 4 the relation between each functional module of installing in the present embodiment is described in further detail.As shown in Figure 4, Fig. 4 is the internal structure and the work relationship schematic diagram of device driver module 320 in the present embodiment device.
Device in the present embodiment before use or change carry out initialization earlier during equipment or reset, as shown in Figure 4, during initialization, equipment under test type in being provided with according to the logic of user configuration or test logic module 310 is concentrated the command set and the information that are loaded into data set submodule 322 with the corresponding device data of Data Labels in the device data management module 330; Control mode in being provided with according to user's configuration or logic is simultaneously opened the channel switch of tunnel correspondence, sets up passage with equipment under test and is connected, and carries out information interaction afterwards.
During test, logic according to the test submodule 311 of characteristic needs, promptly according to testing the sequencing that the needed a series of test actions of this characteristic are carried out, according to the corresponding actions unit in the action sign call action collected works module 321, and operation code wherein, simultaneously call the corresponding command in the command set of data set submodule 322 according to the order sign in the behavior aggregate submodule 321, judge afterwards and equipment under test between the situation of communication port, if channel abnormal then carries out initialization again or resets; If passage normally then control command is mail to equipment under test by tunnel, if failure signal is then returned in transmitting order to lower levels failure, according to loaded with the failure flags information corresponding, obtain failure information, and then to the equipment under test transmitting control commands; If transmitting order to lower levels success, then return the successful information of carrying parameter, in like manner, this information is by obtaining with parameter information sign and successful information sign information corresponding of having loaded, afterwards the parameter in the successful information is separated, obtain this test result.
In addition, Fig. 5 shows another structure chart that the data in the device data management module 330 are classified, as shown in Figure 5, can classify by product category earlier, and then device data is divided into subclass as data source according to software version, and each data source constitutes a device data submodule, divides group with function again in this device data submodule, as shown in Figure 5.
Each data source is that the device data submodule has identical form, if when initialization the version of appointed product and equipment or equipment, device driver module 320 just can find and load its corresponding data source, realizes the compatibility test to a plurality of products.
In each data source, device data is divided into two kinds of system data and business datums by the scope of using, system data be used to carry out land, command mode is switched and the operation of system queries etc. and DSL independent of service; Business datum then is used for operations such as MODEM activation, port status inquiry and port performance queries.
Be divided into two kinds of operational order and return informations by purposes again in system data and business datum inside, wherein return information comprises command execution successful information, command execution failure information and return parameters three parts.
Above-mentioned only is the structural representation of a preferred embodiment of DSL interoperability automatic test device among the present invention.In the practical application, can be not the inside of test logic module 310, device driver module 320 and the device data management module 330 of this device not be segmented; In addition, also can not comprise tunnel 323, and can replace with gap marker, different gap markers is represented the interface of distinct device, dispose corresponding channel interface according to the gap marker that is provided with during initialization, realize communicating, finish the connection of communication port with the interface of different control modes.
In conjunction with the embodiments DSL interoperability automated testing method among the present invention is described further again below.
In the present embodiment, the code of finishing each test action is arranged in each motor unit of device driver module, device data is concentrated be arranged in the device data management module.Wherein, the equipment with particular version in the device data management module is unit, comprises the device data of each equipment.Device driver module is made up of behavior aggregate submodule, data set submodule and tunnel submodule, wherein include the motor unit of finishing each test action in the behavior aggregate submodule, comprise the code of this test action and the Data Labels of representing the corresponding equipment data in the motor unit, Data Labels comprises order sign and Information sign; The data set submodule is used for buffer memory and described order sign and the corresponding device data of Information sign, these data are loaded in the data set submodule when initialization in the slave unit data management module, data set in the data set submodule comprises command set and information set, is used at the test process motor unit according to therefrom call instruction data of Data Labels and information data.In addition, test logic module in the present embodiment is that test characteristic is the test submodule that unit is divided into a plurality of characteristics with the test of each characteristic, each test characteristic correspondence is finished the required a series of test actions of this test characteristic, realize by the action sign that required test action is set in the test submodule of each characteristic, indicate the motor unit of the corresponding test action in the invocation facility driver module during actual motion according to action.
Fig. 6 is the flow chart of the method embodiment of realization DSL interoperability automatic test among the present invention.Referring to Fig. 6, this flow process comprises the steps:
Step 601 is carried out initialization according to user's configuration or test logic setting, device-dependent order or information is loaded in the data set submodule, and configures tunnel.
In this step, the interface of distinct device is also different, these interfaces comprise serial ports, parallel port, Long-distance Control and other interface etc., therefore need tunnel be configured according to the demand of test, during initialization, to open with the channel switch of the interface corresponding virtual passage of equipment under test according to user configuration or test logic, thereby communicate by this tunnel and equipment under test.
In addition, also comprise in this step the data set in the data collected works module is carried out initialization, promptly the equipment under test type that middle needs are tested is set according to user's configuration or test logic, according to the Data Labels in the motor unit, the device data of this equipment in the device data management module is loaded in the data set submodule of device driver module, wherein, the data set in the data set submodule comprises command set and information set, is respectively applied for buffer memory order data and information data.
Step 602, according to the test needs according to the corresponding actions unit in the action sign call action collected works module in the test submodule of this test characteristic, and wherein code of operation.
In this step, finish a test characteristic, need call the test submodule of the individual features in the test logic module, the action sign that comprises a series of test actions of finishing this test characteristic in this module, need according to test logic, indicate one by one according to action and corresponding actions unit in the call action collected works module to move the action code in this unit then.
Step 603, code the corresponding command of concentrating according to the order sign call instruction in this motor unit in service.
Wherein, the required order of operation of finishing a test action may be one, also may be a plurality of.At least the order that can adopt the dual mode call instruction to concentrate in this step.As: first kind of mode called corresponding order one by one for the sequencing by command execution; The second way is disposablely to call all orders of finishing this test action, and forms one group by the sequencing of carrying out, and distinguishingly, only needs an order if finish this test action, and then this group command also can be an order.In this enforcement, adopt the second way, the promptly disposable complete order of finishing this action of calling.
Step 604, whether the communication port between judgement and the equipment under test is normal, if undesired, then execution in step 605; If judge that communication port is normal, then execution in step 607.
Step 605~606 add 1 with unusual number of times, and judge unusual number of times whether greater than the maximum of default unusual permission number of times, if greater than, process ends then; Otherwise return execution in step 601, carry out initialization again.
, the maximum of unusual permission number of times can be set herein, this is worth more than or equal to 1; Also unusual permission number of times can be set, initialization takes place just to carry out when unusual; Unusually just process ends perhaps takes place.In the present embodiment, it is 1 that unusual permission maximum times is set.
Step 607, the order that will call by tunnel sends to equipment under test.
The control command of corresponding test operation is carried out in order in this step for the notice equipment under test, wherein corresponding with step 603 to the command number of equipment under test transmission, promptly when adopting first kind of mode one by one during call instruction in the step 603, what send in this step is an order; When adopting the second way to call Management Information Base in the step 603, what this step sent is Management Information Base.
Step 608, the return information of reception equipment under test.
In this step, return information be equipment under test to the command response that issues after, the response message of returning.This information is returned the specifying information corresponding with Information sign that the back loads during according to initialization, just knows the implication of this information.When for example returning success information, at different equipment under tests, data corresponding to successful information may be different, as being expressed as: represent successfully " OK " with the corresponding successful information of equipment I, may be expressed as with the corresponding successful information of equipment I I: " success (Success) " etc., these device-dependent information by initialization pre-loaded to the corresponding buffer area of Information sign in.This buffer area can be data set in the device driver module.
Step 609~611, judge whether return information is successful information, if the response message of returning is the information of failure, then the frequency of failure adds 1, and judge that whether the frequency of failure allows the maximum of number of times greater than failure, if more than or equal to process ends if less than returning execution in step 607, will order again to send once.If judge that the response message of returning is a successful information, then execution in step 612.
, the maximum that failure allows number of times can be set herein, this is worth more than or equal to 1; Failure also can be set allow number of times, just return execution in step 607 after the command execution failure; The perhaps command execution just process ends of failing.In the present embodiment, it is 3 that failure permission maximum times is set.
Step 612, the parameter in the separate information.
In this step, according to the response message of returning, included parameter sign calls the concrete parameter that has loaded in the data set submodule in the Information sign according to motor unit, extracts this parameter, obtain the test result of test action according to parameter information, finish this test action process.
Step 613 judges that whether test characteristic is finished, and finishes then process ends; Otherwise, return execution in step 602.
In this step, judge whether a series of actions in the test submodule of this test characteristic all is finished, the automatic test of this test characteristic that is finished is then finished, and can obtain the test result of this characteristic according to isolated all parameters in the step 612.If be not finished, then continue to carry out next test action according to next one action sign.
So far, the flow process of present embodiment finishes.
In the present embodiment, the concrete condition of the failure information in the response message of returning according to step 608 can be in different ways once more to the equipment under test transmitting control commands in the step 607.Particularly, when adopting first kind of mode to call an order one by one in the step 603, can should order again after the command execution failure that then sends in the step 607 to send once; When adopting the second way to call Management Information Base in the step 603, after the command execution failure that then sends in the step 607, can be regardless of being any part command execution failure, and once more this group command is sent once; Also can be according to the information of the order of concrete failure in the return information, begin to resend that the order that runs succeeded previously then no longer sends from this order.
In the practical application, can also be by keyword be set, function name and other inlet mode are finished test logic module to the calling of the motor unit in the device driver module, and carry out needs calling corresponding data according to action.
In addition, about the inside formation of device driver module, be that it is subdivided into behavior aggregate, data set and tunnel in the present embodiment, in the practical application, can it not segmented, and can comprise data set yet, and directly call required data in the slave unit data management module; Can not have tunnel yet, but represent actual channel interface, according to gap marker configuration corresponding interface with several gap markers.
In addition, about the classification in the device data management module, can also divide big class according to product type, as the product by particular manner of operation is the unit classification, in this product class, be further divided into different units, comprise in each unit and these device-dependent all data, and these data can be classified by purposes, be divided into two kinds of system data and business datums, system data be used to carry out land, command mode is switched and the operation of system queries etc. and DSL independent of service; Business datum then is used for operations such as MODEM activation, port status inquiry and port performance queries.Be divided into two kinds of operational order and return informations by purposes again in system data and business datum inside, wherein return information comprises command execution successful information, command execution failure information and return parameters three parts.
The various embodiments described above are a kind of displaying of inventive concept, and non-limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, a kind of digital user wire DSL interoperability automated testing method is characterized in that, the code of test action is separated with device data, and this method comprises the steps:
A, obtain device data and load;
B, the described code of operation and the device data that is loaded, and mutual with equipment under test, obtain test result.
2, the method for claim 1 is characterized in that, obtains device data described in the steps A to be:
According to user configuration or the equipment under test type that is provided with according to test logic, obtain the device data of equipment under test.
3, the method for claim 1 is characterized in that, sets in advance the corresponding relation of test characteristic and each test characteristic and test action, and described step B comprises:
B1, testing apparatus call test action according to the test characteristic of this test;
The code of the test action that B2, operation are called, and call the device data that is loaded, to the equipment under test transmitting control commands, this equipment under test is carried out the operation of this control command correspondence according to the control command that receives, and returns response message;
B3, testing apparatus receive the response message that equipment under test returns, and obtain test result according to this response message.
4, method as claimed in claim 3 is characterized in that, before the equipment under test transmitting control commands, further comprises among the step B2:
Whether the communication port that equipment under test is led in detection is normal, if then carry out described operation to the equipment under test transmitting control commands; Otherwise, return execution in step A.
5, as claim 3 or 4 described methods, it is characterized in that step B3 further comprises:
After the response message that the reception equipment under test returns, judge whether the response message that receives is successful information, if then the parameter in the separate information obtains test result; Otherwise, return the described operation of step B2 to the equipment under test transmitting control commands.
6, method as claimed in claim 5 is characterized in that, described returning before the operation of equipment under test transmitting control commands further comprises:
Testing apparatus judges whether the number of times of failure allows the number of times maximum greater than default failure, if, process ends then; Otherwise, continue to carry out described operation to the equipment under test transmitting control commands.
7, a kind of digital user wire DSL interoperability automatic test device is characterized in that, this device comprises test logic module, device driver module and device data management module, wherein,
Test logic module is used for announcement apparatus driver module loading equipemtn data, and the code of announcement apparatus driver module operation test action and the device data that is loaded;
Device driver module, be used to receive the notice that comes from test logic module, according to the described notice that receives, obtain required device data in the slave unit data management module and load, the operation test action code, call the device data that is loaded, and mutual with equipment under test, obtain test result;
The device data management module is used for storage device data, and the data of being stored are offered device driver module.
8, device as claimed in claim 7 is characterized in that, described device driver module comprises: behavior aggregate submodule, data set submodule and tunnel submodule, wherein,
The behavior aggregate submodule, be built-in with the motor unit of each test action information of preservation, the Data Labels that contains the code of this test action in each motor unit and represent the corresponding device data, this behavior aggregate submodule is used to receive the notice from test logic module, call the corresponding actions unit according to this notice, move the code in this motor unit, and call device data in the data set submodule, undertaken alternately by tunnel submodule and equipment under test according to Data Labels;
The data set submodule is used to receive the notice from test logic module, and the device data according to loading in this notice buffer memory slave unit data management module offers the behavior aggregate submodule;
The tunnel submodule is used for opening the channel switch that carries out information interaction with equipment under test according to user's configuration, and carries out the information transfer between equipment under test and behavior aggregate submodule.
CNB2006101042543A 2006-08-07 2006-08-07 Automatic testing device and method for digital user line intercommunity Expired - Fee Related CN100512343C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101042543A CN100512343C (en) 2006-08-07 2006-08-07 Automatic testing device and method for digital user line intercommunity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101042543A CN100512343C (en) 2006-08-07 2006-08-07 Automatic testing device and method for digital user line intercommunity

Publications (2)

Publication Number Publication Date
CN1933513A true CN1933513A (en) 2007-03-21
CN100512343C CN100512343C (en) 2009-07-08

Family

ID=37879127

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101042543A Expired - Fee Related CN100512343C (en) 2006-08-07 2006-08-07 Automatic testing device and method for digital user line intercommunity

Country Status (1)

Country Link
CN (1) CN100512343C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215140A (en) * 2010-04-02 2011-10-12 英业达股份有限公司 Checking device for storage area network
CN102799719A (en) * 2012-06-30 2012-11-28 华为技术有限公司 Method and device for simulation test
CN104469023A (en) * 2015-01-05 2015-03-25 北京飞音时代技术有限公司 Detection method for equipment with subscriber line interface circuit
WO2016011732A1 (en) * 2014-07-21 2016-01-28 中兴通讯股份有限公司 Line diagnosis method and apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215140A (en) * 2010-04-02 2011-10-12 英业达股份有限公司 Checking device for storage area network
CN102215140B (en) * 2010-04-02 2013-03-27 英业达股份有限公司 Checking device for storage area network
CN102799719A (en) * 2012-06-30 2012-11-28 华为技术有限公司 Method and device for simulation test
CN102799719B (en) * 2012-06-30 2015-04-08 华为技术有限公司 Method and device for simulation test
WO2016011732A1 (en) * 2014-07-21 2016-01-28 中兴通讯股份有限公司 Line diagnosis method and apparatus
CN105319480A (en) * 2014-07-21 2016-02-10 中兴通讯股份有限公司 Line diagnosis method and device
US10051116B2 (en) 2014-07-21 2018-08-14 Zte Corporation Line diagnosis method and apparatus
CN105319480B (en) * 2014-07-21 2019-11-12 南京中兴新软件有限责任公司 Line diagnosis method and device
CN104469023A (en) * 2015-01-05 2015-03-25 北京飞音时代技术有限公司 Detection method for equipment with subscriber line interface circuit

Also Published As

Publication number Publication date
CN100512343C (en) 2009-07-08

Similar Documents

Publication Publication Date Title
CN100345415C (en) Method and apparatus for perfoming boot, maintenance, or install operations on a storage area network
CN1220745A (en) Web/emulator server and web browser terminal emulator for persistent connection to legacy host system operation
CN1933513A (en) Automatic testing device and method for digital user line intercommunity
CN1741460A (en) Method and system for realizing telecommunication network universal performance management
CN101068161A (en) Method for dynamic generating network equipment configuration strategic group
CN1731818A (en) Image processing apparatus and control method thereof, processing module drive control method, and data processing apparatus
CN1711718A (en) A router or bridge device comprising an installation application
CN1929393A (en) Tri-state tree representing and location method of network element object in network optimization system
CN1787460A (en) System for testing unification of communication protocol
CN1258175A (en) Program renewing device and method
CN107577630A (en) A kind of expansion module automatic addressing system
CN1777110A (en) Method for batch file transmission of cluster equipment and file transmission equipment
CN1501267A (en) Linking information making device, linking information making method, recording medium having recorded a linking information making program, and document processing system therewith
CN1750667A (en) Method for obtaining updating power information of mobile terminal
CN1926805A (en) System and method for quality condition analysis of access network supporting broad band telecommunication service
CN1764187A (en) The equipment and the method that are used for the socket communication between the application of operating system
CN1097371C (en) Network manager system
CN1254047C (en) Method of carrying out test against join up service instrument
CN101077015A (en) Indicating allocation state
CN1505270A (en) A schematic diagram inspection method for hardware design
CN100337440C (en) Method and system for testing intercommunity between equipments
CN1955990A (en) Flow executing method and system of integral telecommunication platform
CN1852176A (en) Network communication apparatus protocol testing system and method
CN1402174A (en) Method for submitting proper configuration information for communication applied program
CN1764131A (en) Protocol testing 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
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: 20090708

Termination date: 20100807