The present invention is directed to a system for testing devices.
Methods, systems, user interfaces, and other aspects of the invention are described. Reference will be made to certain embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the embodiments, it will be understood that it is not intended to limit the invention to these particular embodiments alone. On the contrary, the invention is intended to cover alternatives, modifications and equivalents that are within the spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Moreover, in the following description, numerous specific details are set forth to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that the invention may be practiced without these particular details. In other instances, methods, procedures, components, and networks that are well known to those of ordinary skill in the art are not described in detail to avoid obscuring aspects of the present invention.
According to certain embodiments, a core testing machine comprises multiple slots for installing a DUT in each slot. As a non-limiting example, each DUT in a respective slot is associated with its respective lightweight virtualization containers (probes abstraction) and core testing executor/processor. For example, the core testing machine may comprise N core testing servers and each of the N core testing servers may be associated with M core testing executors/processors. According to certain embodiments, the core testing machine need not have every slot installed with a DUT in order to begin running the tests. The slots are used as needed. Further, the testing of a given DUT can start and finish independently of the other DUTs installed in the test bench of the core testing machine.
Non-limiting examples of devices under test (DUTs) include set top boxes, cable modems, embedded multimedia terminal adapters, and wireless routers including broadband wireless routers for the home or for commercial networks.
According to certain embodiments,
According to certain embodiments, the core testing machine can test a set of similar types of devices or disparate types of devices simultaneously using a separate set of interfaces for each device that is under test testing. As a non-limiting example, there may be N core testing servers. Each N core testing server may comprise M number of core testing executors/processors. Thus, a total of N multiplied by M number of DUTS can be tested simultaneously (one DUT is each of the N×M slots, for example). According to certain embodiments, the use of DUT testing interfaces (probes) through virtualization containers can avoid network conflicts while testing multiple DUTs simultaneously by the core testing machine. According to certain embodiments, the core testing servers and core testing executors/processors (and other components) in the testing system may be distributed over a plurality of computers.
Probes test the following interfaces on the DUT (when such interfaces are available on the DUT):
According to certain embodiments, when executing a specific test for a given DUT, the core testing executor/processor loads and reads test configuration information (for example from an XML structure) and identifies the relevant test script that needs to be executed. Inputs that are needed for executing the relevant test script are retrieved and supplied as inputs to the relevant test script. The following is a non-limiting sample scripts.
Checks for DUT Serial number in Database or Webservice
Checks Webservice for test readiness status of DUT in the test process
Checks ability to login to DUT
Asks operator to manually Factory Reset if unable to login
Waits for operator to confirm that DUT was factory reset and booted up properly
Ping connections: Eth LAN 1, 2, 3, 4
Fails if any ping to these connections fail
Checks connection to DUT through socket connection
Operator scans password which is stored temporarily for use in the remainder of test until finished
Done through web-scraping
Information retrieved through web-scraping
Enables telnet on DUT through web-scraping
Factory resets DUT through telnet command
Enables telnet on DUT through web-scraping
Through telnet commands
Sets N Mode
Enables Privacy
Sets WPA (Wi-Fi Protected Access)
Removes WEP (Wired Equivalent Privacy)
Assigns WiFi Channel to DUT (channel different by slot)
[Channel 1: slots 1, 4, 7, 10, 13, 16]
[Channel 6: slots 2, 5, 8, 11, 14]
[Channel 11: slots 3, 6, 9, 12, 15]
Verifies changes through GUI
Disables WiFi once done through telnet
Firmware version: 40.21.18
Asks Operator to Close Door on Cage
Waits on shared Resource Server (located on TC) for Resource L2 (Layer 2) Lock
Obtains Lock
Enables WiFi through telnet
Set WiFi Card
Ping WiFi from DUT
L2 ARP Test on WiFi: must receive 10/10 ARP packets
If either Set WiFi Card or L2 ARP Test Fail after its 3 retries, Ask Operator to Check Antennas
Performs one more retry in full (set of 3 retries each for Set WiFi Card and L2 ARP Wifi Test) after Check Antennas
Disables WiFi through telnet
Releases Lock
Waits on shared Resource Server (located on TC) for Resource L3 Lock
Obtains Lock
Enables WiFi through telnet
Connects WiFi Card
Iperf3 Speed Test, 5 seconds for UDP Speed Test, 7 seconds for TCP Speed Test, Sending 200 Mbps Bandwidth
Bandwidth must be greater than 60 Mbps on TCP (Reverse) or 70 Mbps on UDP (Forward)
Runs sudo iwlist wlan0 scan and returns all Wireless Signals seen
Disables WiFi through telnet
Releases Lock
Arp Test from Eth LAN 1 to Eth LAN 2, 3, 4
Must receive 10/10 on all LAN connections
From Eth LAN 1 to Eth LAN 2, 3, 4
Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 1200 Mbps Bandwidth
Bandwidth must be greater than 700 Mbps
Total Retries allowed: 2
Rx and Tx Data rates for both WAN and LAN MoCA retrieved through telnet
All Rates must be greater than 180 Mbps
From Eth LAN 1 to WAN MoCA
Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 1200 Mbps Bandwidth
Bandwidth must be greater than 60 Mbps
Total Retries allowed: 2
From Eth LAN 1 to LAN MoCA
Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 240 Mbps Bandwidth
Bandwidth must be greater than 60 Mbps
Total Retries allowed: 2
From LAN MoCA to WAN MoCA
Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 240 Mbps Bandwidth
Bandwidth must be greater than 60 Mbps
Total Retries allowed: 2
Through telnet command
From Eth LAN 1 to Eth WAN
Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 1200 Mbps Bandwidth
Bandwidth must be greater than 700 Mbps
Total Retries allowed: 2
According to certain embodiments, the core testing executor/processor uses a reflection and command design pattern to invoke the relevant configured script(s) corresponding to each DUT being tested. For example, in the command design pattern one or more of the following are encapsulated in an object: an object, method name, arguments. According to certain embodiments, the core testing executor/processor uses the Python “reflection” capability to execute the relevant test scripts for a given DUT. The core testing executor/processor is agnostic of the inner workings of the relevant test scripts for a given DUT.
According to certain embodiments, lightweight software containers are used to abstract the connection of probes to the different DUT interfaces in order to avoid conflicts. Non-limiting examples of virtualization containers are Linux containers. As a non-limiting example, Linux container is an operating-system-level virtualization environment for running multiple isolated Linux systems (containers) on a single Linux control host. In other words, lightweight software containers are used to ensure isolation across servers. By using containers, resources can be isolated, services restricted, and processes provisioned to have an almost completely private view of the operating system with their own process ID space, file system structure, and network interfaces. Multiple containers share the same kernel, but each container can be constrained to only use a defined amount of resources such as CPU, memory, network resources and I/O. The relevant test script might need to connect to the DUT interfaces directly or through the virtualization containers to execute the tests. The core testing executor/processor receives the test results from running the relevant test scripts. The core testing executor/processor can further process and interpret such results and can also send the results to the user's browser via web sockets. According to certain embodiments, the respective core testing executors/processors are in communication (e.g., Telnet/SSH) with the virtualization containers (there may be multiple virtualization containers). The containers/probes are in communication with corresponding DUT interfaces using Telnet/SSH/TCP/UDP/HTTP/HTTPS etc, as non-limiting examples.
According to certain embodiments, a system for testing device comprises: a testing machine with a plurality of slots, wherein each slot of the plurality of slots is for installing a device-under-test (DUT) of a plurality of DUTs; a plurality of core testing processors, wherein each core testing processor of the plurality of core testing processors is associated with a respective slot of the plurality of slots; a plurality of lightweight virtualization containers, where a respective lightweight virtualization container of the plurality of lightweight virtualization containers is associated with one of the slots that might have DUT installed, wherein the plurality of lightweight virtualization containers enable isolation of respective testing processes and testing resources associated with each respective device-under-test.
According to certain embodiments, the plurality of lightweight virtualization containers comprise testing probes for testing a respective DUT of the plurality of DUTs. Virtualization containers can also be referred to as probes herein.
According to certain embodiments, the plurality of lightweight virtualization containers are used for testing one or more DUT interfaces at the DUT comprising: Ethernet Local Area Network (LAN) interface; Ethernet Wide Area Network (WAN) interface; Multimedia over Coax Alliance (MoCA) LAN interface; Multimedia over Coax Alliance (MoCA) WAN interface; Wireless 2.4 GHz interface; Wireless 5.0 GHz interface; Phone ports (FXS) interface; USB interface; video interface; and audio interface
According to certain embodiments, each core testing processor of at least a subset of the plurality of core testing processors is associated with a respective web socket for communication that is isolated and independent of communication associated with other core testing processors of the plurality of core testing processors.
According to certain embodiments, a respective core testing processor of the plurality of core testing processors communicates with a user interface.
According to certain embodiments, a respective core testing processor of the plurality of core testing processors communicates using asynchronous feedback and interaction.
According to certain embodiments, a respective core testing processor of the plurality of core testing processors communicates using JSON messages.
According to certain embodiments, the respective core testing processor of the plurality of core testing processors communicates using TCP/IP protocol.
According to certain embodiments, the respective core testing processor of the plurality of core testing processors: retrieves at run time a respective test configuration corresponding to the DUT installed in the respective slot associated with respective core testing processor; loads the set of tests associated with the DUT installed in the respective slot associated with respective core testing processor; and executes the loaded set of tests.
In the foregoing specification, embodiments of the invention have been described with reference to numerous specific details that may vary from implementation to implementation. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
This application is a continuation of U.S. patent application Ser. No. 14/866,720, filed Sep. 25, 2015, published on Mar. 30, 2017 as U.S. Patent Publication No. 2017/0089981, and entitled “Core Testing Machine,” the disclosure of which is hereby incorporated by reference herein in its entirety. This application is also related to U.S. patent application Ser. No. 14/866,630, filed Sep. 25, 2015, published on Mar. 30, 2017 as U.S. Patent Publication No. 2017/0093682, and entitled “Universal Device Testing System,” and to U.S. patent application Ser. No. 14/866,752, filed Sep. 25, 2015, published on Mar. 30, 2017 as U.S. Patent Publication No. 2017/0093683 and entitled “Universal Device Testing Interface,” and to U.S. patent application Ser. No. 14/866,780, filed Sep. 25, 2015, now U.S. Pat. No. 9,491,454 and entitled, “Set Top Boxes Under Test,” each of which is hereby incorporated by reference in its entirety. This application is also related to U.S. patent application Ser. No. 14/948,143, filed Nov. 20, 2015 and entitled, “Cable Modems/eMTAs Under Test,” and to U.S. patent application Ser. No. 14/948,925, filed Nov. 23, 2015 and entitled, “Wireless Routers Under Test,” and to U.S. patent application Ser. No. 14/929,180, filed Oct. 30, 2015 and entitled, “Hardware Architecture for Universal Testing System: Cable Modem Test,” and to U.S. patent application Ser. No. 14/929,220, filed Oct. 30, 2015 and entitled, “Hardware Architecture for Universal Testing System: Wireless Router Test,” and to U.S. patent application Ser. No. 14/987,538, filed Jan. 4, 2016 and entitled, “Test Sequences Using Universal Testing System.
Number | Date | Country | |
---|---|---|---|
Parent | 14866720 | Sep 2015 | US |
Child | 15722235 | US |