[go: up one dir, main page]

CN115454831A - A vehicle-machine system testing method, device, equipment and storage medium - Google Patents

A vehicle-machine system testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115454831A
CN115454831A CN202211040688.7A CN202211040688A CN115454831A CN 115454831 A CN115454831 A CN 115454831A CN 202211040688 A CN202211040688 A CN 202211040688A CN 115454831 A CN115454831 A CN 115454831A
Authority
CN
China
Prior art keywords
test
vehicle
machine system
program
preset
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
CN202211040688.7A
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.)
China Automotive Innovation Corp
Original Assignee
China Automotive Innovation Corp
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 China Automotive Innovation Corp filed Critical China Automotive Innovation Corp
Priority to CN202211040688.7A priority Critical patent/CN115454831A/en
Publication of CN115454831A publication Critical patent/CN115454831A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3698Environments for analysis, debugging or testing of software
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请涉及车机系统技术领域,尤其涉及一种车机系统测试方法、装置、设备及存储介质。该方法包括:获取车机系统中的测试程序,并读取预设存储设备中的测试控制文件;预设存储设备为车机系统外部的存储设备;获取与测试程序对应的测试配置文件;基于测试控制文件,根据测试配置文件启动测试程序;在测试程序启动过程中,获取车机系统在预设测试场景下的测试数据,得到测试程序对应的测试结果。通过在预设存储设备中设置测试控制文件来控制车机系统中的测试程序的运行,基于测试配置文件配置测试程序运行环境,从而可以获取车机系统在预设运行场景中的测试数据,实现实车运行环境下的车机系统性能测试,以获得准确的车机系统性能测试结果。

Figure 202211040688

The present application relates to the field of vehicle-machine system technology, and in particular to a test method, device, equipment and storage medium for a vehicle-machine system. The method includes: obtaining a test program in the vehicle-machine system, and reading a test control file in a preset storage device; the preset storage device is a storage device outside the vehicle-machine system; obtaining a test configuration file corresponding to the test program; The test control file starts the test program according to the test configuration file; in the process of starting the test program, the test data of the vehicle-machine system in the preset test scene is obtained, and the test result corresponding to the test program is obtained. Control the operation of the test program in the vehicle-machine system by setting the test control file in the preset storage device, and configure the test program running environment based on the test configuration file, so that the test data of the vehicle-machine system in the preset operation scenario can be obtained to realize The vehicle-machine system performance test under the real vehicle operating environment to obtain accurate vehicle-machine system performance test results.

Figure 202211040688

Description

一种车机系统测试方法、装置、设备及存储介质A vehicle-machine system testing method, device, equipment and storage medium

技术领域technical field

本申请涉及车机系统技术领域,尤其涉及一种车机系统测试方法、装置、设备及存储介质。The present application relates to the field of vehicle-machine system technology, and in particular to a test method, device, equipment and storage medium for a vehicle-machine system.

背景技术Background technique

车机系统又称为车载智能系统,它可以实现多种车载服务。除了常规的路况导航、新闻广播、道路救援等服务外,车机系统还可以提供诸如动态停车位搜索、航班预订、社交网络应用、电子邮件收发、电话会议启动等特色服务。车机系统在基于安全性的大前提下,能够最大限度的提升用户的使用体验。由于车机系统的性能直接影响了其所提供车载服务的性能。因此,在车机系统的研发过程中,车机系统的性能测试至关重要。The vehicle-machine system is also called the vehicle-mounted intelligent system, which can realize various vehicle-mounted services. In addition to conventional traffic navigation, news broadcast, road rescue and other services, the car-machine system can also provide special services such as dynamic parking space search, flight reservation, social networking applications, email sending and receiving, and conference call initiation. Based on the premise of safety, the car-machine system can maximize the user experience. The performance of the vehicle-machine system directly affects the performance of the vehicle services it provides. Therefore, in the research and development process of the vehicle-machine system, the performance test of the vehicle-machine system is very important.

目前,车机系统的性能测试并未有统一的标准,各家车厂均有自己的测试方案。比较普遍的测试方案是,在车机未装车前,由车机供应商完成线下测试。此后,在车机装车后,再由车厂进行零公里测试。然而,由于车机系统的性能,与整车的运行环境有很大的关联性,仅通过装机前后的测试无法获得准确的车机系统性能测试结果,从而无法为车机系统的研发提供有效的参考。At present, there is no uniform standard for the performance test of the car-machine system, and each car manufacturer has its own test plan. The more common test plan is to complete the off-line test by the car machine supplier before the car machine is installed. Afterwards, after the car and machine are installed, the car factory will conduct a zero-kilometer test. However, because the performance of the vehicle-machine system is closely related to the operating environment of the vehicle, it is impossible to obtain accurate vehicle-machine system performance test results only through the test before and after installation, and thus cannot provide effective information for the research and development of the vehicle-machine system. refer to.

发明内容Contents of the invention

本申请提供一种车机系统测试方法、装置、设备及存储介质,通过车机系统外部的预设存储设备来启动车机系统中的测试程序,以抓取车机系统在预设运行场景中的测试数据,实现实车运行环境下的车机系统性能测试。This application provides a vehicle-machine system testing method, device, equipment, and storage medium. The test program in the vehicle-machine system is started through a preset storage device outside the vehicle-machine system to capture the vehicle-machine system in a preset operating scene. The test data is used to realize the performance test of the vehicle-machine system in the real vehicle operating environment.

第一方面,本申请实施例公开了一种车机系统测试方法,该方法包括:In the first aspect, the embodiment of the present application discloses a vehicle-machine system testing method, the method comprising:

获取车机系统中的测试程序,并读取预设存储设备中的测试控制文件;预设存储设备为车机系统外部的存储设备;Obtain the test program in the vehicle-machine system, and read the test control file in the preset storage device; the preset storage device is a storage device outside the vehicle-machine system;

获取与测试程序对应的测试配置文件;Obtain the test configuration file corresponding to the test program;

基于测试控制文件,根据测试配置文件启动测试程序;Based on the test control file, start the test program according to the test configuration file;

在测试程序启动过程中,获取车机系统在预设测试场景下的测试数据,得到测试程序对应的测试结果。During the start-up process of the test program, the test data of the vehicle-machine system in the preset test scene is obtained, and the test result corresponding to the test program is obtained.

进一步的,获取车机系统中的测试程序,并读取预设存储设备中的测试控制文件之前,方法还包括:Further, before obtaining the test program in the vehicle-machine system and reading the test control file in the preset storage device, the method also includes:

获取插入车机系统的存储设备的设备标识;Obtain the device identification of the storage device inserted into the vehicle-machine system;

将设备标识与车机系统中存储的预设设备标识进行匹配;Match the device identification with the preset device identification stored in the vehicle-machine system;

在匹配结果指示设备标识与预设设备标识匹配的情况下,确定存储设备为预设存储设备。If the matching result indicates that the device identifier matches the preset device identifier, it is determined that the storage device is a preset storage device.

进一步的,预设存储设备中存储有测试配置文件;获取与测试程序对应的测试配置文件,包括:Further, the test configuration file is stored in the preset storage device; the test configuration file corresponding to the test program is obtained, including:

在测试控制文件读取成功的情况下,读取预设存储设备中的测试配置文件。If the test control file is successfully read, the test configuration file in the preset storage device is read.

进一步的,在获取与测试程序对应的测试配置文件,包括:Further, after obtaining the test configuration file corresponding to the test program, including:

在测试控制文件读取成功的情况下,向界面管理模块发送参数配置指令,以使界面管理模块响应于参数配置指令,显示配置管理界面;以及以使界面管理模块响应于基于配置管理界面的配置操作,得到配置参数;In the case that the test control file is read successfully, send the parameter configuration instruction to the interface management module, so that the interface management module responds to the parameter configuration instruction, and displays the configuration management interface; and makes the interface management module respond to the configuration based on the configuration management interface Operation to get the configuration parameters;

接收界面管理模块返回的配置参数;Receive configuration parameters returned by the interface management module;

基于配置参数生成测试配置文件。Generate test configuration files based on configuration parameters.

进一步的,在测试程序启动过程中,获取车机系统在预设测试场景下的测试数据,得到测试程序对应的测试结果,包括:Further, during the start-up process of the test program, the test data of the vehicle-machine system in the preset test scenario is obtained, and the test results corresponding to the test program are obtained, including:

在测试程序启动过程中,基于测试控制文件抓取车机系统在预设场景下的测试数据;During the start-up process of the test program, capture the test data of the vehicle-machine system in the preset scene based on the test control file;

根据测试数据生成测试程序对应的测试结果。A test result corresponding to the test program is generated according to the test data.

进一步的,根据测试数据生成测试程序对应的测试结果,包括:Further, generate test results corresponding to the test program according to the test data, including:

读取预设存储设备中的数据分析配置文件;Read the data analysis configuration file in the preset storage device;

基于数据分析配置文件,对测试数据进行处理,得到测试程序对应的测试结果。Based on the data analysis configuration file, the test data is processed to obtain the test result corresponding to the test program.

进一步的,在测试程序启动过程中,获取车机系统在预设测试场景下的测试数据,得到测试程序对应的测试结果之后,方法还包括:Further, during the start-up process of the test program, after obtaining the test data of the vehicle-machine system in a preset test scenario and obtaining the test result corresponding to the test program, the method further includes:

将测试结果发送至预设存储设备。Send test results to a preset storage device.

第二方面,本申请实施例公开了一种车机系统测试装置,该装置包括:In the second aspect, the embodiment of the present application discloses a vehicle-machine system testing device, which includes:

测试启动模块,用于获取车机系统中的测试程序,并读取预设存储设备中的测试控制文件;预设存储设备为车机系统外部的存储设备;The test start module is used to obtain the test program in the vehicle-machine system, and read the test control file in the preset storage device; the preset storage device is a storage device outside the vehicle-machine system;

测试配置文件获取模块,用于获取与测试程序对应的测试配置文件;A test configuration file acquisition module, configured to obtain a test configuration file corresponding to the test program;

测试程序启动模块,用于基于测试控制文件,根据测试配置文件启动测试程序;The test program startup module is used to start the test program according to the test configuration file based on the test control file;

测试结果确定模块,用于在测试程序启动过程中,获取车机系统在预设测试场景下的测试数据,得到测试程序对应的测试结果。The test result determination module is used to obtain the test data of the vehicle-machine system in the preset test scene during the start-up process of the test program, and obtain the test result corresponding to the test program.

作为一种可选的实施方式,该装置还包括:As an optional implementation, the device also includes:

设备标识获取模块,用于获取插入车机系统的存储设备的设备标识;The device identification obtaining module is used to obtain the device identification of the storage device inserted into the vehicle-machine system;

标识匹配模块,用于将设备标识与车机系统中存储的预设设备标识进行匹配;An identification matching module, configured to match the equipment identification with the preset equipment identification stored in the vehicle-machine system;

预设存储设备确定模块,用于在匹配结果指示设备标识与预设设备标识匹配的情况下,确定存储设备为预设存储设备。A preset storage device determining module, configured to determine that the storage device is a preset storage device when the matching result indicates that the device identifier matches the preset device identifier.

作为一种可选的实施方式,预设存储设备中存储有测试配置文件;测试配置文件获取模块,用于在测试控制文件读取成功的情况下,读取预设存储设备中的测试配置文件。As an optional implementation, the test configuration file is stored in the preset storage device; the test configuration file acquisition module is used to read the test configuration file in the preset storage device when the test control file is read successfully .

作为一种可选的实施方式,测试配置文件获取模块包括:As an optional implementation, the test configuration file acquisition module includes:

参数配置单元,用于在测试控制文件读取成功的情况下,向界面管理模块发送参数配置指令,以使界面管理模块响应于参数配置指令,显示配置管理界面;以及以使界面管理模块响应于基于配置管理界面的配置操作,得到配置参数;The parameter configuration unit is used to send a parameter configuration instruction to the interface management module when the test control file is read successfully, so that the interface management module responds to the parameter configuration instruction to display the configuration management interface; and makes the interface management module respond to Based on the configuration operation of the configuration management interface, the configuration parameters are obtained;

配置参数接收单元,用于接收界面管理模块返回的配置参数;The configuration parameter receiving unit is used to receive the configuration parameters returned by the interface management module;

测试配置文件生成单元,用于基于配置参数生成测试配置文件。The test configuration file generation unit is configured to generate a test configuration file based on configuration parameters.

作为一种可选的实施方式,测试结果确定模块包括:As an optional implementation, the test result determination module includes:

测试数据抓取单元,用于在测试程序启动过程中,基于测试控制文件抓取车机系统在预设场景下的测试数据;The test data capture unit is used to capture the test data of the vehicle-machine system in a preset scenario based on the test control file during the test program startup process;

测试结果生成单元,用于根据测试数据生成测试程序对应的测试结果。The test result generation unit is configured to generate a test result corresponding to the test program according to the test data.

作为一种可选的实施方式,测试结果生成单元包括:As an optional implementation, the test result generation unit includes:

数据分析配置文件读取子单元,用于读取预设存储设备中的数据分析配置文件;The data analysis configuration file reading subunit is used to read the data analysis configuration file in the preset storage device;

测试数据处理子单元,用于基于数据分析配置文件,对测试数据进行处理,得到测试程序对应的测试结果。The test data processing subunit is configured to process the test data based on the data analysis configuration file to obtain the test result corresponding to the test program.

作为一种可选的实施方式,该装置还包括:As an optional implementation, the device also includes:

测试结果发送模块,用于将测试结果发送至预设存储设备。The test result sending module is used to send the test result to a preset storage device.

第三方面,本申请实施例公开了一种电子设备,设备包括处理器和存储器,存储器中存储有至少一条指令或至少一段程序,至少一条指令或至少一段程序由处理器加载并执行如上所述的车机系统测试方法。In the third aspect, the embodiment of the present application discloses an electronic device, the device includes a processor and a memory, at least one instruction or at least one program is stored in the memory, at least one instruction or at least one program is loaded by the processor and executed as described above The vehicle-machine system test method.

第四方面,本申请实施例公开了一种计算机可读存储介质,存储介质中存储有至少一条指令或至少一段程序,至少一条指令或至少一段程序由处理器加载并执行以实现如上所述的车机系统测试方法。In a fourth aspect, the embodiment of the present application discloses a computer-readable storage medium, in which at least one instruction or at least one program is stored, and at least one instruction or at least one program is loaded and executed by a processor to realize the above-mentioned Vehicle system test method.

本申请实施例提供的技术方案具有如下技术效果:The technical solutions provided by the embodiments of the present application have the following technical effects:

该车机系统测试方法,通过在预设存储设备中设置测试控制文件来控制车机系统中的测试程序的运行,基于测试配置文件配置测试程序运行环境,从而可以获取车机系统在预设运行场景中的测试数据,实现实车运行环境下的车机系统性能测试,以获得准确的车机系统性能测试结果。此外,通过外部预设存储设备接入车机系统自动实时抓取系统数据,可以降低抓取数据的复杂程度,并提高数据有效性。In the vehicle-machine system testing method, the operation of the test program in the vehicle-machine system is controlled by setting a test control file in the preset storage device, and the test program operating environment is configured based on the test configuration file, so that the vehicle-machine system can be obtained in the preset operation. The test data in the scene realizes the vehicle-machine system performance test in the real vehicle operating environment to obtain accurate vehicle-machine system performance test results. In addition, accessing the vehicle-machine system through an external preset storage device can automatically capture system data in real time, which can reduce the complexity of capturing data and improve data effectiveness.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案和优点,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the appended The drawings are only some embodiments of the present application, and those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本申请实施例提供的一种车机系统测试方法应用环境的示意图;FIG. 1 is a schematic diagram of an application environment of a vehicle-machine system testing method provided in an embodiment of the present application;

图2是本申请实施例提供的一种车机系统测试方法的流程示意图;FIG. 2 is a schematic flowchart of a vehicle-machine system testing method provided in an embodiment of the present application;

图3是本申请实施例提供的一种车机系统测试装置的结构示意图;Fig. 3 is a schematic structural diagram of a vehicle-machine system testing device provided in an embodiment of the present application;

图4是本申请实施例提供的一种方法的计算机终端的硬件结构框图。FIG. 4 is a block diagram of a hardware structure of a computer terminal according to a method provided by an embodiment of the present application.

具体实施方式detailed description

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in the present application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present application.

需要说明的是,本申请实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请实施例的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或服务器不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the embodiments of the present application and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence order. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or server comprising a series of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

为了使本申请实施例公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请实施例进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请实施例,并不用于限定本申请实施例。In order to make the purpose, technical solutions and advantages disclosed in the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings and the embodiments. It should be understood that the specific embodiments described here are only used to explain the embodiments of the present application, and are not intended to limit the embodiments of the present application.

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features.

由于车机系统的性能,与整车的运行环境有很大的关联性。车机系统在某些车辆运行的场景中,可能会出现问题。在后续对出现的问题进行分析时,由于实际问题的发生与系统运行的数据采集存在时间差,导致获取的数据存在误差,经常会获取无效数据。因此,对于车机系统的性能测试来说,实车测试非常重要。然而,在实车测试时,同样存在较多的问题需要解决。首先,实车数据的采集难度。由于车辆不易随时拿取,且车辆中车机系统的使用场景多种多样,导致难以采集到的有效的实车数据。而且,需要专业人员进行全程跟踪,测试成本高。对于测试过程中遇到的各种问题,需要相关技术人员进行产线的跟踪,并将测试的结果通过设备导出,将数据包分发给研发工程师进一步分析。此外,系统获取的数据比较复杂,需要专业技术人员进行分析,分析周期会比较长,其过程成本较高。Due to the performance of the vehicle-machine system, it has a great correlation with the operating environment of the vehicle. The car-machine system may have problems in some scenarios where the vehicle is running. In the follow-up analysis of the problems that occurred, due to the time difference between the occurrence of the actual problems and the data collection of the system operation, there are errors in the obtained data, and invalid data is often obtained. Therefore, for the performance test of the vehicle-machine system, the actual vehicle test is very important. However, in the actual vehicle test, there are also many problems to be solved. First, the difficulty of collecting real vehicle data. Since the vehicle is not easy to take at any time, and the use scenarios of the vehicle-machine system in the vehicle are various, it is difficult to collect effective real vehicle data. Moreover, professionals are required to follow up the whole process, and the testing cost is high. For various problems encountered during the test, relevant technical personnel are required to track the production line, export the test results through the equipment, and distribute the data packets to the R&D engineers for further analysis. In addition, the data acquired by the system is relatively complex, requiring professional and technical personnel to analyze, the analysis period will be relatively long, and the process cost is relatively high.

有鉴于此,本申请实施例提供了一种车机系统测试方法,利用可移动的预设存储设备设置测试脚本和数据分析脚本,通过设置测试配置文件来获取预设场景下车机系统的测试数据,并进行自动分析。该过程无需专业的人员进行跟踪即可获得有效的车机系统测试和分析数据。In view of this, the embodiment of the present application provides a test method for the vehicle-machine system, which uses a removable preset storage device to set test scripts and data analysis scripts, and obtains test results of the vehicle-machine system under preset scenarios by setting test configuration files. data and perform automatic analysis. In this process, effective vehicle-machine system testing and analysis data can be obtained without professional personnel tracking.

请参阅图1,图1是本申请实施例提供的一种车机系统测试方法应用环境的示意图,如图1所示,该应用环境可以包括车辆101和预设存储设备103。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of an application environment of an in-vehicle system testing method provided by an embodiment of the present application. As shown in FIG. 1 , the application environment may include a vehicle 101 and a preset storage device 103 .

本申请实施例中,车辆101中设有一个至多个车载计算机设备,这些车载计算机设备中所运行的系统统称为车机系统。车辆101中的车机系统可能有多种,例如,仪表系统,车体控制系统、中控娱乐系统等。In the embodiment of the present application, one or more on-board computer devices are installed in the vehicle 101, and the systems running on these on-board computer devices are collectively referred to as vehicle-machine systems. There may be many types of vehicle-machine systems in the vehicle 101, for example, an instrument system, a vehicle body control system, a central control entertainment system, and the like.

本申请实施例中,预设存储设备103为可移动存储设备,包括但不仅限于USB闪存盘(USB flash disk,U盘)、固态硬盘(SolidStateDrives,SSD)或光盘等。In the embodiment of the present application, the preset storage device 103 is a removable storage device, including but not limited to USB flash disk (USB flash disk, U disk), solid state hard disk (SolidStateDrives, SSD) or optical disk.

本申请实施例中,车载计算机设备中设置有连接外接设备的接口,预设存储设备103通过该接口与车载计算机设备进行通信连接,从而车载计算机设备中的车机系统可以读取预设存储设备中存储的文件。可选的,车机系统包括但不仅限于Windows CE、Palm、Linux、VxWorks等。In the embodiment of the present application, the on-board computer device is provided with an interface for connecting external devices, and the preset storage device 103 communicates with the on-board computer device through this interface, so that the on-board computer system in the on-board computer device can read the preset storage device files stored in . Optionally, the vehicle-machine system includes but not limited to Windows CE, Palm, Linux, VxWorks, etc.

以下介绍本申请一种车机系统测试方法的具体实施例,图2是本申请实施例提供的一种车机系统测试方法的流程示意图,本说明书提供了如实施例或流程图的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的系统或服务器产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。具体的如图2所示,该车机系统测试方法可以包括:The following introduces a specific embodiment of a vehicle-machine system testing method of the present application. Figure 2 is a schematic flow chart of a vehicle-machine system testing method provided in the embodiment of the present application. This specification provides the method operation steps as in the embodiment or flow chart , but may include more or fewer steps based on routine or non-creative labor. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual system or server product is executed, the methods shown in the embodiments or drawings may be executed sequentially or in parallel (for example, in a parallel processor or multi-thread processing environment). Specifically as shown in Figure 2, the vehicle-machine system testing method may include:

S201:获取车机系统中的测试程序,并读取预设存储设备中的测试控制文件;预设存储设备为车机系统外部的存储设备。S201: Obtain the test program in the vehicle-machine system, and read the test control file in the preset storage device; the preset storage device is a storage device outside the vehicle-machine system.

本申请实施例中,预设存储设备为对车机系统具有操作特权的特权设备。在对车机系统进行实车测试时,可以通过配置特权设备,并通过特权设备接入车载计算机设备,从而启动车机系统中的测试程序来执行测试流程。特权设备中有可被车机系统识别的引导区和相关引导文件,或者磁盘开头的引导扇区等。特权设备能够触发车机系统对其进行安全验证,并在安全验证通过的情况下,读取其中所存储的文件。具体的,当预设存储设备接入车机系统中时,车机系统通过车载计算机设备的连接接口识别到预设存储设备。可选的,预设存储设备通过串行通信与车载计算机设备进行连接。车机系统在识别到预设存储设备后,获取预设存储设备的设备标识,然后对该设备标识进行安全验证来确定预设存储设备是否为特权设备。In this embodiment of the present application, the preset storage device is a privileged device that has operation privileges for the vehicle-machine system. When performing a real vehicle test on the vehicle-machine system, you can configure the privileged device and access the vehicle-mounted computer equipment through the privileged device to start the test program in the vehicle-machine system to execute the test process. In the privileged device, there are the boot area and related boot files that can be recognized by the car-machine system, or the boot sector at the beginning of the disk, etc. Privileged devices can trigger the vehicle-machine system to perform security verification on it, and read the files stored in it if the security verification passes. Specifically, when the preset storage device is connected to the vehicle-machine system, the vehicle-machine system recognizes the preset storage device through the connection interface of the vehicle-mounted computer device. Optionally, the preset storage device is connected with the on-board computer device through serial communication. After the vehicle-machine system recognizes the preset storage device, it obtains the device identifier of the preset storage device, and then performs security verification on the device identifier to determine whether the preset storage device is a privileged device.

作为一种可选的实施方式,车机系统在对预设存储设备进行安全验证时,先获取插入车机系统的存储设备的设备标识,然后将设备标识与车机系统中存储的预设设备标识进行匹配。在匹配结果指示设备标识与预设设备标识匹配的情况下,确定存储设备为预设存储设备。具体的,车机系统中预存储有特权设备标识,车机系统通过将预设存储设备的设备标识与特权设备标识进行匹配,从而确定预设存储设备是否为特权设备。可选的,当预设存储设备的设备标识与特权设备标识一致时,车机系统可以确定预设存储设备为特权设备。可选的,车机系统基于加密算法对预设存储设备的设备标识进行计算,并将计算结果与特权设备标识进行比对,当两者满足解密条件时,车机系统可以确定预设存储设备为特权设备。可选的,加密算法可以是对称加密算法,也可以是非对称加密算法。As an optional implementation, when the vehicle-machine system performs security verification on the preset storage device, it first obtains the device identification of the storage device inserted into the vehicle-machine system, and then compares the device identification with the preset device stored in the vehicle-machine system. ID to match. If the matching result indicates that the device identifier matches the preset device identifier, it is determined that the storage device is a preset storage device. Specifically, the privileged device identifier is pre-stored in the vehicle-machine system, and the vehicle-machine system determines whether the preset storage device is a privileged device by matching the device identifier of the preset storage device with the privileged device identifier. Optionally, when the device identifier of the preset storage device is consistent with the privileged device identifier, the vehicle-machine system may determine that the preset storage device is a privileged device. Optionally, the vehicle-machine system calculates the device ID of the preset storage device based on an encryption algorithm, and compares the calculation result with the privileged device ID. When the two meet the decryption conditions, the vehicle-machine system can determine the preset storage device for privileged devices. Optionally, the encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm.

本申请实施例中,当预设存储设备的设备标识未通过安全验证时,则表明接入车机系统的预设存储设备并不是特权设备,此时,车机系统可以拒绝进行读取测试控制文件来启动测试程序。当预设存储设备的设备标识通过安全验证时,则表明接入车机系统的预设存储设备为特权设备,此时车机系统可以获取车机系统内部的测试程序,并进行读取预设存储设备中的测试控制文件。测试控制文件为系统调用命令集,其中包含多个系统调用命令。可选的,测试控制文件为使用脚本语言所编写的脚本文件,例如以shell、JavaScript、VBscript、Python等脚本语言所编写的系统可执行文件。编写测试控制文件具体所使用的脚本语言可以根据车机系统的系统类型所确定,例如车机系统为Linux系统,可以选用shell来编写测试控制文件。车机系统中设有测试车机系统性能的测试程序,测试控制文件用于启动车机系统中的测试程序,并通过控制测试程序的执行来获取车机系统的性能测试数据。In the embodiment of the present application, when the device identification of the preset storage device fails the security verification, it indicates that the preset storage device connected to the vehicle-machine system is not a privileged device. At this time, the vehicle-machine system can refuse to perform the read test control file to start the test program. When the device identification of the preset storage device passes the security verification, it indicates that the preset storage device connected to the car-machine system is a privileged device. At this time, the car-machine system can obtain the test program inside the car-machine system and read the preset Test control files in the storage device. The test control file is a system call command set, which contains multiple system call commands. Optionally, the test control file is a script file written in a scripting language, such as a system executable file written in a scripting language such as shell, JavaScript, VBscript, and Python. The scripting language used to write the test control file can be determined according to the system type of the vehicle-machine system. For example, the vehicle-machine system is a Linux system, and the shell can be used to write the test control file. The vehicle-machine system has a test program for testing the performance of the vehicle-machine system, and the test control file is used to start the test program in the vehicle-machine system, and obtain the performance test data of the vehicle-machine system by controlling the execution of the test program.

S203:获取与测试程序对应的测试配置文件。S203: Obtain a test configuration file corresponding to the test program.

本申请实施例中,当车机系统读取预设存储设备中的测试控制文件成功后,还需要进一步获取与测试程序对应的测试配置文件。测试控制文件中的启动命令用于启动测试程序,而测试程序具体如何运行还需要依靠测试配置参数来进行约束。即测试控制文件需要获取测试配置文件中的测试配置参数来执行测试程序测试配置文件中设置有测试配置参数,比如测试程序执行的时间、周期、测试所需要开启模式、测试所采集内容等参数。测试控制文件使用这些测试配置参数来控制测试程序的执行。In the embodiment of the present application, after the vehicle-machine system successfully reads the test control file in the preset storage device, it needs to further obtain the test configuration file corresponding to the test program. The start command in the test control file is used to start the test program, and how the test program runs depends on the test configuration parameters for constraints. That is, the test control file needs to obtain the test configuration parameters in the test configuration file to execute the test program. The test configuration file is set with test configuration parameters, such as the time and cycle of test program execution, the open mode required for the test, and the content collected by the test. The test control file uses these test configuration parameters to control the execution of the test program.

作为一种可选的实施方式,预设存储设备中存储有测试配置文件。车机系统可以在测试控制文件读取成功的情况下,读取预设存储设备中的测试配置文件。As an optional implementation manner, a test configuration file is stored in a preset storage device. The vehicle-machine system can read the test configuration file in the preset storage device under the condition that the test control file is read successfully.

作为另一种可选的实施方式,预设存储设备中未存储测试配置文件,车机系统也可以通过控制弹出配置管理界面,并根据输入配置管理界面中的配置参数生成测试配置文件。具体的,车机系统在测试控制文件读取成功的情况下,向界面管理模块发送参数配置指令,以使界面管理模块响应于参数配置指令,显示配置管理界面。测试人员可以在配置管理界面中进行配置操作,界面管理模块响应于基于配置管理界面的配置操作,得到配置参数。车机系统接收界面管理模块返回的配置参数,并基于配置参数生成测试配置文件。可选的,参数配置指令的发送,可以是车机系统读取测试控制文件,然后基于测试控制文件中的操作指令向界面管理模块发送。也可以是车机系统在接收到预设操作指令的情况下向界面管理模块发送。例如,测试人员在人机交互界面上进行预设输入操作,从而向车机系统输入预设操作指令,车机系统在接收到预设操作指令后,向界面管理模块发送参数配置指令,从而界面管理模块在人机交互界面上显示配置管理界面。可选的,预设输入操作包括但不仅限于触控输入操作、声控输入操作等。作为一种示例,测试人员可以在数字键盘输入特定字符串,从而使车机系统接收到预设操作指令。配置管理界面中显示有多个测试参数名称,测试人员可以在配置管理界面中输入每个测试参数名称对应的配置参数。当测试人员在配置管理界面完成配置操作后,界面管理模块将相应的测试参数名称以及对应的配置参数返回给车机系统,从而车机系统可以生成测试配置文件。As another optional implementation manner, the test configuration file is not stored in the preset storage device, and the vehicle-machine system can also pop up the configuration management interface through control, and generate the test configuration file according to the configuration parameters entered in the configuration management interface. Specifically, when the test control file is successfully read, the vehicle-machine system sends a parameter configuration instruction to the interface management module, so that the interface management module responds to the parameter configuration instruction to display the configuration management interface. Testers can perform configuration operations in the configuration management interface, and the interface management module responds to configuration operations based on the configuration management interface to obtain configuration parameters. The vehicle-machine system receives the configuration parameters returned by the interface management module, and generates a test configuration file based on the configuration parameters. Optionally, the transmission of the parameter configuration instruction may be that the vehicle-machine system reads the test control file, and then sends it to the interface management module based on the operation instruction in the test control file. It may also be that the vehicle-machine system sends the preset operation instruction to the interface management module when it receives the preset operation instruction. For example, testers perform preset input operations on the human-computer interaction interface to input preset operation instructions to the vehicle-machine system. After receiving the preset operation instructions, the vehicle-machine system sends parameter configuration instructions to the interface management module, so that the interface The management module displays a configuration management interface on the human-computer interaction interface. Optionally, the preset input operations include but not limited to touch input operations, voice-activated input operations, and the like. As an example, the tester can input a specific character string on the numeric keypad, so that the vehicle-machine system can receive preset operation instructions. There are multiple test parameter names displayed in the configuration management interface, and the tester can input the configuration parameters corresponding to each test parameter name in the configuration management interface. After the tester completes the configuration operation on the configuration management interface, the interface management module returns the corresponding test parameter name and corresponding configuration parameters to the vehicle-machine system, so that the vehicle-machine system can generate a test configuration file.

需要说明的是,只有测试控制文件才可以启动测试程序,因此只有在测试控制文件读取成功的情况下才会进一步获取与测试程序对应的测试配置文件。如果测试控制文件读取失败,则无法启动测试程序,只能放弃当前测试流程。此外,车机系统在获取测试配置文件时,也可以先在预设存储设备中读取,如果未在预设存储设备中读取到测试配置文件,或者在预设存储设备中读取测试配置文件失败的情况下,弹出配置管理界面,进而测试人员可以在配置管理界面上进行配置参数的设置。It should be noted that only the test control file can start the test program, so only when the test control file is read successfully will the test configuration file corresponding to the test program be further obtained. If the test control file fails to be read, the test program cannot be started, and the current test process can only be abandoned. In addition, when the car-machine system obtains the test configuration file, it can also be read in the preset storage device first. If the test configuration file is not read in the preset storage device, or the test configuration is read in the preset storage device When the file fails, the configuration management interface will pop up, and then the tester can set the configuration parameters on the configuration management interface.

S205:基于测试控制文件,根据测试配置文件启动测试程序。S205: Based on the test control file, start the test program according to the test configuration file.

本申请实施例中,车机系统在获取到测试配置文件后,对测试配置文件进行读取,以获得测试配置文件中的测试配置参数。当车机系统读取测试配置文件成功后,则完成测试初始化过程,从而可以进入测试环节。测试控制文件根据测试配置文件中所设定的开启模式,启动测试程序。In the embodiment of the present application, after obtaining the test configuration file, the vehicle-machine system reads the test configuration file to obtain the test configuration parameters in the test configuration file. When the vehicle-machine system successfully reads the test configuration file, the test initialization process is completed, so that the test link can be entered. The test control file starts the test program according to the start mode set in the test configuration file.

本申请实施例中,在车机系统在读取测试配置文件成功后,车机系统在进入测试环节之前,还需要对当前测试的测试场景进行准备。测试场景指的是车机系统的运行环境,包括车机系统自身所需要执行的任务进程,以及车辆运转情况。例如,车机系统在导航情况下进行多媒体播放、车辆在自动驾驶情况下,车机系统进行动态停车位搜索、车机系统在车辆开启节电模式情况下的运行等测试场景。测试场景的准备可以包括车辆运行环境的准备以及车机系统的运行环境准备。对于车辆运行环境的准备可以由测试人员进行相关的准备操作,对于车机系统的运行环境准备,可以是车机系统基于测试控制文件进行相关准备操作。在一些实施例中,车机系统的运行环境准备也可以是由测试人员进行相关的准备操作。In the embodiment of the present application, after the vehicle-machine system successfully reads the test configuration file, the vehicle-machine system needs to prepare for the test scenario of the current test before entering the test link. The test scenario refers to the operating environment of the car-machine system, including the task process that the car-machine system itself needs to perform, and the operation of the vehicle. For example, the car-machine system performs multimedia playback in the case of navigation, the car-machine system performs dynamic parking space search under the condition of automatic driving, and the operation of the car-machine system when the vehicle turns on the power-saving mode and other test scenarios. The preparation of the test scene may include the preparation of the vehicle operating environment and the preparation of the operating environment of the vehicle-machine system. The preparation of the vehicle operating environment can be performed by testers, and the preparation of the operating environment of the vehicle-machine system can be carried out by the vehicle-machine system based on the test control file. In some embodiments, the preparation of the operating environment of the vehicle-machine system may also be performed by testers.

作为一种可选的实施方式,车机系统在读取测试配置文件成功后,向界面管理模块发送测试环境准备指令,以使界面管理模块在人机交互界面上弹出测试场景准备提醒,测试人员可以根据测试场景准备提醒进行测试场景的准备。可选的,测试配置文件中可以设置有测试环境配置信息,车机系统向界面管理模块发送测试环境准备指令中携带有测试环境配置信息,进而使界面管理模块根据测试环境配置信息在人机交互界面上弹出测试场景准备提醒。测试场景准备提醒可以包括多个子场景准备提醒,界面管理模块可以将这些子场景准备提醒逐一在人机交互界面上进行显示。作为一种示例,例如当前的测试场为车机系统同时进行导航和多媒体播放场景,则界面管理模块可以先在人机交互界面上显示开启导航的准备提醒,然后车机系统在接收到导航开启的反馈后,再在人机交互界面上显示开启多媒体播放的准备提醒,车机系统在接收到多媒体播放开启的反馈后,则测试场景准备完成。As an optional implementation, after the vehicle-machine system successfully reads the test configuration file, it sends a test environment preparation instruction to the interface management module, so that the interface management module pops up a test scene preparation reminder on the human-computer interaction interface, and the tester The preparation of the test scene can be carried out according to the test scene preparation reminder. Optionally, test environment configuration information can be set in the test configuration file, and the vehicle-machine system sends the test environment preparation command to the interface management module to carry the test environment configuration information, so that the interface management module can perform human-computer interaction according to the test environment configuration information. A test scene preparation reminder pops up on the interface. The test scenario preparation reminder may include multiple sub-scene preparation reminders, and the interface management module may display these sub-scene preparation reminders on the human-computer interaction interface one by one. As an example, for example, if the current test field is a scene where the car-machine system performs navigation and multimedia playback at the same time, the interface management module can first display a reminder to start the navigation on the human-computer interaction interface, and then the car-machine system After the feedback, the human-computer interaction interface will display the preparation reminder to start the multimedia playback. After the car-machine system receives the feedback that the multimedia playback is enabled, the test scene preparation is completed.

需要说明的是,上述实施方式中,测试场景准备提醒并不仅限于在人机交互界面上显示测试场景准备提醒,车机系统也可以通过其他形式向测试人员发出测试场景准备提醒,例如语音提醒等。此外,多个子场景准备提醒也可以组合在一起发送,例如在人机交互界面上同时显示开启导航和多媒体播放的准备提醒。It should be noted that, in the above embodiment, the test scene preparation reminder is not limited to displaying the test scene preparation reminder on the human-computer interaction interface, and the vehicle-machine system can also issue test scene preparation reminders to the test personnel in other forms, such as voice reminders, etc. . In addition, multiple sub-scene preparation reminders can also be combined and sent together, for example, a preparation reminder for starting navigation and multimedia playback is simultaneously displayed on the human-computer interaction interface.

作为另一种可选的实施方式,车机系统内部的运行环境也可以根据测试控制文件进行准备。当车机系统内部的运行环境准备完成后,车机系统通过发出车辆运行环境准备提醒,以提醒测试人员进行车辆运行环境的准备。As another optional implementation manner, the operating environment inside the vehicle-machine system may also be prepared according to the test control file. After the preparation of the operating environment inside the vehicle-machine system is completed, the vehicle-machine system sends a vehicle operating environment preparation reminder to remind testers to prepare for the vehicle operating environment.

在一些实施例中,测试配置文件中也可以将测试开启模式设置为延迟开启。在车机系统在读取测试配置文件成功后,车机系统通过界面管理模块在人机交互界面上显示测试配置文件读取成功的反馈消息,测试人员可以在测试开启之前对测试场景进行准备。In some embodiments, the test start mode may also be set as delayed start in the test configuration file. After the vehicle-machine system successfully reads the test configuration file, the vehicle-machine system displays a feedback message on the human-computer interaction interface through the interface management module that the test configuration file has been successfully read, and the tester can prepare the test scene before the test starts.

S207:在测试程序启动过程中,获取车机系统在预设测试场景下的测试数据,得到测试程序对应的测试结果。S207: During the start-up process of the test program, obtain test data of the vehicle-machine system in a preset test scenario, and obtain test results corresponding to the test program.

本申请实施例中,在测试场景准备完成后,车机系统可以基于测试控制文件按照测试配置文件中的测试配置参数启动测试程序。可选的,在测试场景准备完成后,测试人员可以基于人机交互界面向车机系统发送测试场景配置完成的消息,然后车机系统可以启动测试程序,以获取车机系统在配置的测试场景下的测试数据,得到执行测试程序所得到的测试结果。具体的,车机系统在测试程序启动过程中,基于测试控制文件抓取车机系统在预设场景下的测试数据,并根据测试数据生成测试程序对应的测试结果。测试控制文件中设置有数据采集指令,车机系统通过运行数据采集指令,在预设测试场景中实时抓取车机系统性能测试数据,并生成测试数据包。可选的,测试数据包可以存放于外部存储设备,也可以放在车载系统的内部存储区中,具体可根据需要进行设置。In the embodiment of the present application, after the preparation of the test scene is completed, the vehicle-machine system can start the test program based on the test control file according to the test configuration parameters in the test configuration file. Optionally, after the preparation of the test scenario is completed, the tester can send a message that the test scenario configuration is completed to the vehicle-machine system based on the human-computer interaction interface, and then the vehicle-machine system can start the test program to obtain the test scenario configured by the vehicle-machine system The following test data is obtained to obtain the test results obtained by executing the test program. Specifically, during the start-up process of the test program, the vehicle-machine system captures test data of the vehicle-machine system in a preset scenario based on the test control file, and generates test results corresponding to the test program according to the test data. The test control file is set with data collection instructions, and the vehicle-machine system captures the performance test data of the vehicle-machine system in real time in the preset test scene by running the data collection instructions, and generates a test data packet. Optionally, the test data package can be stored in an external storage device, or in an internal storage area of the vehicle system, which can be set according to needs.

本申请实施例中,执行测试程序所抓取到的测试数据为车机系统在预设测试场景下的运行数据,例如中央处理器(central processing unit,CPU)、图形处理器(GraphicsProcessing Unit,GPU)、存储器(MEMORY)等硬件使用情况数据。这些测试数据比较复杂,通常需要专业技术人员进行分析才能综合判断车机系统的性能。可选的,预设存储设备中还存储有数据分析配置文件,车机系统通过运行数据分析配置文件可以对测试数据进行分析处理,从而不需要专业的技术人员即可对车机系统的性能进行评价。具体的,车机系统读取预设存储设备中的数据分析配置文件,然后基于数据分析配置文件,对测试数据进行处理,得到测试程序对应的测试结果。可选的,数据分析配置文件为基于脚本语言编写的脚本,例如Python脚本。当测试完成后,数据分析脚本将在预设测试场景中抓取到的测试数据包生成动态图表分析数据。可选的,动态图表分析数据可以存放于外部存储设备,也可以存放在车载系统的内部存储区,具体可以根据需要进行设置。In the embodiment of the present application, the test data captured by executing the test program is the operating data of the vehicle-machine system in a preset test scenario, such as a central processing unit (central processing unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) ), memory (MEMORY) and other hardware usage data. These test data are relatively complex, and usually require analysis by professional technicians to comprehensively judge the performance of the vehicle-machine system. Optionally, a data analysis configuration file is also stored in the preset storage device. The vehicle-machine system can analyze and process the test data by running the data analysis configuration file, so that the performance of the vehicle-machine system can be analyzed without professional technicians. Evaluation. Specifically, the vehicle-machine system reads the data analysis configuration file in the preset storage device, and then processes the test data based on the data analysis configuration file to obtain the test result corresponding to the test program. Optionally, the data analysis configuration file is a script written in a scripting language, such as a Python script. After the test is completed, the data analysis script will generate dynamic chart analysis data from the test data packets captured in the preset test scenario. Optionally, the dynamic graph analysis data can be stored in an external storage device, or can be stored in an internal storage area of the vehicle system, which can be set according to needs.

本申请实施例中,车机系统还可以将测试结果发送至预设存储设备,从而可以方便开发人员对测试结果进行进一步的挖掘分析,最大化测试结果的价值。In the embodiment of the present application, the vehicle-machine system can also send the test results to a preset storage device, so that developers can further mine and analyze the test results and maximize the value of the test results.

本申请实施例还提供了一种车机系统,图3是本申请实施例提供的一种车机系统测试装置的结构示意图,如图3所示,该装置包括:The embodiment of the present application also provides a vehicle-machine system. FIG. 3 is a schematic structural diagram of a test device for the vehicle-machine system provided in the embodiment of the present application. As shown in FIG. 3 , the device includes:

测试启动模块301,用于获取车机系统中的测试程序,并读取预设存储设备中的测试控制文件;预设存储设备为车机系统外部的存储设备;The test start module 301 is used to obtain the test program in the vehicle-machine system, and read the test control file in the preset storage device; the preset storage device is a storage device outside the vehicle-machine system;

测试配置文件获取模块303,用于获取与测试程序对应的测试配置文件;A test configuration file obtaining module 303, configured to obtain a test configuration file corresponding to the test program;

测试程序启动模块305,用于基于测试控制文件,根据测试配置文件启动测试程序;The test program starting module 305 is used to start the test program according to the test configuration file based on the test control file;

测试结果确定模块307,用于在测试程序启动过程中,获取车机系统在预设测试场景下的测试数据,得到测试程序对应的测试结果。The test result determination module 307 is configured to acquire the test data of the vehicle-machine system in a preset test scenario during the start-up process of the test program, and obtain the test result corresponding to the test program.

作为一种可选的实施方式,该装置还包括:As an optional implementation, the device also includes:

设备标识获取模块,用于获取插入车机系统的存储设备的设备标识;The device identification obtaining module is used to obtain the device identification of the storage device inserted into the vehicle-machine system;

标识匹配模块,用于将设备标识与车机系统中存储的预设设备标识进行匹配;An identification matching module, configured to match the equipment identification with the preset equipment identification stored in the vehicle-machine system;

预设存储设备确定模块,用于在匹配结果指示设备标识与预设设备标识匹配的情况下,确定存储设备为预设存储设备。A preset storage device determining module, configured to determine that the storage device is a preset storage device when the matching result indicates that the device identifier matches the preset device identifier.

作为一种可选的实施方式,预设存储设备中存储有测试配置文件;测试配置文件获取模块,用于在测试控制文件读取成功的情况下,读取预设存储设备中的测试配置文件。As an optional implementation, the test configuration file is stored in the preset storage device; the test configuration file acquisition module is used to read the test configuration file in the preset storage device when the test control file is read successfully .

作为一种可选的实施方式,测试配置文件获取模块包括:As an optional implementation, the test configuration file acquisition module includes:

参数配置单元,用于在测试控制文件读取成功的情况下,向界面管理模块发送参数配置指令,以使界面管理模块响应于参数配置指令,显示配置管理界面;以及以使界面管理模块响应于基于配置管理界面的配置操作,得到配置参数;The parameter configuration unit is used to send a parameter configuration instruction to the interface management module when the test control file is read successfully, so that the interface management module responds to the parameter configuration instruction to display the configuration management interface; and makes the interface management module respond to Based on the configuration operation of the configuration management interface, the configuration parameters are obtained;

配置参数接收单元,用于接收界面管理模块返回的配置参数;The configuration parameter receiving unit is used to receive the configuration parameters returned by the interface management module;

测试配置文件生成单元,用于基于配置参数生成测试配置文件。The test configuration file generation unit is configured to generate a test configuration file based on configuration parameters.

作为一种可选的实施方式,测试结果确定模块包括:As an optional implementation, the test result determination module includes:

测试数据抓取单元,用于在测试程序启动过程中,基于测试控制文件抓取车机系统在预设场景下的测试数据;The test data capture unit is used to capture the test data of the vehicle-machine system in a preset scenario based on the test control file during the test program startup process;

测试结果生成单元,用于根据测试数据生成测试程序对应的测试结果。The test result generation unit is configured to generate a test result corresponding to the test program according to the test data.

作为一种可选的实施方式,测试结果生成单元包括:As an optional implementation, the test result generation unit includes:

数据分析配置文件读取子单元,用于读取预设存储设备中的数据分析配置文件;The data analysis configuration file reading subunit is used to read the data analysis configuration file in the preset storage device;

测试数据处理子单元,用于基于数据分析配置文件,对测试数据进行处理,得到测试程序对应的测试结果。The test data processing subunit is configured to process the test data based on the data analysis configuration file to obtain the test result corresponding to the test program.

作为一种可选的实施方式,该装置还包括:As an optional implementation, the device also includes:

测试结果发送模块,用于将测试结果发送至预设存储设备。The test result sending module is used to send the test result to a preset storage device.

本申请实施例所述的车机系统与车机系统测试方法实施例基于同样地申请构思。关于车机系统的具体实施情况,请参考上述关于车机系统测试方法的全部实施方式。The vehicle-machine system and the embodiment of the vehicle-machine system testing method described in the embodiments of the present application are based on the same concept of the application. For the specific implementation of the vehicle-machine system, please refer to all the above-mentioned implementations of the test method for the vehicle-machine system.

本申请实施例还提供了一种电子设备,设备包括处理器和存储器,存储器中存储有至少一条指令或至少一段程序,至少一条指令或至少一段程序由处理器加载并执行如上所述的车机系统测试方法。The embodiment of the present application also provides an electronic device. The device includes a processor and a memory. At least one instruction or at least one program is stored in the memory. At least one instruction or at least one program is loaded by the processor and executed as described above. System testing methods.

本申请实施例所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图4是本申请实施例提供的一种方法的计算机终端的硬件结构框图。如图4所示,该计算机终端400可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(Central Processing Units,CPU)410(处理器410可以包括但不限于微处理器MCU或可编程逻辑器件(FieldProgrammableGateArray,FPGA)等的处理装置)、用于存储数据的存储器430,一个或一个以上存储应用程序423或数据422的存储介质420(例如一个或一个以上海量存储设备)。其中,存储器430和存储介质420可以是短暂存储或持久存储。存储在存储介质420的程序可以包括一个或一个以上模块,每个模块可以包括对计算机终端中的一系列指令操作。更进一步地,中央处理器410可以设置为与存储介质420通信,在计算机终端400上执行存储介质420中的一系列指令操作。计算机终端400还可以包括一个或一个以上电源460,一个或一个以上有线或无线网络接口450,一个或一个以上输入输出接口440,和/或,一个或一个以上操作系统421,例如WindowsServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a computer terminal as an example, FIG. 4 is a block diagram of a hardware structure of a computer terminal according to a method provided by an embodiment of the present application. As shown in FIG. 4 , the computer terminal 400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (Central Processing Units, CPU) 410 (the processor 410 may include but not limited to a microprocessor Processor MCU or programmable logic device (Field Programmable Gate Array, FPGA) and other processing devices), memory 430 for storing data, one or more storage media 420 for storing application programs 423 or data 422 (such as one or more mass storage devices) equipment). Wherein, the memory 430 and the storage medium 420 may be temporary storage or persistent storage. The program stored in the storage medium 420 may include one or more modules, and each module may include a series of instructions to operate on the computer terminal. Furthermore, the central processing unit 410 may be configured to communicate with the storage medium 420 , and execute a series of instruction operations in the storage medium 420 on the computer terminal 400 . The computer terminal 400 can also include one or more power supplies 460, one or more wired or wireless network interfaces 450, one or more input and output interfaces 440, and/or, one or more operating systems 421, such as WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

输入输出接口440可以用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端400的通信供应商提供的无线网络。在一个实例中,输入输出接口440包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,输入输出接口440可以为射频(RadioFrequency,RF)模块,其用于通过无线方式与互联网进行通讯。The input-output interface 440 may be used to receive or send data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the computer terminal 400 . In one example, the input and output interface 440 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the input and output interface 440 may be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet in a wireless manner.

本领域普通技术人员可以理解,图4所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端400还可包括比图4中所示更多或者更少的组件,或者具有与图4所示不同的配置。Those of ordinary skill in the art can understand that the structure shown in FIG. 4 is only a schematic diagram, which does not limit the structure of the above-mentioned electronic device. For example, the computer terminal 400 may also include more or fewer components than shown in FIG. 4 , or have a different configuration than that shown in FIG. 4 .

第四方面,本申请实施例还提供了一种计算机可读存储介质,存储介质中存储有至少一条指令或至少一段程序,至少一条指令或至少一段程序由处理器加载并执行以实现如上所述的车机系统测试方法。In a fourth aspect, the embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned The vehicle-machine system test method.

本申请实施例中,上述计算机存储介质可以位于计算机网络的多个网络服务器中的至少一个网络服务器。可选的,该计算机可读存储介质可以包括:只读存储器(ReadOnlyMemory,ROM)、随机存取记忆体(RandomAccessMemory,RAM)、固态硬盘(SolidStateDrives,SSD)或光盘等。其中,随机存取记忆体可以包括电阻式随机存取记忆体(ResistanceRandomAccessMemory,ReRAM)和动态随机存取存储器(DynamicRandomAccessMemory,DRAM)。In the embodiment of the present application, the above-mentioned computer storage medium may be located in at least one network server among multiple network servers in the computer network. Optionally, the computer-readable storage medium may include: a read-only memory (ReadOnlyMemory, ROM), a random-access memory (RandomAccessMemory, RAM), a solid-state hard disk (SolidStateDrives, SSD) or an optical disk. Wherein, the random access memory may include a resistive random access memory (Resistance Random Access Memory, ReRAM) and a dynamic random access memory (Dynamic Random Access Memory, DRAM).

需要说明的是:上述本申请实施例先后顺序仅仅为了描述,不代表实施例的优劣。且上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。It should be noted that: the order of the above-mentioned embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And the above describes the specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

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

Claims (10)

1. A vehicle machine system testing method is characterized by comprising the following steps:
acquiring a test program in a vehicle machine system, and reading a test control file in preset storage equipment; the preset storage device is a storage device outside the vehicle machine system;
acquiring a test configuration file corresponding to the test program;
starting the test program according to the test configuration file based on the test control file;
and in the starting process of the test program, obtaining test data of the vehicle-mounted machine system in a preset test scene, and obtaining a test result corresponding to the test program.
2. The method according to claim 1, wherein before the obtaining of the test program in the car machine system and the reading of the test control file in the preset storage device, the method further comprises:
acquiring a device identifier of a storage device inserted into the vehicle machine system;
matching the equipment identifier with a preset equipment identifier stored in the vehicle-mounted machine system;
and determining the storage device to be the preset storage device under the condition that the matching result indicates that the device identifier is matched with the preset device identifier.
3. The method according to claim 2, wherein the preset storage device stores the test configuration file; the obtaining of the test configuration file corresponding to the test program includes:
and reading the test configuration file in the preset storage equipment under the condition that the test control file is successfully read.
4. The method of claim 2, wherein obtaining the test configuration file corresponding to the test program comprises:
under the condition that the test control file is read successfully, sending a parameter configuration instruction to an interface management module so that the interface management module responds to the parameter configuration instruction and displays a configuration management interface; and enabling the interface management module to respond to the configuration operation based on the configuration management interface to obtain configuration parameters;
receiving the configuration parameters returned by the interface management module;
generating the test configuration file based on the configuration parameters.
5. The method according to claim 1, wherein in the process of starting the test program, obtaining test data of the car machine system in a preset test scene to obtain a test result corresponding to the test program comprises:
capturing test data of the vehicle-mounted machine system under the preset scene based on the test control file in the starting process of the test program;
and generating the test result corresponding to the test program according to the test data.
6. The method of claim 5, wherein the generating the test result corresponding to the test program according to the test data comprises:
reading a data analysis configuration file in the preset storage equipment;
and processing the test data based on the data analysis configuration file to obtain the test result corresponding to the test program.
7. The method according to claim 1, wherein in the process of starting the test program, after obtaining test data of the car machine system in a preset test scene and obtaining a test result corresponding to the test program, the method further comprises:
and sending the test result to the preset storage equipment.
8. The utility model provides a car machine system testing arrangement which characterized in that, the device includes:
the test starting module is used for acquiring a test program in the vehicle-mounted computer system and reading a test control file in preset storage equipment; the preset storage device is a storage device outside the vehicle machine system;
the test configuration file acquisition module is used for acquiring a test configuration file corresponding to the test program;
the test program starting module is used for starting the test program according to the test configuration file based on the test control file;
and the test result determining module is used for acquiring test data of the vehicle-mounted machine system in a preset test scene in the starting process of the test program to obtain a test result corresponding to the test program.
9. An electronic device, characterized in that the device comprises a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executes the in-vehicle system testing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the in-vehicle machine system testing method according to any one of claims 1 to 7.
CN202211040688.7A 2022-08-29 2022-08-29 A vehicle-machine system testing method, device, equipment and storage medium Pending CN115454831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211040688.7A CN115454831A (en) 2022-08-29 2022-08-29 A vehicle-machine system testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211040688.7A CN115454831A (en) 2022-08-29 2022-08-29 A vehicle-machine system testing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115454831A true CN115454831A (en) 2022-12-09

Family

ID=84302022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211040688.7A Pending CN115454831A (en) 2022-08-29 2022-08-29 A vehicle-machine system testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115454831A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661419A (en) * 2023-06-06 2023-08-29 成都中科创达软件有限公司 Test method, upper computer, computer equipment and storage medium of automobile central control

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160283361A1 (en) * 2015-03-26 2016-09-29 Ford Global Technologies, Llc Method and apparatus for in-vehicle hardware and software testing
CN111858286A (en) * 2019-04-24 2020-10-30 上海博泰悦臻网络技术服务有限公司 Vehicle machine testing device and method
CN114356766A (en) * 2021-12-31 2022-04-15 科大讯飞股份有限公司 Vehicle machine testing method, related device, equipment, system and storage medium
CN114489007A (en) * 2022-01-18 2022-05-13 上汽通用五菱汽车股份有限公司 Vehicle in-loop testing method, system, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160283361A1 (en) * 2015-03-26 2016-09-29 Ford Global Technologies, Llc Method and apparatus for in-vehicle hardware and software testing
CN111858286A (en) * 2019-04-24 2020-10-30 上海博泰悦臻网络技术服务有限公司 Vehicle machine testing device and method
CN114356766A (en) * 2021-12-31 2022-04-15 科大讯飞股份有限公司 Vehicle machine testing method, related device, equipment, system and storage medium
CN114489007A (en) * 2022-01-18 2022-05-13 上汽通用五菱汽车股份有限公司 Vehicle in-loop testing method, system, equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661419A (en) * 2023-06-06 2023-08-29 成都中科创达软件有限公司 Test method, upper computer, computer equipment and storage medium of automobile central control

Similar Documents

Publication Publication Date Title
CN108463832B (en) Electronic device and process execution method based on hardware diagnosis result
CN109510742B (en) Server network card remote test method, device, terminal and storage medium
CN113407393A (en) Chip verification method, terminal device, verification platform and storage medium
CN109616106A (en) Vehicle-mounted control screen voice recognition process testing method, electronic equipment and system
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN108959064B (en) Popup window processing method and device for automatic test
CN109753425A (en) Pop-up processing method and processing device
CN112241160A (en) Vehicle testing method, device, vehicle testing system and test board
CN104461899A (en) Method and system for analyzing resource consumption in testing process and testing terminal
CN113608990A (en) Terminal performance detection method, device, storage medium and program product
CN109558297A (en) EMS memory management process and device
CN110597704A (en) Application program pressure testing method, device, server and medium
CN117692301A (en) A fault feedback method and electronic device
CN115454831A (en) A vehicle-machine system testing method, device, equipment and storage medium
CN108810525A (en) A kind of combined Intelligent set top box volume production test method and system
CN106598793B (en) A test system and test method based on BIOS serial port log data
CN105354075A (en) Synchronization method for software and hardware collaborative simulation
CN110781084B (en) Method and device for determining stuck identification parameter, storage medium and electronic device
CN113806118A (en) Self-repairing method, device and equipment for application program and storage medium
CN118250455A (en) Vehicle panoramic image testing device and method
CN114116034B (en) Distributed brushing method and device
CN114281681A (en) A test method, apparatus, equipment and storage medium
CN109324802B (en) Method and device for configuring server
CN103019907A (en) Method and device for monitoring terminal battery temperature and terminal
CN112650672A (en) Model testing system, method and device based on Junit

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