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

Automatic test method and system, electronic equipment and computer readable storage medium

A technology for automated testing and test scripts, applied in computing, software testing/debugging, electrical and digital data processing, etc., to solve problems such as single function and inability to meet actual testing requirements, and achieve the effect of ensuring stability

Pending Publication Date: 2022-02-15
BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present application is to provide an automated testing method, system, electronic equipment, and computer-readable storage medium to solve the problem that the related technology has a single function and cannot meet the increasingly rich actual testing requirements

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 test method and system, electronic equipment and computer readable storage medium
  • Automatic test method and system, electronic equipment and computer readable storage medium
  • Automatic test method and system, electronic equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031]Currently, the automated test framework only supports manual test execution, sending test commands to test equipment, and verifying whether there are expected results through echo. However, the automated testing framework has a single function and lacks flexibility, which cannot meet the increasingly rich actual testing requirements. For example, the automated testing framework cannot support field-level verification (that is, it cannot verify whether certain fields in the returned result are correct).

[0032] In order to meet different actual testing requirements, different technical means are adopted at present. For example, in order to realize field-level verification, the current processing method is to write an external applet. There are two kinds of script programs in the external applet. The first script program can re-run the test command and put the test result with the test In the file under the script directory of the workstation, another script program can ...

Embodiment 2

[0068] On the basis of the first embodiment, this embodiment takes a specific example as an example to further illustrate the present application.

example 1

[0070] Suppose the current command to be executed is: ngdev1:func:verify_interface_mac interface=${interface} link_encap=Ethernet mac=00:50:56:81:fd:7c link_status=established

[0071] system: print ${response}

[0072] The script parser reads the script line by line, and the current command to be executed is: ngdev1:func:verify_interface_mac, interface=${interface}, link_encap=Ethernet, mac=00:50:56:81:fd:7c, link_status= established.

[0073] Determine whether there are variables in the command to be executed.

[0074] Since the variable "${interface}" exists in it, the script parser requests the variable value of "${interface}" from the data warehouse. Suppose the requested variable value is "feth1".

[0075] After the variable is replaced, the command to be executed is: ngdev1:func:verify_interface_mac, interface=feth1, link_encap=Ethernet, mac=00:50:56:81:fd:7clink_status=established.

[0076] The script parser judges that there is a func keyword in the command to be ...

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 an automatic test method and system, electronic equipment and a computer readable storage medium, and the method comprises the steps of judging whether a target keyword exists in a current to-be-executed command in a test script or not by a script parser; if yes, transmitting the name and the parameter of the function needing to be called in the command to be executed to an automatic test framework; enabling the automatic test framework to call a target self-defined function corresponding to the command to be executed from a preset self-defined function storage area according to the name and the parameter of the function needing to be called, wherein the self-defined function storage area is independent of the automatic test framework and is used for storing the self-defined function, and different self-defined functions are used for realizing different functions. According to the scheme, the problems that in the prior art, the function is single, and increasingly abundant actual test requirements cannot be met are solved. And the test personnel can only maintain the test script and the self-defined function, and the automatic test framework is maintained by the framework maintenance personnel, so that the stability of the automatic test framework is ensured.

Description

technical field [0001] The present application relates to the technical field of software testing, in particular to an automated testing method, system, electronic equipment and computer-readable storage medium. Background technique [0002] In the software testing industry, each test execution process is covered by test engineers based on test cases. After the first round of testing, test scripts will be written with an automated testing framework, and repetitive testing tasks will be automatically executed by the test scripts during the subsequent testing process. If a script fails to run, it indicates that the test case execution failed. The tester needs to locate and report the problem ticket, and then track and solve the problem. [0003] In the current test process, the automated test framework only supports replacing manual test execution, sending test commands to the test equipment, and verifying whether there are expected results through echo. However, the automat...

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): G06F11/36
CPCG06F11/3688G06F11/3692
Inventor 张宇
Owner BEIJING TOPSEC NETWORK SECURITY TECH