摘要 |
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, apply a terminology substitution process to the device command based on a terminology block associated with the device, thereby creating a modified device command; issuing the modified 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 the comparing step. The metafile language has a relatively simple vocabulary and syntax, and is thus easy to learn and implement. |