Summary of the invention
The shortcoming of prior art in view of the above, problems such as the object of the present invention is to provide a kind of wireless Anti-Interference Automatic Test Equipment and method, the testing procedure that existing manual test exists is loaded down with trivial details, holding time is many for solving, increase product cost, research and development of products the time long and additional difficulty of test is large.For achieving the above object and other relevant objects, the invention provides a kind of anti-interference test system of radio reception device, comprising:
There is the line termination unit of WAN mouth, be connected on same switch by described WAN mouth and multiple radio reception devices to be measured, make described line termination unit and multiple described radio reception device be connected to form a local area network (LAN);
Wireless terminal device, for automatically sequentially performing the test script defaulted in described wireless terminal device to radio reception device described in each, to obtain the test data of the described radio reception device of correspondence with multiple described radio reception device wireless connections to be measured.
Alternatively, the multiple described radio reception device wireless connections that described wireless terminal device is automatic and to be measured are by this realization of a connection pin; Described connection script comprises beats stream script and PING bag detection script, described stream script of beating is connected corresponding described radio reception device according to the service set of described radio reception device with password, whether the connection that described PING bag detection script detects described wireless terminal device and described radio reception device is successful, if success, performs described test script, if unsuccessful, terminate to test and return error message.
Alternatively, multiple radio reception devices to be measured are provided with corresponding service set, and corresponding described service set is provided with the password of coupling, and the IP address of described radio reception device is in the same network segment, and WAN port address is also in the same network segment.
Alternatively, described test script comprises testing software bag, script file catalogue, test result memory module and test data configuration module, the order that described script file catalogue comprises test script performs entry, described testing software bag is for creating tested object, described test data configuration module is right for setting up test, and to be described test perform script to interpolation IP address and definition, described test result memory module is for storing by described test being tested in described tested object and the test result that obtains adding to.
Alternatively, for described test comprises the IP address of wireless terminal device and line termination unit to adding IP address.
The anti-interference method of testing of a kind of radio reception device of the present invention, comprising:
Multiple radio reception device to be measured and line termination unit are connected on same switch, form local area network (LAN);
Wireless terminal device is sequentially connected to multiple described radio reception device automatically, and whether detect connection successful;
The test script defaulted in described wireless terminal device is performed, the test data of the corresponding described radio reception device of complete rear formation after successful connection.
Alternatively, wireless terminal device is connected and a described radio reception device, and whether detection connection successfully comprises:
Service set and the password of corresponding described radio reception device is inputted on described wireless terminal device;
Detected the connection of described wireless terminal and described radio reception device by PING bag, connect unsuccessful if described PING wraps detection, then terminate test and return error message, if described PING wraps detect successful connection, perform described test script.
Alternatively, also comprise:
Be located in the same network segment by the IP address of described radio reception device, WAN port address is also located in the same network segment, and zero-address conflict.
Alternatively, perform the test script defaulted in described wireless terminal device to comprise:
Load testing software bag, create tested object;
Set up test right, and be that described test performs script to interpolation IP address and definition;
Described test is tested adding in described tested object;
Remain in assigned catalogue after obtaining test result, and discharge described tested object and described test is right.
Alternatively, for described test comprises the IP address of described wireless terminal device and described line termination unit to adding IP address.
As mentioned above, the anti-interference test system of radio reception device of the present invention and method, have following beneficial effect:
By building fixing test system environment, write automatized script, wireless terminal PC is connected to wireless aps automatically, and
Stream script is played and ping bag detects the test one by one that achieves to the same channel of multiple AP under interference environment by calling, and export corresponding test data, the comparison result of the antijamming capability of tested wireless aps under same channel is judged according to data statistics result.The invention solves the deficiency of existing method of testing, decrease the testing time and improve operating efficiency, testing engineering is an apprentice of in test process and frees, realize output and the result of determination of automatic test and test result.Tool has the following advantages: test is simple: tester only needs pre-configured a lot of wireless aps to be measured; Reliability is high: unavoidably occur some errors in manual configuration, but would not have modified after automatized script Success in Experiment, realizes multiple wireless aps to be measured, uses fixing script, be convenient to investigation problem; Shorten the testing time: the time can removing configuration script originally from, difficulty of test reduces: tester does not need the configuration being familiar with IxChariot, only needs hit testing script test.Coverage rate is high: can simultaneously for the test of multiple wireless aps.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The invention provides anti-interference test system and the method for a kind of wireless aps (access device), also other wireless relevant products are applicable to, by building fixing test system environment, write automatized script, wireless terminal is connected to wireless aps automatically, and play stream script and PING bag detects the test one by one that achieves to the same channel of multiple wireless aps under interference environment by calling, and export corresponding test data, the comparison result of the antijamming capability of tested wireless aps under same channel is judged according to data statistics result.The invention solves the deficiency of existing method of testing, decrease the testing time and improve operating efficiency, testing engineering is an apprentice of in test process and frees, realize output and the result of determination of automatic test and test result.Below the anti-interference test system of radio reception device of the present invention and method are described.
Consult Fig. 1, show the topological diagram of the anti-interference test system of radio reception device of the present invention.Below in conjunction with Fig. 1, the anti-interference test system of radio reception device of the present invention is described.
As shown in Figure 1, the anti-interference test system of radio reception device of the present invention includes line terminal equipment 12, wireless terminal device 13, multiple radio reception device to be measured (i.e. radio reception device 21, radio reception device 22, radio reception device 23 and radio reception device 2n etc.), line termination unit 12 has WAN mouth, be preferably desktop computer, line termination unit 12 and multiple radio reception devices to be measured are connected on switch 11, make line termination unit 12 and multiple radio reception device be connected to form a local area network (LAN).
Wireless terminal device 13 for automatically sequentially connecting with multiple radio reception devices 21,22,23,2n to be measured and each radio reception device performed to the test script defaulted in wireless terminal device 13, to obtain the test data of corresponding radio reception device.This wireless terminal device 13 is preferably wireless notepad.
Wireless terminal device 13 realizes by being connected script with multiple radio reception device wireless connections to be measured automatically, this connection script comprises beats stream script and PING bag detection script, this dozen of stream scripts are connected corresponding radio reception device according to the service set of the radio reception device be input in wireless terminal device 13 with password, whether this PING bag detection script detects wireless terminal device 13 successful with the connection of radio reception device, if success, perform test script and test, if unsuccessful, terminate to test and return error message.Wherein each radio reception device is configured with corresponding service set (SSID, Service SetIdentifier) and password, a WLAN (wireless local area network) can be divided into several sub-network needing different identity to verify by SSID technology, each sub-network needs independently authentication, only have and just can enter corresponding sub-network by the user of authentication, prevent undelegated user from entering present networks.Therefore, the local area network (LAN) that wireless terminal device 13 consists of in radio reception device, line termination unit 12 and switch 11 radio reception device 21 wireless connections, wireless terminal device 13, by performing the TCP flow amount of the wireless line termination unit 12 to WAN mouth of test script test, exports the test data of the correspondence of this radio reception device 21.Wireless terminal device 13 sequentially connects radio reception device 22 again, continues to perform test script and obtains test data, till all radio reception devices test into.
Corresponding configuration is done to multiple radio reception devices to be measured, configures corresponding service set, the password of the coupling of corresponding with service set identifier, identical channel, identical frequency range, the same network segment is located in the IP address of wireless device, WAN port address is in the same network segment, there is no address conflict.
Test script comprises testing software bag, script file catalogue, test result memory module and test data configuration module, the order that script file catalogue comprises test script performs entry, test script is automatically performed according to script file catalogue, testing software bag is for creating tested object, test data configuration module is right for setting up test, and performs script for test team adds IP address with definition, and the IP address of interpolation comprises the IP address of wireless terminal device 13 and line termination unit 12.Test result memory module for storing by test being tested in tested object and the test result that obtains adding to, and is checked for user.Perform script according to script file directory order, comprise and first load testing software bag, create a new tested object, right by test data configuration module foundation test again, add IP address to test team, this IP address is the IP address of wireless terminal device 13 and line termination unit 12, give test to definition test execution script, this execution script is for performing the TCP flow amount of wireless terminal device 13 to line termination unit 12, comprise and play the stream setting of time of implementation and the setting of testing time, test team is added in tested object, testing results, result is read after end to be tested, result is saved in assigned catalogue, and releasing resource is follow-uply to re-establish tested object and test to test another radio reception device.
Illustrate with wireless product FIR302B below:
Precondition, does corresponding configuration to multiple wireless aps to be measured, makes it comprise the key element of terminal equipment connection, the IP address of corresponding wireless SSID, password, same channel, identical frequency range, wireless aps, and the WAN port address of wireless aps.When multiple wireless aps is tested simultaneously, the address that must arrange wireless aps is the same network segment, and WAN port address is also the same network segment, there is no address conflict.Build test environment, make multiple wireless aps be among identical environment, wireless terminal PC1 (band wireless network card), wireless router AP1 to be measured, AP2, AP3 ... APn, switch one, netting twine is some, WAN mouth PC2.WAN mouth and the PC2 of every platform wireless aps to be measured are connected to switch by netting twine, and WAN and the PC2 of Devices to test is in same local area network (LAN).
Then by the SSID of wireless aps to be measured (SSID1, SSID2, SSID3 ... SSIDn) add on wireless terminal PC1, so that the wireless terminal PC1 automatic test course Chinese Academy of Sciences is connected to these SSID automatically.Wireless terminal PC1 edits automatized script SSID1.tcl, the SSID2.tcl of each wireless aps, SSID3.tcl ..., SSIDn.tcl so that wireless terminal PC1 tests one by one to wireless aps.Automatized script comprises to be beaten stream script, PING bag detection script, test script and prints script, play stream script according to the SSID of each wireless aps of adding on wireless terminal PC1, by wireless terminal PC1 wireless connections in the wireless aps of correspondence, after connection, whether successfully detection script is reported to detect connection by PING, if success, perform test script, if unsuccessful, terminate to test and return error message, this error message is connection failure.Test script comprises IxChariot installation file, the catalogue of script file, the storage of test result, the configuration of test data, and wherein Chariot is the application layer performance testing software IxChariot of American I XIA company, is a testing tool.The implementation of this test script is: (1), loading Chariot software kit; (2) tested object that, establishment one is new; (3), at foundation test pair; (4) add IP address (the IP address as wireless terminal PC1, PC2), to test pair; (5) define test script, to test pair; (6), test pair is added in newly-built tested object; (7), testing results; (8), result is read after end to be tested; (9) test result, is preserved to assigned catalogue; (10), releasing resource.Final purpose is that wireless aps to be measured is carried out automation flow rate test under equal disturbed condition, can the repeatedly circulation of pair number define program (3) ~ (6) step according to actual needs, there is n circulation, be just equivalent in tested object, with the addition of n bar pair.After script end of run to be tested, perform printing script and test result is printed with the formation of Excel form, check for tester.Tester checks test data, only need check and arrange test data saving result under catalogue, if test crash, then can not output test data.
Wireless terminal device by wireless network card be automatically connected to respectively SSID1, SSID2, SSID3 ... SSIDn.Test script test wireless terminal device, to the flow NAT forwarding performance of line termination unit, obtains test result with this.
Below the anti-interference method of testing of radio reception device of the present invention is described.
The anti-interference method of testing of radio reception device of the present invention, comprising:
Multiple radio reception device to be measured and line termination unit are connected on same switch, form local area network (LAN);
Wireless terminal device is sequentially connected to multiple described radio reception device automatically, and whether detect connection successful;
The test script defaulted in wireless terminal device is performed, the test data of the corresponding radio reception device of complete rear formation after successful connection.
Consult Fig. 2, show the flow chart of the anti-interference method of testing of radio reception device of the present invention.Below in conjunction with Fig. 2, the anti-interference method of measuring of radio reception device of the present invention is described.
As shown in Figure 2, after radio reception device and limited terminal equipment being connected to a switch form local area network (LAN), perform step S101, wireless terminal device adds the SSID (service set) of radio reception device to be measured, can by wireless terminal device wireless connections on the local area network (LAN) of radio reception device by SSID.Then step S102 is performed, write perform beat flow script SSID1.tcl, SSID2.tcl ... write test script test, stream script is played by the SSID of radio reception device that adds and password editor, and then be sequentially connected on radio reception device by playing stream script, tested by test script test.Then step S103 is performed, wireless terminal device connect Devices to test AP1, AP2 ... APn, by the stream script of beating write, wireless terminal device is connected to radio reception device, by the wireless connections with radio reception device, wireless terminal device is connected on local area network (LAN).Then step S104 is performed, wireless terminal device performs PING bag and detects whether successful connection, if can PING always logical, then prove successful connection, perform step S105 after successful connection, connect unsuccessful, perform step S103 to connect radio reception device next to be measured.Perform step S105, perform test script test, perform the TCP flow foot-measuring basis of wireless terminal look equipment to the line terminal equipment had in local area network (LAN), include the setting of beating the stream time of implementation, the setting of testing time, then perform step S106 after complete, the SSID1.report that outputs test data, SSID2.report ..., SSIDn.report, checked for tester by the test data exported.Sequentially perform the test that step S103 to step S106 completes all radio reception devices to be measured, all test rear end.
Perform the test script defaulted in wireless terminal device to comprise the steps:
Load testing software bag, create tested object;
Set up test right, and be that described test performs script to interpolation IP address and definition, this IP address comprises the IP address of described wireless terminal device and described line termination unit;
Described test is tested adding in described tested object;
Remain in assigned catalogue after obtaining test result, and discharge described tested object and described test is right.
Corresponding configuration is done to multiple radio reception devices to be measured, configures corresponding service set, the password of the coupling of corresponding with service set identifier, identical channel, identical frequency range, the same network segment is located in the IP address of wireless device, WAN port address is in the same network segment, there is no address conflict.
Shown in composition graphs 1, test script comprises testing software bag, script file catalogue, test result memory module and test data configuration module, the order that script file catalogue comprises test script performs entry, test script is automatically performed according to script file catalogue, testing software bag is for creating tested object, test data configuration module is right for setting up test, and performing script for test team adds IP address and defines, the IP address of interpolation comprises the IP address of wireless terminal device 13 and line termination unit 12.Test result memory module for storing by test being tested in tested object and the test result that obtains adding to, and is checked for user.Perform script according to script file directory order, comprise and first load testing software bag, create a new tested object, right by test data configuration module foundation test again, add IP address to test team, this IP address is the IP address of wireless terminal device 13 and line termination unit 12, give test to definition test execution script, this execution script is for performing the TCP flow amount of wireless terminal device 13 to line termination unit 12, comprise and play the stream setting of time of implementation and the setting of testing time, test team is added in tested object, testing results, result is read after end to be tested, result is saved in assigned catalogue, and releasing resource is follow-uply to re-establish tested object and test to test another radio reception device.
In sum, the anti-interference test system of radio reception device of the present invention and method, be an apprentice of testing engineering in test process and free, and realizes output and the result of determination of automatic test and test result.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.