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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com