CN103209101A - Gateway testing method - Google Patents

Gateway testing method Download PDF

Info

Publication number
CN103209101A
CN103209101A CN2012100138296A CN201210013829A CN103209101A CN 103209101 A CN103209101 A CN 103209101A CN 2012100138296 A CN2012100138296 A CN 2012100138296A CN 201210013829 A CN201210013829 A CN 201210013829A CN 103209101 A CN103209101 A CN 103209101A
Authority
CN
China
Prior art keywords
gateway
testing
test
parameter configuration
performance evaluation
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
CN2012100138296A
Other languages
Chinese (zh)
Other versions
CN103209101B (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201210013829.6A priority Critical patent/CN103209101B/en
Publication of CN103209101A publication Critical patent/CN103209101A/en
Application granted granted Critical
Publication of CN103209101B publication Critical patent/CN103209101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a gateway testing method which includes: step one, through access control of a server, calling a first Lib library, and performing parameter configuration on a gateway; step two, calling the first Lib library, and performing parameter configuration on a testing device; and step three, calling a Lib library of the testing device, and testing the gateway through the testing device. The first Lib library is called, automatic parameter configuration is performed on the gateway, an interface provided by a device is tested with the help of the Lib library of the testing device simultaneously, and automatic parameter configuration and testing are performed on the testing device. A tester only needs to select a testing case, parameter configuration can be completed automatically through a system, and using convenience is improved.

Description

The method of testing of gateway
[technical field]
The present invention relates to the telecommunication field, particularly relate to a kind of method of testing of gateway.
[background technology]
Along with popularizing of communication and network, the application of home gateway product more and more widely.Traditional method of testing to home gateway all is to test by manual configuration home gateway and instrument and meter.All need to reconfigure during so each test, cause inefficiency.If the research staff of gateway product has new version every day, can can't the arrangement personnel carry out the basic functions test because the test required time is long--when especially go out redaction evening.Therefore, generally all be just can carry out self-test to gateway product when in the end going out official release.So just brought risk: bug often issue in the end the time just be found, and it is few to leave the time that the research staff revises for.
In addition, relatively stricter to the instructions for use of instrument and meter in the test, a lot of new persons or to the functions of modules person of being unfamiliar with of instrument and meter, the debugging configure instrument just needs for a long time often, and configuration error occurs easily and cause erroneous judgement.
[summary of the invention]
Based on this, be necessary to provide a kind of method of testing of normalized, gateway that automaticity is high.
A kind of method of testing of gateway comprises the following steps: step 1, by the access control service, calls a Lib storehouse, and gateway is carried out parameter configuration; Step 2 is called a described Lib storehouse, and testing equipment is carried out parameter configuration; Step 3 is called testing equipment Lib storehouse, by described testing equipment described gateway is tested.
Preferably, the method for testing of described gateway is the radio test method of gateway, and described testing equipment comprises wireless network card; Described step 1 comprises: to the use-case parameter bag of recombinating, generate the parameter configuration tabulation; By described access control service, call a described Lib storehouse, described parameter configuration tabulation is handed down to described gateway, carry out parameter configuration; Described step 2 comprises: call a described Lib storehouse, according to described parameter configuration tabulation enable and configurating terminal on described wireless network card, carry out wireless connections; Whether described step 3 comprises: to carrying out Ping Test between described gateway and the described terminal, successful with the test wireless connections; The radio test method of described gateway also comprise close service set after, call a described Lib storehouse again, the described wireless network card on the described terminal is enabled and is disposed in tabulation according to described parameter configuration, carries out wireless connections to carry out the step of fault-tolerant test.
Preferably, described step 1 comprises the step of differentiating the wireless encryption pattern, described parameter configuration tabulation comprises WLAN_Values_Path at least and two tabulations of USB_WLAN_Connect_Values in WLAN_Values_Path, USB_WLAN_Connect_Values and three tabulations of Key_Values, wherein WLAN_Values_Path is be used to the tabulation that the configuration parameter that is handed down to described gateway is provided, USB_WLAN_Connect_Values is the configuration file of the USB wireless network card that need generate when calling wireless connections, and Key_Values is cipher key list; The described step that the tabulation of described parameter configuration is handed down to described gateway comprises the WLAN_Values_Path tabulation is handed down to gateway, and if described wireless encryption pattern is a kind of among WEP, WPA, the WPA2, the step that described parameter configuration tabulation is handed down to described gateway also comprises the Key_Values tabulation is handed down to described gateway; Described step 2 be according to described USB_WLAN_Connect_Values tabulation enable and configurating terminal on described wireless network card; Described step 3 may further comprise the steps: inquire about the address that described wireless network card obtains, described gateway is issued the Ping Diagnostic parameters, obtain the Ping diagnostic test results.
Preferably, the method for testing of described gateway is the service quality function method of testing of gateway, and described testing equipment comprises the performance evaluation instrument, and described step 1 is that described gateway is carried out the QoS parameter configuration.
Preferably, also comprise before the described step 1 and call a described Lib storehouse, described gateway is created the step of wide area network operation.
Preferably, described step 3 comprises by described performance evaluation instrument service for checking credentials quality function normal step whether, comprise: carry out the service quality function test first time: give out a contract for a project and packet capturing, calculate the speed of every stream by described performance evaluation instrument, obtain service quality function test result for the first time, disconnect the connection of described performance evaluation instrument, the forbidding rules for quality of service; Carry out the service quality function test second time: give out a contract for a project and packet capturing, the speed by every stream of described performance evaluation instrument calculating obtains service quality function test result for the second time, disconnects the connection of described performance evaluation instrument; Judge in conjunction with service quality function test result for the first time and for the second time whether service quality function is normal.
Preferably, described step of carrying out service quality function test for the second time also comprises afterwards calls a described Lib storehouse, removes the step of described rules for quality of service.
Preferably, the method for testing of described gateway is the firewall functionality method of testing of gateway, and described testing equipment comprises the performance evaluation instrument, and described step 1 is that described gateway is carried out the fire compartment wall parameter configuration.
Preferably, also comprise before the described step 1 and call a described Lib storehouse, described gateway is created the step of wide area network operation.
Preferably, whether normally described step 3 comprises by described performance evaluation instrument verifies firewall functionality step, comprise: carry out the firewall functionality test first time: give out a contract for a project and packet capturing, by described performance evaluation instrument the packet of arresting is analyzed, obtain firewall functionality test result for the first time, disconnect the connection of described performance evaluation instrument, remove firewall rule; Carry out the service quality function test second time: give out a contract for a project and packet capturing, by described performance evaluation instrument the packet of arresting is analyzed, obtain firewall functionality test result for the second time, disconnect the connection of described performance evaluation instrument; Judge in conjunction with firewall functionality test result for the first time and for the second time whether firewall functionality is normal.
The method of testing of above-mentioned gateway by calling a Lib storehouse, is carried out the Automatic parameter configuration to gateway, and the interface that provides by testing equipment in the testing equipment Lib storehouse carries out automation configuration, the test of each parameter to testing equipment simultaneously.The tester only need select test case, can finish configuration to parameter automatically by system, has improved the convenience that uses.
[description of drawings]
Fig. 1 is the schematic diagram of wireless sensor network system among the embodiment;
Fig. 2 is the flow chart of the method for testing of gateway among the embodiment;
Fig. 3 is the flow chart of the method for testing of gateway among the embodiment when being used for Wireless LAN testing;
Fig. 4 is the particular flow sheet of step S212 to S213 among another embodiment;
Fig. 5 is the particular flow sheet of middle step S221 to S252 embodiment illustrated in fig. 4;
Fig. 6 is the flow chart of the method for testing of gateway among the embodiment when being used for the service quality function test;
Fig. 7 is the particular flow sheet of step S30 among another embodiment;
Fig. 8 is the flow chart of the method for testing of gateway among the embodiment when being used for the firewall functionality test;
Fig. 9 is the particular flow sheet of step S40 among the embodiment.
[embodiment]
For purpose of the present invention, feature and advantage can more be become apparent, below in conjunction with accompanying drawing the specific embodiment of the present invention is described in detail.
Fig. 1 is the structural representation of the test macro of gateway among the embodiment, comprising:
Bottom comprises the ActiveTCLLib storehouse.Show that the realization of system in this embodiment is based on TCL language (Tool Command Language).
Use supporting layer, comprise the Lib storehouse of various testing equipments (performance evaluation instrument, all kinds of instrument and meter, wireless network card etc.), comprise performance evaluation instrument dll storehouse, wireless network card dll storehouse etc.The supplier of various testing equipments has opened the automation calling interface of these testing equipments, and the tester can carry out the secondary encapsulation according to these interfaces and call, or directly calls use.
Application-interface layer: comprise a Lib storehouse and automation comprehensive test platform.Because the function realization mechanism difference of different specification or different schemes, sometimes also because the difference of the realization of customization, the special Lib storehouse of introducing.The one Lib storehouse can be undertaken self-defined by the tester.
Test case management layer: comprise test case script management system.The tester can in conjunction with certain operation flow, write corresponding test case according to testing equipment Lib storehouse and a Lib storehouse, and unification is in charge of and is safeguarded by the test case management layer.
Fig. 2 is the flow chart of the method for testing of gateway among the embodiment.The test of this embodiment comprises the following steps: based on RPC (Remote Procedure Call, the remote procedure call) method call of TR069 and/or TR098 standard
S11 is by access control service (Access Control Server, ACS, telecom operators can manage terminal effectively by this service), call a Lib storehouse, (Customer Premise Equipment, CPE) for example gateway carries out parameter configuration to ustomer premises access equipment.
S12 calls a Lib storehouse, and testing equipment is carried out parameter configuration.
S13 calls testing equipment Lib storehouse, by testing equipment gateway is tested.
Fig. 3 is the flow chart of the method for testing of above-mentioned gateway among the embodiment when being used for Wireless LAN testing, and testing equipment comprises wireless network card among this embodiment, comprises the following steps:
S211 calls a Lib storehouse.
Test case is called the wireless module principal function (being WLAN_Test.tcl in the present embodiment) in the Lib storehouse, enters the Wireless LAN testing flow process.
S212 differentiates the wireless encryption pattern.
The wireless encryption pattern may be WEP (Wired Equivalent Privacy, Wired Equivalent Privacy), WPA (Wi-Fi Protected Access, Wi-Fi Protected Access), WPA2 and a kind of in the encryption mode (None) not.
In the present embodiment, be to judge according to the parameter value of " WorkMode ".Please in the lump referring to Fig. 4, particularly, S212 comprises the following steps:
S2121 judges whether " WorkMode " parameter is legal, namely whether represents a kind of among WEP, WPA, WPA2, the None.If legal, then enter step S2122; Otherwise report is unusual, and interrupt test.
S2122, " WorkMode " parameter value according to different generates different TR098 parameters." WorkMode " parameter has following several possibility, and the different TR098 parameter of correspondence mainly comprises the B parameter eaconType that shows current encryption mode respectively.
1. " if None ", then BeaconType=None; It is invalid to become ginseng; The PC wireless link parameter is authentication=open, encryption=none.
2. " if WEP ", then BeaconType=Basic.
3. " if WPA ", then BeaconType=WPA.
4. " if WPA2 ", then BeaconType=11i.
After among the S2122 BeaconType assignment being finished, order execution in step S213.
S213 to the use-case parameter bag of recombinating, generates the parameter configuration tabulation.Particularly, comprise the following steps:
S2131 judges that whether the args parameter is empty, if, execution in step S2132 then, otherwise execution in step S214.The args parameter is a kind of peculiar parameter of TCL language, belongs to become ginseng, and it just exists with real ginseng when needing, and just there be not (or claiming that the args parameter is for empty) in it when not required.Under args is empty situation, have only a kind of may, namely the wireless encryption pattern is None pattern (wireless not encryption mode).
S2132 according to the difference of " WorkMode " parameter, is saved in the args parameter value respectively in WLAN_Values_Path, USB_WLAN_Connect_Values and three tabulations of Key_Values after conversion.
Wherein WLAN_Values_Path is be used to the tabulation that the configuration parameter that is handed down to gateway is provided, USB_WLAN_Connect_Values is the configuration file of the USB wireless network card that need generate when calling wireless connections, Key_Values is cipher key list, has preserved cipher key index number and key.
S214 by the access control service, calls a Lib storehouse, and according to the wireless encryption mode parameter configuration tabulation is handed down to gateway.Particularly, comprise the following steps:
S2141, by the access control service, the remote procedure calling (PRC) method SetParameterValues that calls in the Lib storehouse issues the WLAN_Values_Path tabulation to gateway.
S2142 judges whether successfully calling among the S2141, if success then enters step S2143; Otherwise report is unusual, and interrupt test.
S2143 judges that whether the wireless encryption pattern is " None " pattern, if then enter step S221, otherwise enters S2144.
S2144, by the access control service, remote procedure call (RPC) the method SetParameterValues that calls in the Lib storehouse issues the Key_Values tabulation to gateway.During the None pattern, need not to use the Key_Values tabulation, also need not be handed down to gateway; During the WEP pattern, need issue cipher key index number and key in the Key_Values tabulation; Only issue key when WPA and WPA2 pattern and need not issue cipher key index number.
S2145 judges whether call success among the S2144, if success then enter step S221, otherwise report is unusual, and interrupt test.
S221, according to parameter configuration tabulation enable and configurating terminal on wireless network card, carry out wireless connections.Please in the lump referring to Fig. 5, particularly, comprise the following steps:
S2211 calls the ATTWlan::Connect interface in the Lib storehouse, according to USB_WLAN_Connect_Values tabulation enable and configurating terminal (for example PC) on wireless network card, carry out wireless connections.
Whether S2212 calls success among the determining step S2211, if success then enter step S231 otherwise enters step S251.
S231, the address that the polling of radio card obtains.Particularly, comprise the following steps:
S2311 calls the remote procedure calling (PRC) method GetParameterValues in the Lib storehouse, the address that the polling of radio card obtains.
Whether S2312 calls success among the determining step S2311, if the success would enter step S2313; Otherwise report is unusual, and interrupt test.
S2313 judges whether the address that wireless network card obtains is not empty, if then enter step S232, otherwise enters step S252.
S232 issues the Ping Diagnostic parameters.Particularly, comprise the following steps:
S2321, the remote procedure calling (PRC) method SetParameterValues that calls in the Lib storehouse issues the Ping Diagnostic parameters to gateway.
S2322 judges and calls whether success among the S2321, if success then enter step S233; Otherwise report is unusual, and interrupt test.
S233 obtains the Ping diagnostic test results.Particularly, comprise the following steps:
S2331 calls the remote procedure calling (PRC) method GetParameterValues in the Lib storehouse, inquiry Ping diagnostic result.
S2332 judges and calls whether success among the S2331, if success then enter step S2333; Otherwise report is unusual, and interrupt test.
S2333 judges whether the Ping diagnostic result is identical with expected result.In the present embodiment, the Ping number of success is as long as be judged to be identical with expected result greater than 0.If then enter step S241; Otherwise report failure, and interrupt test.
S241 closes service set.Call remote procedure calling (PRC) method SetParameterValues in the Lib storehouse close service set (Service Set Identifier, SSID).
S242, enable according to parameter configuration tabulation again and configurating terminal on wireless network card, carry out wireless connections to carry out the fault-tolerant test.Particularly, comprise the following steps:
S2421, the ATTWlan::Connect that calls again in the Lib storehouse connects, according to USB_WLAN_Connect_Values tabulation enable and configurating terminal on wireless network card, carry out wireless connections (S2211 is identical with step).
Successfully whether whether S2422 judge and to call among the S241, and call among the S2421 and fail.In S241, call under the situation of malloc failure malloc among success, the S2421 and report successfully, and finish this testing process; Otherwise report failure, and interrupt test.
In a preferred embodiment, step S241 and S242 test after closing SSID again, and purpose is to avoid occurring the problem that still can insert after SSID closes successfully, is a kind of way of fault-tolerant.Understandable, also can omit step S241 and S242 in other embodiments, behind execution in step S233, according to Ping diagnostic test results analytical test result, finish the wireless test flow process.
S251 adopts the method retry of S2211 to connect three times, if not successful connection then report failure as yet after three times, and interrupt test; Otherwise enter step S231.
S252 adopts the method retry of S2311 to obtain the address three times that wireless network card obtains, if do not obtain success as yet after three times then report failure, and interrupt test; Otherwise enter step S232.
Fig. 6 is that the method for testing of gateway among the embodiment is used for service quality (Quality of Service, QoS) flow chart during functional test comprises the following steps:
S30 calls a Lib storehouse, and gateway is created wide area network (WAN) operation.Please in the lump referring to Fig. 7, S30 specifically comprises step S301 to S304.
S301 obtains parameter preset.The WAN that comprises gateway connects parameter, QoS parameter, the stream parameter of performance evaluation instrument etc.
S302 need to judge whether newly-built wide area network to connect.If existed available wide area network to connect, then do not need newly-built wide area network to connect, enter step S310; Otherwise execution in step S303.
S303 calls a Lib storehouse, and newly-built wide area network connects.Call the TBSWAN::Ethernet::StaticWANSetUp function in the Lib storehouse, gateway is carried out newly-built WAN attended operation.
Successfully whether S304 judge and to call among the S303.If success then enters step S310, otherwise report is unusual, and interrupt test.
S310 by the access control service, calls a Lib storehouse, and gateway is carried out the QoS parameter configuration.
Call the TBSQoS::ACS::SetUp function configuration QoS rule in the Lib storehouse, comprise and call the newly-built regular example of ATP::ACS AddObject function, and the ATP::ACSSetParameterValues function that calls in the Lib storehouse is given gateway with the qos parameter configuration distributing.
After step S310 finishes, call the Test::Qos::TestMode function in the Lib storehouse, connect test and service quality function checking by the performance analyzer.In the present embodiment, the SmartBits that the performance evaluation instrument adopts Spirent Communications to produce also can adopt other testing equipment that can realize similar functions to replace in other embodiments.Call the Test::Qos::TestMode function in the Lib storehouse, the step that connects test and service quality function checking by the performance analyzer specifically comprises:
S321, the connection performance analysis instrument.Call the Test::ConfigSmb::ConnectSmb function connection performance analysis instrument in the Lib storehouse.
S322, configuration performance evaluation instrument.Call the Test::ConfigSmb::SetPortGroupAddr function configuration performance evaluation instrument in the Lib storehouse.
S331 carries out the service quality function test first time by the performance analyzer.
Calling the Test::ConfigSmb::TrigSetAndGetSample function earlier gives out a contract for a project and packet capturing, calculate the speed of every stream then by the performance analyzer, call the sampling of Test::Qos::TestResult function calculation and obtain service quality function test result for the first time, call the connection that the Test::ConfigSmb::UnLinkSmartbit function disconnects the performance evaluation instrument again.
S332 preserves service quality function test result (being whether test result is consistent with the result of expectation) for the first time.
S341 calls a Lib storehouse, forbidding QoS rule.Call the ATP::ACSSetParameterValues function in the Lib storehouse, gateway is forbidden the QoS regular operation.
S342 carries out the service quality function test second time by the performance analyzer.Basic procedure is exactly that flow process with S321, S322, S331 comes again.
In the service quality function method of testing of above gateway, and then all functions of calling in the Lib storehouse of relating to can be judged and call whether success, if call success then order carry out next step, otherwise report is unusual and interrupt test.
S343 preserves service quality function test result (being whether test result is consistent with the result of expectation) for the second time.
S344, in conjunction with service quality function test result for the first time and for the second time the service quality function test result judge whether service quality function normal.Only, just report successfully, and finish this testing process all under the situation consistent with the result of expectation twice test result; Otherwise report failure, and interrupt test.
Carrying out service quality function test for the second time is a kind of way of fault-tolerant.Understandable, also can omit step S342 to S344 in other embodiments, in the execution in step S341 post analysis service quality function test result first time, finish the service quality function testing process.
In a preferred embodiment, also comprise the TBSQoS::ACS::ClearValues function that calls in the Lib storehouse between step S343 and the S344, gateway is removed the step of QoS regular operation, avoid next testing process is impacted.
Fig. 8 is the flow chart of the method for testing of gateway among the embodiment when being used for the firewall functionality test, comprises the following steps:
S40 calls a Lib storehouse, and gateway is created wide area network (WAN) operation.Please in the lump referring to Fig. 9, S40 specifically comprises step S401 to S404.
S401 obtains parameter preset.The WAN that comprises gateway connects parameter, fire compartment wall parameter, the stream parameter of performance evaluation instrument etc.
S402 need to judge whether newly-built wide area network to connect.If existed available wide area network to connect, then do not need newly-built wide area network to connect, enter step S410; Otherwise execution in step S403.
S403 calls a Lib storehouse, and newly-built wide area network connects.Call the TBSWAN::Ethernet::StaticWANSetUp function in the Lib storehouse, gateway is carried out newly-built WAN attended operation.
Successfully whether S404 judge and to call among the S403.If success then enters step 410, otherwise report is unusual, and interrupt test.
S410 by the access control service, calls a Lib storehouse, and gateway is carried out the fire compartment wall parameter configuration.
Call the TBSFilter::ACS::SetUp function configuring firewalls rule in the Lib storehouse, comprise and call the newly-built regular example of ATP::ACS AddObject function, and the ATP::ACSSetParameterValues function that calls in the Lib storehouse is handed down to gateway with the fire compartment wall parameter configuration.
After step S410 finishes, call the Test::Filter::Result function in the Lib storehouse, connect test and firewall functionality checking by the performance analyzer.In the present embodiment, the SmartBits that the performance evaluation instrument adopts Spirent Communications to produce also can adopt other testing equipment that can realize similar functions to replace in other embodiments.Call the Test::Filter::Result function in the Lib storehouse, the step that connects test and firewall functionality checking by the performance analyzer specifically comprises:
S421, the connection performance analysis instrument.Call the Test::ConfigSmb::ConnectSmb function connection performance analysis instrument in the Lib storehouse.
S422, configuration performance evaluation instrument.Call the Test::ConfigSmb::SetPortGroupAddr function configuration performance evaluation instrument in the Lib storehouse.
S431 carries out the firewall functionality test first time by the performance analyzer.
Calling the Test::ConfigSmb::StreamSetUp function gives out a contract for a project, and call the packet capturing of Test::ConfigSmb::CaptureRecvPkg function, calling the Test::ConfigSmb::AnalysePkg function then analyzes the packet of arresting by the performance analyzer, obtain firewall functionality test result for the first time, call the connection that the Test::ConfigSmb::UnLinkSmartbit function disconnects the performance evaluation instrument again.
S432 preserves firewall functionality test result (being whether test result is consistent with the result of expectation) for the first time.
S441 calls a Lib storehouse, removes firewall rule.Call the TBSFilter::ACS::ClearRules function in the Lib storehouse, gateway is forbidden the firewall rule operation.
S442 carries out the firewall functionality test second time by the performance analyzer.Basic procedure is exactly that flow process with S421, S422, S431 comes again.
In the firewall functionality method of testing of above gateway, and then all functions of calling in the Lib storehouse of relating to can be judged and call whether success, if call success then order carry out next step, otherwise report is unusual and interrupt test.
S443 preserves firewall functionality test result (being whether test result is consistent with the result of expectation) for the second time.
S444, in conjunction with firewall functionality test result for the first time and for the second time the firewall functionality test result judge whether firewall functionality normal.Only, just report successfully, and finish this testing process all under the situation consistent with the result of expectation twice test result; Otherwise report failure, and interrupt test.
Carrying out firewall functionality test for the second time is a kind of way of fault-tolerant.Understandable, also can omit step S442 to S444 in other embodiments, in the execution in step S441 post analysis firewall functionality test result first time, finish the firewall functionality testing process.
In a preferred embodiment, also comprise the TBSFilter::ACS::SetFireWallLevelLow function that calls in the Lib storehouse between step S443 and the S444, to the gateway step of fire compartment wall grade operation of resetting, avoid next testing process is impacted.
The method of testing of above-mentioned gateway, based on remote procedure call (RPC) method call, by calling a Lib storehouse, gateway is carried out the Automatic parameter configuration, the interface that provides by testing equipment in the testing equipment Lib storehouse carries out automation configuration, the test of each parameter to testing equipment simultaneously.The tester only need select test case, can finish configuration to parameter automatically by system, has improved the convenience that uses.Because the method for testing of above-mentioned gateway simulation access control service (ACS) operation is configured gateway, the node of using in the functional module that all test cases cover is all by calling repeatedly, support the calling of various RPC method of access control service so guaranteed on the one hand gateway, also verified the correctness of node path on the other hand.Especially node path is very clear and definite in standard.Solved in traditional gateway method of testing because node various, and the nuance of various codes and standards, long-range configurable aptitude tests dynamics is not enough when causing testing, or causes the problem of carelessness test leakage easily.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (10)

1. the method for testing of a gateway comprises the following steps:
Step 1 by the access control service, is called a Lib storehouse, and gateway is carried out parameter configuration;
Step 2 is called a described Lib storehouse, and testing equipment is carried out parameter configuration;
Step 3 is called testing equipment Lib storehouse, by described testing equipment described gateway is tested.
2. the method for testing of gateway according to claim 1 is characterized in that, the method for testing of described gateway is the radio test method of gateway, and described testing equipment comprises wireless network card;
Described step 1 comprises: to the use-case parameter bag of recombinating, generate the parameter configuration tabulation; By described access control service, call a described Lib storehouse, described parameter configuration tabulation is handed down to described gateway, carry out parameter configuration;
Described step 2 comprises: call a described Lib storehouse, according to described parameter configuration tabulation enable and configurating terminal on described wireless network card, carry out wireless connections;
Whether described step 3 comprises: to carrying out Ping Test between described gateway and the described terminal, successful with the test wireless connections;
The radio test method of described gateway also comprise close service set after, call a described Lib storehouse again, the described wireless network card on the described terminal is enabled and is disposed in tabulation according to described parameter configuration, carries out wireless connections to carry out the step of fault-tolerant test.
3. the method for testing of gateway according to claim 2, it is characterized in that, described step 1 comprises the step of differentiating the wireless encryption pattern, described parameter configuration tabulation comprises WLAN_Values_Path, WLAN_Values_Path at least in three tabulations of USB_WLAN_Connect_Values and Key_Values and two tabulations of USB_WLAN_Connect_Values, wherein WLAN_Values_Path is be used to the tabulation that the configuration parameter that is handed down to described gateway is provided, USB_WLAN_Connect_Values is the configuration file of the USB wireless network card that need generate when calling wireless connections, and Key_Values is cipher key list; The described step that the tabulation of described parameter configuration is handed down to described gateway comprises the WLAN_Values_Path tabulation is handed down to gateway, and if described wireless encryption pattern is a kind of among WEP, WPA, the WPA2, the step that described parameter configuration tabulation is handed down to described gateway also comprises the Key_Values tabulation is handed down to described gateway;
Described step 2 be according to described USB_WLAN_Connect_Values tabulation enable and configurating terminal on described wireless network card;
Described step 3 may further comprise the steps: inquire about the address that described wireless network card obtains, described gateway is issued the Ping Diagnostic parameters, obtain the Ping diagnostic test results.
4. the method for testing of gateway according to claim 1, it is characterized in that, the method of testing of described gateway is the service quality function method of testing of gateway, and described testing equipment comprises the performance evaluation instrument, and described step 1 is that described gateway is carried out the QoS parameter configuration.
5. the method for testing of gateway according to claim 4 is characterized in that, also comprises before the described step 1 and calls a described Lib storehouse, described gateway is created the step of wide area network operation.
6. the method for testing of gateway according to claim 4 is characterized in that, described step 3 comprises by described performance evaluation instrument service for checking credentials quality function normal step whether, comprising:
Carry out the service quality function test first time: give out a contract for a project and packet capturing, the speed by every stream of described performance evaluation instrument calculating obtains service quality function test result for the first time, disconnects the connection of described performance evaluation instrument, the forbidding rules for quality of service;
Carry out the service quality function test second time: give out a contract for a project and packet capturing, the speed by every stream of described performance evaluation instrument calculating obtains service quality function test result for the second time, disconnects the connection of described performance evaluation instrument;
Judge in conjunction with service quality function test result for the first time and for the second time whether service quality function is normal.
7. the method for testing of gateway according to claim 6 is characterized in that, described step of carrying out service quality function test for the second time also comprises afterwards calls a described Lib storehouse, removes the step of described rules for quality of service.
8. the method for testing of gateway according to claim 1, it is characterized in that, the method of testing of described gateway is the firewall functionality method of testing of gateway, and described testing equipment comprises the performance evaluation instrument, and described step 1 is that described gateway is carried out the fire compartment wall parameter configuration.
9. the method for testing of gateway according to claim 8 is characterized in that, also comprises before the described step 1 and calls a described Lib storehouse, described gateway is created the step of wide area network operation.
10. the method for testing of gateway according to claim 8 is characterized in that, whether normally described step 3 comprises by described performance evaluation instrument verifies firewall functionality step, comprising:
Carry out the firewall functionality test first time: give out a contract for a project and packet capturing, by described performance evaluation instrument the packet of arresting is analyzed, obtain firewall functionality test result for the first time, disconnect the connection of described performance evaluation instrument, remove firewall rule;
Carry out the service quality function test second time: give out a contract for a project and packet capturing, by described performance evaluation instrument the packet of arresting is analyzed, obtain firewall functionality test result for the second time, disconnect the connection of described performance evaluation instrument;
Judge in conjunction with firewall functionality test result for the first time and for the second time whether firewall functionality is normal.
CN201210013829.6A 2012-01-17 2012-01-17 The method of testing of gateway Active CN103209101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210013829.6A CN103209101B (en) 2012-01-17 2012-01-17 The method of testing of gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210013829.6A CN103209101B (en) 2012-01-17 2012-01-17 The method of testing of gateway

Publications (2)

Publication Number Publication Date
CN103209101A true CN103209101A (en) 2013-07-17
CN103209101B CN103209101B (en) 2016-12-14

Family

ID=48756193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210013829.6A Active CN103209101B (en) 2012-01-17 2012-01-17 The method of testing of gateway

Country Status (1)

Country Link
CN (1) CN103209101B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929753A (en) * 2014-04-30 2014-07-16 广东欧珀移动通信有限公司 Method and system for automatically testing WIFI compatibility of mobile phone
CN104539504A (en) * 2014-12-31 2015-04-22 北京海尔广科数字技术有限公司 Event triggering method and device
CN104639400A (en) * 2015-02-13 2015-05-20 盛科网络(苏州)有限公司 Automatic detection method and device of network packet processing chip
CN105099817A (en) * 2015-07-14 2015-11-25 上海斐讯数据通信技术有限公司 Remote management automation test method
CN107018045A (en) * 2017-06-02 2017-08-04 郑州云海信息技术有限公司 Distributed memory system method of testing and system based on RPC
CN108718261A (en) * 2018-06-08 2018-10-30 北京飞音时代技术有限公司 Gateway automated testing method and system
CN110601915A (en) * 2019-08-12 2019-12-20 深圳市同维通信技术有限公司 Method and device for testing gateway device
CN110830330A (en) * 2019-12-06 2020-02-21 浙江中控技术股份有限公司 Firewall testing method, device and system
CN111404778A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Gateway testing method and device and computer readable storage medium
CN111565131A (en) * 2020-04-22 2020-08-21 烽火通信科技股份有限公司 Speed measuring method and system for household gateway CPU

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790957A (en) * 2004-12-14 2006-06-21 华为技术有限公司 Apparatus testing method
CN1859160A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Method and its system for managing user stationed equipment configuration
CN101789889A (en) * 2010-01-14 2010-07-28 瑞斯康达科技发展股份有限公司 Method and system for automatic testing communication equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790957A (en) * 2004-12-14 2006-06-21 华为技术有限公司 Apparatus testing method
CN1859160A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Method and its system for managing user stationed equipment configuration
CN101789889A (en) * 2010-01-14 2010-07-28 瑞斯康达科技发展股份有限公司 Method and system for automatic testing communication equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929753A (en) * 2014-04-30 2014-07-16 广东欧珀移动通信有限公司 Method and system for automatically testing WIFI compatibility of mobile phone
CN103929753B (en) * 2014-04-30 2017-08-01 广东欧珀移动通信有限公司 A kind of method and system of automatic test mobile phone WIFI compatibility
CN104539504A (en) * 2014-12-31 2015-04-22 北京海尔广科数字技术有限公司 Event triggering method and device
CN104539504B (en) * 2014-12-31 2019-06-04 海尔优家智能科技(北京)有限公司 A kind of event triggering method and device
CN104639400A (en) * 2015-02-13 2015-05-20 盛科网络(苏州)有限公司 Automatic detection method and device of network packet processing chip
CN105099817A (en) * 2015-07-14 2015-11-25 上海斐讯数据通信技术有限公司 Remote management automation test method
CN107018045A (en) * 2017-06-02 2017-08-04 郑州云海信息技术有限公司 Distributed memory system method of testing and system based on RPC
CN108718261A (en) * 2018-06-08 2018-10-30 北京飞音时代技术有限公司 Gateway automated testing method and system
CN110601915A (en) * 2019-08-12 2019-12-20 深圳市同维通信技术有限公司 Method and device for testing gateway device
CN110830330A (en) * 2019-12-06 2020-02-21 浙江中控技术股份有限公司 Firewall testing method, device and system
CN111404778A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Gateway testing method and device and computer readable storage medium
CN111565131A (en) * 2020-04-22 2020-08-21 烽火通信科技股份有限公司 Speed measuring method and system for household gateway CPU

Also Published As

Publication number Publication date
CN103209101B (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN103209101A (en) Gateway testing method
EP3048759B1 (en) Fault diagnosis method, device and system
CN102421112B (en) Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
US20080039070A1 (en) Remote mobile testing probe
CN109314653A (en) The client device and method of the associated predefined parameter collection of radio for analyzing with being coupled to WLAN
US20090036115A1 (en) System and method for testing gsm modules
CN102387044A (en) Method for testing communication network
CN106411637A (en) Internet-of-things device scenario testing method
CN101945017A (en) Testing platform for train-ground transmission protocol in train operation control system and construction method thereof
CN106559802A (en) A kind of radio roaming method of testing and system
CN102905256B (en) Security assessment method for wireless local area network card based on penetration test
Serrador et al. A performance measurement platform for C-ITS over 5G
CN113285849B (en) Equipment testing method and device based on micro-service
CN103648110A (en) Method for testing TETRA digital trunked air interface protocol and system thereof
CN107124195B (en) A kind of car-mounted terminal communication performance detection method and device
CN105117344A (en) Interface integration test method and system based on PB
CN102448084B (en) Mobile terminal control method based on radio frequency technology
CN107241461B (en) MAC Address acquisition methods, gateway, network authentication apparatus and network system
CN110149641B (en) Analog wireless connection test method
CN104320806B (en) Exceptional signaling flow simulation method
CN103781099B (en) Monitoring signaling platform and terminal collaboration carry out the method and system of communication quality monitoring
US20150382213A1 (en) Mobile communication terminal test device and mobile communication terminal test method
CN102869028B (en) A kind of method of confirming GSM base station simulator
Díaz Zayas et al. An end-to-end automation framework for mobile network testbeds
Lobato et al. General framework for testing using formal languages

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