Traitement en cours

Veuillez attendre...

Paramétrages

Paramétrages

Aller à Demande

1. WO2007103849 - PROCÉDÉS ET APPAREIL DE TEST AUTOMATIQUE DE PLUSIEURS PLATE-FORMES DE DISPOSITIFS EFFECTUÉ AU MOYEN D'UNE INTERFACE DE LIGNE DE COMMANDE

Note: Texte fondé sur des processus automatiques de reconnaissance optique de caractères. Seule la version PDF a une valeur juridique

[ EN ]

CLAIMS

What is claimed is:

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.

2. The method of claim 1, wherein said metafile is partitioned into a plurality of test cases, and wherein said method further includes logging, to said test summary file, a test case result based on said comparing step.

3. The method of claim 1, wherein said creating step includes creating a plurality of lines of text that include a command string and an expression string.

4. The method of claim 3, wherein said lines of text include a first line and a second line subsequent to said first line, said method including determining the device command from said first line, and determining the expected result from said second line.

5. A method for automated testing of a network device having a command line interface, the method comprising:
creating a metafile;
establishing a network connection with the device;
parsing the metafile to determine a device command and an expected result;

applying 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;
logging, to a test summary file, a test result based on the comparing step.

6. The method of claim 5, wherein the metafile is partitioned into a plurality of test cases, and wherein the method further includes logging, to the test summary file, a test case result based on the comparing step.

7. The method of claim 5, wherein the creating step includes creating a plurality of lines of text that include a command string and an expression string.

8. The method of claim 7, wherein the parsing step includes determining the expected result from one of the expression strings of one of the lines having a predetermined command string.

9. The method of claim 7, wherein the lines of text include a first line and a second line subsequent to the first line, the method including determining the device command from the first line, and determining the expected result from the second line.

10. A system for automated testing of a network device of the type having a command line interface (CLI), the 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;
apply a terminology substitution process to the device command based on a terminology block associated with the device, thereby creating a modified device command;
issue the modified device command to the command line interface of the device via the network connection;

receive a response from the command line interface of the device via the network connection;
compare the response to the expected result and log, to a test summary file, a test result based on the comparing step.

11. The system of claim 10, wherein the test apparatus includes a processor, a memory, an input output device, and a display.

12. The system of claim 10, wherein the test apparatus is further configured to log, to the test summary file, a test case result based on the comparing step.

13. The system of claim 10, wherein the test apparatus is configured to establish a network connection with the device via a packet-switched network.

14. The system of claim 10, wherein the network connection is a ssh session a serial console connection, or a secure ssh connection.

15. The system of claim 10, wherein the network connection is a wireless connection.

16. The system of claim 15, wherein the device is a network component selected from the group consisting of routers, gateways, switches, mobile devices, and wireless access points.

17. The system of claim 10, wherein the substitution block includes ordered pairs of first text strings and second text strings, wherein the system is configured to locate the first text string in the metafile and replace the first text string with the second text string to create the modified device command.