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

A kind of traversal test command generation method and device

A technology of traversing tests and commands, applied in the computer field, can solve problems such as consuming a lot of manpower and time, and achieve the effect of avoiding equipment crashes

Active Publication Date: 2021-01-26
HANGZHOU DPTECH TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, developers will set different executable commands when developing, and may update the commands by adding, modifying and deleting them when the version is updated. Therefore, the commands of different software are different, and the commands of the same software There may also be differences in the commands of different versions. When testing the commands of the software, it will consume a lot of manpower and time to manually determine the commands of the software in the CLI.

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 traversal test command generation method and device
  • A kind of traversal test command generation method and device
  • A kind of traversal test command generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application shall fall within the protection scope of this application.

[0022] First, the generation method of the traversal test command in the embodiment of the present invention is described, wherein any command i to be tested is represented by n i command fragments, and n i ≥1, that is, each command to be tested that can be executed through the CLI is composed of at least one command segment, such as the command "show ip route A.B.C.D", if divided by s...

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 present application provides a method for generating a traversal test command, characterized in that, any command i to be tested is represented by n i composed of command fragments, and n i ≥1, the method includes: in the case of not specifying the association basis, invoking the built-in association function of the system to obtain a first command fragment set, the first command fragment set includes: all possible first command fragments of the command to be tested The command fragment that appears in the position; for each command fragment in the first command fragment set, take the command fragment as the root node, call the built-in association function of the system, and generate the association fragment tree. In the association fragment tree, any non-root node The corresponding command fragments are based on the sequence formed by the corresponding command fragments of all ancestor nodes; traverse each associative fragment tree to obtain a directed path formed from any root node to any leaf node, and according to each Generate the command to be tested from the command fragment sequence corresponding to the path.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for generating traversal test commands. Background technique [0002] CLI (Command Line Interface, command line interface) refers to the interface where the user can operate the software by typing a command line. When the device executes the command line, different execution results will be obtained according to different commands in the command line. Because the CLI has the advantages of fast operation speed, saving system resources, powerful functions, and convenient expansion, many application software can be operated through the CLI mode. Before functional testing of this type of software, it is necessary to test the validity of the commands of the software in the CLI, for example, after the software is updated, traverse and execute all the commands in the new version, and verify all the commands in the updated software version Effectiveness, ...

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/36
CPCG06F11/3672
Inventor 张美
Owner HANGZHOU DPTECH TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More