Test approach and device for command line interface

A technology of command line interface and test method, applied in the direction of digital transmission system, data exchange network, electrical components, etc., can solve the problems of multi-system resources, low test efficiency, and inability to meet the test requirements of system upgrades or changes, and achieve Effects of improving efficiency, simplifying construction, and improving testability

Inactive Publication Date: 2008-06-11
HUAWEI TECH CO LTD
View PDF0 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] To sum up, in the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: According to the command format and command tree in the prior art Structure, when the device is performing command testing, it needs to consume more system resources to realize the test calculation process. At the same time, when the number of commands is large, the test efficiency is also very low, which cannot meet the testing requirements of system upgrades or changes.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Test approach and device for command line interface
  • Test approach and device for command line interface
  • Test approach and device for command line interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The embodiment of the present invention provides a testing method and device of a command line interface. For high-end data equipment, when testing the command line interface, it often faces many problems, such as multi-view problems, multi-level problems, multi-command branch problems and unused commands. The embodiment of the present invention simplifies the construction of the command tree by converting the common aggregation command into an equivalent binary tree, establishes an easy-to-test command tree, improves the testability, thereby reduces the waste of computing resources of the device, and Greatly improved the efficiency of the test.

[0027] The process of the above method can also be written in a test script language of TCL (Tool Command Language), and each process step is generated into a functional module of an automated test, and then combined with a command line test tool for use. In this way, automated testing can be realized during the testing p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a test method for command line interface and a device thereof; the method includes the following procedures: firstly, an aggregation command which needs to be tested is acquired; secondly, from the beginning of the root node of the aggregation command, the aggregation command is made the equivalence binary tree conversion; thirdly, the leaf node of the equivalence binary tree undergoes traverse, the route between the leaf node and the root node is accessed, each single command and the expectation prompting message corresponding to the single command are acquired; fourthly, each single command is tested. By the equivalence binary tree conversion, the structure of the command tree is simplified; moreover, the constructed command tree is easy to test, thereby enhancing the testability, reducing the waste of computing resource of equipment and greatly improving the test efficiency.

Description

technical field [0001] The invention relates to the field of equipment testing, in particular to a testing method and device for a network equipment command line interface. Background technique [0002] A command line interface (Command Line Interface, CLI) is a main operation mode for setting current network devices. With the increasingly perfect functions of network devices, the content of the command line is also constantly enriched. When using the command line interface to operate the network device, it is often encountered multi-view, multi-user level command line interface, and different views or different The command tests that can be performed by the user-level command line interface are not the same, and there can be thousands of commands at every turn, and the combination of different meanings between commands can even reach as many as hundreds of thousands. Or change, there will be a replacement of old and new commands in the system equipment, which puts forward ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26H04L12/24
Inventor 石戬
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products