Automatic testing method and device for CLI (Command-Line Interface)

An automated testing and interface technology, applied in the field of testing, can solve problems such as low efficiency, manual comparison of test results errors, wasted labor, etc., to achieve the effect of improving coverage, improving test efficiency and quality

Active Publication Date: 2018-02-09
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF8 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When a large number of commands need to be tested through the CLI interface, this method is inefficient, and manual comparison of test results is likely to cause unpr...

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
  • Automatic testing method and device for CLI (Command-Line Interface)
  • Automatic testing method and device for CLI (Command-Line Interface)
  • Automatic testing method and device for CLI (Command-Line Interface)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0037] Please refer to figure 1 , figure 1 It is a flowchart of an automated testing method for a CLI interface provided by an embodiment of the present invention. The method can include:

[0038] Step 101: Run the test script to log in to the CLI interface of the tested device according to the preset login information; where the login...

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 discloses an automatic testing method and device for a CLI (Command-Line Interface) and a computer readable storage medium. The method comprises the following steps: running a test script, and logging into the CLI of equipment under test according to preset login information, wherein the login information includes an IP (Internet Protocol), a port, a user name and password information of the equipment under test; executing a test command in the test script; judging whether the execution time of the test command exceeds preset time or not; if not, outputting a verification command, and judging whether the output is correct or not; and if the output is correct, judging that testing passes. Through adoption of the automatic testing method and device, automatic testing of the CLIis finished by running the test script simulating a manual testing flow of the CLI, so that manual intervention is not required in the whole test process; testing can be performed repeatedly; the testing efficiency is increased; and the testing quality is enhanced. Moreover, testing can be executed simultaneously and continuously in plurality of software versions by means of one-time development,so that the coverage degree of testing is increased.

Description

Technical field [0001] The present invention relates to the field of testing technology, in particular to an automated testing method, device and computer-readable storage medium for a CLI interface. Background technique [0002] With the rapid development of electronic information technology, the number and types of various electronic devices are increasing day by day. These devices include not only Internet infrastructure such as switches, routers, and storage, but also household devices such as smart homes and TV set-top boxes. [0003] Due to the openness and stability of the Linux operating system, most electronic devices choose to use the Linux operating system for secondary development in terms of software. Such Linux-based electronic devices usually provide users with two sets of operating interfaces, GUI and CLI. GUI is a graphical interface interface, which provides users with a way to manage the device using a graphical interface. The CLI is a command-line interface int...

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
IPC IPC(8): G06F11/36G06F9/455
CPCG06F9/45512G06F11/3676G06F11/3688
Inventor 江超
Owner ZHENGZHOU YUNHAI INFORMATION 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