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

A method and system for passing parameter commands based on script

A technology for transferring parameters and scripts, applied in the fields of electrical digital data processing, instruments, error detection/correction, etc., can solve problems such as not supporting direct modification or deletion of commands, wrong insertion positions, affecting the normal use of test equipment or software, etc.

Active Publication Date: 2022-07-08
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the Linux command line does not support switching the cursor position by clicking the mouse, nor does it support directly modifying or deleting the middle part of the command by selecting it with the mouse, when you need to run a long command with many parameters, you can only use the The cumbersome keyboard shortcuts and arrow keys are used to adjust the cursor position and modify the command content, and it is not a day's work to memorize various shortcut keys and use them
[0004] At the same time, in software testing (especially in security testing), it is usually necessary to change the parameters of the same command multiple times and re-run. Since the position of the parameters inserted in the command is uncertain, the length and number of parameters are uncertain, and the tedious operation of changing parameters is repeated. It is very time-consuming and labor-intensive, and it is easy to cause problems such as parameter confusion and wrong insertion position. In the slightest, the command cannot run normally, and in severe cases, it will affect the normal use of test equipment or software.

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 method and system for passing parameter commands based on script
  • A method and system for passing parameter commands based on script
  • A method and system for passing parameter commands based on script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Embodiments of the technical solutions of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only used to more clearly illustrate the technical solutions of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.

[0048] figure 1 Shown is the implementation flow chart of the method for passing parameter commands based on script provided by the present invention, which specifically includes the following steps:

[0049] In step S101, the test software is traversed to obtain variable parameters included in the test software.

[0050] In this step, there are variable parameters and commands that need to be repeatedly executed in the test software. The command content is as follows:

[0051]curl -k https: / / 192.168.1.1 / Sessions-X POST-d'{"UserName":"UserName","Password":"Password"}'-H'Content-Type:application / json'...

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 relates to the technical field of software testing, and provides a method and system for transferring parameter commands based on scripts. The method includes: obtaining variable parameters included in testing software; and judging whether the obtained variable parameters need to be obtained from command output results ;When it is determined that the obtained variable parameters do not need to be obtained from the command output result, enter the variable parameters and write a script to output the command; when it is determined that the obtained variable parameters need to be obtained from the command output result, in the command output result Obtain variable parameters in the test software, and write script output commands according to the variable parameters; each script output command written is used as an input test software system, or run each script output command written to obtain test documents for testers to use directly, thereby The implementation avoids frequent manual input or multiple rewrites and then input operations performed by the system in the software testing process, provides a side channel for software testing, and improves testing efficiency.

Description

technical field [0001] The invention belongs to the technical field of software testing, and in particular relates to a method and a system for transferring parameter commands based on scripts. Background technique [0002] Linux system has the characteristics of openness (open source), support for multi-user, multi-task, good user interface, excellent performance and stability. The Linux command line (CLI) is more flexible and efficient in use, but compared with the graphical interface (GUI) that is simple to use, easy to understand, and easy to use, the text interface requires a certain amount of learning and use to master it. Compared with GUI, CLI usually requires the user to memorize the operating commands. However, due to its own characteristics, the command line interface saves the resources of the computer system compared with the graphical user interface. On the premise of memorizing the commands, using the command line interface is often faster than using the grap...

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/448
CPCG06F11/3684G06F11/3688G06F9/4482
Inventor 丛尚滋
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD