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

Code reuse method applied to test system

A test system and code reuse technology, applied in software testing/debugging, program control devices, etc., can solve problems such as error-prone, affecting test efficiency, and low efficiency, and achieve the effects of improving efficiency, improving reliability, and avoiding errors

Active Publication Date: 2014-11-19
BEIHANG UNIV
View PDF3 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method of code reuse also has its own defects: first, the tester must open the code file to be reused for reading to understand the characteristics of the code; secondly, the tester manually modifying and writing the code is not only inefficient but also prone to errors, Seriously affect the test efficiency; again, the code manually modified by the tester is difficult to be recognized by the test system. After the tester makes changes to the test framework code, if the test framework code must be regenerated for some reason, it must be generated after the code is generated. Re-modify the code; the most important thing is that the tester must be familiar enough with the test framework code generated by the test system to complete the code reuse operation by modifying the code, which increases the technical threshold and testing cost of the tester

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
  • Code reuse method applied to test system
  • Code reuse method applied to test system
  • Code reuse method applied to test system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.

[0035] The present invention relates to a code reuse method applied to a test system. On the one hand, this method can automatically generate function call statements according to test requirements and generate them to the required position; on the other hand, they can automatically parse the code and obtain function related information for Convenient use of graphical interface operations allows testers to complete the configuration of code reuse, and there is no need to re-configure or modify code reuse after regenerating the test framework code.

[0036] Such as figure 1 As shown, the specific steps of the present invention in the embodiment are as follows:

[0037] Step 1: The tester selects the header file of the code to be reused in the...

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 code reuse method applied to a test system. The method comprises the steps that a header file and a code file matched with the header file of a reused code among test framework codes are selected; the header file is analyzed automatically through a regular expression, and a function meeting format requirements is obtained from the header file; analyzed information is displayed in a graphical interface, and a call position, a return value and parameters to be transmitted to the function are configured for the function in the graphical interface; after configuration is completed, validity check is automatically conducted on the configuration; a call statement of the function is automatically added to the selected position, statements contained in the header file are added to corresponding positions, and the header file, the code file and other generated code files are jointly compiled to generate an executable program. According to the code reuse method, the call statement of the function is generated automatically according to test demands and added to the required position; the codes can be analyzed automatically, and information related to the function can be obtained, so testing personnel can complete configuration of code reuse conveniently in a graphical interface operation mode.

Description

Technical field [0001] The invention relates to a code reuse method applied to a test system, belonging to the technical field of embedded software testing. Background technique [0002] In the testing process, testers often want to be able to reuse previous code. Reusing code can save a lot of time and cost on the one hand, so that the test can be completed in the shortest time. On the other hand, using verified algorithms and code models for testing can improve the reliability and safety of the testing process itself. [0003] Many current test systems do not have perfect code reuse functions, such as ADS2, dSPACE, etc., or test systems such as GESTE, TestShell, etc., although they provide some code reuse functions, they still have certain defects. Commonly used code reuse methods are as follows: some test systems open all test framework codes for modification by testers, testers can manually modify the code to complete code reuse operations; some test systems only open part of ...

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/36G06F9/44
Inventor 杨顺昆刘斌司维
Owner BEIHANG UNIV
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