CN100544292C - A kind of method of BAS Broadband Access Server automatic test - Google Patents

A kind of method of BAS Broadband Access Server automatic test Download PDF

Info

Publication number
CN100544292C
CN100544292C CNB2007101275707A CN200710127570A CN100544292C CN 100544292 C CN100544292 C CN 100544292C CN B2007101275707 A CNB2007101275707 A CN B2007101275707A CN 200710127570 A CN200710127570 A CN 200710127570A CN 100544292 C CN100544292 C CN 100544292C
Authority
CN
China
Prior art keywords
test
script
message
equipment under
test script
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
CNB2007101275707A
Other languages
Chinese (zh)
Other versions
CN101114953A (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.)
WUHAN ZHONGXING SOFTWARE CO., LTD.
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101275707A priority Critical patent/CN100544292C/en
Publication of CN101114953A publication Critical patent/CN101114953A/en
Application granted granted Critical
Publication of CN100544292C publication Critical patent/CN100544292C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a kind of method of BAS Broadband Access Server automatic test, comprise step, at first land equipment under test and carry out the basic configuration operation by the telnet mode; Determine transmitting-receiving bag sequential according to test script then; Then set up message and transmission; Receive message at last and carry out the field inspection, determine test result.Use the present invention, in the system testing process, a visual interface and complete test script are provided, make things convenient for the tester that automatic test script is organized and managed, reduce numerous and diverse test operation of tester, simultaneously the tester improves the testing efficiency and the test mass of BAS Broadband Access Server effectively by controlled log recording function and statistical function as a result.

Description

A kind of method of BAS Broadband Access Server automatic test
Technical field
The present invention relates to computer network communication field, be specifically related to a kind of method of BAS Broadband Access Server automatic test.
Background technology
Current, in the test of BAS Broadband Access Server, tester's general using is similar to the testing tool of the hyper terminal that windows operating system carries and tests.These testing tools are many based on control desk, and control desk links to each other with equipment by the com port or Telnet (Telnet) mode of computer, thereby the tester can make things convenient for to such an extent that in control desk equipment is operated.By these testing tools, the tester can carry out parameter configuration to equipment, and carries out the output of test result, at last the result is checked, analyzes and sums up.In addition, these testing tools also have script-editor, and the tester can use the TCL language to carry out scripted code and write, and reach the purpose that institute's measurement equipment is configured and tests by moving these scripts.
Because existing testing tool mainly is the general service desk software at most of communication network device exploitations, so can not carry out special system testing in conjunction with the product performance of BAS Broadband Access Server.So just exist the problem of following several respects:
(1) the great majority test to the carrying out of BAS Broadband Access Server all is to carry out on the basis that the user successfully inserts, so just need the tester to utilize multiple computers or tester to connect equipment under test and carry out customer call, on the basis of customer call success, carry out follow-up test again.Every functional test at BAS Broadband Access Server, need the tester manual repeat to computer or tester setting--〉wait for the user successfully reach the standard grade--〉carry out functional test--the checkout result, the operation repeatedly of these complexity had both been wasted manpower and had also been occupied a lot of other device resources.
(2) a large amount of test event needs the tester to carry out craft to carry out repeatedly, test result also needs the tester to rely on test experience at ordinary times to be judged, the result causes the test job inefficiency that becomes, and test result also probably because tester's self reason and to some extent difference cause test mass to be difficult to guarantee.Especially in regression test, can not guarantee the accurate repetition of the test case in the version test, increase tester's workload, also be difficult to guarantee the implementation coverage of each step of test case simultaneously.
(3) tester can't carry out uninterrupted test in 24 hours, and testing equipment is in idle state.And, cause the delay of test because test job heavy often can't be finished all test events at official hour, delayed the construction cycle of entire product.
In sum, the technical scheme of the automatic test of a kind of BAS Broadband Access Server of current needs.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method of automatic test of BAS Broadband Access Server, in the system testing process, a visual interface and complete test script are provided, make things convenient for the tester that automatic test script is organized and managed, reduce numerous and diverse test operation of tester, simultaneously the tester improves the testing efficiency and the test mass of BAS Broadband Access Server effectively by controlled log recording function and statistical function as a result.
In order to address the above problem, the invention provides a kind of method of BAS Broadband Access Server automatic test, may further comprise the steps:
A, the operational factor of test macro global parameter and test script is set;
B, login equipment under test by the Telnet mode and carry out basic configuration operation;
C, determine transmitting-receiving bag sequential according to described test script;
D, establishment message also send;
E, receive message and carry out the field inspection, determine test result;
Wherein, stating test script writes according to the test result of prerequisite, execution in step and the expection of the characteristics of equipment under test and test case; Described test script also comprises protocol encoding and decoding and Driver Library, and the encoding and decoding interface to the test protocol message is provided; Described test script also comprises basic network agreement supporting layer, and the encoding and decoding interface to the underlying protocol message is provided, and comprises the Code And Decode operation to link layer, network layer message; Described test script also comprises public network access system basic-level support storehouse socket.dll, realizes the expansion of TCL order.
Further, described test script comprises one or more; Described test script moves now, perhaps with the time operation afterwards of plan form.
Further, after logining equipment under test and carry out basic configuration operation by the Telnet mode among the described step b, described test macro loads described protocol encoding and decoding and Driver Library by the invoke script control program.
Further, in the described steps d, the transmission of described message is undertaken by network interface.
Further, among the described step e, network interface is received message from equipment under test, and these messages are delivered to described protocol encoding and decoding and Driver Library, and test macro carries out the field inspection to these messages that receive, and determines test result.
Further, behind the described step e, also comprise:
F, described test macro are that sign is deposited respectively daily record and destination file that operation each time generates with time, and statistical function as a result is provided;
After g, each test script finish, remove the equipment under test configuration.
The present invention also provides a kind of method of BAS Broadband Access Server automatic test, is applied to point-to-point protocol and inserts test, may further comprise the steps:
Step 210, equipment under test and test parameter are configured;
Step 220, login equipment under test by the Telnet mode and carry out basic configuration operation;
Step 230, selection test script and operation;
Step 240, test macro generate corresponding running configuration file;
Step 250, read running configuration file and find the node corresponding, generate new operating file, create new process with selected test script;
Step 260, in new process operation TCL interpreter, and the invoke script control program reads operating file, controls the operation of all test scripts;
Step 270, test macro receive the message of equipment under test transmission and the message that receives are carried out the field inspection, determine whether test result meets the test case expected results;
Step 280, test macro are that sign is preserved daily record and destination file that each test script operation generates automatically with time, and the statistics of test result is provided;
After step 290, test script finish, the configuration of deletion equipment under test.
Further, in the described step 260, also comprise the transmission of the point-to-point protocol message of described test script, the operation of reception message function, the operation of the transmission of the point-to-point protocol message of described test script, reception message function is finished by the load libraries function; Described load libraries function comprises message encoding and decoding and Driver Library.
Compared with prior art, the advantage of the inventive method is as follows,
1, when increasing the test item of other new functions, more flexibly, convenient, the tester only need add the automatic test script of corresponding test case correspondence on test protocol encoding and decoding and driver module, do not need to write again basic network agreement support module and protocol encoding and decoding, driver module;
2, after script operation finishes, the tester by controlled log recording function and as a result statistical function can intuitively must check the process of each this execution of pacing training and total test result; Particularly for not testing the test item that passes through, these log records provide valuable information for tester's fault location occurrence cause.
3, this method reliability height can carry out simulation test from protocol hierarchy;
4, use this method, a main frame can be simulated a plurality of router devices, saves the frame resource, has improved the testing efficiency and the work quality of whole test job.
Description of drawings
Fig. 1 is the basic principle figure of automatic test of the BAS Broadband Access Server of the specific embodiment of the invention;
Fig. 2 is the process chart of automatic test of the BAS Broadband Access Server of the specific embodiment of the invention.
Fig. 3 is the flow chart that the PPP (point-to-point protocol) of the specific embodiment of the invention inserts test process.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the invention is described further.
As shown in Figure 1, the method for the specific embodiment of the invention at first is provided with test macro global parameter and test script operational factor; The tester chooses test script; Test macro reloads protocol encoding and decoding and Driver Library by the invoke script control program, then by the bottom-layer network access system, by transmission and the reception of carrying out message between network interface and the equipment under test; Network interface is received message from equipment under test, these messages can be delivered to the protocol encoding and decoding module, and these messages that receive are carried out the field inspection, determines test result; The last test system is that sign is deposited respectively daily record and destination file that operation each time generates with time, and statistical function as a result is provided, and makes things convenient for the tester to analyze and observes.
Concrete steps are as follows,
A, test macro global parameter and test script operational factor are set;
Described test script comprises one or more; Described test script can move now, perhaps with the time operation afterwards of plan form.
Wait according to the test result of prerequisite, execution in step and the expection of the characteristics of equipment under test and test case and to carry out writing of test script, test script is the pairing automatic test script of test case.
Test script also comprises protocol encoding and decoding and Driver Library, and the encoding and decoding interface to the test protocol message is provided.
Test script also comprises basic network agreement supporting layer, and the encoding and decoding interface to the underlying protocol message is provided, as the Code And Decode operation to link layer, network layer message.
Test script also comprises public network access system (Winpcap) basic-level support storehouse socket.dll, can download from windows platform, realize a kind of expansion of very general script (TCL) order, mainly comprise: the management of message buffer, as application buffering area and buffer release district, buffering area is operated.
B, login equipment under test by the Telnet mode and carry out basic configuration operation;
Test macro reloads protocol encoding and decoding and Driver Library by the invoke script control program.
C, determine transmitting-receiving bag sequential according to test script;
D, establishment message also send;
Carry out the transmission of message by network interface.
E, receive message and carry out the field inspection, determine test result;
Network interface is received message from equipment under test, and these messages are delivered to protocol encoding and decoding and Driver Library, and test macro carries out the field inspection to these messages that receive, and determines test result.
F, test macro are that sign is deposited respectively daily record and destination file that operation each time generates with time, and statistical function as a result is provided;
Test macro is that sign is deposited respectively daily record and destination file that operation each time generates with time, and statistical function as a result is provided, and is convenient to the tester and analyzes and observe.
G, the Telnet that removes on the equipment under test dispose.
After each test script finishes, remove the equipment under test configuration, so that next carry out the operation of other test scripts.
As shown in Figure 2, the handling process of the specific embodiment of the invention, specific as follows:
Step 110, tester wait the setting with the script operational factor of filling in of carrying out global parameter according to the test result that will reach of prerequisite, execution in step and the expection of the characteristics of equipment under test and test case;
Step 120, tester choose the operation test script;
Step 130, the required running configuration file of test macro generating run test script;
Step 140, test macro invoke script control program;
Step 150, read global configuration file;
Step 160, the operation of receiving and dispatching bag by the load libraries function;
The load libraries function comprises message encoding and decoding and Driver Library.
Step 170, open daily record and destination file;
Step 180, read the execution test script of carrying out the tester successively after the running configuration file and being chosen;
Step 190, closing journal and destination file carry out the output of daily record and test result.
Inserting test process below in conjunction with PPP (point-to-point protocol) is described further the specific embodiment of the invention.
The computer expert of installation testing instrument crosses network interface and is connected with equipment under test, three network interfaces of general minimum needs, and one is used for Telnet to equipment under test, and equipment is carried out basic configuration, and one is used to send message, and another one is used to receive message.
Basic agreement coding, decoding, transmitting-receiving message function that the tester utilizes built-in function and bsp driver to provide, carrying out the low level development and the test script of PPP related protocol writes, the ppp protocol that writes is supported the storehouse and directly is put under the respective directories according to the test script that test case is write, just can be integrated in the automated test tool platform, system can load automatically.
As shown in Figure 3, concrete steps are as follows,
Step 210, equipment under test and test parameter are configured;
Step 220, login equipment under test by the Telnet mode and carry out basic configuration operation;
Step 230, tester select test script and operation;
Step 240, test macro generate corresponding running configuration file;
Step 250, read running configuration file and find the node corresponding, generate new operating file, create new process with selected test script;
Step 260, in new process, move TCL (a kind of general script) interpreter, and the invoke script control program reads operating file, control the operation of all test scripts;
The flow process of script control program control test script operation: the Telnet configure of the Telnet configure-group of the Telnet configuration-main script logic-script of the Telnet configuration-script of group self self.
The operation of the transmission of the PPP message of test script, reception message function is finished by load libraries function (comprising message encoding and decoding and Driver Library).
Test script is sent out the ping bag again by delay a period of time is set, and sets up with the time of giving the equipment under test abundance and transmits.
Step 270, test macro receive the message of equipment under test transmission and the message that receives are carried out the field inspection, determine whether test result meets the test case expected results;
Step 280, test macro are that sign is preserved daily record and destination file that each test script operation generates automatically with time, and the statistics of test result is provided;
After step 290, test script finish, the configuration of deletion equipment under test.
Next the configuration of deletion equipment under test so that carry out the operation of other test scripts.
From above example as can be seen, this method is the automation realization to each test case of BAS Broadband Access Server, is more suitable for being applied to return functional test.In the test job of reality, alleviate tester's burden, especially in regression test, can reduce tester's workload, improved operating efficiency and test mass.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (8)

1, a kind of method of BAS Broadband Access Server automatic test may further comprise the steps:
A, the operational factor of test macro global parameter and test script is set;
B, login equipment under test by the Telnet mode and carry out basic configuration operation;
C, determine transmitting-receiving bag sequential according to described test script;
D, establishment message also send;
E, receive message and carry out the field inspection, determine test result;
Wherein, described test script is write according to the test result of prerequisite, execution in step and the expection of the characteristics of equipment under test and test case; Described test script also comprises protocol encoding and decoding and Driver Library, and the encoding and decoding interface to the test protocol message is provided; Described test script also comprises basic network agreement supporting layer, and the encoding and decoding interface to the underlying protocol message is provided, and comprises the Code And Decode operation to link layer, network layer message; Described test script also comprises public network access system basic-level support storehouse socket.dll, realizes the expansion of TCL order.
2, the method for claim 1 is characterized in that, described test script comprises one or more; Described test script moves now, perhaps with the time operation afterwards of plan form.
3, method as claimed in claim 1 or 2 is characterized in that, after logining equipment under test and carry out basic configuration operation by the Telnet mode among the described step b, described test macro loads described protocol encoding and decoding and Driver Library by the invoke script control program.
4, the method for claim 1 is characterized in that, in the described steps d, the transmission of described message is undertaken by network interface.
5, method as claimed in claim 3 is characterized in that, among the described step e, network interface is received message from equipment under test, these messages are delivered to described protocol encoding and decoding and Driver Library, and test macro carries out the field inspection to these messages that receive, and determines test result.
6, the method for claim 1 is characterized in that, behind the described step e, also comprises:
F, described test macro are that sign is deposited respectively daily record and destination file that operation each time generates with time, and statistical function as a result is provided;
After g, each test script finish, remove the equipment under test configuration.
7, a kind of method of BAS Broadband Access Server automatic test is applied to point-to-point protocol and inserts test, may further comprise the steps:
Step 210, equipment under test and test parameter are configured;
Step 220, login equipment under test by the Telnet mode and carry out basic configuration operation;
Step 230, selection test script and operation;
Step 240, test macro generate corresponding running configuration file;
Step 250, read running configuration file and find the node corresponding, generate new operating file, create new process with selected test script;
Step 260, in new process operation TCL interpreter, and the invoke script control program reads operating file, controls the operation of all test scripts, and carries out the transmission of the point-to-point protocol message of described test script;
Step 270, test macro receive the message of equipment under test transmission and the message that receives are carried out the field inspection, determine whether test result meets the test case expected results;
Step 280, test macro are that sign is preserved daily record and destination file that each test script operation generates automatically with time, and the statistics of test result is provided;
After step 290, test script finish, the configuration of deletion equipment under test.
8, method as claimed in claim 7 is characterized in that, in the described step 260, also comprises the operation that receives the message function, and the operation of the transmission of the point-to-point protocol message of described test script, reception message function is finished by the load libraries function; Described load libraries function comprises message encoding and decoding and Driver Library.
CNB2007101275707A 2007-07-03 2007-07-03 A kind of method of BAS Broadband Access Server automatic test Expired - Fee Related CN100544292C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101275707A CN100544292C (en) 2007-07-03 2007-07-03 A kind of method of BAS Broadband Access Server automatic test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101275707A CN100544292C (en) 2007-07-03 2007-07-03 A kind of method of BAS Broadband Access Server automatic test

Publications (2)

Publication Number Publication Date
CN101114953A CN101114953A (en) 2008-01-30
CN100544292C true CN100544292C (en) 2009-09-23

Family

ID=39023087

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101275707A Expired - Fee Related CN100544292C (en) 2007-07-03 2007-07-03 A kind of method of BAS Broadband Access Server automatic test

Country Status (1)

Country Link
CN (1) CN100544292C (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640618B (en) * 2008-07-28 2011-12-07 英业达股份有限公司 Authentication test method and system, and network with function of authentication test
CN101894059B (en) * 2010-06-11 2016-02-24 中兴通讯股份有限公司 A kind of detection method of running status and system
CN102487340A (en) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 Test method of message interaction and apparatus thereof
CN102231686B (en) * 2011-06-24 2017-08-11 北京天融信科技有限公司 A kind of system and method for realizing automated test of network security equipment
CN102932205B (en) * 2012-11-19 2016-01-20 深圳市亚特尔科技有限公司 A kind of automated testing method of network service end interface
CN104239015B (en) * 2013-06-18 2018-09-28 上海斐讯数据通信技术有限公司 The extended method of script
CN104182219A (en) * 2014-08-07 2014-12-03 上海航天电源技术有限责任公司 Visualized testing method for battery pack system
CN104166623A (en) * 2014-08-20 2014-11-26 浪潮电子信息产业股份有限公司 Test method for detecting ME states of intel platforms
CN104270289A (en) * 2014-10-17 2015-01-07 上海斐讯数据通信技术有限公司 ONU automatic testing method based on TCL script
CN105635220A (en) * 2014-11-05 2016-06-01 中兴通讯股份有限公司 Method, equipment and system for realizing remote bridging
CN104486309A (en) * 2014-12-06 2015-04-01 北京银信长远科技股份有限公司 Terminal emulation communication protocol recording method
CN105007199A (en) * 2015-07-30 2015-10-28 上海斐讯数据通信技术有限公司 Simulation device and simulation method for IGMP (Internet Group Management Protocol) router
CN106789420A (en) * 2016-12-16 2017-05-31 上海斐讯数据通信技术有限公司 The method of testing of G/EPON system Dynamic Bandwidth Allocations, device and G/EPON systems
CN106899454B (en) * 2017-03-06 2020-10-20 苏州浪潮智能科技有限公司 Method and system for automatically testing RoCE performance based on Linux system
CN107508720B (en) * 2017-07-25 2021-08-27 中国银联股份有限公司 Automatic testing method and device
CN110297747A (en) * 2018-03-22 2019-10-01 福建天泉教育科技有限公司 A kind of method and terminal of test statistics function
CN108494628B (en) * 2018-03-29 2021-08-27 苏州盛科通信股份有限公司 Automated test tool for assisting switch to verify compliance with IEEE802.3 standard specification
CN109688093B (en) * 2018-08-31 2021-06-04 平安科技(深圳)有限公司 Firewall policy verification method, system, device and readable storage medium
CN109491258B (en) * 2018-11-08 2021-08-31 青岛大学 Regression testing system of intelligent home system
CN113688058B (en) * 2021-10-26 2022-02-22 国能日新科技股份有限公司 Automatic detection system and detection method for station server monitoring software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TCL命令扩展在产品测试系统开发中的应用. 关红洲,杨洁.江南大学学报,第3卷第3期. 2004
TCL命令扩展在产品测试系统开发中的应用. 关红洲,杨洁.江南大学学报,第3卷第3期. 2004 *

Also Published As

Publication number Publication date
CN101114953A (en) 2008-01-30

Similar Documents

Publication Publication Date Title
CN100544292C (en) A kind of method of BAS Broadband Access Server automatic test
CN102141962B (en) Safety distributed test framework system and test method thereof
Stantchev Performance evaluation of cloud computing offerings
US9436443B2 (en) Software defined network controller
US7339891B2 (en) Method and system for evaluating wireless applications
US8174996B2 (en) Adaptive test system for network function and performance evaluation
US6910061B2 (en) Framework system and method for testing server performance under multiple workloads
CN105450476B (en) A kind of regression test system and test method
CN113064780B (en) Automatic test system and method based on router product
WO2020151483A1 (en) Stress testing system for internet-of-things platform, method, device, and server
CN107506303A (en) Method, apparatus and system for automatic test
CN108460199B (en) CNI modeling system
CN1248116C (en) General purpose testing arrangement for embedded module and subsystem based on host machine platform
CN102035896A (en) TTCN-3-based distributed testing framework applicable to software system
CN107395747B (en) High-expansion method based on STF platform
CN106209515A (en) Access network equipment automatization test system
CN110018392A (en) A kind of test macro of electrical power distribution automatization system main website
CN111600760B (en) Quality detection system, method and equipment of power grid operation monitoring system
CN113704089A (en) Full-scene GSM-R interface server test platform system
CN1997199A (en) An integrated testing system and method for 3G network management interface
CN101765129A (en) Network access test system and method for data value-added service
CN107122307B (en) Internet of things execution system
CN102546300B (en) Test system and operating region equipment
CN111426895A (en) In-situ protection device test system and test method thereof
CN113747150B (en) Method and system for testing video service system based on container cloud

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151210

Address after: 430223 East Lake Wuhan New Technology Development Zone Hua Hua Road, Optics Valley Industrial Park, ZTE building, building No. 3, building

Patentee after: WUHAN ZHONGXING SOFTWARE CO., LTD.

Address before: 518057 Nanshan District high tech Industrial Park, Guangdong, South Road, science and technology, ZTE building, legal department

Patentee before: ZTE Corporation

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090923

Termination date: 20190703

CF01 Termination of patent right due to non-payment of annual fee