Unlock instant, AI-driven research and patent intelligence for your innovation.

A kind of automatic test method and device of cli interface

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

Active Publication Date: 2021-08-10
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 0 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 unpredictable errors
At the same time, when multiple versions are released, testers need to perform and verify repeatedly, which wastes a lot of labor and affects test efficiency

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
  • A kind of automatic test method and device of cli interface
  • A kind of automatic test method and device of cli interface
  • A kind of automatic test method and device of cli interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to 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, and log in to the CLI interface of the device under test according to the preset login information; wherein, the ...

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 interface, and a computer-readable storage medium. The method includes: running a test script, and logging into the CLI interface of the device under test according to preset login information; wherein, the login information Include tested equipment IP, port, user name and password information; Execute the test command in the test script; Judge whether the execution time of described test command exceeds preset time; If not, then verify command output, judge whether the output is correct; If the output is correct, the test is passed; the present invention completes the automated testing of the CLI interface by running a test script that simulates the manual testing process of the CLI interface, so that the entire testing process does not require manual intervention, and the test can be repeated many times, improving the testing efficiency and quality; and it only needs to be developed once, and the test can be executed uninterruptedly in multiple software versions at the same time, which improves the coverage of the test.

Description

technical field [0001] The present invention relates to the technical field of testing, in particular to an automatic testing method, device and computer-readable storage medium of a CLI interface. Background technique [0002] With the rapid development of electronic information technology, the number and types of various electronic devices are also 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 carry out secondary development based on the Linux operating system in terms of software. This Linux-based electronic device usually provides users with two sets of operation interfaces, GUI and CLI. GUI is a graphical interface interface, which provides users with a way to manage devices using a graphical interface. The CLI is a command ...

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