Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Test method and device for embedded program in rail transit vehicle

A technology of rail transit vehicles and testing methods, which is applied in the field of embedded program testing, can solve problems such as difficult and sufficient testing, and achieve sufficient testing effects

Pending Publication Date: 2020-04-07
CSR ZHUZHOU ELECTRIC LOCOMOTIVE RES INST
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The software in the transmission control unit includes embedded software such as inverter control software, four-quadrant control software, auxiliary variable control software, adhesion control software, bottom layer software, middle layer software, and logic control software. The above embedded programs are highly customized programs and are closely related to each other, it is difficult to fully test with traditional white box or black box testing methods

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
  • Test method and device for embedded program in rail transit vehicle
  • Test method and device for embedded program in rail transit vehicle
  • Test method and device for embedded program in rail transit vehicle

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] like figure 1As shown, the present embodiment is used for the testing method of the embedded program in the rail transit vehicle, and the steps include:

[0043] S1. Running program generation: perform program instrumentation on the program under test and cover each code block in the program under test. Program instrumentation means inserting multiple probes into the program on the basis of ensuring the original logic Needle, compile and convert the program after instrumentation, and generate the target running program;

[0044] S2. Program running: Run the target running program. During the running of the program, each probe obtains the control flow and data flow information of the program, collects and sends the information sent by the probes inserted during the running of the target running program;

[0045] S3. Test status acquisition: Receive the information sent by each probe, and obtain the coverage status of the test completed in the program under test accordin...

Embodiment 2

[0068] like image 3 , 4 As shown, this embodiment implements the test method in Embodiment 1 by combining the host computer (test control terminal) and the target board in a specific application. The target board and the host computer are connected through the network port, and the target running program generated by the program under test Running on the target board, a probe management module is set in the target board to collect the information sent by each probe during the program running, the host computer receives the test data sent by the target board, analyzes and counts it, and obtains the test coverage status including the completed test The test results, the detailed process includes:

[0069] S01. Perform program instrumentation on the source code of the program under test, and the instrumentation covers each code block of the program under test, such as image 3 As shown, n code blocks correspond to at least n probes; then, in the integrated development environm...

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 discloses a test method and device for an embedded program in a rail transit vehicle. The method comprises the steps: S1, carrying out the program instrumentation of a tested program, enabling the tested program to cover each code block in the tested program, carrying out the compiling and conversion of the program after instrumentation, and generating a target operation program; S2,running the target running program, collecting information sent by each probe of instrumentation in the running process of the target running program, and sending the information; S3, receiving the information sent by each probe, and obtaining the coverage state of completing the test in the tested program according to the received information; the device comprises a running program generation module, a probe information collection module and a test state collection module. The method is simple in test implementation, low in test cost, capable of achieving embedded program gray box test and obtaining the test coverage state at the same time, sufficient in test and good in effect.

Description

technical field [0001] The invention relates to the technical field of rail transit vehicles, in particular to a testing method and device for embedded programs in rail transit vehicles. Background technique [0002] The program in the rail transit vehicle is an embedded program, and using conventional testing tools such as QTP, WinRunner, LoadRunner, TestComplete, etc. on the PC platform is not suitable for testing the embedded platform. Is the following two ways: [0003] 1. White box testing, that is, testing through the source code of the program. This type of testing needs to find out the shortcomings or errors of the internal code in algorithms, overflows, paths, conditions, etc. from the code syntax, and then correct them, usually for Realize the calculation of function and algorithm response time and analyze the function call relationship; [0004] 2. Black box testing, that is, testing strictly by using the entire software or a certain software function, without p...

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): G06F11/36
CPCG06F11/3644G06F11/3636
Inventor 黄旺刘梦琪覃波翔唐爱斌钟理何柏莹彭辉水
Owner CSR ZHUZHOU ELECTRIC LOCOMOTIVE RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products