White-box switch U-Boot automatic testing method and system and storage medium

An automated test and u-boot technology, applied in the transmission system, digital transmission system, data exchange network, etc., can solve the problems of low test efficiency, many test contents, and long manual test cycle, so as to save test manpower and make significant progress , the effect of highlighting the substantive characteristics

Active Publication Date: 2021-08-27
SHANDONG YINGXIN COMP TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the problems of white box switch U-Boot testing content, long manual test cycle and low test efficiency, the present invention provides and designs a white box switch U-Boot automation Test methods, systems and storage media, replace manual testing with automated scripts, realize automated testing of switch U-Boot, improve testing efficiency, free test engineers from manual testing, and spend more time on test design and test analysis

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
  • White-box switch U-Boot automatic testing method and system and storage medium
  • White-box switch U-Boot automatic testing method and system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] Such as figure 1 As shown, the present embodiment provides a white box switch U-Boot automated testing method, comprising the following steps:

[0064] S1: Create a U-Boot automation test task and select the automation script required for the test;

[0065] Among them, the U-Boot automated test task includes the shortcut key function test. The specific method of the shortcut key function test is as follows: call the python script, control the SecureCRT to issue a restart command in the U-Boot system; wait for the restart and judge whether the SecureCRT interface appears to enter the Booting stage keywords; when the screen displays the keywords that enter the Booting stage, simulate the shortcut keys corresponding to the test items in U-Boot, and enter different interfaces with different shortcut keys; verify whether the simulated shortcut keys enter the expected corresponding interface, simulate If the shortcut key enters the corresponding interface, the test passes, o...

Embodiment 2

[0074] Such as figure 2 As shown, the present embodiment provides a white box switch U-Boot automated test system, including:

[0075] Test task creation module 1: Create U-Boot automated test tasks and select the automated scripts required for testing;

[0076] Switch configuration module 2: configure the switches and network tester ports required for testing;

[0077] Test connection module 3: interconnect the switch with the switch according to the test task, and connect the switch with the port of the network tester;

[0078] Test setting module 4: set the test task execution time and times;

[0079] Test Execution Module 5: Execute tests and record test logs and results.

[0080] In the present embodiment, described test task creation module 1 includes:

[0081] Shortcut key function test unit 1.1: Write and call scripts to verify whether the shortcut key function of U-Boot is as expected;

[0082] Asset information test unit 1.2: Write and call scripts to verify wh...

Embodiment 3

[0086] This embodiment provides a computer storage medium, where instructions are stored in the computer storage medium, and when the computer is run on the computer, the computer is made to execute the above method.

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 a white-box switch U-Boot automatic testing method and system and a storage medium. The method comprises the following steps: S1, creating a U-Boot automatic testing task and selecting an automatic script required by testing; S2, configuring a switch and a network tester port required by testing; S3, interconnecting the interchangers according to the test task, and interconnecting the interchangers with the network tester port; S4, setting test task execution time and number of times; and S5, executing a test and recording a test log and a test result. According to the method, a set of automatic test scheme for the U-Boot is established by adopting a SecureCRT + python mode, and manual test is replaced by an automatic script, so that the test efficiency is improved, and a test engineer is liberated from the manual test.

Description

technical field [0001] The invention belongs to the technical field of switch testing, and in particular relates to a U-Boot automatic testing method, system and storage medium of a white box switch. Background technique [0002] U-Boot is a kind of Bootloader, which is used to boot and start the kernel. It can read the kernel from the flash and put it in the memory to start the kernel; the white box switch contains U-Boot, which has great functions for the startup and hardware management of the switch. At the same time, U-Boot also has the functions of system booting, asset information viewing, hardware device management and clock synchronization for switches. [0003] U-Boot, a white-box switch, needs to be tested for functions, mainly including shortcut key function tests, asset information tests, active and standby chip function tests, and restart stress tests. A lot of manpower is required for manual testing, the test period is long and the test results need to be manu...

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
IPC IPC(8): H04L12/26G06F11/263H04L12/24
CPCH04L43/08H04L43/14H04L41/069H04L41/0876G06F11/2635
Inventor 周庆飞
Owner SHANDONG YINGXIN COMP TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products