WO2019134113A1 - Automated test method and system - Google Patents

Automated test method and system Download PDF

Info

Publication number
WO2019134113A1
WO2019134113A1 PCT/CN2018/071522 CN2018071522W WO2019134113A1 WO 2019134113 A1 WO2019134113 A1 WO 2019134113A1 CN 2018071522 W CN2018071522 W CN 2018071522W WO 2019134113 A1 WO2019134113 A1 WO 2019134113A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
task
tested
devices
test task
Prior art date
Application number
PCT/CN2018/071522
Other languages
French (fr)
Chinese (zh)
Inventor
王明亮
余维应
朱明�
谢龙
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to CN201880000246.5A priority Critical patent/CN110235393A/en
Priority to PCT/CN2018/071522 priority patent/WO2019134113A1/en
Publication of WO2019134113A1 publication Critical patent/WO2019134113A1/en

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing

Definitions

  • the present application relates to the field of testing technology, and in particular, to an automated testing method and system.
  • Microcontroller Unit also known as Single Chip Microcomputer or Single Chip Microcomputer
  • MCU Microcontroller Unit
  • Single Chip Microcomputer also known as Single Chip Microcomputer
  • MCU control functions continue to improve.
  • designers need to test their functions through the test host.
  • the inventor has found that at least the following problems exist in the prior art: (1) it is necessary to manually check the connection status between the test host and the MCU development board and issue a test task, and manually identify the serial port number corresponding to the MCU development board to obtain the test result; 2) Each test host can only test one MCU development board. If you need to test multiple development boards, you need multiple test hosts.
  • the purpose of some embodiments of the present application is to provide an automated test method and system, which can implement multi-task testing of multiple devices to be tested, thereby improving test efficiency and saving development and testing costs of the device under test.
  • An embodiment of the present application provides an automated test method, which is applied to a test host.
  • the automated test method includes: identifying a communication path of each device to be tested connected to the test host; and obtaining at least one test from the preset test configuration information. a plurality of devices to be tested corresponding to the task; the test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested; and each test device is controlled to execute the burned test task; The feedback data generated by each test device to perform the test task is obtained through the communication path of each device under test.
  • the embodiment of the present application further provides an automated test system, including: a test host having multiple connection ports and a plurality of intermediate connection modules, and each intermediate connection module has a burning function; the number of connection ports is the same as the number of intermediate connection modules. And each connection port is connected to a device under test through an intermediate connection module; the test host is configured to perform the automated test method of any one of claims 1 to 11.
  • the embodiment of the present application can automatically identify the communication path between the test host and each device under test, and burn the test task to each of the test tasks through the communication path of each device under test.
  • the device to be tested that is, supports multi-tasking, and allows multiple devices to be tested to perform testing at the same time; realizes multi-task testing of multiple devices to be tested, thereby improving test efficiency and saving development and testing of devices to be tested cost.
  • the communication path includes a burn-in path and a data feedback path; the test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested, specifically: through each device to be tested Burning the path, burning the test task to each device to be tested corresponding to the test task; obtaining the feedback data generated by each test device to perform the test task through the communication path of each device to be tested, specifically: passing each The data feedback path of the device under test acquires the feedback data generated by each test device to perform the test task.
  • This embodiment provides a specific implementation manner of a communication path.
  • the feedback data includes a test log; before controlling each device under test to perform the burned test task, the method further includes: determining whether the data feedback path of each device to be tested is in a normal communication state; when the judgment result is yes, entering The step of controlling each test device to perform a burned test task.
  • the test task is allowed to be executed on the device to be tested, so that the test log generated in real time when the device under test performs the test task cannot be fed back to the test host in time.
  • the method before acquiring the at least one device to be tested corresponding to the at least one test task, the method further includes: generating an executable file of the test task according to the test configuration information; and adopting a communication path of each device to be tested
  • the test task is burned to each device to be tested corresponding to the test task, specifically: the executable file of the test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested.
  • the executable file of the test task can be automatically generated according to the test configuration information.
  • generating the executable file of the test task according to the test configuration information specifically: obtaining at least one test case corresponding to the test task from the test configuration information; obtaining the program code of the test case from the code base; and generating the test by using the test code of the test case
  • the set of test cases for the task compile the test case set for the test task to generate the executable file for the test task.
  • the embodiment provides a specific implementation manner of generating an executable file according to the test configuration information, that is, if the test case is pre-established with the program code of the test case in the code base, the test case can be automatically obtained.
  • the program code to generate a test case set of the test task thereby generating an executable file of the test task; without manually integrating the program code of each test case to generate a test case set as in the prior art, thereby saving labor costs and improving The efficiency.
  • test configuration information is obtained by the following methods, including: providing a test configuration interface; and receiving test configuration information through the test configuration interface.
  • This embodiment provides an acquisition manner of test configuration information.
  • test configuration information is obtained by: setting, when the preset task trigger event occurs, setting the test configuration information according to the task trigger event.
  • This embodiment provides another method for obtaining test configuration information, which can automatically generate test configuration information.
  • the task triggering event includes at least one of the following events: a code upload event, a code merge event, and a regression test event. This embodiment provides a specific type of task triggering event.
  • test task is N, and N is an integer greater than 1.
  • the test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested, and includes: each test task Put into the task queue of each device to be tested corresponding to the test task; wherein the task queue of each device to be tested includes K test tasks arranged in sequence; wherein K is an integer and 0 ⁇ K ⁇ N;
  • the communication path of the device under test the test task is burned to each device to be tested corresponding to the test task, specifically: the K in the task queue of each device under test through the communication path of each device under test
  • the test tasks are sequentially burned to the device under test. This embodiment provides a specific implementation manner of performing testing of multiple test tasks on the device to be tested.
  • the method further includes: generating a test report of each device to be tested according to the feedback data of each device to be tested.
  • a test report of each device to be tested is generated according to the feedback data, which facilitates comparison of differences between multiple devices to be tested.
  • the method further includes: initializing each device to be tested corresponding to the test task.
  • the device to be tested is initialized before burning, and the previously stored data in the device under test is prevented from affecting the obtained feedback data of the test.
  • FIG. 1 is a detailed flow chart of an automated test method in accordance with a first embodiment of the present application
  • FIG. 2 is a flow chart showing specific details of an automated test method in accordance with a first embodiment of the present application
  • FIG. 3 is a specific flowchart of an executable file for generating a test task according to the first embodiment of the present application
  • FIG. 5 is a specific flowchart of an automated test method according to a third embodiment of the present application.
  • Figure 6 is a block schematic diagram of an automated test system in accordance with a fourth embodiment of the present application.
  • the first embodiment of the present application relates to an automated test method, which is applied to a test host, and the test host is used to test a plurality of devices to be tested.
  • the device under test may be an MCU-based development board or an MCU-based terminal.
  • the specific process of the automated test method in this embodiment is as shown in FIG. 1 and includes the following steps:
  • Step 101 Identify a communication path of each device to be tested connected to the test host.
  • Step 102 Obtain, from the preset test configuration information, a plurality of devices to be tested corresponding to at least one test task.
  • Step 103 Burn the test task to each device to be tested corresponding to the test task by using the communication path of each device to be tested.
  • Step 104 Control each test device to perform a burned test task.
  • Step 105 Obtain feedback data generated by each test device to perform a test task by using a communication path of each device to be tested.
  • the embodiment can automatically identify the communication path between the test host and each device under test, and burn the test task to each test corresponding to the test task through the communication path of each device under test.
  • the test equipment that is, support multi-tasking, and allow multiple devices to be tested to test at the same time; achieve multi-task test of multiple devices under test, thereby improving test efficiency and saving development and test costs of the device under test .
  • step 101 specifically, the test host is connected to a plurality of devices to be tested, and the communication path between the test host and each device to be tested includes a burn path and a data feedback path, and the test host can identify each to be connected thereto. Test the device's burning path and data feedback path. After the test host identifies the burn path and the data feedback path, communication is established between the test host and the device under test.
  • the method further includes:
  • Step 101' generating an executable file of the test task according to the test configuration information.
  • test configuration information is pre-stored in the test host, and the test configuration information includes N test tasks, where N is an integer greater than 1.
  • Each test task includes at least the test case to be executed and the device under test to perform the test task.
  • the test task also includes a code base in which the test case is located. It should be noted that when each test case is stored in the same code base, it is not necessary to mark the code base for each test case in the test task (the system can set the code base by default); however, when each test case is stored in a different When you use the code base, you need to tag the code base for each test case in the test task.
  • the test configuration information may be generated by: the test host provides a test configuration interface, and the designer inputs test configuration information through the test configuration interface. For example, the designer selects all the test cases that need to be used in the test configuration interface (each test case has a corresponding code); then, the designer creates each test task; that is, sets the name of each test task (for example, Test task 1, test task 2, etc.), and set the test cases required for each test task and the device under test to perform the test task; preferably, the designer also sets the code base for the test case. .
  • the test configuration information is integrated into a document and the document is serialized for storage.
  • step 101' may be executed to generate an executable file of the test task based on the test configuration information.
  • step 101' generates an executable file of the test task according to the test configuration information, which specifically includes:
  • Sub-step 1011' obtains at least one test case corresponding to the test task from the test configuration information.
  • each test task includes a test case to be executed, so that the test host can obtain at least one test case corresponding to the test task from the test configuration information.
  • Sub-step 1012' obtains the program code of the test case from the code base.
  • the code library of the system default setting may be entered and the program code of each test case may be obtained; if each test case in the test task has been marked with the code base , enter the code base corresponding to each test case and obtain the program code of each test case.
  • Sub-step 1013' generates a test case set for the test task using the program code of the test case.
  • the test host automatically pulls the program code of the test case corresponding to the test task from the code base, and assembles the program code of each test case as a test case set of the test task.
  • test case set of the test task is manually collected by manually assembling the program codes of the test cases; therefore, the technical solution in the embodiment saves labor compared to the prior art. Cost and increase efficiency.
  • Sub-step 1014' compiles the test case set of the test task to generate an executable file of the test task.
  • test case set of the test task is compiled and packaged to generate an executable file of the test task.
  • the test configuration information includes a device to be tested that performs each test task, so that the test host can acquire a plurality of devices to be tested corresponding to each test task.
  • the method further includes:
  • each test task is placed in the task queue of each device to be tested corresponding to the test task.
  • each device to be tested corresponds to several test tasks, that is, each device under test needs to perform K test tasks to complete the test of its own function, where K is an integer and 0 ⁇ K ⁇ N; each The type and quantity (K value) of the test task corresponding to the device to be tested is determined by the function required for the device to be tested.
  • the test host allocates a task queue for each device to be tested, and puts each test task into the task queue of the object to be tested corresponding to the test task, that is, the task queue of each device to be tested includes K tests arranged in sequence. task.
  • the task queue in this embodiment includes K test tasks arranged in sequence, and the task queue is dynamically maintained by the test host, and the order of the K test tasks can be put into the test queue according to the task priority and the test task.
  • the time of the task is arranged.
  • the priority of the task priority is greater than the task creation time.
  • the specific arrangement is as follows: the test tasks are arranged in order according to the task priority, and the test tasks with high task priority are arranged in front of the task queue, and the priority is executed; If the priorities are the same, the test tasks are placed in the test queue.
  • the test tasks that are placed in the test queue are listed in the front and are executed first.
  • step 103 specifically, the test host issues a programming command, and sequentially executes the executable files of the K test tasks according to the programming path of each of the K test tasks in the task queue through the burning path of each device under test. Recorded in each corresponding device to be tested.
  • the executable file of the test task can be burned to the running memory or flash memory of the device under test.
  • each device to be tested corresponding to the test task is generally initialized, specifically: before the device to be tested for the first time is required to be burned.
  • Initializing the device to be tested includes, for example, resetting the state of the device under test, starting the system clock of the device under test, and performing calibration, etc., to provide a basic environment for execution of the test task.
  • the test host after the execution of the previous test task is completed, before the next test task is burned, the test host also resets the device to be tested, that is, the executable file of the previous test task is cleared, and the previous test task is executed when executed. Relevant data, etc., to avoid erroneous feedback data caused by interference in the burning and execution of the next test task.
  • step 104 specifically, the test host issues a start test command to control the execution of the burned test task in each device under test.
  • step 105 specifically, the test host obtains corresponding feedback data through the data feedback path when the device under test performs the test task, and the feedback data includes any one or any combination of the following: test log, test result, and device to be tested.
  • Register value The test log includes all the test operations performed by the device under test to perform the test task in real time, so as to track the positioning according to the test log; the test result may be the test success or the test failure; the register value of the device to be tested is the test host after obtaining the test result. , the obtained register value of the device under test.
  • the method further includes:
  • Step 105' generating a test report of each device to be tested according to the feedback data of each device under test.
  • the test host summarizes the feedback data of each device to be tested, and generates a test report of each device to be tested, which is convenient for performing multiple test devices. Difference comparison.
  • the test report corresponding to each test task may be generated immediately after each test task in the task queue is executed, or after all the test tasks in the task queue are tested. Perform a summary to obtain a test report corresponding to the device to be tested.
  • the task queue of each device to be tested includes K test tasks.
  • the device under test executes one test task in the task queue in sequence, and is burned in one test task.
  • the test host After recording the device under test and executing it, the test host will receive the test result of the test task (you can confirm the test is completed); then, the test host checks the next test task in the task queue, clearing the device under test and the previous one. Test the task-related data (test file executable file, register value, etc.), then burn the next test task to the device under test and test until the test task in the task queue is tested.
  • test configuration information can be as shown in Table 1 below:
  • the task queue of the device D1 to be tested is the test task 4, the test task 1, the test task 3; the task queue of the device D2 to be tested is the test task 1, the test task 2, the test task 3; the task queue of the device D3 to be tested is Test task 2, test task 3, test task 4.
  • test host first identifies the communication path with the device under test D1, the device under test D2, and the device under test D3, and generates an executable file of test task 1 to test task 4; subsequently, obtains test task 1 to test The device to be tested corresponding to task 4, and put test task 1 to test task 4 into the task queue of the corresponding device under test.
  • the task queue of the device D1 to be tested is test task 4, test task 1, and test task 3.
  • the executable file of the test task 4 is burned to the device under test D1, and is controlled.
  • the test device D1 executes the test task 4, and simultaneously obtains the test log when the test task 4 is executed; after the test task 4 is executed, the test host receives the test result of the test task (the test can be confirmed); then, the test host checks The next test task (ie, test task 1) exists in the task queue, and the data related to the test task 4 in the device D1 to be tested (the executable file of the test task 4, the register value, etc.) is cleared, and then the test task 1 is burned. Recorded in the device under test D1 and tested until the test tasks in the task queue are tested.
  • the second embodiment of the present application relates to an automated testing method.
  • the present embodiment is substantially the same as the first embodiment.
  • the main difference is that in this embodiment, another method for generating test configuration information is provided.
  • FIG. 4 a specific process of the method for generating test test configuration information is shown in FIG. 4 .
  • Step 201 Detect whether a trigger event of a preset task occurs. If yes, go to step 202; otherwise, go back to step 201.
  • the task triggering event includes at least one of the following events: a code upload event, a code merge event, and a regression test event.
  • the process proceeds to step 202; otherwise, the process returns to step 201 until it is detected that the preset task triggering event occurs.
  • the development code of the device to be tested is uploaded to the code transfer space, which is a code upload event; when the development code uploaded into the code transfer space is confirmed
  • the development code is incorporated into the code base, which is the code integration event; when the program code of a test case in the code library is modified, the test case needs to be re-executed to confirm that the modification does not introduce a new error or cause other
  • the code generates an error, which is a regression test event.
  • Step 202 Set test configuration information according to the task trigger event.
  • the test configuration information is generated by generating a test task according to the task trigger event and a test case corresponding to the test task and the device to be tested to be executed.
  • the test host automatically generates test configuration information according to the task trigger event through the continuous integration tool; preferably, based on the continuous integration tool, the test host can also automatically send the generated test report to the test through the mail. Personnel and designers to enable testers and designers to obtain test reports in the first place.
  • this embodiment provides another generation manner of test configuration information, which can automatically generate test configuration information.
  • the third embodiment of the present application relates to an automated test method.
  • the present embodiment is an improvement on the basis of the first embodiment.
  • the main improvement is: in this embodiment, whether the data feedback path of the device to be tested is in a normal communication state. Make a judgment.
  • the feedback data includes a test log, and the specific process of the automated test method is shown in FIG. 5.
  • the steps 301 to 303 are substantially the same as the steps 101 to 103.
  • the steps 305 to 306 ′ are substantially the same as the steps 104 to 105 ′, and are not described here.
  • the main difference is that step 304 is added, as follows. :
  • Step 304 Determine whether the data feedback path of each device under test is in a normal communication state. If yes, go to step 305; if no, go to step 304 again.
  • the test host After the test host identifies the data feedback path, it establishes communication with the device under test; when the establishment is completed, the device under test can perform data feedback through the data feedback path. Since the test log records the real-time data of the process of performing the test task on the device under test (that is, the test log starts to be generated when the device under test starts to execute the test task), if the test device starts to perform the test task, the test host and the test host If the devices under test have not been successfully established, some test logs will be lost.
  • step 305 to control the device to be tested. Executing the burned test task; otherwise, the communication connection of the data feedback path of the device under test has not been successfully established, and step 304 is performed again until the data feedback path of the device under test is in a normal communication state, and then proceeds to step 305. .
  • the embodiment can confirm that the data feedback path can communicate normally, and then allow the test task to be executed on the device under test, so as to prevent the test log generated by the device under test from being executed in real time. Feedback to the test host in a timely manner. It should be noted that the present embodiment can also be used as an improvement on the basis of the second embodiment, and the same technical effects can be achieved.
  • the fourth embodiment of the present application relates to an automated test system.
  • the automated test system includes a test host 1 having a plurality of connection ports 11 and a plurality of intermediate connection modules. Among them, each intermediate connection module has a burning function. It should be noted that, in FIG. 6, the test host 1 has two connection ports 11 as an example, but this embodiment does not impose any limitation.
  • each intermediate connection module includes a USB hub 21 and a writer 22, and the programming function is implemented by the programmer 22; the USB hub 21 has four USB ports, which are respectively a USB port 211, a USB port 212, and a USB. Port 213 and USB port 214.
  • connection port 11 of the test host 1 is the same as the number of intermediate connection modules, and each connection port 11 is connected to one device under test 3 through an intermediate connection module.
  • the connection between the test host, the intermediate connection module, and the device under test 3 is described by taking a connection port 11 of the test host 1 as an example.
  • the connection port 11 of the test host 1 is connected to the USB port 211, and the USB port 212 is connected to the burn port.
  • the USB port 221 and the USB port 213 of the recorder 22 are connected to the power supply terminal 31 of the device under test 3, the USB port 214 is connected to the UART universal serial data bus 32 of the device under test 3, and the programmer 22 and the device under test 3 pass. Jumper connection.
  • the communication path between the test host 1 and each device under test 3 includes a burn path and a data feedback path.
  • the connection port 11 of the test host 1 is connected to the USB port 211
  • the USB port 212 of the USB hub 21 is connected to the USB port 221 of the programmer 22, and the programmer 22 and the device under test 3 are connected by a jumper to form a burn.
  • the recording path of the test host 1 is connected to the USB port 211, and the USB port 214 of the USB hub 21 is connected to the UART universal serial data bus 32 to form a data feedback path.
  • the test host 1 and each device under test 3 also have a power supply path, that is, the connection port 11 is connected to the USB port 211, and the USB port 213 of the USB hub 21 is connected to the power supply terminal 31 to form the power supply path.
  • the test host 1 is for performing the automated test method described in any of the first to third embodiments.
  • the embodiment can automatically identify the communication path between the test host and each device under test, and burn the test task to each test corresponding to the test task through the communication path of each device under test.
  • the test equipment that is, support multi-tasking, and allow multiple devices to be tested to test at the same time; achieve multi-task test of multiple devices under test, thereby improving test efficiency and saving development and test costs of the device under test .

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present application relates to the technical field of testing. Provided are an automated test method and system. The automated test method comprises: identifying a communication path of each device to be tested connected to a test host; acquiring, from pre-set test configuration information, several devices to be tested which correspond to at least one test task; burning, by means of the communication path of each device to be tested, the test task into each device to be tested which corresponds to the test task; controlling each device to be tested so that same executes the burned test task; and acquiring, by means of the communication path of each device to be tested, feedback data generated by each device to be tested executing the test task. Further provided is an automated test system. In the present application, multi-task testing of multiple devices to be tested can be implemented, thereby improving testing efficiency and saving development and testing costs of the devices to be tested.

Description

自动化测试方法及系统Automated test method and system 技术领域Technical field
本申请涉及测试技术领域,特别涉及一种自动化测试方法及系统。The present application relates to the field of testing technology, and in particular, to an automated testing method and system.
背景技术Background technique
微控制单元(Microcontroller Unit,MCU),又称单片微型计算机(Single Chip Microcomputer)或者单片机,随着MCU控制功能的不断完善,其应用的范围越来越广。设计人员在设计MCU开发板时,需要通过测试主机对其进行功能测试。Microcontroller Unit (MCU), also known as Single Chip Microcomputer or Single Chip Microcomputer, has a wider range of applications as MCU control functions continue to improve. When designing an MCU development board, designers need to test their functions through the test host.
发明人发现现有技术至少存在以下问题:(1)需要人工查看测试主机与MCU开发板的连接状态并下发测试任务,还需要人工识别MCU开发板对应的串口号,以获取测试结果;(2)每台测试主机只能测试一个MCU开发板,如果需要测试多个开发板,则需要多台测试主机。The inventor has found that at least the following problems exist in the prior art: (1) it is necessary to manually check the connection status between the test host and the MCU development board and issue a test task, and manually identify the serial port number corresponding to the MCU development board to obtain the test result; 2) Each test host can only test one MCU development board. If you need to test multiple development boards, you need multiple test hosts.
发明内容Summary of the invention
本申请部分实施例的目的在于提供一种自动化测试方法及系统,能够实现多个待测设备的多任务测试,从而提高了测试效率且节省了待测设备的开发和测试成本。The purpose of some embodiments of the present application is to provide an automated test method and system, which can implement multi-task testing of multiple devices to be tested, thereby improving test efficiency and saving development and testing costs of the device under test.
本申请实施例提供了一种自动化测试方法,应用于测试主机,自动化测 试方法包括:识别出与测试主机连接的每个待测设备的通信路径;从预设的测试配置信息中获取至少一测试任务对应的若干个待测设备;通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中;控制每个待测设备执行已烧录的测试任务;通过每个待测设备的通信路径,获取每个待测设备执行测试任务产生的反馈数据。An embodiment of the present application provides an automated test method, which is applied to a test host. The automated test method includes: identifying a communication path of each device to be tested connected to the test host; and obtaining at least one test from the preset test configuration information. a plurality of devices to be tested corresponding to the task; the test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested; and each test device is controlled to execute the burned test task; The feedback data generated by each test device to perform the test task is obtained through the communication path of each device under test.
本申请实施例还提供了一种自动化测试系统,包括:具有多个连接端口的测试主机与多个中间连接模块,且每个中间连接模块具有烧录功能;连接端口与中间连接模块的数目相同,且每个连接端口通过一个中间连接模块连接至一个待测设备;测试主机用于执行权利要求1至11中任一项的自动化测试方法。The embodiment of the present application further provides an automated test system, including: a test host having multiple connection ports and a plurality of intermediate connection modules, and each intermediate connection module has a burning function; the number of connection ports is the same as the number of intermediate connection modules. And each connection port is connected to a device under test through an intermediate connection module; the test host is configured to perform the automated test method of any one of claims 1 to 11.
本申请实施例相对于现有技术而言,能够自动识别测试主机与每个待测设备的通信路径,且通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中;即,支持多任务处理,且允许多个待测设备同时进行测试;实现了多个待测设备的多任务测试,从而提高了测试效率且节省了待测设备的开发和测试成本。Compared with the prior art, the embodiment of the present application can automatically identify the communication path between the test host and each device under test, and burn the test task to each of the test tasks through the communication path of each device under test. The device to be tested; that is, supports multi-tasking, and allows multiple devices to be tested to perform testing at the same time; realizes multi-task testing of multiple devices to be tested, thereby improving test efficiency and saving development and testing of devices to be tested cost.
另外,通信路径包括烧录路径与数据反馈路径;通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中,具体为:通过每个待测设备的烧录路径,将测试任务烧录到测试任务对应的每个待测设备中;通过每个待测设备的通信路径,获取每个待测设备执行测试任务产生的反馈数据,具体为:通过每个待测设备的数据反馈路径,获取每个待测设备执行测试任务产生的反馈数据。本实施例提供了通信路径的具体实现方式。In addition, the communication path includes a burn-in path and a data feedback path; the test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested, specifically: through each device to be tested Burning the path, burning the test task to each device to be tested corresponding to the test task; obtaining the feedback data generated by each test device to perform the test task through the communication path of each device to be tested, specifically: passing each The data feedback path of the device under test acquires the feedback data generated by each test device to perform the test task. This embodiment provides a specific implementation manner of a communication path.
另外,反馈数据包括测试日志;控制每个待测设备执行已烧录的测试任务之前,还包括:判断每个待测设备的数据反馈路径是否处于正常通信状态; 当判断结果为是时,进入控制每个待测设备执行已烧录的测试任务的步骤。本实施例中,确认数据反馈路径能够正常通信后,才允许在待测设备执行已烧录的测试任务,以避免待测设备执行测试任务时实时产生的测试日志无法及时反馈至测试主机。In addition, the feedback data includes a test log; before controlling each device under test to perform the burned test task, the method further includes: determining whether the data feedback path of each device to be tested is in a normal communication state; when the judgment result is yes, entering The step of controlling each test device to perform a burned test task. In this embodiment, after the data feedback path is confirmed to be normal, the test task is allowed to be executed on the device to be tested, so that the test log generated in real time when the device under test performs the test task cannot be fed back to the test host in time.
另外,从预设的测试配置信息中获取至少一测试任务对应的若干个待测设备之前,还包括:根据测试配置信息生成测试任务的可执行文件;通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中,具体为:通过每个待测设备的通信路径,将测试任务的可执行文件烧录到测试任务对应的每个待测设备中。本实施例中,能够根据测试配置信息自动生成测试任务的可执行文件。In addition, before acquiring the at least one device to be tested corresponding to the at least one test task, the method further includes: generating an executable file of the test task according to the test configuration information; and adopting a communication path of each device to be tested The test task is burned to each device to be tested corresponding to the test task, specifically: the executable file of the test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested. In this embodiment, the executable file of the test task can be automatically generated according to the test configuration information.
另外,根据测试配置信息生成测试任务的可执行文件,具体包括:从测试配置信息中获取测试任务对应的至少一测试用例;从代码库获取测试用例的程序代码;利用测试用例的程序代码生成测试任务的测试用例集;对测试任务的测试用例集进行编译,生成测试任务的可执行文件。本实施例提供了根据测试配置信息生成测试任务的可执行文件的具体实现方式,即,只要将测试用例与代码库中的该测试用例的程序代码预先建立对应关系,就可以实现自动获取测试用例的程序代码以生成测试任务的测试用例集,进而生成测试任务的可执行文件;而无需如现有技术中那样人工整合各测试用例的程序代码来生成测试用例集,从而节省了人工成本且提高了效率。In addition, generating the executable file of the test task according to the test configuration information, specifically: obtaining at least one test case corresponding to the test task from the test configuration information; obtaining the program code of the test case from the code base; and generating the test by using the test code of the test case The set of test cases for the task; compile the test case set for the test task to generate the executable file for the test task. The embodiment provides a specific implementation manner of generating an executable file according to the test configuration information, that is, if the test case is pre-established with the program code of the test case in the code base, the test case can be automatically obtained. The program code to generate a test case set of the test task, thereby generating an executable file of the test task; without manually integrating the program code of each test case to generate a test case set as in the prior art, thereby saving labor costs and improving The efficiency.
另外,测试配置信息通过以下方式得到,包括:提供测试配置界面;通过测试配置界面接收测试配置信息。本实施例提供了测试配置信息的一种获取方式。In addition, the test configuration information is obtained by the following methods, including: providing a test configuration interface; and receiving test configuration information through the test configuration interface. This embodiment provides an acquisition manner of test configuration information.
另外,测试配置信息通过以下方式得到,包括:当检测到预设的任务触发事件发生时,根据任务触发事件设定测试配置信息。本实施例提供了测试配置信息的另一种获取方式,能够自动生成测试配置信息。In addition, the test configuration information is obtained by: setting, when the preset task trigger event occurs, setting the test configuration information according to the task trigger event. This embodiment provides another method for obtaining test configuration information, which can automatically generate test configuration information.
另外,任务触发事件包括以下事件的至少其中之一:代码上传事件、代码合入事件、回归测试事件。本实施例提供了任务触发事件的具体种类。In addition, the task triggering event includes at least one of the following events: a code upload event, a code merge event, and a regression test event. This embodiment provides a specific type of task triggering event.
另外,测试任务为N个,N为大于1的整数;通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备之前,还包括:将每个测试任务放入测试任务对应的每个待测设备的任务队列中;其中,每个待测设备的任务队列中包括依次排列的K个测试任务;其中,K为整数且0<K≤N;通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中,具体为:通过每个待测设备的通信路径,将每个待测设备的任务队列中的K个测试任务依次烧录到待测设备中。本实施例提供了对待测设备进行多个测试任务的测试的具体实现方式。In addition, the test task is N, and N is an integer greater than 1. The test task is burned to each device to be tested corresponding to the test task through the communication path of each device to be tested, and includes: each test task Put into the task queue of each device to be tested corresponding to the test task; wherein the task queue of each device to be tested includes K test tasks arranged in sequence; wherein K is an integer and 0<K≤N; The communication path of the device under test, the test task is burned to each device to be tested corresponding to the test task, specifically: the K in the task queue of each device under test through the communication path of each device under test The test tasks are sequentially burned to the device under test. This embodiment provides a specific implementation manner of performing testing of multiple test tasks on the device to be tested.
另外,通过每个待测设备的通信路径,获取每个待测设备执行测试任务产生的反馈数据之后,还包括:根据每个待测设备的反馈数据生成每个待测设备的测试报告。本实施例中,根据反馈数据生成每个待测设备测试报告,便于进行多个待测设备的差异对比。In addition, after obtaining the feedback data generated by each device under test to perform the test task, the method further includes: generating a test report of each device to be tested according to the feedback data of each device to be tested. In this embodiment, a test report of each device to be tested is generated according to the feedback data, which facilitates comparison of differences between multiple devices to be tested.
另外,通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中之前,还包括:对测试任务对应的每个待测设备进行初始化。本实施例在烧录之前对待测设备进行初始化,避免待测设备中之前存储的数据影响获取的本次测试的反馈数据。In addition, before the test task is burned to each device to be tested corresponding to the test task by using the communication path of the device to be tested, the method further includes: initializing each device to be tested corresponding to the test task. In this embodiment, the device to be tested is initialized before burning, and the previously stored data in the device under test is prevented from affecting the obtained feedback data of the test.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是根据本申请第一实施例中的自动化测试方法的具体流程图;1 is a detailed flow chart of an automated test method in accordance with a first embodiment of the present application;
图2是根据本申请第一实施例中的自动化测试方法的具体细节流程图;2 is a flow chart showing specific details of an automated test method in accordance with a first embodiment of the present application;
图3是根据本申请第一实施例中的生成测试任务的可执行文件的具体流程图;3 is a specific flowchart of an executable file for generating a test task according to the first embodiment of the present application;
图4是根据本申请第二实施例中的测试配置信息的生成方法的具体流程图;4 is a specific flowchart of a method for generating test configuration information according to a second embodiment of the present application;
图5是根据本申请第三实施例中的自动化测试方法的具体流程图;FIG. 5 is a specific flowchart of an automated test method according to a third embodiment of the present application; FIG.
图6是根据本申请第四实施例中的自动化测试系统的方框示意图。Figure 6 is a block schematic diagram of an automated test system in accordance with a fourth embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请部分实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, the technical solutions and the advantages of the present application more clear, some embodiments of the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请第一实施例涉及一种自动化测试方法,应用于测试主机,测试主机用于对多个待测设备进行测试,待测设备可以为基于MCU的开发板或者基于MCU的终端。The first embodiment of the present application relates to an automated test method, which is applied to a test host, and the test host is used to test a plurality of devices to be tested. The device under test may be an MCU-based development board or an MCU-based terminal.
本实施例中的自动化测试方法的具体流程如图1所示,包括以下步骤:The specific process of the automated test method in this embodiment is as shown in FIG. 1 and includes the following steps:
步骤101,识别出与测试主机连接的每个待测设备的通信路径。Step 101: Identify a communication path of each device to be tested connected to the test host.
步骤102,从预设的测试配置信息中获取至少一测试任务对应的若干个待测设备。Step 102: Obtain, from the preset test configuration information, a plurality of devices to be tested corresponding to at least one test task.
步骤103,通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中。Step 103: Burn the test task to each device to be tested corresponding to the test task by using the communication path of each device to be tested.
步骤104,控制每个待测设备执行已烧录的测试任务。Step 104: Control each test device to perform a burned test task.
步骤105,通过每个待测设备的通信路径,获取每个待测设备执行测试任务产生的反馈数据。Step 105: Obtain feedback data generated by each test device to perform a test task by using a communication path of each device to be tested.
本实施例相对于现有技术而言,能够自动识别测试主机与每个待测设备的通信路径,且通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中;即,支持多任务处理,且允许多个待测设备同时进行测试;实现了多个待测设备的多任务测试,从而提高了测试效率且节省了待测设备的开发和测试成本。Compared with the prior art, the embodiment can automatically identify the communication path between the test host and each device under test, and burn the test task to each test corresponding to the test task through the communication path of each device under test. In the test equipment; that is, support multi-tasking, and allow multiple devices to be tested to test at the same time; achieve multi-task test of multiple devices under test, thereby improving test efficiency and saving development and test costs of the device under test .
下面对本实施例的自动化测试方法的实现细节进行具体的说明,请参考图2,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。The implementation details of the automated testing method of this embodiment are specifically described below. Please refer to FIG. 2, and the following content is only for the implementation details provided for convenience of understanding, and is not necessary for implementing the solution.
在步骤101中,具体而言,测试主机连接于多个待测设备,测试主机与每个待测设备的通信路径包括烧录路径与数据反馈路径,测试主机能够识别出与其连接的每个待测设备的烧录路径与数据反馈路径。测试主机识别烧录路径与数据反馈路径之后,测试主机与待测设备之间建立通信。In step 101, specifically, the test host is connected to a plurality of devices to be tested, and the communication path between the test host and each device to be tested includes a burn path and a data feedback path, and the test host can identify each to be connected thereto. Test the device's burning path and data feedback path. After the test host identifies the burn path and the data feedback path, communication is established between the test host and the device under test.
较佳的,在步骤101之后还包括:Preferably, after step 101, the method further includes:
步骤101’,根据测试配置信息生成测试任务的可执行文件。Step 101', generating an executable file of the test task according to the test configuration information.
具体而言,测试主机中预存有测试配置信息,测试配置信息中包括N个测试任务,N为大于1的整数。每个测试任务至少包括所需执行的测试用例与 执行该测试任务的待测设备。较佳的,测试任务还包括测试用例所在的代码库。需要说明的是,当各测试用例均存储在同一个代码库时,可以无需对测试任务中的每个测试用例标注代码库(系统可以默认设置代码库);然,当各测试用例存储在不同的代码库时,则需要对测试任务中的每个测试用例标注代码库。Specifically, test configuration information is pre-stored in the test host, and the test configuration information includes N test tasks, where N is an integer greater than 1. Each test task includes at least the test case to be executed and the device under test to perform the test task. Preferably, the test task also includes a code base in which the test case is located. It should be noted that when each test case is stored in the same code base, it is not necessary to mark the code base for each test case in the test task (the system can set the code base by default); however, when each test case is stored in a different When you use the code base, you need to tag the code base for each test case in the test task.
其中,测试配置信息的生成方式可以为:测试主机提供测试配置界面,设计人员通过测试配置界面输入测试配置信息。例如,设计人员在测试配置界面中选取所有需要用到的测试用例(每个测试用例均有相应的代号);然后,设计人员创建各测试任务;即,设定各测试任务的名称(例如,测试任务1、测试任务2等),并设定各测试任务所需执行的测试用例以及执行该测试任务的待测设备;较佳的,设计人员还会为测试用例设定其所在的代码库。The test configuration information may be generated by: the test host provides a test configuration interface, and the designer inputs test configuration information through the test configuration interface. For example, the designer selects all the test cases that need to be used in the test configuration interface (each test case has a corresponding code); then, the designer creates each test task; that is, sets the name of each test task (for example, Test task 1, test task 2, etc.), and set the test cases required for each test task and the device under test to perform the test task; preferably, the designer also sets the code base for the test case. .
较佳的,在获取测试配置信息后,将该测试配置信息整合成一文档并序列化该文档,以便于进行存储。Preferably, after the test configuration information is obtained, the test configuration information is integrated into a document and the document is serialized for storage.
需要说明的是,图2中仅示意性描述步骤101’与步骤101的执行顺序,即,可以在步骤101之前,执行步骤101’根据测试配置信息生成测试任务的可执行文件。It should be noted that only the execution sequence of step 101' and step 101 is schematically illustrated in Fig. 2, that is, before step 101, step 101' may be executed to generate an executable file of the test task based on the test configuration information.
本实施例中,请参考图3,步骤101’根据测试配置信息生成测试任务的可执行文件中,具体包括:In this embodiment, referring to FIG. 3, step 101' generates an executable file of the test task according to the test configuration information, which specifically includes:
子步骤1011’,从测试配置信息中获取测试任务对应的至少一测试用例。Sub-step 1011' obtains at least one test case corresponding to the test task from the test configuration information.
具体而言,每个测试任务中包括所需执行的测试用例,从而测试主机可以从测试配置信息中获取测试任务对应的至少一测试用例。Specifically, each test task includes a test case to be executed, so that the test host can obtain at least one test case corresponding to the test task from the test configuration information.
子步骤1012’,从代码库获取测试用例的程序代码。Sub-step 1012' obtains the program code of the test case from the code base.
具体而言,当并未对测试任务中的各测试用例标注代码库时,可以进入 系统默认设置的代码库并获取各测试用例的程序代码;若测试任务中的各测试用例已标注了代码库,则进入各测试用例对应的代码库并获取各测试用例的程序代码。Specifically, when the code library is not marked in each test case in the test task, the code library of the system default setting may be entered and the program code of each test case may be obtained; if each test case in the test task has been marked with the code base , enter the code base corresponding to each test case and obtain the program code of each test case.
子步骤1013’,利用测试用例的程序代码生成测试任务的测试用例集。Sub-step 1013' generates a test case set for the test task using the program code of the test case.
具体而言,测试主机自动从代码库中拉取测试任务对应的测试用例的程序代码,将各测试用例的程序代码集合起来作为测试任务的测试用例集。Specifically, the test host automatically pulls the program code of the test case corresponding to the test task from the code base, and assembles the program code of each test case as a test case set of the test task.
需要说明的是,现有技术中,仍是人工将各测试用例的程序代码集合起来以生成测试任务的测试用例集;因此,相较于现有技术,本实施例中的技术方案节省了人工成本且提高了效率。It should be noted that, in the prior art, the test case set of the test task is manually collected by manually assembling the program codes of the test cases; therefore, the technical solution in the embodiment saves labor compared to the prior art. Cost and increase efficiency.
子步骤1014’,对测试任务的测试用例集进行编译,生成测试任务的可执行文件。Sub-step 1014' compiles the test case set of the test task to generate an executable file of the test task.
具体而言,对测试任务的测试用例集进行编译并打包,生成测试任务的可执行文件。Specifically, the test case set of the test task is compiled and packaged to generate an executable file of the test task.
在步骤102中,测试配置信息中包括执行每个测试任务的待测设备,从而测试主机可以获取每个测试任务对应的若干个待测设备。In the step 102, the test configuration information includes a device to be tested that performs each test task, so that the test host can acquire a plurality of devices to be tested corresponding to each test task.
较佳的,在步骤102之后,还包括:Preferably, after step 102, the method further includes:
步骤102’,将每个测试任务放入测试任务对应的每个待测设备的任务队列中。In step 102', each test task is placed in the task queue of each device to be tested corresponding to the test task.
具体而言,每个待测设备对应于若干个测试任务,即,每个待测设备需要执行K个测试任务以完成自身功能的测试,其中,K为整数且0<K≤N;每个待测设备所对应的测试任务的种类和数量(K值),由该待测设备所需测试的功能决定。测试主机为每个待测设备分配一个任务队列,并将各测试任务分 别放入该测试任务对应的待测对象的任务队列中,即每个待测设备的任务队列包括依次排列的K个测试任务。Specifically, each device to be tested corresponds to several test tasks, that is, each device under test needs to perform K test tasks to complete the test of its own function, where K is an integer and 0<K≤N; each The type and quantity (K value) of the test task corresponding to the device to be tested is determined by the function required for the device to be tested. The test host allocates a task queue for each device to be tested, and puts each test task into the task queue of the object to be tested corresponding to the test task, that is, the task queue of each device to be tested includes K tests arranged in sequence. task.
需要说明的是,本实施例中的任务队列中包括依次排列的K个测试任务,任务队列由测试主机进行动态维护,K个测试任务的排列顺序可以根据任务优先级以及测试任务放入测试队列的时间来排列,任务优先级的权重大于任务创建时间,具体排列方式如下:将测试任务按照任务优先级依次进行排列,任务优先级高的测试任务排列在任务队列的前面,优先执行;若任务优先级相同,则按照测试任务放入测试队列的时间来排列,放入测试队列时间较早的测试任务排列在前面,优先执行。It should be noted that the task queue in this embodiment includes K test tasks arranged in sequence, and the task queue is dynamically maintained by the test host, and the order of the K test tasks can be put into the test queue according to the task priority and the test task. The time of the task is arranged. The priority of the task priority is greater than the task creation time. The specific arrangement is as follows: the test tasks are arranged in order according to the task priority, and the test tasks with high task priority are arranged in front of the task queue, and the priority is executed; If the priorities are the same, the test tasks are placed in the test queue. The test tasks that are placed in the test queue are listed in the front and are executed first.
在步骤103中,具体而言,测试主机发出烧录指令,通过每个待测设备的烧录路径,按照任务队列中的K个测试任务排列顺序,依次将K个测试任务的可执行文件烧录到对应的每个待测设备中。其中,测试任务的可执行文件可以烧录到待测设备的运行内存或闪存中。In step 103, specifically, the test host issues a programming command, and sequentially executes the executable files of the K test tasks according to the programming path of each of the K test tasks in the task queue through the burning path of each device under test. Recorded in each corresponding device to be tested. The executable file of the test task can be burned to the running memory or flash memory of the device under test.
另外,在将测试任务烧录到对应的每个待测设备中之前,一般会对测试任务对应的每个待测设备进行初始化,具体来说:在首次对待测设备烧录测试任务之前,需要对待测设备进行初始化,初始化内容例如包括:复位待测设备的状态、启动待测设备的系统时钟并进行校准等等,以为测试任务的执行提供一个基础环境。并且,在前一个测试任务执行完成后,下一个测试任务被烧录之前,测试主机也会对待测设备进行重置,即清空前一个测试任务的可执行文件,前一个测试任务被执行时生成的相关数据等,以避免下一个测试任务的烧录和执行受到干扰而产生错误的反馈数据。In addition, before the test task is burned into each corresponding device to be tested, each device to be tested corresponding to the test task is generally initialized, specifically: before the device to be tested for the first time is required to be burned. Initializing the device to be tested includes, for example, resetting the state of the device under test, starting the system clock of the device under test, and performing calibration, etc., to provide a basic environment for execution of the test task. Moreover, after the execution of the previous test task is completed, before the next test task is burned, the test host also resets the device to be tested, that is, the executable file of the previous test task is cleared, and the previous test task is executed when executed. Relevant data, etc., to avoid erroneous feedback data caused by interference in the burning and execution of the next test task.
在步骤104中,具体而言,测试主机发出开始测试指令,控制每个待测 设备中执行已烧录的测试任务。In step 104, specifically, the test host issues a start test command to control the execution of the burned test task in each device under test.
在步骤105中,具体而言,测试主机在待测设备执行测试任务时,通过数据反馈路径获取相应的反馈数据,反馈数据包括以下任意之一或任意组合:测试日志、测试结果和待测设备的寄存器值。其中,测试日志包括实时记录的待测设备执行测试任务的所有测试操作,以便于根据测试日志跟踪定位;测试结果可以为测试成功或测试失败;待测设备的寄存器值为测试主机获取测试结果后,获取的待测设备的寄存器值。In step 105, specifically, the test host obtains corresponding feedback data through the data feedback path when the device under test performs the test task, and the feedback data includes any one or any combination of the following: test log, test result, and device to be tested. Register value. The test log includes all the test operations performed by the device under test to perform the test task in real time, so as to track the positioning according to the test log; the test result may be the test success or the test failure; the register value of the device to be tested is the test host after obtaining the test result. , the obtained register value of the device under test.
较佳的,在步骤105之后,还包括:Preferably, after step 105, the method further includes:
步骤105’,根据每个待测设备的反馈数据生成每个待测设备的测试报告。Step 105', generating a test report of each device to be tested according to the feedback data of each device under test.
具体而言,测试主机在各个待测设备执行完其对应的测试任务后,对每个待测设备的反馈数据进行汇总,生成每个待测设备的测试报告,便于进行多个待测设备的差异对比。其中,对于每个待测设备来说,可以在任务队列中的每个测试任务执行完毕后,立即生成每个测试任务对应的测试报告,或者在任务队列中的所有测试任务均测试完毕后,进行汇总,得到该待测设备对应的测试报告。Specifically, after the test device performs its corresponding test task, the test host summarizes the feedback data of each device to be tested, and generates a test report of each device to be tested, which is convenient for performing multiple test devices. Difference comparison. For each device to be tested, the test report corresponding to each test task may be generated immediately after each test task in the task queue is executed, or after all the test tasks in the task queue are tested. Perform a summary to obtain a test report corresponding to the device to be tested.
本实施例,每个待测设备的任务队列中包括K个测试任务,以任一待测设备为例,待测设备按顺序每次执行任务队列中的一个测试任务,在一个测试任务被烧录到待测设备并执行完毕后,测试主机会接收到该测试任务的测试结果(可以确认测试完毕);然后,测试主机查看任务队列中的下一个测试任务,清空待测设备中与上一个测试任务相关的数据(测试任务的可执行文件、寄存器数值等),再将该下一个测试任务烧录到待测设备中并进行测试,直至任务 队列中的测试任务均测试完毕。In this embodiment, the task queue of each device to be tested includes K test tasks. Taking any device under test as an example, the device under test executes one test task in the task queue in sequence, and is burned in one test task. After recording the device under test and executing it, the test host will receive the test result of the test task (you can confirm the test is completed); then, the test host checks the next test task in the task queue, clearing the device under test and the previous one. Test the task-related data (test file executable file, register value, etc.), then burn the next test task to the device under test and test until the test task in the task queue is tested.
下面以一个具体例子说明本实施例的技术方案。本例子中,测试配置信息可以如下表1所示:The technical solution of this embodiment will be described below with a specific example. In this example, the test configuration information can be as shown in Table 1 below:
表1Table 1
Figure PCTCN2018071522-appb-000001
Figure PCTCN2018071522-appb-000001
另外,待测设备D1的任务队列为测试任务4、测试任务1、测试任务3;待测设备D2的任务队列为测试任务1、测试任务2、测试任务3;待测设备D3的任务队列为测试任务2、测试任务3、测试任务4。In addition, the task queue of the device D1 to be tested is the test task 4, the test task 1, the test task 3; the task queue of the device D2 to be tested is the test task 1, the test task 2, the test task 3; the task queue of the device D3 to be tested is Test task 2, test task 3, test task 4.
在测试时,测试主机先识别出与待测设备D1、待测设备D2以及待测设备D3的通信路径,并生成测试任务1至测试任务4的可执行文件;随后,获取测试任务1至测试任务4对应的待测设备,并将测试任务1至测试任务4放入对应的待测设备的任务队列中。During the test, the test host first identifies the communication path with the device under test D1, the device under test D2, and the device under test D3, and generates an executable file of test task 1 to test task 4; subsequently, obtains test task 1 to test The device to be tested corresponding to task 4, and put test task 1 to test task 4 into the task queue of the corresponding device under test.
以待测设备D1为例说明测试主机控制待测设备执行测试任务的具体过 程。待测设备D1的任务队列为测试任务4、测试任务1、测试任务3,测试主机在对待测设备D1初始化后,将测试任务4的可执行文件烧录到待测设备D1中,并控制待测设备D1执行测试任务4,同时获取执行测试任务4时的测试日志;在测试任务4执行完毕后,测试主机会接收到该测试任务的测试结果(可以确认测试完毕);然后,测试主机查看任务队列中还存在下一个测试任务(即测试任务1),清空待测设备D1中测试任务4相关的数据(测试任务4的可执行文件、寄存器数值等)后,再将该测试任务1烧录到待测设备D1中并进行测试,直至任务队列中的测试任务均测试完毕。Take the device D1 to be tested as an example to illustrate the specific process of the test host controlling the device under test to perform the test task. The task queue of the device D1 to be tested is test task 4, test task 1, and test task 3. After the test host initializes the device D1 to be tested, the executable file of the test task 4 is burned to the device under test D1, and is controlled. The test device D1 executes the test task 4, and simultaneously obtains the test log when the test task 4 is executed; after the test task 4 is executed, the test host receives the test result of the test task (the test can be confirmed); then, the test host checks The next test task (ie, test task 1) exists in the task queue, and the data related to the test task 4 in the device D1 to be tested (the executable file of the test task 4, the register value, etc.) is cleared, and then the test task 1 is burned. Recorded in the device under test D1 and tested until the test tasks in the task queue are tested.
本申请第二实施例涉及一种自动化测试方法,本实施例与第一实施例大致相同,主要不同之处在于:本实施例中,提供了测试配置信息的另一种生成方法。The second embodiment of the present application relates to an automated testing method. The present embodiment is substantially the same as the first embodiment. The main difference is that in this embodiment, another method for generating test configuration information is provided.
本实施例中,测试测试配置信息的生成方法的具体流程如图4所示。In this embodiment, a specific process of the method for generating test test configuration information is shown in FIG. 4 .
步骤201,检测是否存在预设任务的触发事件发生。若是,则进入步骤202;否则,则回到步骤201。Step 201: Detect whether a trigger event of a preset task occurs. If yes, go to step 202; otherwise, go back to step 201.
具体而言,任务触发事件包括以下事件的至少其中之一:代码上传事件、代码合入事件、回归测试事件。当测试主机检测到预设任务触发事件发生时,进入步骤202;否则,则回到步骤201,直至检测到预设任务触发事件发生。Specifically, the task triggering event includes at least one of the following events: a code upload event, a code merge event, and a regression test event. When the test host detects that the preset task triggering event occurs, the process proceeds to step 202; otherwise, the process returns to step 201 until it is detected that the preset task triggering event occurs.
其中,设计人员为待测设备新增某个功能时,会将该待测设别的开发代码上传到代码中转空间,即为代码上传事件;当上传到代码中转空间中的开发代码被确认后,开发代码被合入代码库中,即为代码合入事件;当代码库中的某个测试用例的程序代码被修改后,需要重新执行该测试用例以确认修改没有引入新的错误或导致其他代码产生错误,即为回归测试事件。When the designer adds a certain function to the device to be tested, the development code of the device to be tested is uploaded to the code transfer space, which is a code upload event; when the development code uploaded into the code transfer space is confirmed The development code is incorporated into the code base, which is the code integration event; when the program code of a test case in the code library is modified, the test case needs to be re-executed to confirm that the modification does not introduce a new error or cause other The code generates an error, which is a regression test event.
步骤202,根据任务触发事件设定测试配置信息。Step 202: Set test configuration information according to the task trigger event.
具体而言,根据任务触发事件生成测试任务以及测试任务对应的测试用例及所需执行的待测设备,即形成该测试配置信息。Specifically, the test configuration information is generated by generating a test task according to the task trigger event and a test case corresponding to the test task and the device to be tested to be executed.
本实施例中,在测试主机通过持续集成工具实现根据任务触发事件自动生成测试配置信息的功能;较佳的,基于该持续集成工具,测试主机还可以将生成的测试报告通过邮件自动反馈给测试人员和设计人员,以便于测试人员和设计人员在第一时间获取测试报告。In this embodiment, the test host automatically generates test configuration information according to the task trigger event through the continuous integration tool; preferably, based on the continuous integration tool, the test host can also automatically send the generated test report to the test through the mail. Personnel and designers to enable testers and designers to obtain test reports in the first place.
本实施例相对于第一实施例而言,提供了测试配置信息的另一种生成方式,能够自动生成测试配置信息。Compared with the first embodiment, this embodiment provides another generation manner of test configuration information, which can automatically generate test configuration information.
本申请第三实施例涉及一种自动化测试方法,本实施例是在第一实施例基础上的改进,主要改进之处在于:本实施例中,对待测设备的数据反馈路径是否处于正常通信状态进行判断。The third embodiment of the present application relates to an automated test method. The present embodiment is an improvement on the basis of the first embodiment. The main improvement is: in this embodiment, whether the data feedback path of the device to be tested is in a normal communication state. Make a judgment.
本实施例中,反馈数据包括测试日志,自动化测试方法的具体流程如图5所示。In this embodiment, the feedback data includes a test log, and the specific process of the automated test method is shown in FIG. 5.
其中,步骤301至步骤303与步骤101至步骤103大致相同,步骤305至步骤306’与步骤104至步骤105’大致相同,在此不在赘述,主要不同之处在于,增加了步骤304,具体如下:The steps 301 to 303 are substantially the same as the steps 101 to 103. The steps 305 to 306 ′ are substantially the same as the steps 104 to 105 ′, and are not described here. The main difference is that step 304 is added, as follows. :
步骤304,判断每个待测设备的数据反馈路径是否处于正常通信状态。若是,则进入步骤305;若否,则再次执行步骤304。Step 304: Determine whether the data feedback path of each device under test is in a normal communication state. If yes, go to step 305; if no, go to step 304 again.
其中,测试主机在识别数据反馈路径之后,会与待测设备之间建立通信;当建立完成时,待测设备就可以通过数据反馈路径进行数据反馈。由于测试日志为对待测设备执行测试任务的过程的实时记录数据(即待测设备开始执行测 试任务之时就开始产生测试日志),因此,若在待测设备开始执行测试任务时,测试主机与待测设备之间尚未建立成功,则会丢失部分测试日志。After the test host identifies the data feedback path, it establishes communication with the device under test; when the establishment is completed, the device under test can perform data feedback through the data feedback path. Since the test log records the real-time data of the process of performing the test task on the device under test (that is, the test log starts to be generated when the device under test starts to execute the test task), if the test device starts to perform the test task, the test host and the test host If the devices under test have not been successfully established, some test logs will be lost.
因此,对于每个待测设备来说,需要在执行已烧录的测试任务之前,判断待测设备的数据反馈路径是否处于正常通信状态,当判断结果为是时,进入步骤305控制待测设备执行已烧录的测试任务;否则,则说明该待测设备的数据反馈路径的通信连接尚未建立成功,再次执行步骤304,直至该待测设备的数据反馈路径处于正常通信状态,再进入步骤305。Therefore, for each device to be tested, it is required to determine whether the data feedback path of the device under test is in a normal communication state before performing the burned test task. When the determination result is yes, proceed to step 305 to control the device to be tested. Executing the burned test task; otherwise, the communication connection of the data feedback path of the device under test has not been successfully established, and step 304 is performed again until the data feedback path of the device under test is in a normal communication state, and then proceeds to step 305. .
本实施例相对于第一实施例而言,确认数据反馈路径能够正常通信后,才允许在待测设备执行已烧录的测试任务,以避免待测设备执行测试任务时实时产生的测试日志无法及时反馈至测试主机。需要说明的是,本实施例也可以作为在第二实施例基础上的改进,可以达到同样的技术效果。Compared with the first embodiment, the embodiment can confirm that the data feedback path can communicate normally, and then allow the test task to be executed on the device under test, so as to prevent the test log generated by the device under test from being executed in real time. Feedback to the test host in a timely manner. It should be noted that the present embodiment can also be used as an improvement on the basis of the second embodiment, and the same technical effects can be achieved.
本申请第四实施例涉及一种自动化测试系统,请参考图6,自动化测试系统包括具有多个连接端口11的测试主机1与多个中间连接模块。其中,每个中间连接模块具有烧录功能。需要说明的是,图6中以测试主机1具有2个连接端口11为例,然本实施例对此不作任何限制。The fourth embodiment of the present application relates to an automated test system. Referring to FIG. 6, the automated test system includes a test host 1 having a plurality of connection ports 11 and a plurality of intermediate connection modules. Among them, each intermediate connection module has a burning function. It should be noted that, in FIG. 6, the test host 1 has two connection ports 11 as an example, but this embodiment does not impose any limitation.
本实施例中,每个中间连接模块包括USB集线器21与烧录器22,通过烧录器22实现烧录功能;USB集线器21具有4个USB端口,分别为USB端口211、USB端口212、USB端口213以及USB端口214。In this embodiment, each intermediate connection module includes a USB hub 21 and a writer 22, and the programming function is implemented by the programmer 22; the USB hub 21 has four USB ports, which are respectively a USB port 211, a USB port 212, and a USB. Port 213 and USB port 214.
测试主机1的连接端口11与中间连接模块的数目相同,且每个连接端口11通过一个中间连接模块连接至一个待测设备3。下面以测试主机1的一个连接端口11为例,对测试主机、中间连接模块以及待测设备3的连接关系进行说明:测试主机1的连接端口11连接至USB端口211、USB端口212连接至烧 录器22的USB端口221、USB端口213连接至待测设备3的供电端31、USB端口214连接至待测设备3的UART通用串行数据总线32,烧录器22与待测设备3通过跳线连接。The connection port 11 of the test host 1 is the same as the number of intermediate connection modules, and each connection port 11 is connected to one device under test 3 through an intermediate connection module. The connection between the test host, the intermediate connection module, and the device under test 3 is described by taking a connection port 11 of the test host 1 as an example. The connection port 11 of the test host 1 is connected to the USB port 211, and the USB port 212 is connected to the burn port. The USB port 221 and the USB port 213 of the recorder 22 are connected to the power supply terminal 31 of the device under test 3, the USB port 214 is connected to the UART universal serial data bus 32 of the device under test 3, and the programmer 22 and the device under test 3 pass. Jumper connection.
测试主机1与每个待测设备3的通信路径包括烧录路径与数据反馈路径。其中,测试主机1的连接端口11连接至USB端口211、USB集线器21的USB端口212连接至烧录器22的USB端口221、烧录器22与待测设备3通过跳线连接,形成了烧录路径;测试主机1的连接端口11连接至USB端口211、USB集线器21的USB端口214连接至UART通用串行数据总线32,形成了数据反馈路径。另外,测试主机1与每个待测设备3之间还具有供电路径,即,连接端口11连接至USB端口211、USB集线器21的USB端口213连接至供电端31,形成该供电路径。The communication path between the test host 1 and each device under test 3 includes a burn path and a data feedback path. The connection port 11 of the test host 1 is connected to the USB port 211, the USB port 212 of the USB hub 21 is connected to the USB port 221 of the programmer 22, and the programmer 22 and the device under test 3 are connected by a jumper to form a burn. The recording path of the test host 1 is connected to the USB port 211, and the USB port 214 of the USB hub 21 is connected to the UART universal serial data bus 32 to form a data feedback path. In addition, the test host 1 and each device under test 3 also have a power supply path, that is, the connection port 11 is connected to the USB port 211, and the USB port 213 of the USB hub 21 is connected to the power supply terminal 31 to form the power supply path.
测试主机1用于执行第一实施例至第三实施例中任一实施例所述的自动化测试方法。The test host 1 is for performing the automated test method described in any of the first to third embodiments.
本实施例相对于现有技术而言,能够自动识别测试主机与每个待测设备的通信路径,且通过每个待测设备的通信路径,将测试任务烧录到测试任务对应的每个待测设备中;即,支持多任务处理,且允许多个待测设备同时进行测试;实现了多个待测设备的多任务测试,从而提高了测试效率且节省了待测设备的开发和测试成本。Compared with the prior art, the embodiment can automatically identify the communication path between the test host and each device under test, and burn the test task to each test corresponding to the test task through the communication path of each device under test. In the test equipment; that is, support multi-tasking, and allow multiple devices to be tested to test at the same time; achieve multi-task test of multiple devices under test, thereby improving test efficiency and saving development and test costs of the device under test .
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。A person skilled in the art can understand that the above embodiments are specific embodiments of the present application, and various changes can be made in the form and details without departing from the spirit and scope of the application. range.

Claims (12)

  1. 一种自动化测试方法,其特征在于,应用于测试主机,所述自动化测试方法包括:An automated test method is characterized in that it is applied to a test host, and the automated test method includes:
    识别出与所述测试主机连接的每个待测设备的通信路径;Identifying a communication path of each device to be tested connected to the test host;
    从预设的测试配置信息中获取至少一测试任务对应的若干个所述待测设备;Acquiring, by the preset test configuration information, a plurality of the devices to be tested corresponding to the at least one test task;
    通过每个所述待测设备的通信路径,将所述测试任务烧录到所述测试任务对应的每个所述待测设备中;The test task is burned to each of the devices to be tested corresponding to the test task by using a communication path of each device to be tested;
    控制每个所述待测设备执行已烧录的所述测试任务;Controlling each of the devices to be tested to perform the test task that has been burned;
    通过每个所述待测设备的通信路径,获取每个所述待测设备执行所述测试任务产生的反馈数据。Obtaining feedback data generated by each of the devices under test to perform the test task by using a communication path of each of the devices to be tested.
  2. 如权利要求1所述的自动化测试方法,其特征在于,所述通信路径包括烧录路径与数据反馈路径;The automated testing method according to claim 1, wherein the communication path comprises a burning path and a data feedback path;
    所述通过每个所述待测设备的通信路径,将所述测试任务烧录到所述测试任务对应的每个所述待测设备中,具体为:通过每个所述待测设备的烧录路径,将所述测试任务烧录到所述测试任务对应的每个所述待测设备中;The test task is burned to each of the devices to be tested corresponding to the test task by using a communication path of each of the devices to be tested, specifically: burning through each of the devices to be tested Logging the path to burn the test task to each of the devices to be tested corresponding to the test task;
    所述通过每个所述待测设备的通信路径,获取每个所述待测设备执行所述测试任务产生的反馈数据,具体为:通过每个所述待测设备的数据反馈路径,获取每个所述待测设备执行所述测试任务产生的反馈数据。The obtaining, by the communication path of each of the devices to be tested, the feedback data generated by each of the devices under test to perform the test task, specifically: obtaining, by using a data feedback path of each device to be tested, The device under test performs feedback data generated by the test task.
  3. 如权利要求2所述的自动化测试方法,其特征在于,所述反馈数据包括测试日志;所述控制每个所述待测设备执行已烧录的所述测试任务之前,还包括:The automated test method according to claim 2, wherein the feedback data comprises a test log; and the controlling each of the device under test before performing the test task that has been burned, further comprising:
    判断每个所述待测设备的数据反馈路径是否处于正常通信状态;当判断结果为是时,进入所述控制每个所述待测设备执行已烧录的所述测试任务的步骤。Determining whether the data feedback path of each of the devices to be tested is in a normal communication state; when the determination result is yes, entering the step of controlling each of the devices to be tested to perform the test task that has been burned.
  4. 如权利要求1所述的自动化测试方法,其特征在于,所述从预设的测试配置信息中获取至少一测试任务对应的若干个所述待测设备之前,还包括:The automated testing method of claim 1, wherein the obtaining, by the preset test configuration information, the plurality of the devices to be tested corresponding to the at least one test task, further comprising:
    根据所述测试配置信息生成所述测试任务的可执行文件;Generating an executable file of the test task according to the test configuration information;
    所述通过每个所述待测设备的通信路径,将所述测试任务烧录到所述测试任务对应的每个所述待测设备中,具体为:通过每个所述待测设备的通信路径,将所述测试任务的可执行文件烧录到所述测试任务对应的每个所述待测设备中。The test task is burned to each of the devices to be tested corresponding to the test task by using a communication path of each device to be tested, specifically: communication through each of the devices to be tested a path, the executable file of the test task is burned into each of the devices to be tested corresponding to the test task.
  5. 如权利要求4所述的自动化测试方法,其特征在于,所述根据所述测试配置信息生成所述测试任务的可执行文件,具体包括:The automated test method according to claim 4, wherein the generating the executable file of the test task according to the test configuration information comprises:
    从所述测试配置信息中获取所述测试任务对应的至少一测试用例;Acquiring at least one test case corresponding to the test task from the test configuration information;
    从代码库获取所述测试用例的程序代码;Obtaining program code of the test case from a code base;
    利用所述测试用例的程序代码生成所述测试任务的测试用例集;Generating a test case set of the test task using program code of the test case;
    对所述测试任务的测试用例集进行编译,生成所述测试任务的可执行文件。Compiling the test case set of the test task to generate an executable file of the test task.
  6. 如权利要求1所述的自动化测试方法,其特征在于,所述测试配置信息通过以下方式得到,包括:The automated test method according to claim 1, wherein the test configuration information is obtained by:
    提供测试配置界面;Provide a test configuration interface;
    通过所述测试配置界面接收所述测试配置信息。The test configuration information is received through the test configuration interface.
  7. 如权利要求1所述的自动化测试方法,其特征在于,所述测试配置信息通过以下方式得到,包括:The automated test method according to claim 1, wherein the test configuration information is obtained by:
    当检测到预设的任务触发事件发生时,根据所述任务触发事件设定所述测试配置信息。When it is detected that a preset task triggering event occurs, the test configuration information is set according to the task triggering event.
  8. 如权利要求7所述的自动化测试方法,其特征在于,所述任务触发事件包括以下事件的至少其中之一:代码上传事件、代码合入事件、回归测试事件。The automated testing method according to claim 7, wherein the task triggering event comprises at least one of the following events: a code upload event, a code merge event, and a regression test event.
  9. 如权利要求1所述的自动化测试方法,其特征在于,所述测试任务为N个,N为大于1的整数;所述通过每个所述待测设备的通信路径,将所述测试任务烧录到所述测试任务对应的每个所述待测设备之前,还包括:The automated test method according to claim 1, wherein the test task is N, and N is an integer greater than 1. The test task is burned by the communication path of each of the devices to be tested. Before recording the device to be tested corresponding to the test task, the method further includes:
    将每个所述测试任务放入所述测试任务对应的每个所述待测设备的任务队列中;其中,每个所述待测设备的任务队列中包括依次排列的K个所述测试任务;其中,K为整数且0<K≤N;Each of the test tasks is placed in a task queue of each of the devices to be tested corresponding to the test task; wherein each of the test queues of the device to be tested includes K test tasks arranged in sequence Where K is an integer and 0 < K ≤ N;
    所述通过每个所述待测设备的通信路径,将所述测试任务烧录到所述测试任务对应的每个所述待测设备中,具体为:通过每个所述待测设备的通信路径,将每个所述待测设备的任务队列中的K个所述测试任务依次烧录到所述待测设备中。The test task is burned to each of the devices to be tested corresponding to the test task by using a communication path of each device to be tested, specifically: communication through each of the devices to be tested a path, in which the K test tasks in the task queue of each device to be tested are sequentially burned into the device to be tested.
  10. 如权利要求1所述的自动化测试方法,其特征在于,所述通过每个所述待测设备的通信路径,获取每个所述待测设备执行所述测试任务产生的反馈数据之后,还包括:The automated test method according to claim 1, wherein the obtaining, by the communication path of each of the devices to be tested, the feedback data generated by each of the devices under test after performing the test task, further includes :
    根据每个所述待测设备的所述反馈数据生成每个所述待测设备的测试报告。Generating a test report of each of the devices to be tested according to the feedback data of each of the devices to be tested.
  11. 如权利要求1所述的自动化测试方法,其特征在于,所述通过每个所述待测设备的通信路径,将所述测试任务烧录到所述测试任务对应的每个所述待测设备中之前,还包括:The automated testing method according to claim 1, wherein the test task is burned to each of the devices to be tested corresponding to the test task by using a communication path of each device to be tested. Before, it also includes:
    对所述测试任务对应的每个所述待测设备进行初始化。Initializing each of the devices to be tested corresponding to the test task.
  12. 一种自动化测试系统,其特征在于,包括:具有多个连接端口的测试主机与多个中间连接模块,且每个所述中间连接模块具有烧录功能;An automated test system, comprising: a test host having a plurality of connection ports and a plurality of intermediate connection modules, and each of the intermediate connection modules has a burning function;
    所述连接端口与所述中间连接模块的数目相同,且每个所述连接端口通过一个所述中间连接模块连接至一个待测设备;The connection port is the same as the number of the intermediate connection modules, and each of the connection ports is connected to a device to be tested through one of the intermediate connection modules;
    所述测试主机用于执行权利要求1至11中任一项所述的自动化测试方法。The test host is for performing the automated test method of any one of claims 1 to 11.
PCT/CN2018/071522 2018-01-05 2018-01-05 Automated test method and system WO2019134113A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880000246.5A CN110235393A (en) 2018-01-05 2018-01-05 Automated testing method and system
PCT/CN2018/071522 WO2019134113A1 (en) 2018-01-05 2018-01-05 Automated test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/071522 WO2019134113A1 (en) 2018-01-05 2018-01-05 Automated test method and system

Publications (1)

Publication Number Publication Date
WO2019134113A1 true WO2019134113A1 (en) 2019-07-11

Family

ID=67144048

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/071522 WO2019134113A1 (en) 2018-01-05 2018-01-05 Automated test method and system

Country Status (2)

Country Link
CN (1) CN110235393A (en)
WO (1) WO2019134113A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888656A (en) * 2019-11-26 2020-03-17 卡斯柯信号有限公司 Multifunctional programming device and programming method
CN113596871A (en) * 2021-07-05 2021-11-02 哲库科技(上海)有限公司 Test method, server and computer storage medium
CN116881063A (en) * 2023-09-06 2023-10-13 合肥康芯威存储技术有限公司 Test system and test method for storage unit of electronic product

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111458105A (en) * 2020-04-21 2020-07-28 欧菲微电子技术有限公司 Method, device and equipment for testing optical module
CN113138886A (en) * 2021-04-23 2021-07-20 摩拜(北京)信息技术有限公司 Method and device for testing embedded equipment and testing equipment
CN113470618A (en) * 2021-06-08 2021-10-01 阿波罗智联(北京)科技有限公司 Wake-up test method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567942B1 (en) * 1999-11-08 2003-05-20 International Business Machines Corporation Method and apparatus to reduce the size of programmable array built-in self-test engines
CN101848042A (en) * 2010-04-20 2010-09-29 惠州Tcl移动通信有限公司 Method and system for testing radio frequency of mobile phones
CN103454575A (en) * 2013-09-06 2013-12-18 福州瑞芯微电子有限公司 System, PCBA board and method for achieving PCBA board testing
CN105022000A (en) * 2015-07-20 2015-11-04 广东格兰仕集团有限公司 Power supply circuit board automatic testing device
CN106326093A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Automated testing system and testing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247293B (en) * 2008-03-11 2010-07-28 福建星网锐捷网络有限公司 Automatic test approach and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567942B1 (en) * 1999-11-08 2003-05-20 International Business Machines Corporation Method and apparatus to reduce the size of programmable array built-in self-test engines
CN101848042A (en) * 2010-04-20 2010-09-29 惠州Tcl移动通信有限公司 Method and system for testing radio frequency of mobile phones
CN103454575A (en) * 2013-09-06 2013-12-18 福州瑞芯微电子有限公司 System, PCBA board and method for achieving PCBA board testing
CN106326093A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Automated testing system and testing method
CN105022000A (en) * 2015-07-20 2015-11-04 广东格兰仕集团有限公司 Power supply circuit board automatic testing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888656A (en) * 2019-11-26 2020-03-17 卡斯柯信号有限公司 Multifunctional programming device and programming method
CN110888656B (en) * 2019-11-26 2022-07-26 卡斯柯信号有限公司 Multifunctional programming device and programming method
CN113596871A (en) * 2021-07-05 2021-11-02 哲库科技(上海)有限公司 Test method, server and computer storage medium
CN116881063A (en) * 2023-09-06 2023-10-13 合肥康芯威存储技术有限公司 Test system and test method for storage unit of electronic product

Also Published As

Publication number Publication date
CN110235393A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
WO2019134113A1 (en) Automated test method and system
US11281570B2 (en) Software testing method, system, apparatus, device medium, and computer program product
US8930912B2 (en) Method and system for performing software verification
US9747192B2 (en) Automated operating system installation on multiple drives
US8549522B1 (en) Automated testing environment framework for testing data storage systems
US8572438B2 (en) N-way runtime interoperative debugging
WO2016177124A1 (en) Method and device for implementing continuous integration test
US9542304B1 (en) Automated operating system installation
TWI566090B (en) Debugging firmware / software to produce tracking systems and methods, recording media and computer program products
CN113157508B (en) Test method, system, device, equipment and storage medium of embedded system
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
CN109558318B (en) Code management method and code warehouse distributed system
US10592703B1 (en) Method and system for processing verification tests for testing a design under test
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN111611157B (en) GMS continuous integration construction automatic test method and system
CN110688269B (en) RTL code automatic verification device and method adopting AXI bus interface
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
CN108073738B (en) GPIO (general purpose input/output) verification system and method
CN114117973A (en) Logic synthesis method, device and storage medium
US20230367936A1 (en) Verification method, electronic device and storage medium
CN106909382B (en) Method and device for outputting different types of system starting information
JP2008135008A (en) Program module verification method
US10216525B1 (en) Virtual disk carousel
RU2729210C1 (en) Electronic devices software testing system
JP2009104490A (en) Apparatus for testing program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18898888

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18898888

Country of ref document: EP

Kind code of ref document: A1