CN111104309B - Method for quickly realizing comprehensive test flow - Google Patents
Method for quickly realizing comprehensive test flow Download PDFInfo
- Publication number
- CN111104309B CN111104309B CN201911121325.4A CN201911121325A CN111104309B CN 111104309 B CN111104309 B CN 111104309B CN 201911121325 A CN201911121325 A CN 201911121325A CN 111104309 B CN111104309 B CN 111104309B
- Authority
- CN
- China
- Prior art keywords
- test
- configuration information
- function unit
- parameters
- test function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims description 344
- 238000000034 method Methods 0.000 title claims description 100
- 238000005259 measurement Methods 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 9
- 238000004458 analytical method Methods 0.000 claims description 7
- 230000014509 gene expression Effects 0.000 claims description 7
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 claims 2
- 238000000605 extraction Methods 0.000 claims 1
- 238000005206 flow analysis Methods 0.000 claims 1
- 238000004806 packaging method and process Methods 0.000 claims 1
- 230000011218 segmentation Effects 0.000 claims 1
- 230000008569 process Effects 0.000 description 82
- 238000013461 design Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 101000746134 Homo sapiens DNA endonuclease RBBP8 Proteins 0.000 description 1
- 101000969031 Homo sapiens Nuclear protein 1 Proteins 0.000 description 1
- 102100021133 Nuclear protein 1 Human genes 0.000 description 1
- 238000013142 basic testing Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000002054 transplantation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Testing Or Calibration Of Command Recording Devices (AREA)
Abstract
Description
技术领域Technical field
本项目属于地面综合测试领域,给出一种快速实现测控系统综合测试流程的方法。This project belongs to the field of ground comprehensive testing and provides a method to quickly implement the comprehensive testing process of the measurement and control system.
背景技术Background technique
综合测试系统各项测试功能主要通过模拟、数字、通讯等不同的硬件功能板卡向被测系统发控制指令,同时采集并显示系统各种状态指示信息,按通讯协议要求进行数据通讯,进行数据的有效性判断。装备的多样化和复杂化程度不断提高,对地面综合测试系统提出更高的要求,而目前综合测试过程中存在测试流程容易变化、不同测试状态测试流程区别较大的现状,包括测试项目、测试判据等均需要重新设计与编码,传统综合测试流程设计和研制模式容易造成重复设计、研制效率低、维护成本高等问题。The various test functions of the comprehensive test system mainly send control instructions to the system under test through different hardware function boards such as analog, digital, and communication. At the same time, it collects and displays various status indication information of the system, conducts data communication according to the communication protocol requirements, and performs data processing. judgment of effectiveness. The diversification and complexity of equipment continue to increase, putting forward higher requirements for ground comprehensive test systems. However, in the current comprehensive test process, the test process is easy to change and the test process is quite different in different test states, including test items, tests Criteria, etc. all need to be redesigned and coded. The traditional comprehensive test process design and development model can easily cause problems such as repeated design, low development efficiency, and high maintenance costs.
发明内容Contents of the invention
本发明解决的技术问题是:提供一种综合测试流程快速实现方法,对测试流程需求进行快速响应,以尽量少的代码实现测试流程,缩短型号研制周期,降低研制成本。The technical problem solved by the present invention is to provide a method for rapid implementation of a comprehensive test process, respond quickly to test process requirements, implement the test process with as few codes as possible, shorten the model development cycle, and reduce development costs.
本发明解决技术的方案是:一种综合测试流程快速实现方法,通过下述方式实现:The technical solution of the present invention is: a method for rapid implementation of a comprehensive testing process, which is implemented in the following manner:
按照待测试系统的硬件接口类型进行测试功能类别划分;Divide test function categories according to the hardware interface type of the system to be tested;
针对划分的测试功能类别,对每种测试功能类别设计测试功能单元;所有的测试功能单元采用统一的接口参数;Based on the divided test function categories, design test function units for each test function category; all test function units use unified interface parameters;
依据设计的测试功能单元与统一接口参数,设计测试配置信息接口,建立配置信息与测试功能单元的映射关系;Based on the designed test functional units and unified interface parameters, design the test configuration information interface and establish the mapping relationship between the configuration information and the test functional units;
针对测试流程需求,依据测试配置信息接口进行测试流程配置,将同一测试流程中所有测试项目采用配置信息的形式建立测试流程需求与测试流程配置信息的对应关系,测试配置信息存储在配置文件中,文件中一行对应一个测试项目;According to the test process requirements, the test process configuration is performed according to the test configuration information interface, and all test items in the same test process are used in the form of configuration information to establish the corresponding relationship between the test process requirements and the test process configuration information. The test configuration information is stored in the configuration file. One line in the file corresponds to one test project;
从配置文件中顺序读取每一条配置信息,并进行解析,判断测试功能类别及其对应的测试功能单元,并将配置信息传递至测试功能单元的接口参数,由测试功能单元完成当前测试项目的执行,并通过接口参数输出测试结果,直至执行完所有的测试项目完成测试流程。Read each configuration information sequentially from the configuration file, analyze it, determine the test function category and its corresponding test function unit, and pass the configuration information to the interface parameters of the test function unit, and the test function unit completes the current test project Execute and output the test results through the interface parameters until all test items are executed to complete the test process.
优选的,针对测控类待测系统,测试功能类别划分包括AD测试、DI测试、DO测试、1553B测试、串口测试。Preferably, for the measurement and control system under test, the test function categories include AD test, DI test, DO test, 1553B test, and serial port test.
优选的,每种测试功能类别对应一种或多种测试功能单元,测试功能单元为对不同类型测试板卡驱动接口函数进行封装得到,为目前已验证的稳定测试功能单元;Preferably, each test function category corresponds to one or more test function units. The test function units are obtained by encapsulating different types of test board driver interface functions and are currently verified stable test function units;
其中,AD测试功能类至少包括单通道电压采集与判读功能单元,DI测试功能类至少包括单通道数字输入与判读功能单元,DO测试功能类至少包括单通道开关量输出功能单元,1553B测试功能类至少包括单消息指令输出与回令判读功能单元,串口测试功能类至少包括单帧指令输出与回令判读功能单元。Among them, the AD test function category at least includes a single-channel voltage acquisition and interpretation functional unit, the DI test function category at least includes a single-channel digital input and interpretation functional unit, the DO test function category at least includes a single-channel switching output functional unit, and the 1553B test function category It includes at least single message command output and reply command interpretation functional units, and the serial port test function category at least includes single frame command output and reply command interpretation functional units.
优选的,所述统一的接口参数包括输入参数、输出参数和返回值;所述的输入参数包含测试功能类别、测试项目名称、测试参数名称、测试功能单元关联参数;输出参数包含测试项目名称、测试参数名称、要求值、实测值、结论;返回值标识测试执行的正常/异常状态。Preferably, the unified interface parameters include input parameters, output parameters and return values; the input parameters include test function categories, test project names, test parameter names, and test function unit associated parameters; the output parameters include test project names, Test parameter name, required value, actual measured value, conclusion; return value identifies the normal/abnormal status of test execution.
优选的,所述的配置信息依据测试功能单元的输入参数,包括测试功能类别、测试项目名称、测试参数名称、测试功能单元标识、测试功能单元关联参数,每条配置信息通过测试功能单元标识与测试功能单元建立唯一对应关系。Preferably, the configuration information is based on the input parameters of the test function unit, including test function category, test item name, test parameter name, test function unit identifier, and test function unit associated parameters. Each piece of configuration information is combined with the test function unit identifier and The test functional unit establishes a unique correspondence.
优选的,所述的测试功能单元关联参数包含一个或多个参数项,由具体测试功能单元唯一确定;Preferably, the test function unit associated parameters include one or more parameter items, which are uniquely determined by the specific test function unit;
其中,AD测试功能类单通道电压采集与判读功能单元关联参数包括AD板卡标识、通道号、AD判据;DI测试功能类单通道数字输入与判读功能单元关联参数包括DI板卡标识、通道号、DI判据;DO测试功能类单通道开关量输出功能单元关联参数包括DO板卡标识、通道号、输出值;1553B测试功能类单消息指令输出与回令判读功能单元关联参数包括BC写RT消息地址、BC写RT数据、延时、BC读RT消息地址、判据;串口测试类单帧指令输出与回令判读功能单元关联参数包括发送串口ID、发送串口数据、延时、接收串口ID、判据。Among them, the parameters associated with the single-channel voltage acquisition and interpretation functional unit of the AD test function include AD board identification, channel number, and AD criterion; the parameters associated with the single-channel digital input and interpretation functional unit of the DI test function include the DI board identification, channel number, DI criterion; DO test functional single-channel switch output functional unit associated parameters include DO board identification, channel number, output value; 1553B test functional single message command output and callback interpretation functional unit associated parameters include BC write RT message address, BC write RT data, delay, BC read RT message address, criteria; parameters associated with the serial port test single frame command output and command response interpretation functional unit include sending serial port ID, sending serial port data, delay, receiving serial port ID, criterion.
优选的,所述的配置信息采用CSV格式文件进行存储,文件中每行配置信息对应一个测试项目;Preferably, the configuration information is stored in a CSV format file, and each line of configuration information in the file corresponds to a test project;
配置信息格式以规则字符串的方式表示不同参数,同种参数的表达规则应保持一致,字符串间以逗号分隔,字符串内不含逗号;配置参数按列顺序表示测试功能类别、测试项目名称、测试参数名称、功能单元标识、功能单元关联参数。The configuration information format expresses different parameters in the form of regular strings. The expression rules for the same type of parameters should be consistent. Strings are separated by commas, and the strings do not contain commas. Configuration parameters represent test function categories and test project names in column order. , test parameter name, functional unit identification, functional unit associated parameters.
优选的,测试流程配置时,通过Excel表格方式打开CSV格式文件进行配置,首先对照测试功能类别与测试功能单元,将测试流程需求的测试项映射到对应的测试功能单元作为一个独立测试项,依据测试流程配置信息格式进行流程配置,形成与测试流程需求一致的测试流程配置文件。Preferably, when configuring the test process, open the CSV format file through Excel table for configuration. First, compare the test function category and the test function unit, and map the test items required by the test process to the corresponding test function unit as an independent test item. According to The test process configuration information format is used to configure the process to form a test process configuration file that is consistent with the test process requirements.
优选的,通过下述方式完成测试流程解析:Preferably, the test process analysis is completed in the following manner:
首先,以字符串的方式顺序读取配置文件一条配置信息,采用逗号分隔符进行参数分割,完成一次解析提取功能单元标识,依据功能单元标识进入对应功能单元;First, read a piece of configuration information from the configuration file sequentially in the form of a string, use comma delimiters to separate parameters, complete a parsing and extract the functional unit identifier, and enter the corresponding functional unit based on the functional unit identifier;
然后,在测试功能单元中依据配置信息中各功能单元关联参数表达规则建立与之对应的正则表达式,采用正则匹配的方法进行二次解析,提取功能单元关联参数。Then, in the test functional unit, a corresponding regular expression is established based on the expression rules of the associated parameters of each functional unit in the configuration information, and the regular matching method is used for secondary analysis to extract the functional unit associated parameters.
优选的,配置信息解析后,将参数传递至对应功能单元处理,处理完成后形成输出参数,包括测试项目名称、测试参数名称、要求值、实测值、结论。Preferably, after the configuration information is parsed, the parameters are passed to the corresponding functional unit for processing. After the processing is completed, the output parameters are formed, including test project names, test parameter names, required values, actual measured values, and conclusions.
本发明与现有技术相比的有益效果是:Compared with the prior art, the beneficial effects of the present invention are:
为了快速实现系统综合测试流程,本发明结合测控系统的测试特点,将测试流程从程序中分离出来,通过配置文件的方式完成测试流程快速实现,提高测试流程的实现效率。In order to quickly realize the system comprehensive test process, the present invention combines the test characteristics of the measurement and control system to separate the test process from the program, complete the rapid implementation of the test process through configuration files, and improve the implementation efficiency of the test process.
相较于现有技术大多面向具体测试应用通过对测试流程各测试项目逐一代码实现的方式,本发明充分利用了基于硬件接口类型划分的测试功能单元模块化复用和配置文件表格信息高效处理的优点,采用格式化表格配置的方式实现测试流程,只需编写基本测试功能单元模块程序,测试流程以表格信息编辑的方式最大化减少测试流程实现时间,尤其对于测试流程序列长、测试项目、测试参数、判据易变的测试应用场景效果明显。这种基于配置文件的测试流程快速实现方法能够很好应用于不同型号下多状态的系统综合测试流程,减少设计和测试工作量,方便移植和推广。Compared with the existing technology, which is mostly oriented to specific test applications and implements each test item of the test process one by one through code, the present invention makes full use of modular multiplexing of test function units based on hardware interface type division and efficient processing of configuration file table information. Advantages: The test process is implemented by formatting table configuration, and only the basic test function unit module program is written. The test process uses table information editing to minimize the test process implementation time, especially for long test process sequences, test items, and tests. The effect is obvious in test application scenarios with variable parameters and criteria. This configuration file-based rapid implementation method of the test process can be well applied to the comprehensive test process of multi-state systems under different models, reducing the design and testing workload and facilitating transplantation and promotion.
附图说明Description of the drawings
图1为本发明测试流程配置文件示意图;Figure 1 is a schematic diagram of the test process configuration file of the present invention;
图2为本发明测试流程执行示意图;Figure 2 is a schematic diagram of the execution of the test process of the present invention;
图3为本发明基于配置文件测试执行流程图。Figure 3 is a flow chart of the present invention based on configuration file test execution.
具体实施方式Detailed ways
下面结合实施例对本发明作进一步阐述。The present invention will be further described below in conjunction with the examples.
本发明结合测控系统测试特点,将测试流程的可变部分信息写入配置文件,软件程序中保留相对稳定的测试功能单元模块,对各测试流程设计独立的测试流程配置文件。依据测试流程要求分解测试项目,进行测试功能类型划分,采用统一流程测试项目配置接口进行流程配置,通过测试流程的配置快速实现综合测试流程。The invention combines the testing characteristics of the measurement and control system, writes the variable part information of the test process into the configuration file, retains relatively stable test function unit modules in the software program, and designs independent test process configuration files for each test process. Decompose the test items according to the test process requirements, divide the test function types, use the unified process test item configuration interface to configure the process, and quickly implement the comprehensive test process through the configuration of the test process.
a)测试流程需求a) Test process requirements
依据系统任务输入,进行系统测试需求分析,包括接口类型,测试项目等详细信息形成测试流程具体要求,部分测试流程见表1。Based on the system task input, system test requirements are analyzed, including interface types, test items and other detailed information to form specific requirements for the test process. See Table 1 for part of the test process.
表1测试流程要求Table 1 Test process requirements
b)测试流程配置与部署b) Test process configuration and deployment
对测试流程要求进行分析,将测试需求对应到配置文件接口,对测试项目、测试类型、测试通道/地址、测试判据等进行配置,形成测试流程配置文件如图1所示。Analyze the test process requirements, map the test requirements to the configuration file interface, configure the test items, test types, test channels/addresses, test criteria, etc., to form the test process configuration file as shown in Figure 1.
c)测试流程执行c) Test process execution
测试流程配置完成即可开始测试执行,软件测试流程执行过程如图2所示。测试信息列表显示当前测试项目信息,其中测试项标识当前测试项目名称,测试参数为需要测试的数据,软件显示要求值与实测值并自动进行判读,给出是否合格的测试结论。After the test process configuration is completed, test execution can begin. The software test process execution process is shown in Figure 2. The test information list displays the current test item information, in which the test item identifies the name of the current test item, and the test parameters are the data that need to be tested. The software displays the required values and actual measured values and automatically interprets them to give a test conclusion on whether they are qualified or not.
以上基于配置文件的综合测试流程快速实现方法能够很好应用于不同型号下多状态的系统测试,能兼容在多状态下的等效检查、单元测试、散装测试、匹配测试、总装测试流程。The above rapid implementation method of comprehensive test process based on configuration files can be well applied to multi-state system testing under different models, and is compatible with equivalence inspection, unit testing, bulk testing, matching testing, and final assembly testing processes in multi-states.
实施例Example
本发明为综合测试流程快速实现方法,具体实施过程主要包括测试功能类别划分、测试功能单元设计、配置信息格式设计、测试流程配置、配置信息解析与测试执行,下面以某系统测试流程为例说明具体实施方式。The present invention is a method for rapid implementation of a comprehensive test process. The specific implementation process mainly includes test function category division, test function unit design, configuration information format design, test process configuration, configuration information analysis and test execution. The following is explained by taking a certain system test process as an example. Detailed ways.
a)测试功能类别划分a) Division of test function categories
综合测试一般包括通过开关量板卡模拟发控制指令、AD板卡进行电压采集、数字DI状态监测、1553B或串口进行通讯指令测试,由于硬件接口相对稳定,测试流程变化较大,可依据测试流程需求对测试流程的各测试项目按测试硬件接口类型进行功能类别划分,将测试类型划分为AD测试、DI测试、DO测试、1553B测试、串口测试。Comprehensive testing generally includes sending control instructions through the simulation of switching boards, voltage acquisition with AD boards, digital DI status monitoring, and communication instruction testing with 1553B or serial ports. Since the hardware interface is relatively stable, the test process changes greatly, and the test process can be followed It is required to divide the test items of the test process into functional categories according to the test hardware interface type, and divide the test types into AD test, DI test, DO test, 1553B test, and serial port test.
b)测试功能单元设计b) Test functional unit design
依据测试类型和具体测试项目对各板卡功能类型分别进行测试功能单元设计,通过对不同类型测试板卡驱动接口函数进行封装完成测试功能单元基本功能,各功能函数采用统一接口参数,参数接口包含输入参数、输出参数、返回值。其中,输入参数包含测试功能类别、测试项目名称、测试参数名称、功能单元关联参数,输出参数包含测试项目名称、测试参数名称、要求值、实测值、结论,返回值标识测试执行的正常/异常状态。AD测试、DI测试、DO测试、1553B测试、串口测试各测试类型功能单元设计内容具体见下表2。According to the test type and specific test items, the test function unit is designed separately for each board function type. The basic functions of the test function unit are completed by encapsulating different types of test board driver interface functions. Each function function adopts unified interface parameters, and the parameter interface includes Input parameters, output parameters, return value. Among them, the input parameters include the test function category, test project name, test parameter name, and functional unit associated parameters. The output parameters include the test project name, test parameter name, required value, actual measured value, and conclusion. The return value identifies the normal/abnormal test execution. state. The design content of each test type functional unit of AD test, DI test, DO test, 1553B test, and serial port test is detailed in Table 2 below.
表2测试功能单元设计Table 2 Test function unit design
c)配置信息格式设计c) Configuration information format design
对于测试流程中同种测试类型的不同测试项目,采用配置信息的形式进行区分,根据测试功能单元的接口参数,分别设计AD单通道电压采集与判读单元、DI单通道数字输入与判读单元、DO单通道开关量输出单元、1553B单消息指令与回令判读单元、串口单帧指令发送与回令判读单元的参数配置格式。配置信息采用CSV文件方式进行存储,配置内容依据测试功能单元的输入参数,包括测试功能类别,测试项目名称,测试参数名称,功能单元标识,功能单元关联参数,不同功能单元配置信息格式具体设计及说明见表3。For different test items of the same test type in the test process, they are distinguished in the form of configuration information. According to the interface parameters of the test functional unit, the AD single-channel voltage acquisition and interpretation unit, DI single-channel digital input and interpretation unit, and DO are designed respectively. Parameter configuration format of single-channel switch output unit, 1553B single message command and reply interpretation unit, and serial port single frame command sending and reply interpretation unit. Configuration information is stored in CSV files. The configuration content is based on the input parameters of the test functional unit, including test function category, test project name, test parameter name, functional unit identification, functional unit associated parameters, specific design and configuration information format of different functional units. See Table 3 for instructions.
测试功能单元关联参数包含一个或多个参数项,由具体测试功能单元唯一确定;其中,AD测试功能类单通道电压采集与判读功能单元关联参数包括AD板卡标识、通道号、AD判据;DI测试功能类单通道数字输入与判读功能单元关联参数包括DI板卡标识、通道号、DI判据;DO测试功能类单通道开关量输出功能单元关联参数包括DO板卡标识、通道号、输出值;1553B测试功能类单消息指令输出与回令判读功能单元关联参数包括BC写RT消息地址、BC写RT数据、延时、BC读RT消息地址、判据;串口测试类单帧指令输出与回令判读功能单元关联参数包括发送串口ID、发送串口数据、延时、接收串口ID、判据The associated parameters of the test functional unit include one or more parameter items, which are uniquely determined by the specific test functional unit; among them, the associated parameters of the AD test functional single-channel voltage acquisition and interpretation functional unit include AD board identification, channel number, and AD criterion; Parameters associated with the single-channel digital input and interpretation functional unit of the DI test function include DI board identification, channel number, and DI criteria; parameters associated with the single-channel switching output functional unit of the DO test function include DO board identification, channel number, and output Value; 1553B test function type single message command output and response command interpretation functional unit associated parameters include BC write RT message address, BC write RT data, delay, BC read RT message address, criteria; serial port test type single frame command output and Parameters associated with the command-back interpretation functional unit include sending serial port ID, sending serial port data, delay, receiving serial port ID, and criteria.
表3配置信息接口格式Table 3 Configuration information interface format
对于其他测试类型和功能单元,可按a)条和b)条重新识别并进行独立实现,同时提供与其对应的参数配置接口标识。For other test types and functional units, they can be re-identified and independently implemented according to items a) and b), and their corresponding parameter configuration interface identifiers are provided.
d)测试流程配置d) Test process configuration
测试流程配置时通过Excel表格方式打开CSV配置文件进行配置,表格中每一行配置信息对应一个测试项目,配置参数按列顺序表示不同参数类型,分别包括测试功能类别、测试项目名称、测试参数名称、功能单元标识、功能单元关联参数,每条测试项配置信息均以该规则进行配置(如图1所示);When configuring the test process, open the CSV configuration file through an Excel table. Each row of configuration information in the table corresponds to a test project. The configuration parameters represent different parameter types in column order, including test function category, test project name, test parameter name, Functional unit identification, functional unit associated parameters, and each test item configuration information are configured according to this rule (as shown in Figure 1);
首先对照测试功能类别与测试功能单元(如表2所示),依据测试流程需求(如表1所示),将测试流程需求的测试项映射到对应的测试功能单元作为一个独立测试项,依据测试流程配置信息格式(如表3所示)进行流程配置,形成与测试流程需求一致的测试流程配置文件(如图1所示)。First, compare the test function category and the test function unit (as shown in Table 2), and map the test items of the test process requirements to the corresponding test function unit as an independent test item according to the test process requirements (as shown in Table 1). The test process configuration information format (as shown in Table 3) is used to configure the process to form a test process configuration file that is consistent with the test process requirements (as shown in Figure 1).
e)配置信息解析与测试执行e) Configuration information analysis and test execution
测试流程的执行通过流程配置文件驱动,当多个测试流程时对每个测试流程设置独立流程配置文件,配置文件中每一行配置信息对应一个测试项目,执行测试时以字符串的方式顺序读取配置文件一条测试项配置信息,采用逗号分隔符进行参数分割,完成一次解析提取功能单元标识。The execution of the test process is driven by the process configuration file. When there are multiple test processes, an independent process configuration file is set for each test process. Each line of configuration information in the configuration file corresponds to a test project. When executing the test, it is read sequentially in the form of a string. A piece of test item configuration information in the configuration file uses comma delimiters to separate parameters and complete one parsing to extract the functional unit identifier.
通过功能单元标识参数判断进入相应功能单元处理分支建立与不同功能单元关联参数对应的正则表达式,采用正则匹配的方法进行二次解析,提取功能单元关联参数。传递测试单元关联参数分别执行AD电压采集与判读、DI数字输入与判读、DO开关量输出、1553B指令测试、串口指令测试操作,处理完成后形成输出参数,包括测试项目名称、测试参数名称、要求值、实测值、结论。执行完成后进入下一项测试,所有测试项执行完成退出自动测试流程,测试执行流程如图3所示。Through the judgment of functional unit identification parameters, enter the corresponding functional unit processing branch to establish regular expressions corresponding to the associated parameters of different functional units, and use the regular matching method to perform secondary analysis to extract the functional unit associated parameters. Pass the relevant parameters of the test unit to perform AD voltage acquisition and interpretation, DI digital input and interpretation, DO switch output, 1553B command test, and serial port command test operations respectively. After the processing is completed, the output parameters are formed, including test project name, test parameter name, and requirements. values, measured values, and conclusions. After the execution is completed, enter the next test. After all test items are executed, exit the automatic test process. The test execution process is shown in Figure 3.
具体,对于AD测试功能类单通道电压采集与判读功能单元,依据板卡标识及通道号,采集对应板卡指定通道电压(实测值),然后将电压值与电压判据(要求值)进行比对判断得出结论(合格/不合格);Specifically, for the AD test function single-channel voltage acquisition and interpretation functional unit, based on the board identification and channel number, the specified channel voltage (actual measured value) of the corresponding board is collected, and then the voltage value is compared with the voltage criterion (required value) Draw conclusions from judgments (pass/fail);
对于DI测试功能类单通道数字输入与判读功能单元,依据板卡标识及通道号,采集对应板卡指定通道DI值(实测值),然后将DI值与DI判据(要求值)进行比对判断得出结论(合格/不合格);For the single-channel digital input and interpretation functional unit of the DI test function, according to the board identification and channel number, collect the DI value (actual measured value) of the specified channel of the corresponding board, and then compare the DI value with the DI criterion (required value) Judgment and conclusion (pass/fail);
对于DO测试功能类单通道开关量输出功能单元,依据板卡标识、通道号、输出值,将对应板卡指定通道进行DO输出;For the DO test functional single-channel switching output functional unit, based on the board identification, channel number, and output value, the designated channel of the corresponding board will perform DO output;
对于1553B测试功能类单消息指令输出与回令判读功能单元,依据BC写RT消息地址发送指定数据,等待延时时间后从BC读RT消息地址回读数据(实测值),并与判据(要求值)进行比对判断得出结论(合格/不合格);For the 1553B test function single message command output and callback interpretation functional unit, send the specified data according to the BC write RT message address, wait for the delay time and read back the data (actual measured value) from the BC read RT message address, and compare it with the criterion ( Required value) for comparison and judgment to draw a conclusion (pass/fail);
对于串口测试类单帧指令输出与回令判读功能单元,通过发送串口发送数据,等待延时后从接收串口回读数据(实测值)并与判据(要求值)进行比对判断得出结论(合格/不合格)。For the serial port test type single frame command output and command response interpretation functional unit, data is sent through the sending serial port, and after waiting for a delay, the data (actual measured value) is read back from the receiving serial port and compared with the criterion (required value) to draw a conclusion. (pass/fail).
通过a)-e)五个步骤,完成测试流程配置,快速实现测试流程的配置部署、自动化执行与测试结果的判读与处理,满足测控系统的测试流程需求,测试执行效果如图2所示。Through the five steps a)-e), the test process configuration is completed, and the configuration and deployment of the test process, automated execution, and test result interpretation and processing are quickly realized to meet the test process requirements of the measurement and control system. The test execution effect is shown in Figure 2.
本发明未详细说明部分属于本领域技术人员的公知常识。The parts not described in detail in the present invention belong to the common knowledge of those skilled in the art.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911121325.4A CN111104309B (en) | 2019-11-15 | 2019-11-15 | Method for quickly realizing comprehensive test flow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911121325.4A CN111104309B (en) | 2019-11-15 | 2019-11-15 | Method for quickly realizing comprehensive test flow |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111104309A CN111104309A (en) | 2020-05-05 |
CN111104309B true CN111104309B (en) | 2023-09-29 |
Family
ID=70420551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911121325.4A Active CN111104309B (en) | 2019-11-15 | 2019-11-15 | Method for quickly realizing comprehensive test flow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111104309B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112511367B (en) * | 2020-07-31 | 2022-11-15 | 中国移动通信有限公司研究院 | Test method and test equipment |
CN112765037B (en) * | 2021-01-28 | 2024-12-31 | 湖北三江航天红峰控制有限公司 | A testing method and system for updating test information in real time |
CN113740758A (en) * | 2021-09-04 | 2021-12-03 | 深圳一信泰质量技术有限公司 | Automatic energy efficiency testing method, device, equipment and medium for power supply product |
CN115578962A (en) * | 2022-11-08 | 2023-01-06 | 苏州华兴源创科技股份有限公司 | Display module testing method and device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1510572A (en) * | 2002-12-23 | 2004-07-07 | 联想(北京)有限公司 | Automatic assembling testing procedure for production |
CN103345442A (en) * | 2013-06-06 | 2013-10-09 | 莱诺斯科技(北京)有限公司 | Equipment automated testing service integration system |
WO2016061936A1 (en) * | 2014-10-22 | 2016-04-28 | 中兴通讯股份有限公司 | Single-board test method and device, storage medium |
CN107144779A (en) * | 2017-06-29 | 2017-09-08 | 珠海全志科技股份有限公司 | PMU method of testings, device and system |
CN108803564A (en) * | 2018-05-28 | 2018-11-13 | 湖北三江航天万峰科技发展有限公司 | A kind of communication control equipment automatization test system and method |
CN109800119A (en) * | 2018-12-25 | 2019-05-24 | 深圳市元征科技股份有限公司 | A kind of product function test method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9021438B2 (en) * | 2013-06-20 | 2015-04-28 | Sap Portals Israel Ltd | Automatic framework for parallel testing on multiple testing environments |
-
2019
- 2019-11-15 CN CN201911121325.4A patent/CN111104309B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1510572A (en) * | 2002-12-23 | 2004-07-07 | 联想(北京)有限公司 | Automatic assembling testing procedure for production |
CN103345442A (en) * | 2013-06-06 | 2013-10-09 | 莱诺斯科技(北京)有限公司 | Equipment automated testing service integration system |
WO2016061936A1 (en) * | 2014-10-22 | 2016-04-28 | 中兴通讯股份有限公司 | Single-board test method and device, storage medium |
CN107144779A (en) * | 2017-06-29 | 2017-09-08 | 珠海全志科技股份有限公司 | PMU method of testings, device and system |
CN108803564A (en) * | 2018-05-28 | 2018-11-13 | 湖北三江航天万峰科技发展有限公司 | A kind of communication control equipment automatization test system and method |
CN109800119A (en) * | 2018-12-25 | 2019-05-24 | 深圳市元征科技股份有限公司 | A kind of product function test method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111104309A (en) | 2020-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111104309B (en) | Method for quickly realizing comprehensive test flow | |
CN100456191C (en) | A satellite automatic test platform and test method | |
CN100589420C (en) | Function operation packaging based automatization test script implementing method and apparatus | |
CN106682036A (en) | Data exchange system and exchange method thereof | |
CN104778124A (en) | Automatic testing method for software application | |
CN105528290A (en) | Construction method of script-based embedded software simulation and test integrated platform | |
CN111125052B (en) | Big data intelligent modeling system and method based on dynamic metadata | |
CN101778016A (en) | Design method of virtual testing system of network device | |
CN103079086A (en) | Automatic testing system for set-top box | |
CN113602526A (en) | Verification test method and system for aircraft electromechanical fault prediction and health management system | |
CN101174237B (en) | Automatic test method, system and test device | |
CN103345442A (en) | Equipment automated testing service integration system | |
CN110989549B (en) | Software test general automation control method and device for train control system | |
CN103077192B (en) | A kind of data processing method and system thereof | |
CN107247827B (en) | Modeling of virtual terminal model and automatic connection method based on machine learning | |
CN109542985B (en) | Universal stream data analysis model and construction method thereof | |
CN105137218A (en) | System and method for identifying detected product | |
CN111124892A (en) | Automatic testing method and system based on command line | |
CN102236068B (en) | A kind of method and apparatus of chip testing | |
CN108009086B (en) | System Automation Testing Method Based on Use Case Decomposition and Functional Learning | |
EP2972880A1 (en) | Kernel functionality checker | |
CN106155881B (en) | For the applied program testing method and system of VxWorks platform | |
CN116450526A (en) | Database cross-platform distributed automatic test system and method based on workflow | |
CN108521350A (en) | An XML-driven script-based automated testing method for industrial gateway equipment | |
CN111208993B (en) | Flow data analysis processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |