Core testing machine
10578670 ยท 2020-03-03
Assignee
Inventors
- Samant Kumar (San Jose, CA, US)
- Dinesh Kumar (Patna Bihar, IN)
- Shivashankar Diddimani (Karnataka, IN)
- Gunjan Samaiya (Madhya Pradesh, IN)
Cpc classification
G01R31/31715
PHYSICS
International classification
Abstract
A testing system includes a slot configured to receive a device-under-test (DUT), and a core testing processor configured to communicate with a user interface and with the slot, wherein the core testing processor is associated with communication that is independent of any other communications transmitted within the system, and wherein the core testing processor executes a set of tests associated with the DUT.
Claims
1. A core testing processor configured to receive serial number information for a plurality of devices under test (DUTs); retrieve, from a source selected from a database and a web service, type information comprising a make or model of each DUT, retrieval of the type information based upon the serial number information; load test configuration information specific to each type of DUT; read a test step of the test configuration information loaded for each DUT; execute the test step read for each DUT; determine whether each DUT passed or failed the executed test step; responsive to a determination that a DUT passed the executed test step, determine whether, for each DUT that passed the executed test step, the loaded test configuration information contains a next test step to be executed; responsive to a determination that the loaded test configuration contains a next test step to be executed, perform repeated tasks for each DUT for which a next test step exists, the repeated tasks comprising reading the test step, executing the test step read for each DUT, determining whether each DUT passed the executed test step, and determining whether, for each DUT that passed the executed test step, the loaded test configuration information contains a next step to be executed; and responsive to a determination that the loaded test configuration does not contain a next test step to be executed, terminate the repeating step for each DUT for which a next test step does not exist.
2. The core testing processor of claim 1, further configured to responsive to a determination that a DUT failed the executed test step, determine whether to abort testing for each DUT that failed the executed test step; and responsive to a determination to not abort testing, perform the repeated tasks until reaching the determination that the loaded test configuration does not contain a next test step to be executed.
3. The core testing processor of claim 2, further configured to, responsive to a determination to abort testing, indicate testing failure for each DUT for which a determination to abort testing has been made.
4. The core testing processor of claim 2, further configured to communicate, upon completion of each test step, results of the completed test step to a user.
5. The core testing processor of claim 4, wherein communicating the results of the completed test step to the user comprises sending a message to a browser of the user via web-sockets.
6. A system for testing devices, comprising: the core testing processor of claim 1; and a slot configured to receive a device-under-test (DUT), the slot communicating with the core testing processor and with a lightweight virtualization container configured for association with an interface of a DUT receivable in the slot, the lightweight virtualization container enabling isolation of testing processes and testing resources associated with the DUT receivable in the slot.
7. The system for testing devises of claim 6, where in the core testing processor is configured to communicate with a user interface and with the slot, wherein the core testing processor is associated with communication that is independent of other communications transmitted within the system.
8. The system for testing devices of claim 7, wherein the core testing processor is associated with a web socket for communication that is independent of other communications transmitted within the system.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
DETAILED DESCRIPTION
(3) 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.
(4) 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.
(5) 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.
(6) 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.
(7) According to certain embodiments,
(8) 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 NM 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.
(9)
(10) Probes test the following interfaces on the DUT (when such interfaces are available on the DUT): Ethernet Local Area Network (LAN): assigned probe runs Ethernet-based connection and speed tests Ethernet Wide Area Network (WAN): assigned probe runs Ethernet-based connection and speed tests Multimedia over Coax Alliance (MoCA) LAN: assigned probe sets up MoCA connection, establishes connection, and runs MoCA-related connection and speed tests MoCA WAN: assigned probe sets up MoCA connection, establishes connection, and runs MoCA-related connection and speed tests Wireless 2.4 GHz: assigned probe sets up wireless connection, establishes connection, and runs WiFi-related connection tests on 2.4 GHz frequency Wireless 5.0 GHz: assigned probe sets up wireless connection, establishes connection, and runs WiFi-related connection tests on 5.0 GHz frequency Phone ports (FXS): assigned probe sets up phone service simulation, establishes connection, and runs phone-based connection tests USB: assigned probe runs USB-functionality tests Video: assigned probe runs video-related tests Audio: assigned probe runs audio-related tests
(11) 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. Create DUT object & Environment Object Verify Serial Number Verify Warranty Check Report Server Check DUT Staging
(12) Checks for DUT Serial number in Database or Webservice Get DUT Readiness Information
(13) Checks Webservice for test readiness status of DUT in the test process Configure container Environment Clear Environment Temp Files Analyze DUT for Factory Reset
(14) Checks ability to login to DUT
(15) Asks operator to manually Factory Reset if unable to login
(16) Confirm Factory Reset (if needed)
(17) Waits for operator to confirm that DUT was factory reset and booted up properly
(18) Check Ethernet LAN connections to DUT
(19) Ping connections: Eth LAN 1, 2, 3, 4
(20) Fails if any ping to these connections fail
(21) Detect DUT
(22) Checks connection to DUT through socket connection
(23) Reset Password
(24) Operator scans password which is stored temporarily for use in the remainder of test until finished
(25) Login to GUI
(26) Done through web-scraping
(27) Get DUT Information and compare values
(28) Information retrieved through web-scraping
(29) Enable Telnet
(30) Enables telnet on DUT through web-scraping
(31) Factory Reset
(32) Factory resets DUT through telnet command
(33) Enable Telnet after Factory Reset
(34) Enables telnet on DUT through web-scraping Confirm Power, WAN Ethernet, and Internet LEDs Confirm all LAN Ethernet LEDs Confirm WiFi LED Configure Wireless Network
(35) Through telnet commands
(36) Sets N Mode
(37) Enables Privacy
(38) Sets WPA (Wi-Fi Protected Access)
(39) Removes WEP (Wired Equivalent Privacy)
(40) Assigns WiFi Channel to DUT (channel different by slot)
(41) [Channel 1: slots 1, 4, 7, 10, 13, 16]
(42) [Channel 6: slots 2, 5, 8, 11, 14]
(43) [Channel 11: slots 3, 6, 9, 12, 15]
(44) Verifies changes through GUI
(45) Disables WiFi once done through telnet
(46) Check Firmware Version and Upgrade Firmware (if needed)
(47) Firmware version: 40.21.18
(48) Cage Closed Confirmation Check
(49) Asks Operator to Close Door on Cage
(50) Connect Wireless Card
(51) Waits on shared Resource Server (located on TC) for Resource L2 (Layer 2) Lock Lock waiting timeout: 600 sec All L2 Locks are able to run in parallel but not when any L3 (Layer 3) Lock is running
(52) Obtains Lock
(53) Enables WiFi through telnet
(54) Set WiFi Card Total Retries allowed: 6 (2 sets of 3 retries)
(55) Ping WiFi from DUT
(56) L2 ARP Test on WiFi: must receive 10/10 ARP packets Total Retries allowed: 6 (2 sets of 3 retries)
(57) If either Set WiFi Card or L2 ARP Test Fail after its 3 retries, Ask Operator to Check Antennas
(58) Performs one more retry in full (set of 3 retries each for Set WiFi Card and L2 ARP Wifi Test) after Check Antennas
(59) Disables WiFi through telnet
(60) Releases Lock
(61) Wireless to LAN Ethernet Speed Test
(62) Waits on shared Resource Server (located on TC) for Resource L3 Lock Lock waiting timeout: 1800 sec L3 Locks must be run one at a time and when no L2 Lock is running
(63) Obtains Lock
(64) Enables WiFi through telnet
(65) Connects WiFi Card
(66) Iperf3 Speed Test, 5 seconds for UDP Speed Test, 7 seconds for TCP Speed Test, Sending 200 Mbps Bandwidth
(67) Bandwidth must be greater than 60 Mbps on TCP (Reverse) or 70 Mbps on UDP (Forward) If Fail after 2 retries, ask operator to Check Antennas Retries up to 2 times more if still Fail Therefore, Total Retries allowed: 4 (2 sets of 2 retries)
(68) Runs sudo iwlist wlan0 scan and returns all Wireless Signals seen Results parsed to print all visible SSIDs and its matching Signal level
(69) Disables WiFi through telnet
(70) Releases Lock Confirm WPS LED Confirm LAN Coax LED Confirm USB 1+2 LEDs Configure WAN MoCA Confirm WAN Coax LED Ping WAN MoCA L2 Test on LAN Ethernet
(71) Arp Test from Eth LAN 1 to Eth LAN 2, 3, 4
(72) Must receive 10/10 on all LAN connections
(73) LAN Ethernet to LAN Ethernet Speed Test
(74) From Eth LAN 1 to Eth LAN 2, 3, 4
(75) Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 1200 Mbps Bandwidth
(76) Bandwidth must be greater than 700 Mbps
(77) Total Retries allowed: 2
(78) Check WAN and LAN MoCA Data Rates
(79) Rx and Tx Data rates for both WAN and LAN MoCA retrieved through telnet
(80) All Rates must be greater than 180 Mbps
(81) LAN Ethernet to WAN MoCA FTP Speed Test
(82) From Eth LAN 1 to WAN MoCA
(83) Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 1200 Mbps Bandwidth
(84) Bandwidth must be greater than 60 Mbps
(85) Total Retries allowed: 2
(86) LAN MoCA to LAN Ethernet FTP Speed Test
(87) From Eth LAN 1 to LAN MoCA
(88) Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 240 Mbps Bandwidth
(89) Bandwidth must be greater than 60 Mbps
(90) Total Retries allowed: 2
(91) LAN MoCA to WAN MoCA FTP Speed Test
(92) From LAN MoCA to WAN MoCA
(93) Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 240 Mbps Bandwidth
(94) Bandwidth must be greater than 60 Mbps
(95) Total Retries allowed: 2
(96) Enable WAN Ethernet
(97) Through telnet command
(98) LAN Ethernet to WAN Ethernet FTP Speed Test
(99) From Eth LAN 1 to Eth WAN
(100) Iperf3 Speed Test, 5 seconds Reverse and Forward, Sending 1200 Mbps Bandwidth
(101) Bandwidth must be greater than 700 Mbps
(102) Total Retries allowed: 2 Clear Persistent Logs Final Factory Restore
(103) 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.
(104) 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.
(105) 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.
(106) 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.
(107) 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
(108) 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.
(109) According to certain embodiments, a respective core testing processor of the plurality of core testing processors communicates with a user interface.
(110) According to certain embodiments, a respective core testing processor of the plurality of core testing processors communicates using asynchronous feedback and interaction.
(111) According to certain embodiments, a respective core testing processor of the plurality of core testing processors communicates using JSON messages.
(112) According to certain embodiments, the respective core testing processor of the plurality of core testing processors communicates using TCP/IP protocol.
(113) 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.
(114) 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.