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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


