CN110134556B - System and method for testing compatibility of operating system of USB wireless network card - Google Patents

System and method for testing compatibility of operating system of USB wireless network card Download PDF

Info

Publication number
CN110134556B
CN110134556B CN201910408474.2A CN201910408474A CN110134556B CN 110134556 B CN110134556 B CN 110134556B CN 201910408474 A CN201910408474 A CN 201910408474A CN 110134556 B CN110134556 B CN 110134556B
Authority
CN
China
Prior art keywords
wireless
clients
test
wireless network
operating system
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.)
Active
Application number
CN201910408474.2A
Other languages
Chinese (zh)
Other versions
CN110134556A (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 Tenda Technology Co Ltd
Original Assignee
Shenzhen Tenda Technology 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 Tenda Technology Co Ltd filed Critical Shenzhen Tenda Technology Co Ltd
Priority to CN201910408474.2A priority Critical patent/CN110134556B/en
Publication of CN110134556A publication Critical patent/CN110134556A/en
Application granted granted Critical
Publication of CN110134556B publication Critical patent/CN110134556B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a system and a method for testing operating system compatibility of a USB wireless network card, and belongs to the field of wireless network card testing. The test system comprises a plurality of PC clients provided with different operating systems, switches provided with ports larger than the number of the PC clients, wireless network cards to be tested, the number of the wireless network cards to be tested is the same as that of the PC clients and the wireless router are respectively arranged on the different PC clients, the wireless router and the PC clients are respectively connected with interfaces of the switches in a wired mode, a test program is arranged on one PC client, the other PC clients are both servers and clients, and the servers can communicate with the clients. The beneficial effects of the invention are as follows: the test efficiency and the accuracy of the test result are greatly improved.

Description

System and method for testing compatibility of operating system of USB wireless network card
Technical Field
The present invention relates to a wireless network card testing technology, and in particular, to a system and a method for testing operating system compatibility of a USB wireless network card.
Background
In the prior art, the compatibility test of the operating system of the USB wireless network card is that the wireless network card is manually inserted on the USB interface of the PC end, then a management interface of an AP router is opened, the wireless name, the encryption mode, the wireless key and the wireless parameters of a wireless channel of the AP router are sequentially set, then the network card is sequentially connected with the wireless name of the AP router, and a gateway of an upper-level AP router is pinged to confirm whether the connection is successful or not. After one operating system is tested, the other operating system is replaced, and the operation is repeated until all the operating system compatibility tests are completed.
This method has the following drawbacks:
1. the parameters of the AP router are manually set on each operating system, the network card is connected with the wireless name of the AP router, and the gateway of the upper-level AP router is pinged, so that the basic operation needs 60 seconds each time. The test of each operating system requires traversing 26 wireless channels of a 2.4G frequency band and a 5G frequency band, the wireless operation modes comprise 5 operation modes of 11a, 11b, 11G, 11n and 11ac, the wireless bandwidth comprises 3 bandwidth modes of 20Mhz, 40Mhz and 80Mhz, the encryption modes comprise 12 encryption modes of 2.4G and 5G frequency bands, such as unencrypted, WEP encryption, WPA/TKIP encryption, WPA/AES encryption, WPA2/TKIP encryption and WPA2/AES encryption, and the wireless names and wireless keys respectively comprise letters, numbers, special characters, and the wireless names and the wireless keys of 2.4G and 5G frequency bands with different lengths. At least 54×60=3240s=54 minutes are required for testing each operating system, if the USB wireless network card needs to be tested and compatible with 10 different operating systems, the total time length of the wireless network card compatibility needs to be h=54×10=540 min approximately equal to 9 hours, the test item needs to be manually input for 9 hours, and the test method is tedious and high in input labor cost;
2. because the compatibility of one USB wireless network card operating system is tested manually and the compatibility of the other operating system is tested again, the test time difference exists, and the wireless interference conditions at different times are not completely the same, the test method has the problem of test environment with different external influence factors;
3. because each tester has the possibility of non-unification when setting test parameters and data, the risk of missing test is easily caused when the test parameters and data are not comprehensive.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a system and a method for testing the compatibility of an operating system of a USB wireless network card.
The invention relates to a test system for operating system compatibility of USB wireless network cards, which comprises a plurality of PC clients provided with different operating systems, switches provided with ports larger than the number of the PC clients, wireless network cards to be tested, the number of which is the same as that of the PC clients, and wireless routers, wherein the wireless routers and the PC clients are respectively connected with interfaces of the switches in a wired way, a test program is arranged on one PC client, one PC client is a server and a client at the same time, and other PC clients are clients, and the server can communicate with the clients.
According to the invention, the number of the PC clients is determined according to the number of operating system versions which are required to be compatible by product requirements, and the operating system version installed by each PC client is not repeated.
The invention further improves, the wireless network card is a USB wireless network card, which is respectively inserted into USB interfaces of PC clients with different operating system versions.
The invention also provides a test method of the test system based on the compatibility of the operating system of the USB wireless network card, which comprises the following steps:
s1: setting a server and a client;
s2: the PC client where the server is located acquires wireless parameters which can be set by a user in a wireless router management interface;
s3: after the PC client where the server is located acquires all the wireless parameters, judging and identifying each wireless parameter, and calling corresponding parameter data as input to automatically generate all automatic test cases;
s4: each automatic test case is operated in sequence, and test requests are sent to all clients;
s5: all clients are connected with wireless signals of an AP router in the same wireless environment, IP addresses of wireless network cards are obtained, whether the IP addresses can be ping-passed through a gateway of the AP router is judged to be used as a standard for test passing, test results are obtained, and then the test results are returned to a server;
s6: the server records the test results of each client in a test report.
The invention further improves, and further comprises the step S7: and judging whether all the automatic test cases are completely executed, if not, returning to the execution step S4 until all the automatic test cases are completely executed, and outputting a test report.
In step S4, the running of the automated test case is performed by first initializing the environment, that is, the PC client where the server is located sets the data corresponding to the AP router management interface parameter list in an automated interface manner, and then sends a test request to all the clients.
In step S2, the server calls the requests library function, i.e. the interface mode, through the selenium language to obtain all wireless parameters which can be set by the user in the management interface of the AP router.
In step S3, the server matches all the acquired wireless parameters with a regular expression to identify each wireless parameter, each wireless parameter has a corresponding test data dictionary, and invokes the corresponding test data dictionary to automatically generate all the automatic test cases.
The invention further improves, the wireless parameters which need to be identified and judged by the server comprise wireless channels, wireless working modes, wireless bandwidth, encryption modes, wireless names, wireless keys and wireless signal name hiding functions, the parameter data of the wireless channels comprise 26 wireless channels of 2.4G frequency bands and 5G frequency bands, the parameter data of the wireless working modes are 11a, 11b, 11G, 11n and 11ac, the parameter data of the wireless bandwidth are 20Mhz, 40Mhz and 80Mhz, the parameter data of the encryption modes need to comprise 12 encryption modes which do not encrypt in 2.4G and 5G frequency bands, WEP encryption, WPA/TKIP encryption, WPA/AES encryption, WPA2/TKIP encryption and WPA2/AES encryption, and the parameter data of the wireless names and the wireless keys need to traverse the wireless names and the wireless keys of the 2.4G and 5G frequency bands which respectively contain letters, numbers, special characters and different lengths.
Compared with the prior art, the invention has the beneficial effects that: the method has the advantages that the automatic test cases are formed by automatically acquiring the wireless setting parameters of the AP router and calling corresponding parameter data, when each automatic test case is executed, the server informs all clients to carry out compatibility test, the test completion is that the clients transmit test results back to the server, the test process is free of manual investment, the conventional mode that the test is needed to be carried out on each operating system by manpower is not required, the parameters and the data during the test are standardized, the purpose that the USB wireless network card is tested on each operating system version simultaneously under the same wireless environment can be realized, the possibility that the test environment changes due to the fact that the test time difference exists during the manual test can be reduced, the problem that the test is missed due to incomplete parameter and data test during the manual test of the tester is avoided, and the test efficiency and the accuracy of the test result are greatly improved.
Drawings
FIG. 1 is a schematic diagram of a system architecture of the present invention;
FIG. 2 is a flow chart of the method of the present invention.
Detailed Description
The invention will be described in further detail with reference to the drawings and examples.
As shown in FIG. 1, the test system of the invention comprises 10 USB wireless network cards to be tested, 1 12 standard gigabit switches, 10 PC clients with different operating system versions, 1 AP (wireless access point) router with 3x3 antennas and 11 gigabit network cables. 10 USB wireless network cards are respectively inserted into 10 PCs of different operating systems, PC clients of the 10 different operating systems are respectively connected to the 12-port standard gigabit switch through 10 gigabit network lines, and the LAN port of the AP router of the 3X3 antenna is also connected to the 12-port standard gigabit switch through 1 gigabit network line. An automation script is placed on each of the 10 different operating system versions of the PC client for automatically executing test work on the respective operating system. Among the 10 PC clients with different operating system versions, the PC1 client is used as a server and the socket clients simultaneously through socket programming, and the other 9 PC2-PC10 clients are only used as socket clients, so that the server can communicate with the 10 socket clients.
The number of PC clients in this example may be other, and according to the number of operating system versions to be compatible according to the product requirement and the requirement, the operating system version installed by each PC client is not repeated.
As shown in fig. 2, after the test system of the operating system compatibility of the USB wireless network card shown in fig. 1 is built, the test is performed by the test method of the operating system compatibility of the USB wireless network card based on the test system, which specifically comprises the following steps:
1. calling a socket library function through a selenium language to bind each IP address and port number into a socket, respectively packaging the socket into a server function and a client function, running the server function and the client function at the same time on a PC1 client to start a socket server and the client, running the client function only on other 9 PC2-PC10 clients to start the socket client, and all monitoring information, and waiting for other socket ports to send information;
2. the PC1 client side obtains all wireless parameters which can be set by a user in an AP router management interface in a way of calling a requests library function, namely an interface mode, through a selenium language;
3. the PC1 client identifies each wireless parameter through regular expression matching of all the acquired wireless parameters, each wireless parameter is provided with a corresponding test data dictionary, and the corresponding test data dictionary is called to automatically generate all automatic test cases;
4. each test case is operated in sequence, and when each test case is executed, environment initialization is firstly carried out, namely, a PC client side where a server is located calls a requests library function through a selenium language to set corresponding data in an AP router management interface wireless parameter list;
5. the server sends out instructions to all socket clients through socket communication, and the representatives start to test;
6. calling a CMD command netsh by all socket clients under the same wireless environment to connect wireless signals of an AP router through a selenium language, acquiring an IP address of a wireless network card, obtaining a test result by judging whether the IP address can ping a gateway of the AP router as a standard for passing the test, returning the test result to a server through socket communication, and recording the test result of each socket client in a test report by the server;
7. and (4) completing the execution of all the automatic test cases according to the method described in the step 4-6, and outputting a test report.
The method has the advantages that the wireless setting parameters of the AP router are automatically acquired and corresponding parameter data are called to form automatic test cases, when each automatic test case is executed, the server informs all socket clients to carry out compatibility test, test results are transmitted back to the server by the socket clients after the test is completed, the test process does not need to be manually input, the conventional mode that the test is needed to be carried out on each operating system by manpower is not required, parameters and data in the test are standardized, the purpose that the USB wireless network card is tested on each operating system version simultaneously in the same wireless environment can be achieved, the possibility that the test environment changes due to the fact that the test time difference exists in the manual test is reduced, the problem that the test is not comprehensive due to the fact that the parameters and the data are not uniform in the manual test of a tester is avoided, and the test efficiency and the accuracy of the test results are greatly improved.
The above embodiments are preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, which includes but is not limited to the embodiments, and equivalent modifications according to the present invention are within the scope of the present invention.

Claims (8)

  1. A test system for operating system compatibility of a usb wireless network card, characterized in that: the system comprises a plurality of PC clients provided with different operating systems, switches provided with ports larger than the number of the PC clients, the number of wireless network cards to be tested is the same as that of the PC clients and the wireless network cards are respectively arranged on the different PC clients, the system also comprises a wireless router, the wireless router and the PC clients are respectively connected with interfaces of the switches in a wired manner, the PC clients are provided with test programs, one PC client is a server and a client at the same time, the other PC clients are clients, the server can communicate with the clients,
    the test method of the test system for the operating system compatibility of the USB wireless network card comprises the following steps:
    s1: setting a server and a client;
    s2: the PC client where the server is located acquires wireless parameters which can be set by a user in a wireless router management interface;
    s3: after the PC client where the server is located acquires all the wireless parameters, judging and identifying each wireless parameter, and calling corresponding parameter data as input to automatically generate all automatic test cases;
    s4: each automatic test case is operated in sequence, and test requests are sent to all clients;
    s5: all clients are connected with wireless signals of an AP router in the same wireless environment, IP addresses of wireless network cards are obtained, whether the IP addresses can be ping-passed through a gateway of the AP router is judged to be used as a standard for test passing, test results are obtained, and then the test results are returned to a server;
    s6: the server records the test results of each client in a test report.
  2. 2. The system for testing operating system compatibility of a USB wireless network card of claim 1, wherein: the number of the PC clients is determined according to the number of operating system versions which are required to be compatible by product requirements, and the operating system version installed by each PC client is not repeated.
  3. 3. The system for testing operating system compatibility of a USB wireless network card of claim 2, wherein: the wireless network card is a USB wireless network card and is respectively inserted into USB interfaces of PC clients with different operating system versions.
  4. 4. The system for testing operating system compatibility of a USB wireless network card of claim 1, wherein: further comprising step S7: and judging whether all the automatic test cases are completely executed, if not, returning to the execution step S4 until all the automatic test cases are completely executed, and outputting a test report.
  5. 5. The system for testing operating system compatibility of a USB wireless network card according to any one of claims 1-4, wherein: in step S4, the running of the automated test case first requires an environment initialization, that is, the PC client where the server is located sets, by using an automated interface manner, data corresponding to the AP router management interface parameter list, and then sends a test request to all the clients.
  6. 6. The system for testing operating system compatibility of a USB wireless network card according to any one of claims 1-4, wherein: in step S2, the server invokes the requests library function, i.e. the interface mode, through the selenium language to obtain all wireless parameters in the AP router management interface that can be set by the user.
  7. 7. The system for testing operating system compatibility of a USB wireless network card according to any one of claims 1-4, wherein: in step S3, the server matches all the obtained wireless parameters with a regular expression to identify each wireless parameter, and each wireless parameter has a corresponding test data dictionary, and invokes the corresponding test data dictionary to automatically generate all the automatic test cases.
  8. 8. The system for testing operating system compatibility of a USB wireless network card of claim 7, wherein: the wireless parameters which the server needs to identify and judge include a wireless channel, a wireless working mode, a wireless bandwidth, an encryption mode, a wireless name, a wireless key and a wireless signal name hiding function.
CN201910408474.2A 2019-05-16 2019-05-16 System and method for testing compatibility of operating system of USB wireless network card Active CN110134556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910408474.2A CN110134556B (en) 2019-05-16 2019-05-16 System and method for testing compatibility of operating system of USB wireless network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910408474.2A CN110134556B (en) 2019-05-16 2019-05-16 System and method for testing compatibility of operating system of USB wireless network card

Publications (2)

Publication Number Publication Date
CN110134556A CN110134556A (en) 2019-08-16
CN110134556B true CN110134556B (en) 2023-08-11

Family

ID=67574628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910408474.2A Active CN110134556B (en) 2019-05-16 2019-05-16 System and method for testing compatibility of operating system of USB wireless network card

Country Status (1)

Country Link
CN (1) CN110134556B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110808870A (en) * 2019-09-30 2020-02-18 深圳市九洲电器有限公司 Router testing method and related product
CN112860568B (en) * 2021-03-04 2023-12-26 北京中科通量科技有限公司 Multi-route testing method and system based on Selenium
CN112867047B (en) * 2021-04-13 2022-11-08 四川九州电子科技股份有限公司 WiFi6 router performance test system and test method
CN113438132A (en) * 2021-06-24 2021-09-24 深圳市吉祥腾达科技有限公司 System and method for testing data burst reliability of wireless routing equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8631163B1 (en) * 2003-12-11 2014-01-14 At&T Intellectual Property Ii, L.P. Automatic connectivity determiner and configurator
CN105573905A (en) * 2014-10-11 2016-05-11 航天信息股份有限公司 Software compatibility testing method and system
CN107643963A (en) * 2017-08-02 2018-01-30 中标软件有限公司 Network interface card and the method and device of Compatibility of Operating System test
CN108173713A (en) * 2017-12-26 2018-06-15 深圳市极致汇仪科技有限公司 A kind of more network interface card parallel test methods of list PC
CN109104329A (en) * 2018-07-02 2018-12-28 四川斐讯信息技术有限公司 A kind of system of test router and network interface card compatibility
CN109561461A (en) * 2019-01-18 2019-04-02 深圳市吉祥腾达科技有限公司 A kind of test macro and test method of interchanger and AP compatibility

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8417478B2 (en) * 2010-09-23 2013-04-09 Ixia Network test conflict checking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8631163B1 (en) * 2003-12-11 2014-01-14 At&T Intellectual Property Ii, L.P. Automatic connectivity determiner and configurator
CN105573905A (en) * 2014-10-11 2016-05-11 航天信息股份有限公司 Software compatibility testing method and system
CN107643963A (en) * 2017-08-02 2018-01-30 中标软件有限公司 Network interface card and the method and device of Compatibility of Operating System test
CN108173713A (en) * 2017-12-26 2018-06-15 深圳市极致汇仪科技有限公司 A kind of more network interface card parallel test methods of list PC
CN109104329A (en) * 2018-07-02 2018-12-28 四川斐讯信息技术有限公司 A kind of system of test router and network interface card compatibility
CN109561461A (en) * 2019-01-18 2019-04-02 深圳市吉祥腾达科技有限公司 A kind of test macro and test method of interchanger and AP compatibility

Also Published As

Publication number Publication date
CN110134556A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110134556B (en) System and method for testing compatibility of operating system of USB wireless network card
US11353507B2 (en) Core testing machine
CN104349346B (en) A kind of mobile terminal WiFi handling capacity automated testing methods
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
US9749887B2 (en) Methods, apparatus and articles of manufacture to test home networks
US10917311B2 (en) Network test instrument
CN108650033B (en) Test method, test terminal, test system and storage medium of radio frequency device
CN109284140B (en) Configuration method and related equipment
US11811814B2 (en) Method and system for security assessment of IoT devices
CN106851513B (en) Method and system for testing electronic product
CN112333019B (en) Router configuration and test method and system and readable storage medium
CN115001829B (en) Protocol vulnerability discovery method, device, equipment and storage medium
CN107612769B (en) Method and system for testing wireless transmission rate of router
CN104125119A (en) Method and system for testing server
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
US11327872B2 (en) Test instrument for software communications architecture device testing
CN116866236B (en) Router reliability batch test method, system, terminal and storage medium
CN109743347B (en) Automatic test method and system for reader-writer
CN100486187C (en) A test method and system for L2TP tunnel specification
CN108039923B (en) Multi-band N-order intermodulation test method and system
CN115988524A (en) Network equipment compatibility testing method, device, equipment and storage medium
CN110149641B (en) Analog wireless connection test method
CN111371654B (en) Automatic testing system and method for intelligent fusion product network port
CN113472458A (en) Method, device, equipment, storage medium and system for testing performance of wireless equipment
CN112888013A (en) System and method for testing consistency of zigbee radio frequency parameters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant