An Automatic Test Method Based on Embedded Script

An automatic testing, embedded technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of difficult to accurately reproduce the timing of test operations, complex synchronization process, poor synchronization, etc., to avoid communication Latency, simplification of writing and execution processes, execution frequency, and the effect of improved accuracy

Active Publication Date: 2020-12-29
XIAN FLIGHT SELF CONTROL INST OF AVIC
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1. It is necessary to design complex inter-program communication protocols and require a certain quality of communication links;
[0007] 2. Test variables need to be registered in the test program and the program under test at the same time. When the set of test variables changes, the test program and the program under test must be changed synchronously. The synchronization process is complicated and error-prone;
[0008] 3. Because the communication link delay is unavoidable and difficult to control accurately, the synchronization between the test program and the system under test is poor, the execution frequency of the test operation is limited by the accuracy allowed by the communication delay, and the timing of the test operation is difficult to be accurately reproduced , the test operation effect has a certain randomness

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
  • An Automatic Test Method Based on Embedded Script
  • An Automatic Test Method Based on Embedded Script
  • An Automatic Test Method Based on Embedded Script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Such as image 3 As shown, the present invention centrally lists all the test variables, and uniformly generates adaptation codes, so that these variables can be operated or observed by the script program and the system program under test at the same time. In this way, the modification of the test variable by the test script can take effect in the program of the system under test without going through a complicated communication mechanism, and the update of the test variable in the system under test can also be immediately observed by the test script program.

[0033] By embedding the test script program segment in the code of the system under test, the test logic and the logic of the system under test are executed alternately in a determined order, and the same test variables are set, read or recorded by means of memory reading and writing to complete the test process.

[0034] Since the function of the system under test is relatively certain and pursues high operating...

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 belongs to the technical field of digital system test, and designs an automatic test method based on an embedded script. The efficient automatic test considering the test logic compilingefficiency and the test operation running efficiency is realized. According to the technical scheme, the method comprises the following steps of 1, generating adapter code in a unified way after alltest variables are listed out in a centralized way, so that the variables can be simultaneously operated or observed by script program and tested system program; and 2, embedding the test script program segment in the tested system code so that the test logic and the tested system logic are alternately executed according to the determined sequence; setting, reading or recording the same test variables in a memory reading and writing mode; and completing the test process.

Description

technical field [0001] The invention belongs to the technical field of digital system testing, and in particular relates to an automatic testing method based on mixed programming of a mainstream programming language (such as C++) and a scripting language (such as LUA). Background technique [0002] Digital system functional testing is a process consisting of three operations: system state setting, observation and recording. [0003] If the setting, observation and recording operations can all be performed on a digital computer, then the main task of the system test is to organize these three types of operations according to the timing and conditional relationship to form a test logic that can be used to judge whether the system function meets expectations. System testing is usually done by people (system function block diagram as figure 1 shown). When the test logic can be expressed in a programming language, the entire test process can be performed by the computer, so as ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3624G06F11/3644G06F11/366
Inventor 王维嘉朱雪耀王爽
Owner XIAN FLIGHT SELF CONTROL INST OF AVIC
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