Methods and apparatus for automated testing of a device through a command line interface
First Claim
1. A method for automated testing of a network device having a command line interface, said method comprising:
- creating a metafile;
establishing a network connection with the device;
parsing said metafile to determine a device command and an expected result;
issuing said device command to said command line interface of the device via said network connection;
receiving a response from said command line interface of the device via said network connection;
comparing said response to said expected result;
logging, to a test summary file, a test result based on said comparing step.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for automated testing of a device (e.g., a router, switch, mobile terminal, barcode reader, or the like) includes creating a metafile, establishing a network connection to the device, parsing the metafile to determine a device command and an expected result, issuing the device command to the command line interface of the device via the network connection; receiving a response from the command line interface of the device via the network connection; comparing the response to the expected result, then logging, to a test summary file, a test result based on said comparing step. The metafile language has a relatively simple vocabulary and syntax, and is thus easy to learn and implement.
-
Citations
15 Claims
-
1. A method for automated testing of a network device having a command line interface, said method comprising:
-
creating a metafile;
establishing a network connection with the device;
parsing said metafile to determine a device command and an expected result;
issuing said device command to said command line interface of the device via said network connection;
receiving a response from said command line interface of the device via said network connection;
comparing said response to said expected result;
logging, to a test summary file, a test result based on said comparing step. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system for automated testing of a network device of the type having a command line interface (CLI), said system comprising:
a test apparatus configured to;
establish a network connection with the device via the network connection;
parse a text metafile to determine a device command and an expected result;
issue said device command to said command line interface of the device via said network connection;
receive a response from said command line interface of the device via said network connection;
compare said response to said expected result and log, to a test summary file, a test result based on said comparing step. - View Dependent Claims (10, 11, 12, 13, 14, 15)
Specification