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

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

Example Embodiment

[0062] Example 1:

[0063] like figure 1 As shown, this embodiment provides a white box switch U-Boot automation test method, including the following steps:

[0064] S1: Create a U-Boot Automation Test Task and select the automation script required for testing;

[0065] Among them, the U-boot automation test task includes shortcut function testing, shortcut key function test specific methods are as follows: Call the python script, control SecureCRT to restart the instruction in the U-Boot system; wait to reboot and determine if the SecureCRT interface enters the booting phase Keywords; After the screen appears to enter the keyword of the booting phase, the shortcuts of the test item in the U-Boot, different shortcuts enters different interfaces; verify that the simulated shortcuts enter the expected corresponding interface, simulate The shortcut key enters the corresponding interface, the test passes, otherwise the test fails; verifying the shortcut function of U-boot by shortcut ...

Example Embodiment

[0073] Example 2:

[0074] like figure 2 As shown, this embodiment provides a white box switch U-Boot automation test system, including:

[0075] Test Task Create Module 1: Create a U-Boot Automation Test Task and select the automation script required for testing;

[0076] Switch Configuration Module 2: Configure the switch and network tester port required for the test;

[0077] Test Connection Module 3: Interconnecting the switch and the switch and the network tester port in accordance with the test task

[0078] Test Setup Module 4: Set the test task execution time and number of times;

[0079] Test Execution Module 5: Perform test and record the test logs and results.

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

[0081] Shortcut key function test unit 1.1: Writing and calling script verification u-boot shortcut function and expectation;

[0082] Asset Information Test Unit 1.2: Writing and calling scripts to verify that the information displayed in th...

Example Embodiment

[0085] Example 3:

[0086] This embodiment provides a computer storage medium that stores an instruction in which the computer is stored in the computer, so that the computer performs 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