[go: up one dir, main page]

CN118777834A - A circuit module testing method, device and equipment - Google Patents

A circuit module testing method, device and equipment Download PDF

Info

Publication number
CN118777834A
CN118777834A CN202410856605.4A CN202410856605A CN118777834A CN 118777834 A CN118777834 A CN 118777834A CN 202410856605 A CN202410856605 A CN 202410856605A CN 118777834 A CN118777834 A CN 118777834A
Authority
CN
China
Prior art keywords
test
module
test data
data
circuit module
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.)
Pending
Application number
CN202410856605.4A
Other languages
Chinese (zh)
Inventor
赵杨梅
苏璟
田谨晓
刘帅
熊天华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aerospace Xinli Technology Co ltd
Original Assignee
Beijing Aerospace Xinli Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Aerospace Xinli Technology Co ltd filed Critical Beijing Aerospace Xinli Technology Co ltd
Priority to CN202410856605.4A priority Critical patent/CN118777834A/en
Publication of CN118777834A publication Critical patent/CN118777834A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2832Specific tests of electronic circuits not provided for elsewhere
    • G01R31/2834Automated test systems [ATE]; using microprocessors or computers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

本申请提供一种电路模件测试方法、装置及设备,通过发送第一测试指令至第一测试模块,在所述第一测试模块执行所述第一测试指令指示的动作后,从所述第一测试模块获取第一测试数据;通过发送第二测试指令至第二测试模块,在所述第二测试模块执行所述第二测试指令指示的动作后,从通信模块获取第二测试数据;根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值;基于所述测试值与所述目标指标对应的理论值的比较结果,确定所述电路模件是否测试合格。本申请能够自动化获取两种类型的数据,能够自动化获取的测试数据更全面,使自动化测试能够通用于更多的电路模件测试任务。

The present application provides a circuit module testing method, device and equipment, by sending a first test instruction to a first test module, after the first test module executes the action indicated by the first test instruction, obtaining first test data from the first test module; by sending a second test instruction to a second test module, after the second test module executes the action indicated by the second test instruction, obtaining second test data from a communication module; determining the test value corresponding to the target indicator according to the first test data and the second test data; and determining whether the circuit module is qualified based on the comparison result between the test value and the theoretical value corresponding to the target indicator. The present application can automatically obtain two types of data, and the test data that can be automatically obtained is more comprehensive, so that the automated test can be applied to more circuit module testing tasks.

Description

一种电路模件测试方法、装置及设备A circuit module testing method, device and equipment

技术领域Technical Field

本申请实施例涉及电路模件测试技术领域,尤其涉及一种电路模件测试方法、装置及设备。The embodiments of the present application relate to the technical field of circuit module testing, and in particular, to a circuit module testing method, device and equipment.

背景技术Background Art

在某些特殊领域使用的电路模件要求其必须具备高可靠性,模拟其工作过程并测试其性能指标是保证电路模件可靠性的关键环节。采用自动测试设备对被测的电路模件进行测试,不仅能减少测试时间成本,还能提高测试数据的可靠性、一致性。现有的自动化测试设备、测试软件大都基于产品整机系统进行设计、开发,针对组成整机系统的电路模件的自动化测试设备较少,导致电路模件的测试难度大。Circuit modules used in certain special fields must have high reliability. Simulating their working process and testing their performance indicators are key links to ensure the reliability of circuit modules. Using automatic test equipment to test the circuit modules under test can not only reduce the test time cost, but also improve the reliability and consistency of test data. Most of the existing automatic test equipment and test software are designed and developed based on the product system. There are few automatic test equipment for circuit modules that make up the system, which makes the testing of circuit modules difficult.

发明内容Summary of the invention

为解决现有技术没有针对组成整机系统的电路模件的自动化测试的问题,以及电路模件测试没有考虑测试软件与测试模块之间的通信特点,导致能够自动化获取的测试数据不够全面,自动化测试的通用性较低的问题,本申请实施例提供了一种电路模件测试方法、装置及设备。In order to solve the problem that the prior art lacks automated testing for circuit modules that constitute the entire system, and that the circuit module test does not take into account the communication characteristics between the test software and the test module, resulting in the test data that can be automatically acquired being not comprehensive enough and the versatility of the automated test being low, the embodiments of the present application provide a circuit module testing method, device and equipment.

根据本申请实施例的第一方面,提供一种电路模件测试方法,应用于测试设备,所述测试设备用于对所述电路模件的目标指标进行测试,所述电路模件测试方法包括:According to a first aspect of an embodiment of the present application, a circuit module testing method is provided, which is applied to a testing device, wherein the testing device is used to test a target indicator of the circuit module, and the circuit module testing method includes:

发送第一测试指令至第一测试模块,在所述第一测试模块执行所述第一测试指令指示的动作后,从所述第一测试模块获取第一测试数据;Sending a first test instruction to a first test module, and obtaining first test data from the first test module after the first test module executes an action indicated by the first test instruction;

发送第二测试指令至第二测试模块,在所述第二测试模块执行所述第二测试指令指示的动作后,从通信模块获取第二测试数据,其中所述通信模块与所述第二测试模块通信连接;Sending a second test instruction to a second test module, and after the second test module executes an action indicated by the second test instruction, acquiring second test data from a communication module, wherein the communication module is in communication connection with the second test module;

根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值;Determine a test value corresponding to the target indicator according to the first test data and the second test data;

基于所述测试值与所述目标指标对应的理论值的比较结果,确定所述电路模件的所述目标指标是否测试合格。Based on the comparison result between the test value and the theoretical value corresponding to the target indicator, it is determined whether the target indicator of the circuit module is qualified.

可选的,所述从通信模块获取第二测试数据,包括;Optionally, the acquiring the second test data from the communication module includes:

等待所述通信模块回传所述第二测试数据。Wait for the communication module to return the second test data.

可选的,所述电路模件测试方法包括:Optionally, the circuit module testing method includes:

在第一阶段或第四阶段执行所述发送所述第一测试指令至第一测试模块的步骤,在第二阶段或第五阶段执行所述发送所述第二测试指令至第二测试模块的步骤,在第三阶段或第六阶段执行所述等待所述通信模块回传所述第二测试数据的步骤。In the first stage or the fourth stage, the step of sending the first test instruction to the first test module is executed, in the second stage or the fifth stage, the step of sending the second test instruction to the second test module is executed, and in the third stage or the sixth stage, the step of waiting for the communication module to return the second test data is executed.

可选的,所述根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值,包括:Optionally, determining the test value corresponding to the target indicator according to the first test data and the second test data includes:

根据所述目标指标对应的组合方式对所述第一测试数据与所述第二测试数据进行组合,得到所述目标指标对应的测试值。The first test data and the second test data are combined according to the combination method corresponding to the target indicator to obtain a test value corresponding to the target indicator.

可选的,在对所述第一测试数据与所述第二测试数据进行组合之前,所述电路模件测试方法还包括:Optionally, before combining the first test data with the second test data, the circuit module testing method further includes:

根据所述通信模块对应的通信协议对所述第一测试数据和/或所述第二测试数据进行校验。The first test data and/or the second test data are verified according to a communication protocol corresponding to the communication module.

可选的,在对所述第一测试数据与所述第二测试数据进行组合之前,所述电路模件测试方法还包括:Optionally, before combining the first test data with the second test data, the circuit module testing method further includes:

对所述第一测试数据和/或所述第二测试数据进行目标字节的提取。Extract target bytes from the first test data and/or the second test data.

可选的,在对所述第一测试数据与所述第二测试数据进行组合之前,所述电路模件测试方法还包括:Optionally, before combining the first test data with the second test data, the circuit module testing method further includes:

根据所述目标指标对应的单位对所述第一测试数据和/或所述第二测试数据进行转换。The first test data and/or the second test data are converted according to a unit corresponding to the target indicator.

可选的,在发送测试指令至测试模块之前,所述电路模件测试方法还包括:Optionally, before sending the test instruction to the test module, the circuit module testing method further includes:

获取测试人员制作的测试流程文件,从所述测试流程文件中读取测试指令,其中,所述测试指令包括所述第一测试指令和所述第二测试指令。A test flow file prepared by a tester is obtained, and a test instruction is read from the test flow file, wherein the test instruction includes the first test instruction and the second test instruction.

根据本申请实施例的第二方面,提供一种电路模件测试装置,所述电路模件测试装置包括:According to a second aspect of an embodiment of the present application, a circuit module testing device is provided, the circuit module testing device comprising:

第一获取模块,用于发送第一测试指令至第一测试模块,在所述第一测试模块执行所述第一测试指令指示的动作后,从所述第一测试模块获取第一测试数据;A first acquisition module, configured to send a first test instruction to a first test module, and acquire first test data from the first test module after the first test module executes an action indicated by the first test instruction;

第二获取模块,用于发送第二测试指令至第二测试模块,在所述第二测试模块执行所述第二测试指令指示的动作后,从通信模块获取第二测试数据,其中所述通信模块与所述第二测试模块通信连接;A second acquisition module, configured to send a second test instruction to a second test module, and acquire second test data from a communication module after the second test module executes an action indicated by the second test instruction, wherein the communication module is in communication connection with the second test module;

第一确定模块,用于根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值;A first determining module, configured to determine a test value corresponding to the target indicator according to the first test data and the second test data;

第二确定模块,用于基于所述测试值与所述目标指标对应的理论值的比较结果,确定所述电路模件是否测试合格。The second determination module is used to determine whether the circuit module is qualified based on the comparison result between the test value and the theoretical value corresponding to the target indicator.

可选的,所述第二获取模块从通信模块获取第二测试数据,包括;Optionally, the second acquisition module acquires the second test data from the communication module, including:

所述第二获取模块等待所述通信模块回传所述第二测试数据。The second acquisition module waits for the communication module to return the second test data.

可选的,所述第一获取模块用于在第一阶段或第四阶段执行所述发送所述第一测试指令至第一测试模块的步骤;Optionally, the first acquisition module is used to perform the step of sending the first test instruction to the first test module in the first stage or the fourth stage;

所述第二获取模块用于在第二阶段或第五阶段执行所述发送所述第二测试指令至第二测试模块的步骤,在第三阶段或第六阶段执行所述等待所述通信模块回传所述第二测试数据的步骤。The second acquisition module is used to execute the step of sending the second test instruction to the second test module in the second stage or the fifth stage, and to execute the step of waiting for the communication module to return the second test data in the third stage or the sixth stage.

可选的,所述第一确定模块用于根据所述目标指标对应的组合方式对所述第一测试数据与所述第二测试数据进行组合,得到所述目标指标对应的测试值。Optionally, the first determination module is used to combine the first test data and the second test data according to a combination method corresponding to the target indicator to obtain a test value corresponding to the target indicator.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

校验模块,用于在对所述第一测试数据与所述第二测试数据进行组合之前,根据所述通信模块对应的通信协议对所述第一测试数据和/或所述第二测试数据进行校验。A verification module is used to verify the first test data and/or the second test data according to the communication protocol corresponding to the communication module before combining the first test data with the second test data.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

提取模块,用于在对所述第一测试数据与所述第二测试数据进行组合之前,对所述第一测试数据和/或所述第二测试数据进行目标字节的提取。An extraction module is used to extract target bytes from the first test data and/or the second test data before combining the first test data with the second test data.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

转换模块,用于在对所述第一测试数据与所述第二测试数据进行组合之前,根据所述目标指标对应的单位对所述第一测试数据和/或所述第二测试数据进行转换。A conversion module is used to convert the first test data and/or the second test data according to the unit corresponding to the target indicator before combining the first test data with the second test data.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

第三获取模块,用于在发送测试指令至测试模块之前,获取测试人员制作的测试流程文件,从所述测试流程文件中读取测试指令,其中,所述测试指令包括所述第一测试指令和所述第二测试指令。The third acquisition module is used to acquire a test flow file created by a tester before sending the test instruction to the test module, and read the test instruction from the test flow file, wherein the test instruction includes the first test instruction and the second test instruction.

根据本申请实施例的第三方面,提供一种电路模件测试设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现上述第一方面提供的任一种电路模件测试方法。According to a third aspect of an embodiment of the present application, a circuit module testing device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the circuit module testing methods provided in the first aspect is implemented.

本申请提供的技术方案可以包括以下有益效果:The technical solution provided by this application may have the following beneficial effects:

本申请通过发送第一测试指令至第一测试模块,在所述第一测试模块执行所述第一测试指令指示的动作后,从所述第一测试模块获取第一测试数据;通过发送第二测试指令至第二测试模块,在所述第二测试模块执行所述第二测试指令指示的动作后,从通信模块获取第二测试数据,其中所述通信模块与所述第二测试模块通信连接;根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值;基于所述测试值与所述目标指标对应的理论值的比较结果,确定所述电路模件是否测试合格。本申请能够自动化获取两种类型的数据,第一类是基于测试软件与测试模块直接通信,直接从测试模块获取的第一测试数据,第二类是基于测试软件与测试模块间接通信,从与测试模块通信连接的通信模块处获取的第二测试数据,考虑了测试软件与测试模块之间的通信特点,能够自动化获取的测试数据更全面,使自动化测试能够通用于更多的电路模件测试任务。The present application sends a first test instruction to a first test module, and after the first test module executes the action indicated by the first test instruction, obtains the first test data from the first test module; sends a second test instruction to a second test module, and after the second test module executes the action indicated by the second test instruction, obtains the second test data from the communication module, wherein the communication module is connected to the second test module; determines the test value corresponding to the target indicator according to the first test data and the second test data; determines whether the circuit module is qualified based on the comparison result between the test value and the theoretical value corresponding to the target indicator. The present application can automatically obtain two types of data, the first type is the first test data directly obtained from the test module based on direct communication between the test software and the test module, and the second type is the second test data obtained from the communication module connected to the test module based on indirect communication between the test software and the test module. The communication characteristics between the test software and the test module are taken into consideration, and the test data that can be automatically obtained are more comprehensive, so that the automated test can be applied to more circuit module testing tasks.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请实施例。It should be understood that the above general description and the following detailed description are merely exemplary and explanatory and do not limit the embodiments of the present application.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本申请实施例的一部分,示出了符合本申请实施例的实施例,并与说明书一起用于解释本申请实施例的原理。The drawings herein are incorporated into the specification and constitute a part of the embodiments of the present application, illustrate embodiments consistent with the embodiments of the present application, and together with the description are used to explain the principles of the embodiments of the present application.

图1是本申请一实施例提供的一种电路模件测试方法的第一流程图。FIG. 1 is a first flow chart of a circuit module testing method provided in an embodiment of the present application.

图2是本申请一实施例提供的一种电路模件测试方法的第二流程图。FIG. 2 is a second flow chart of a circuit module testing method provided in an embodiment of the present application.

图3A是本申请一实施例提供的一种电路模件测试方法的第三流程图。FIG. 3A is a third flow chart of a circuit module testing method provided in an embodiment of the present application.

图3B是本申请一实施例提供的测试数据的获取流程图。FIG. 3B is a flowchart of obtaining test data provided in an embodiment of the present application.

图4为本申请一实施例提供的一种电路模件测试装置的结构框图。FIG. 4 is a structural block diagram of a circuit module testing device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请实施例的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

在本申请实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请实施例。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

应当理解,尽管在本申请实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the embodiments of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at..." or "when..." or "in response to determination".

在某些特殊领域使用的电路模件要求其必须具备高可靠性,模拟其工作过程并测试其性能指标是保证电路模件可靠性的关键环节。采用自动测试设备对被测的电路模件进行测试,不仅能减少测试时间成本,还能提高测试数据的可靠性、一致性。Circuit modules used in some special fields must have high reliability. Simulating their working process and testing their performance indicators are key links to ensure the reliability of circuit modules. Using automatic test equipment to test the circuit modules can not only reduce the test time cost, but also improve the reliability and consistency of test data.

申请人发现,电路模件测试过程中需要获取多种测试数据,根据测试软件和测试模块之间的通信特点,可以将需要获取的测试数据分为两大类。第一类数据可以称为第一测试数据,其是测试软件能够直接与测试模块通信而获取的数据,且该获取过程无需等待。具体而言,即测试软件与测试模块之间直接通信连接,测试软件可以直接下达测试指令给测试模块,在测试模块执行测试指令后,可以即时反馈对应的测试数据给测试软件。在一实施例中,可以是测试软件与板卡类型的测试模块直接通信连接,如此,在测试模块执行完测试指令时,即可得到测试数据,无需等待。可以把直接通信的测试模块称为第一测试模块,该第一测试模块在具体的例子中可以是电压电流采集、开关继电器控制、IO(Input/Output)采集和控制等板卡。第二类数据可以称为第二测试数据,其是测试软件与测试模块间接通信获取的数据,该获取过程需要进行等待。具体而言,测试软件与测试模块之间并不直接通信连接,而是经过通信模块进行间接通信,也即通信模块连接在测试软件与测试模块之间。在测试时,测试软件下达的测试指令需经过通信模块转发给测试模块,在测试模块执行完测试指令后,也需要通过通信模块将测试数据反馈给测试软件,因此测试数据的获取需要进行等待。可以将与测试软件间接通信的测试模块称为第二测试模块,测试软件与通信模块通信,在具体的例子中,可以是测试软件与串口、网络、1553B(一种信息传输总线标准)等通信。The applicant has found that it is necessary to obtain a variety of test data during the circuit module test process. According to the communication characteristics between the test software and the test module, the test data that needs to be obtained can be divided into two categories. The first type of data can be called the first test data, which is the data obtained by the test software directly communicating with the test module, and the acquisition process does not need to wait. Specifically, the test software and the test module are directly communicated and connected, and the test software can directly issue test instructions to the test module. After the test module executes the test instructions, the corresponding test data can be fed back to the test software immediately. In one embodiment, the test software can be directly communicated and connected with the test module of the board type, so that when the test module executes the test instruction, the test data can be obtained without waiting. The test module of direct communication can be called the first test module, and the first test module can be a board such as voltage and current acquisition, switch relay control, IO (Input/Output) acquisition and control in a specific example. The second type of data can be called the second test data, which is the data obtained by the test software and the test module indirectly communicating, and the acquisition process needs to wait. Specifically, the test software and the test module are not directly connected by communication, but indirectly communicated through the communication module, that is, the communication module is connected between the test software and the test module. During the test, the test command issued by the test software needs to be forwarded to the test module through the communication module. After the test module executes the test command, the test data also needs to be fed back to the test software through the communication module, so the acquisition of the test data needs to wait. The test module that indirectly communicates with the test software can be called the second test module, and the test software communicates with the communication module. In a specific example, the test software can communicate with a serial port, a network, 1553B (a kind of information transmission bus standard), etc.

然而,现有的电路模件测试软件并没有考虑上述两类测试数据的在获取过程上的差异,例如往往只能获取一类测试数据,能够支持自动化获取的测试数据类型不够全面,自动化测试的通用性较低。However, existing circuit module testing software does not consider the differences in the acquisition process of the above two types of test data. For example, it can often only acquire one type of test data, the type of test data that can support automated acquisition is not comprehensive, and the versatility of automated testing is low.

为解决该问题,本申请提供了一种电路模件测试方法,能够自动化获取两种类型的数据,自动化获取的测试数据更全面,使自动化测试能够通用于更多的电路模件测试任务。To solve this problem, the present application provides a circuit module testing method that can automatically acquire two types of data. The automatically acquired test data is more comprehensive, making the automated test applicable to more circuit module testing tasks.

具体的,该电路模件测试方法可以应用于测试设备,测试设备可以用于对电路模件的目标指标进行测试。可以理解的是,电路模件测试涉及多种指标,目标指标可以是多种指标中的任一种,具体可以根据测试人员的需求选定。测试设备可以安装自动化测试软件,在一实施例中,测试设备可以在运行测试软件的过程中执行本申请实施例提供的电路模件测试方法。Specifically, the circuit module testing method can be applied to a test device, and the test device can be used to test the target indicators of the circuit module. It can be understood that the circuit module test involves multiple indicators, and the target indicator can be any one of the multiple indicators, which can be selected according to the needs of the tester. The test device can be installed with automated testing software. In one embodiment, the test device can execute the circuit module testing method provided in the embodiment of the present application during the operation of the test software.

可以参考图1,图1是本申请一实施例提供的一种电路模件测试方法的第一流程图。所述电路模件测试方法包括以下步骤:Please refer to Figure 1, which is a first flow chart of a circuit module testing method provided by an embodiment of the present application. The circuit module testing method includes the following steps:

S101:发送第一测试指令至第一测试模块,在第一测试模块执行第一测试指令指示的动作后,从第一测试模块获取第一测试数据。S101: Send a first test instruction to a first test module, and after the first test module executes an action indicated by the first test instruction, obtain first test data from the first test module.

S102:发送第二测试指令至第二测试模块,在第二测试模块执行第二测试指令指示的动作后,从通信模块获取第二测试数据,其中通信模块与第二测试模块通信连接。S102: Send a second test instruction to a second test module, and after the second test module executes an action indicated by the second test instruction, obtain second test data from a communication module, wherein the communication module is in communication connection with the second test module.

如前文所述,第一测试模块与测试软件直接通信,因此测试软件在获取到第一测试指令后,可以直接将第一测试指令发送给第一测试模块。可以理解的,测试指令可以指示测试模块需要执行的动作,例如闭合继电器、关断继电器、等待1秒、采集电压等动作。当第一测试模块接受到第一测试指令时,可以执行第一测试指令指示的动作,在动作执行完毕时即可得到第一测试数据,将第一测试数据发送给测试软件,无需进行等待。As mentioned above, the first test module communicates directly with the test software, so after obtaining the first test instruction, the test software can directly send the first test instruction to the first test module. It can be understood that the test instruction can indicate the action that the test module needs to perform, such as closing the relay, turning off the relay, waiting for 1 second, collecting voltage, etc. When the first test module receives the first test instruction, it can execute the action indicated by the first test instruction, and when the action is completed, the first test data can be obtained, and the first test data can be sent to the test software without waiting.

第二测试模块与测试软件通过通信模块间接通信,测试软件在获取到第二测试指令后,可以通过通信模块将第二测试指令发送给第二测试模块,第二测试模块在获取到第二测试指令后,执行第二测试指令指示的动作,并将第二测试数据发送给通信模块,通信模块将第二测试数据发送给测试软件,因此对测试软件而言,需要等待通信模块回传该第二测试数据。The second test module communicates with the test software indirectly through the communication module. After obtaining the second test instruction, the test software can send the second test instruction to the second test module through the communication module. After obtaining the second test instruction, the second test module executes the action indicated by the second test instruction and sends the second test data to the communication module. The communication module sends the second test data to the test software. Therefore, for the test software, it is necessary to wait for the communication module to return the second test data.

需要说明的是,第一测试模块与第二测试模块可以是不同模块,也可以是相同模块。举例而言,对于一个测试模块,其可以具备多种通信方式,能够获取的测试数据类型可以同时包括第一测试数据和第二测试数据两种。一种可能的情况,对于第一测试数据,该测试模块可以直接获取并发送给测试软件,对于第二测试模块,该测试模块在获取后,由于数据在格式、数据量等方面的特殊性,需要借助通信模块进行传输,故只能间接通信。It should be noted that the first test module and the second test module can be different modules or the same module. For example, for a test module, it can have multiple communication modes, and the test data types that can be obtained can include both the first test data and the second test data. In one possible situation, for the first test data, the test module can directly obtain and send it to the test software. For the second test module, after obtaining the data, due to the particularity of the data in terms of format, data volume, etc., the test module needs to use the communication module for transmission, so it can only communicate indirectly.

第一测试模块与第二测试模块可以是独立于电路模件的模块,也可以是电路模件本身拥有的模块。电路模件除了具有实现基本功能的部件外,还可能具有传感器、采集电路等数据采集模块,以便电路模件自检,并在发现存在故障和异常时告知使用者。在这种情况下,第一测试模块与第二测试模块可以是电路模件自带的数据采集模块。The first test module and the second test module can be modules independent of the circuit module, or they can be modules owned by the circuit module itself. In addition to components that realize basic functions, the circuit module may also have data acquisition modules such as sensors and acquisition circuits, so that the circuit module can self-check and inform the user when faults and abnormalities are found. In this case, the first test module and the second test module can be data acquisition modules that come with the circuit module.

S103:根据第一测试数据和第二测试数据确定目标指标对应的测试值。S103: Determine a test value corresponding to the target indicator according to the first test data and the second test data.

需要说明的是,不同的测试指标有不同的计算方式,第一测试数据与第二测试数据并不一定直接对应目标指标的测试值。举例而言,若目标指标是A点到B点的电压差,第一测试数据可以是A点的电压数据,第二测试数据可以是B点的电压数据,则目标指标对应的测试值可以是第一测试数据与第二测试数据的差值。在另一个例子中,目标指标对应的测试值可以是第一测试数据与第二测试数据的相加结果,例如目标指标是总电流,第一测试数据是分支A的电流值,第二测试数据是分支B的电流值。It should be noted that different test indicators have different calculation methods, and the first test data and the second test data do not necessarily directly correspond to the test value of the target indicator. For example, if the target indicator is the voltage difference from point A to point B, the first test data can be the voltage data of point A, and the second test data can be the voltage data of point B. Then the test value corresponding to the target indicator can be the difference between the first test data and the second test data. In another example, the test value corresponding to the target indicator can be the sum of the first test data and the second test data. For example, if the target indicator is the total current, the first test data is the current value of branch A, and the second test data is the current value of branch B.

S104:基于测试值与目标指标对应的理论值的比较结果,确定电路模件的目标指标是否测试合格。S104: Based on the comparison result between the test value and the theoretical value corresponding to the target indicator, determine whether the target indicator of the circuit module is qualified.

若目标指标的测试值与目标指标的理论值相匹配,则可以认为该电路模件的该目标指标合格,若目标指标的测试值与目标指标的理论值不匹配,则可以认为该电路模件的该目标指标不合格。这里的匹配,即合格的标准,在一个实施例中,合格的标准可以是测试值和理论值之间的大小比较,例如可以是测试值大于理论值,或者是测试值小于理论值,又或者是测试值等于理论值。在一个实施例中,合格的标准也可以是测试值与理论值之间的误差在误差范围内。在一个实施例中,合格的标准也可以是一致性的比较,例如测试值与理论值相一致。If the test value of the target indicator matches the theoretical value of the target indicator, it can be considered that the target indicator of the circuit module is qualified. If the test value of the target indicator does not match the theoretical value of the target indicator, it can be considered that the target indicator of the circuit module is unqualified. The matching here, i.e., the qualified standard, in one embodiment, the qualified standard can be the size comparison between the test value and the theoretical value, for example, the test value can be greater than the theoretical value, or the test value can be less than the theoretical value, or the test value can be equal to the theoretical value. In one embodiment, the qualified standard can also be the error between the test value and the theoretical value within the error range. In one embodiment, the qualified standard can also be a comparison of consistency, for example, the test value is consistent with the theoretical value.

本申请实施例通过执行上述步骤对应的方法,能够自动化获取两种类型的数据,第一类是基于测试软件与测试模块直接通信,直接从测试模块获取的第一测试数据,第二类是基于测试软件与测试模块间接通信,从与测试模块通信连接的通信模块处获取的第二测试数据,考虑了测试软件与测试模块之间的通信特点,能够自动化获取的测试数据更全面,使自动化测试能够通用于更多的电路模件测试任务。The embodiment of the present application can automatically acquire two types of data by executing the method corresponding to the above steps. The first type is first test data acquired directly from the test module based on direct communication between the test software and the test module. The second type is second test data acquired from a communication module connected to the test module based on indirect communication between the test software and the test module. The communication characteristics between the test software and the test module are taken into consideration, and the test data that can be automatically acquired are more comprehensive, so that the automated test can be applied to more circuit module testing tasks.

下面可以进一步参考图2,图2是本申请一实施例提供的一种电路模件测试方法的第二流程图,该方法包括以下步骤:Reference may be further made below to FIG. 2 , which is a second flow chart of a circuit module testing method provided in an embodiment of the present application, the method comprising the following steps:

S201:获取测试人员制作的测试流程文件,从测试流程文件中读取测试指令。S201: Obtain a test process file created by a tester, and read test instructions from the test process file.

测试流程文件可以由测试人员制作,其中可以记录测试流程,测试流程可以包括多个测试指令,测试指令可以包括用于获取第一测试数据的第一测试指令和用于获取第二测试数据的第二测试指令。除了记录测试流程以外,测试流程文件还可以记录要进行测试的目标指标的名称、目标指标的理论值等其他内容。在一个例子中,测试流程文件可以用表格文件的形式体现,即测试人员可以在表格文件中编辑制作测试流程文件。制作完成的测试流程文件可以发送给测试软件,测试软件从测试流程文件中读取测试指令。A test flow file can be created by a tester, in which the test flow can be recorded. The test flow may include multiple test instructions, and the test instructions may include a first test instruction for obtaining first test data and a second test instruction for obtaining second test data. In addition to recording the test flow, the test flow file may also record other contents such as the name of the target indicator to be tested, the theoretical value of the target indicator, etc. In one example, the test flow file can be embodied in the form of a table file, that is, the tester can edit and create the test flow file in the table file. The completed test flow file can be sent to the test software, and the test software reads the test instructions from the test flow file.

通过测试流程文件的方式将测试流程与测试软件分离,测试流程并不是固定的,而是可以由测试人员进行制作,因此能够提高软件开发效率,快速解决被测产品更新导致的软件升级迭代问题,增加软件代码的可移植性。The test process is separated from the test software through the test process file. The test process is not fixed but can be produced by testers. Therefore, it can improve software development efficiency, quickly solve software upgrade iteration problems caused by updates to the tested products, and increase the portability of software codes.

S202:在第一阶段或第四阶段,发送第一测试指令至第一测试模块,在第一测试模块执行第一测试指令指示的动作后,从第一测试模块获取第一测试数据。S202: In the first stage or the fourth stage, a first test instruction is sent to a first test module, and after the first test module executes an action indicated by the first test instruction, first test data is obtained from the first test module.

S203:在第二阶段或第五阶段,发送第二测试指令至第二测试模块,以便第二测试模块执行第二测试指令指示的动作。S203: In the second stage or the fifth stage, sending a second test instruction to the second test module so that the second test module executes an action indicated by the second test instruction.

S204:在第三阶段或第六阶段,等待通信模块回传第二测试数据。S204: In the third stage or the sixth stage, waiting for the communication module to return the second test data.

在一个实施例中,测试流程文件记录的测试流程可以分为六个阶段,六个阶段可以分为两次测试数据获取过程,其中第一至第三阶段为第一次测试数据获取过程,第四到第六阶段为第二次测试数据获取过程。第一次测试数据获取过程与第二次测试数据获取过程的阶段可以是相对应的,例如第一阶段可以与第四阶段相对应,都是用于执行第一测试数据的获取,第二阶段可以与第五阶段对应,都是用于执行第二测试数据的获取,第三阶段可以与第六阶段对应,都是用于等待通信模块回传第二测试数据。在具体实现时,六个阶段可以按顺序执行,当六个阶段均执行完毕,即测试数据的获取。通过设计按顺序执行的六个阶段,六个阶段里,两类测试数据交替获取,能够涵盖绝大部分测试指标的测试流程,提高了测试软件的通用性。In one embodiment, the test flow recorded in the test flow file can be divided into six stages, and the six stages can be divided into two test data acquisition processes, wherein the first to third stages are the first test data acquisition process, and the fourth to sixth stages are the second test data acquisition process. The stages of the first test data acquisition process and the second test data acquisition process can be corresponding, for example, the first stage can correspond to the fourth stage, both of which are used to execute the acquisition of the first test data, the second stage can correspond to the fifth stage, both of which are used to execute the acquisition of the second test data, and the third stage can correspond to the sixth stage, both of which are used to wait for the communication module to return the second test data. In a specific implementation, the six stages can be executed in sequence, and when all six stages are executed, the test data is acquired. By designing six stages that are executed in sequence, in the six stages, two types of test data are acquired alternately, and the test flow of most test indicators can be covered, thereby improving the versatility of the test software.

S205:根据通信模块对应的通信协议,对第一测试数据和/或第二测试数据进行校验。S205: Verify the first test data and/or the second test data according to the communication protocol corresponding to the communication module.

为确保获取的测试数据符合通知模块对应的通信协议规定,在一实施例中,可以根据通信模块对应的通信协议对第一测试数据和/或第二测试数据进行校验,例如校验测试数据的数据字长,不同符号字节的实际字节和理论字节是否一致等。To ensure that the acquired test data complies with the communication protocol regulations corresponding to the notification module, in one embodiment, the first test data and/or the second test data can be verified according to the communication protocol corresponding to the communication module, for example, verifying the data word length of the test data, whether the actual bytes and theoretical bytes of different symbol bytes are consistent, etc.

S206:对第一测试数据和/或第二测试数据进行目标字节的提取。S206: Extract target bytes from the first test data and/or the second test data.

测试数据的格式通常需要符合通信协议,测试数据中并非所有字节的数据均是所需的数据,在一实施例中,可以对第一测试数据和/或第二测试数据进行提取,例如提取其特定字节的与目标指标有关的数据。The format of the test data usually needs to comply with the communication protocol. Not all bytes of data in the test data are required data. In one embodiment, the first test data and/or the second test data can be extracted, for example, data related to the target indicator of specific bytes can be extracted.

S207:根据目标指标对应的单位对第一测试数据和/或第二测试数据进行转换。S207: Convert the first test data and/or the second test data according to the unit corresponding to the target indicator.

根据目标指标所用的单位不同,可以对第一测试数据和/或第二测试数据进行转换,例如将测试数据套用预设的公式进行转换。According to different units used for the target indicator, the first test data and/or the second test data may be converted, for example, the test data may be converted by applying a preset formula.

可以理解的是,S205、S206和S207可以选择性的执行或者不执行,即测试人员可以测试需求,对第一测试数据和/或第二测试数据进行校验、提取、转换三种处理中的一种或多种,也可以三种处理都不进行。It is understandable that S205, S206 and S207 may be selectively executed or not executed, that is, the tester may test the requirements and perform one or more of the three processes of verification, extraction and conversion on the first test data and/or the second test data, or may perform none of the three processes.

S208:根据目标指标对应的组合方式对第一测试数据与第二测试数据进行组合,得到目标指标对应的测试值。S208: Combine the first test data and the second test data according to the combination method corresponding to the target indicator to obtain a test value corresponding to the target indicator.

不同的测试指标有不同的计算方式,通过组合第一测试数据与第二测试数据来得到目标指标的测试值。组合方式可以有多种,例如可以是第一测试数据与第二测试数据相加或相减,也可以是第一测试数据与第二测试数据相乘或相除。当然,在一实施例中,还可以是第一测试数据与第二测试数据合并,即拼凑在一起,例如第一测试数据是100,第二测试数据200,合并的结果是100200。总之,本申请实施例对组合的方式不做限制。Different test indicators have different calculation methods, and the test value of the target indicator is obtained by combining the first test data and the second test data. There can be many ways of combination, for example, the first test data and the second test data can be added or subtracted, or the first test data and the second test data can be multiplied or divided. Of course, in one embodiment, the first test data and the second test data can also be merged, that is, pieced together, for example, the first test data is 100, the second test data is 200, and the result of the merger is 100200. In short, the embodiment of the present application does not limit the combination method.

S209:基于测试值与目标指标对应的理论值的比较结果,确定电路模件的目标指标是否测试合格。S209: Based on the comparison result between the test value and the theoretical value corresponding to the target indicator, determine whether the target indicator of the circuit module is qualified.

本申请实施例通过执行上述步骤对应的方法,能够自动化获取两种类型的数据,第一类是基于测试软件与测试模块直接通信,直接从测试模块获取的第一测试数据,第二类是基于测试软件与测试模块间接通信,从与测试模块通信连接的通信模块处获取的第二测试数据,考虑了测试软件与测试模块之间的通信特点,能够自动化获取的测试数据更全面,使自动化测试能够通用于更多的电路模件测试任务。此外,本申请实施例提供的方法还能够针对不同的通信协议对测试数据进行校验或提取,即能够通用于不同的通信协议,可有效应对通信协议的变更。通过测试流程文件将测试流程与软件代码分离,使得测试软件的可拓展性增加,可以快速删减、增加测试指标,缩短测试软件开发时长,缩短测试设备与被测产品测试验证时长,增强了软件代码的可移植性,降低了测试的成本,同时也提高了测试数据的可靠性和一致性。The embodiment of the present application can automatically obtain two types of data by executing the method corresponding to the above steps. The first type is the first test data directly obtained from the test module based on the direct communication between the test software and the test module, and the second type is the second test data obtained from the communication module connected to the test module based on the indirect communication between the test software and the test module. Considering the communication characteristics between the test software and the test module, the test data that can be automatically obtained is more comprehensive, so that the automated test can be used for more circuit module test tasks. In addition, the method provided by the embodiment of the present application can also verify or extract test data for different communication protocols, that is, it can be used for different communication protocols and can effectively cope with changes in communication protocols. The test process is separated from the software code through the test process file, so that the scalability of the test software is increased, and the test indicators can be quickly deleted and added, shortening the test software development time, shortening the test verification time of the test equipment and the tested product, enhancing the portability of the software code, reducing the cost of the test, and also improving the reliability and consistency of the test data.

可以参考图3A,图3A是本申请一实施例提供的一种电路模件测试方法的第三流程图。该实施例中,电路模件测试方法包括以下步骤:Please refer to FIG. 3A, which is a third flow chart of a circuit module testing method provided in an embodiment of the present application. In this embodiment, the circuit module testing method includes the following steps:

S301:读取测试人员制作的Excel表形式的测试流程文件。S301: Read the test process file in the form of an Excel table created by the tester.

通过读取该测试流程文件,可以获得目标指标的理论值、数据类型、测试流程等信息。作为一个例子,测试流程文件可以按照以下含义及规则设置:By reading the test process file, you can obtain the theoretical value of the target indicator, data type, test process and other information. As an example, the test process file can be set according to the following meanings and rules:

S302:依次执行测试流程文件中S1~S6阶段的测试指令,获得测试数据TestData。S302: Execute the test instructions of stages S1 to S6 in the test flow file in sequence to obtain test data TestData.

可以参考图3B,图3B是本申请一实施例提供的测试数据的获取流程图。获取测试数据的过程分为S1-S6六个阶段,S1-S3是第一次获取数据,S4-S6是第二次获取数据。Please refer to Figure 3B, which is a flowchart of test data acquisition provided by an embodiment of the present application. The process of acquiring test data is divided into six stages S1-S6, S1-S3 is the first data acquisition, and S4-S6 is the second data acquisition.

S303:根据Excel表中比较数据来源判断测试数据TestData是否需要校验、提取有效信息。若需要,则进行S304,否则直接进行S305。S303: Determine whether the test data TestData needs to be verified and extract valid information according to the data source in the Excel table. If necessary, proceed to S304, otherwise proceed directly to S305.

S304:根据Excel表中的数据校验与数据提取字段,对测试数据TestData进行校验与有效数据提取。S304: Verify the test data TestData and extract valid data according to the data verification and data extraction fields in the Excel table.

S305:根据Excel表中的数据转换公式,将测试数据TestData转化成比较数据CompData。S305: According to the data conversion formula in the Excel table, the test data TestData is converted into the comparison data CompData.

S306:根据Excel表中的测试指标的理论值与数据比较类型,判断比较数据CompData是否合格。若合格,该目标指标测试结束;若不合格,执行S307。S306: According to the theoretical value of the test index in the Excel table and the data comparison type, determine whether the comparison data CompData is qualified. If qualified, the target index test ends; if not qualified, execute S307.

S307:确定是否需要重新测试,若是,则返回S302,若否,该目标指标测试结束。S307: Determine whether retesting is required. If so, return to S302. If not, the target indicator test ends.

以上步骤的说明在图1与图2对应的实施例中已有充分展开,在此不再赘述。The description of the above steps has been fully expanded in the embodiments corresponding to FIG. 1 and FIG. 2 , and will not be repeated here.

本申请实施例通过执行上述步骤对应的方法,能够自动化获取两种类型的数据,第一类是基于测试软件与测试模块直接通信,直接从测试模块获取的第一测试数据,第二类是基于测试软件与测试模块间接通信,从与测试模块通信连接的通信模块处获取的第二测试数据,考虑了测试软件与测试模块之间的通信特点,能够自动化获取的测试数据更全面,使自动化测试能够通用于更多的电路模件测试任务。The embodiment of the present application can automatically acquire two types of data by executing the method corresponding to the above steps. The first type is first test data acquired directly from the test module based on direct communication between the test software and the test module. The second type is second test data acquired from a communication module connected to the test module based on indirect communication between the test software and the test module. The communication characteristics between the test software and the test module are taken into consideration, and the test data that can be automatically acquired are more comprehensive, so that the automated test can be applied to more circuit module testing tasks.

下面提供一个具体的应用示例。A specific application example is provided below.

目标指标为AB两点的电压差,合格标准为AB两点的电压差大于理论值0.1V。测试流程包括以下动作:闭合继电器(RelayOn)通道0→等待(Delay)1s→断开继电器(RelayOff)通道1→读取电压采集板卡(AD)通道1(A点电压)→串口RS422_1发送指令(0XFF0011),无回传数据→等待(Delay)1s→串口RS422_2发送B点电压采集指令(0XFF3232)→等待接受RSS422_2回传数据。The target indicator is the voltage difference between points AB, and the qualified standard is that the voltage difference between points AB is greater than the theoretical value of 0.1V. The test process includes the following actions: close the relay (RelayOn) channel 0 → wait (Delay) 1s → disconnect the relay (RelayOff) channel 1 → read the voltage acquisition board (AD) channel 1 (point A voltage) → serial port RS422_1 sends a command (0XFF0011), no return data → wait (Delay) 1s → serial port RS422_2 sends a point B voltage acquisition command (0XFF3232) → wait to receive the return data from RSS422_2.

在上述测试流程中,AD采集的电压无需转化,为实际电压;RS422_2通信协议规定RS422_2接收的数据字长为50个字节,第0~2字节为符号字节0XFF00AA,第49字节是0XFF,字节0~48进行BBC异或校验,第3~4字节为需要提取的B点电压。电压值=0.0001*数值。In the above test process, the voltage collected by AD does not need to be converted and is the actual voltage; the RS422_2 communication protocol stipulates that the data word length received by RS422_2 is 50 bytes, the 0th to 2nd bytes are the symbol bytes 0XFF00AA, the 49th byte is 0XFF, bytes 0 to 48 perform BBC XOR check, and the 3rd to 4th bytes are the voltage of point B to be extracted. Voltage value = 0.0001*value.

该应用示例对应的测试流程文件如下:The test flow file corresponding to this application example is as follows:

应用示例中,目标指标的比较数据源自A、B点电压,A点电压通过S1阶段的第4次动作AD采集获得,A点电压数据来源表示为“S1-4”;B点电压数据采集来源于S6阶段RS422_2接收的数据,B点电压数据来源表示位“S6”。因此AB两点电压差比较数据来源表示为“S1-4;S6;-”。In the application example, the comparison data of the target indicator comes from the voltages at points A and B. The voltage at point A is acquired through the fourth AD acquisition in the S1 phase, and the data source of the voltage at point A is represented as "S1-4". The data acquisition of the voltage at point B comes from the data received by RS422_2 in the S6 phase, and the data source of the voltage at point B is represented as "S6". Therefore, the data source of the comparison of the voltage difference between points A and B is represented as "S1-4; S6; -".

可以参考图4,图4为本申请一实施例提供的一种电路模件测试装置的结构框图。本申请实施例提供的电路模件测试装置包括:Please refer to FIG4, which is a block diagram of a circuit module testing device provided in an embodiment of the present application. The circuit module testing device provided in an embodiment of the present application includes:

第一获取模块401,用于发送第一测试指令至第一测试模块,在所述第一测试模块执行所述第一测试指令指示的动作后,从所述第一测试模块获取第一测试数据;A first acquisition module 401 is used to send a first test instruction to a first test module, and after the first test module executes an action indicated by the first test instruction, acquire first test data from the first test module;

第二获取模块402,用于发送第二测试指令至第二测试模块,在所述第二测试模块执行所述第二测试指令指示的动作后,从通信模块获取第二测试数据,其中所述通信模块与所述第二测试模块通信连接;A second acquisition module 402, configured to send a second test instruction to a second test module, and acquire second test data from a communication module after the second test module executes an action indicated by the second test instruction, wherein the communication module is in communication connection with the second test module;

第一确定模块403,用于根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值;A first determination module 403, configured to determine a test value corresponding to the target indicator according to the first test data and the second test data;

第二确定模块404,用于基于所述测试值与所述目标指标对应的理论值的比较结果,确定所述电路模件是否测试合格。The second determination module 404 is used to determine whether the circuit module is qualified based on the comparison result between the test value and the theoretical value corresponding to the target indicator.

可选的,所述第二获取模块从通信模块获取第二测试数据,包括;Optionally, the second acquisition module acquires the second test data from the communication module, including:

所述第二获取模块等待所述通信模块回传所述第二测试数据。The second acquisition module waits for the communication module to return the second test data.

可选的,所述第一获取模块用于在第一阶段或第四阶段执行所述发送所述第一测试指令至第一测试模块的步骤;Optionally, the first acquisition module is used to perform the step of sending the first test instruction to the first test module in the first stage or the fourth stage;

所述第二获取模块用于在第二阶段或第五阶段执行所述发送所述第二测试指令至第二测试模块的步骤,在第三阶段或第六阶段执行所述等待所述通信模块回传所述第二测试数据的步骤。The second acquisition module is used to execute the step of sending the second test instruction to the second test module in the second stage or the fifth stage, and to execute the step of waiting for the communication module to return the second test data in the third stage or the sixth stage.

可选的,所述第一确定模块用于根据所述目标指标对应的组合方式对所述第一测试数据与所述第二测试数据进行组合,得到所述目标指标对应的测试值。Optionally, the first determination module is used to combine the first test data and the second test data according to a combination method corresponding to the target indicator to obtain a test value corresponding to the target indicator.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

校验模块,用于在对所述第一测试数据与所述第二测试数据进行组合之前,根据所述通信模块对应的通信协议对所述第一测试数据和/或所述第二测试数据进行校验。A verification module is used to verify the first test data and/or the second test data according to the communication protocol corresponding to the communication module before combining the first test data with the second test data.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

提取模块,用于在对所述第一测试数据与所述第二测试数据进行组合之前,对所述第一测试数据和/或所述第二测试数据进行目标字节的提取。An extraction module is used to extract target bytes from the first test data and/or the second test data before combining the first test data with the second test data.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

转换模块,用于在对所述第一测试数据与所述第二测试数据进行组合之前,根据所述目标指标对应的单位对所述第一测试数据和/或所述第二测试数据进行转换。A conversion module is used to convert the first test data and/or the second test data according to the unit corresponding to the target indicator before combining the first test data with the second test data.

可选的,所述电路模件测试装置还包括:Optionally, the circuit module testing device further includes:

第三获取模块,用于在发送测试指令至测试模块之前,获取测试人员制作的测试流程文件,从所述测试流程文件中读取测试指令,其中,所述测试指令包括所述第一测试指令和所述第二测试指令。The third acquisition module is used to acquire a test flow file created by a tester before sending the test instruction to the test module, and read the test instruction from the test flow file, wherein the test instruction includes the first test instruction and the second test instruction.

上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

本申请实施例通过该电路模件测试装置,能够自动化获取两种类型的数据,第一类是基于测试软件与测试模块直接通信,直接从测试模块获取的第一测试数据,第二类是基于测试软件与测试模块间接通信,从与测试模块通信连接的通信模块处获取的第二测试数据,考虑了测试软件与测试模块之间的通信特点,能够自动化获取的测试数据更全面,使自动化测试能够通用于更多的电路模件测试任务。The embodiment of the present application can automatically acquire two types of data through the circuit module testing device. The first type is first test data acquired directly from the test module based on direct communication between the test software and the test module. The second type is second test data acquired from a communication module connected to the test module based on indirect communication between the test software and the test module. The communication characteristics between the test software and the test module are taken into consideration, and the test data that can be automatically acquired are more comprehensive, so that the automated test can be applied to more circuit module testing tasks.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment scheme of the present application. Those of ordinary skill in the art can understand and implement it without paying creative work.

本申请实施例还提供一种电路模件测试设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现本申请实施例提供的电路模件测试方法。An embodiment of the present application also provides a circuit module testing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the circuit module testing method provided in the embodiment of the present application is implemented.

上述对本申请实施例特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

以上实施例中提供的技术特征,只要不存在冲突或矛盾,本领域技术人员可以根据实际情况对各个技术特征进行组合,从而构成各种不同的实施例。而本申请文件限于篇幅,未对各种不同的实施例展开说明,但可以理解的是,各种不同的实施例也属于本申请实施例公开的范围。As long as there is no conflict or contradiction in the technical features provided in the above embodiments, those skilled in the art can combine the various technical features according to actual conditions to form various different embodiments. However, due to the limited length of this application document, various different embodiments are not described in detail, but it can be understood that various different embodiments also belong to the scope disclosed in the embodiments of this application.

本领域技术人员在考虑说明书及实践这里申请的发明后,将容易想到本申请实施例的其它实施方案。本申请实施例旨在涵盖本申请实施例的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请实施例的一般性原理并包括本申请实施例未申请的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请实施例的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily come to other embodiments of the present application after considering the specification and practicing the inventions applied for herein. The present application embodiments are intended to cover any variations, uses or adaptations of the present application embodiments, which follow the general principles of the present application embodiments and include common knowledge or customary technical means in the art that are not applied for by the present application embodiments. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present application embodiments are indicated by the following claims.

应当理解的是,本申请实施例并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请实施例的范围仅由所附的权利要求来限制。It should be understood that the embodiments of the present application are not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the embodiments of the present application is limited only by the appended claims.

以上所述仅为本申请实施例的较佳实施例而已,并不用以限制本申请实施例,凡在本申请实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请实施例保护的范围之内。The above description is only a preferred embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the embodiments of the present application.

Claims (10)

1.一种电路模件测试方法,其特征在于,应用于测试设备,所述测试设备用于对所述电路模件的目标指标进行测试,所述电路模件测试方法包括:1. A circuit module testing method, characterized in that it is applied to a testing device, the testing device is used to test the target index of the circuit module, and the circuit module testing method comprises: 发送第一测试指令至第一测试模块,在所述第一测试模块执行所述第一测试指令指示的动作后,从所述第一测试模块获取第一测试数据;Sending a first test instruction to a first test module, and obtaining first test data from the first test module after the first test module executes an action indicated by the first test instruction; 发送第二测试指令至第二测试模块,在所述第二测试模块执行所述第二测试指令指示的动作后,从通信模块获取第二测试数据,其中所述通信模块与所述第二测试模块通信连接;Sending a second test instruction to a second test module, and after the second test module executes an action indicated by the second test instruction, acquiring second test data from a communication module, wherein the communication module is in communication connection with the second test module; 根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值;Determine a test value corresponding to the target indicator according to the first test data and the second test data; 基于所述测试值与所述目标指标对应的理论值的比较结果,确定所述电路模件的所述目标指标是否测试合格。Based on the comparison result between the test value and the theoretical value corresponding to the target indicator, it is determined whether the target indicator of the circuit module is qualified. 2.根据权利要求1所述的电路模件测试方法,其特征在于,所述从通信模块获取第二测试数据,包括;2. The circuit module testing method according to claim 1, wherein the obtaining the second test data from the communication module comprises: 等待所述通信模块回传所述第二测试数据。Wait for the communication module to return the second test data. 3.根据权利要求2所述的电路模件测试方法,其特征在于,所述电路模件测试方法包括:3. The circuit module testing method according to claim 2, characterized in that the circuit module testing method comprises: 在第一阶段或第四阶段执行所述发送所述第一测试指令至第一测试模块的步骤,在第二阶段或第五阶段执行所述发送所述第二测试指令至第二测试模块的步骤,在第三阶段或第六阶段执行所述等待所述通信模块回传所述第二测试数据的步骤。In the first stage or the fourth stage, the step of sending the first test instruction to the first test module is executed, in the second stage or the fifth stage, the step of sending the second test instruction to the second test module is executed, and in the third stage or the sixth stage, the step of waiting for the communication module to return the second test data is executed. 4.根据权利要求1所述的电路模件测试方法,其特征在于,所述根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值,包括:4. The circuit module testing method according to claim 1, wherein determining the test value corresponding to the target indicator according to the first test data and the second test data comprises: 根据所述目标指标对应的组合方式对所述第一测试数据与所述第二测试数据进行组合,得到所述目标指标对应的测试值。The first test data and the second test data are combined according to the combination method corresponding to the target indicator to obtain a test value corresponding to the target indicator. 5.根据权利要求4所述的电路模件测试方法,其特征在于,在对所述第一测试数据与所述第二测试数据进行组合之前,所述电路模件测试方法还包括:5. The circuit module testing method according to claim 4, characterized in that before combining the first test data with the second test data, the circuit module testing method further comprises: 根据所述通信模块对应的通信协议对所述第一测试数据和/或所述第二测试数据进行校验。The first test data and/or the second test data are verified according to a communication protocol corresponding to the communication module. 6.根据权利要求4所述的电路模件测试方法,其特征在于,在对所述第一测试数据与所述第二测试数据进行组合之前,所述电路模件测试方法还包括:6. The circuit module testing method according to claim 4, characterized in that before combining the first test data with the second test data, the circuit module testing method further comprises: 对所述第一测试数据和/或所述第二测试数据进行目标字节的提取。Extract target bytes from the first test data and/or the second test data. 7.根据权利要求4所述的电路模件测试方法,其特征在于,在对所述第一测试数据与所述第二测试数据进行组合之前,所述电路模件测试方法还包括:7. The circuit module testing method according to claim 4, characterized in that before combining the first test data with the second test data, the circuit module testing method further comprises: 根据所述目标指标对应的单位对所述第一测试数据和/或所述第二测试数据进行转换。The first test data and/or the second test data are converted according to a unit corresponding to the target indicator. 8.根据权利要求1-7任一项所述的电路模件测试方法,其特征在于,在发送测试指令至测试模块之前,所述电路模件测试方法还包括:8. The circuit module testing method according to any one of claims 1 to 7, characterized in that before sending the test instruction to the test module, the circuit module testing method further comprises: 获取测试人员制作的测试流程文件,从所述测试流程文件中读取测试指令,其中,所述测试指令包括所述第一测试指令和所述第二测试指令。A test flow file prepared by a tester is obtained, and a test instruction is read from the test flow file, wherein the test instruction includes the first test instruction and the second test instruction. 9.一种电路模件测试装置,其特征在于,所述电路模件测试装置包括:9. A circuit module testing device, characterized in that the circuit module testing device comprises: 第一获取模块,用于发送第一测试指令至第一测试模块,在所述第一测试模块执行所述第一测试指令指示的动作后,从所述第一测试模块获取第一测试数据;A first acquisition module, configured to send a first test instruction to a first test module, and acquire first test data from the first test module after the first test module executes an action indicated by the first test instruction; 第二获取模块,用于发送第二测试指令至第二测试模块,在所述第二测试模块执行所述第二测试指令指示的动作后,从通信模块获取第二测试数据,其中所述通信模块与所述第二测试模块通信连接;A second acquisition module, configured to send a second test instruction to a second test module, and acquire second test data from a communication module after the second test module executes an action indicated by the second test instruction, wherein the communication module is in communication connection with the second test module; 第一确定模块,用于根据所述第一测试数据和所述第二测试数据确定所述目标指标对应的测试值;A first determining module, configured to determine a test value corresponding to the target indicator according to the first test data and the second test data; 第二确定模块,用于基于所述测试值与所述目标指标对应的理论值的比较结果,确定所述电路模件是否测试合格。The second determination module is used to determine whether the circuit module is qualified based on the comparison result between the test value and the theoretical value corresponding to the target indicator. 10.一种电路模件测试设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求1-8任一项所述的电路模件测试方法。10. A circuit module testing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the circuit module testing method according to any one of claims 1 to 8 when executing the program.
CN202410856605.4A 2024-06-28 2024-06-28 A circuit module testing method, device and equipment Pending CN118777834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410856605.4A CN118777834A (en) 2024-06-28 2024-06-28 A circuit module testing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410856605.4A CN118777834A (en) 2024-06-28 2024-06-28 A circuit module testing method, device and equipment

Publications (1)

Publication Number Publication Date
CN118777834A true CN118777834A (en) 2024-10-15

Family

ID=92983801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410856605.4A Pending CN118777834A (en) 2024-06-28 2024-06-28 A circuit module testing method, device and equipment

Country Status (1)

Country Link
CN (1) CN118777834A (en)

Similar Documents

Publication Publication Date Title
CN108923957B (en) Distribution network terminal DTU fault elimination method and device and terminal equipment
WO2011060655A1 (en) Statistical method and system for software business functional coverage
CN116341428B (en) Method for constructing reference model, chip verification method and system
CN117112447B (en) Data transmission method and device, electronic equipment and readable storage medium
CN117785723A (en) Dynamic interface parameter association method, device and electronic equipment
CN111427582B (en) RTL code management method, device, equipment and computer readable storage medium
CN118777834A (en) A circuit module testing method, device and equipment
CN118567982A (en) FPGA software simulation verification platform and method based on model library
CN108334313A (en) Continuous integrating method, apparatus and code management system for large-scale SOC research and development
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN112567375A (en) Format verification method, information identification method, device and storage medium
CN117435483A (en) Form tool-based simulation verification excitation generation method, device, medium and terminal
CN109582334A (en) The upgrade method and device of programmable logic device
CN115687187A (en) Simulation verification method and device, electronic equipment and storage medium
CN115809290A (en) Generate data persistence layer input method, device, equipment and medium
CN114860608A (en) Scene construction based system automation testing method, device, equipment and medium
CN114116476A (en) Method, device, electronic device and storage medium for processing business data
CN111638905A (en) Version number generation method and device, electronic equipment and readable storage medium
CN115616387B (en) Control signal calibration method and system based on chip
CN117707936B (en) Multisystem multi-version full-link testing method, device, equipment and storage medium
CN115114101B (en) Link testing method, device, system and storage medium
CN112445584A (en) Simulator switching method and system
CN119005077B (en) Method, system, device and medium for constructing standard virtual terminal loop connection rule library
CN109508270B (en) BIOS register checking and testing method and device
CN112416978B (en) A data quality inspection scheme transmission method, device and 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