[go: up one dir, main page]

CN114510421A - Test method, test device, chip and module equipment - Google Patents

Test method, test device, chip and module equipment Download PDF

Info

Publication number
CN114510421A
CN114510421A CN202210109157.2A CN202210109157A CN114510421A CN 114510421 A CN114510421 A CN 114510421A CN 202210109157 A CN202210109157 A CN 202210109157A CN 114510421 A CN114510421 A CN 114510421A
Authority
CN
China
Prior art keywords
test
code
module
attribute
information
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
CN202210109157.2A
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.)
Unisoc Chongqing Technology Co Ltd
Original Assignee
Unisoc Chongqing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unisoc Chongqing Technology Co Ltd filed Critical Unisoc Chongqing Technology Co Ltd
Priority to CN202210109157.2A priority Critical patent/CN114510421A/en
Publication of CN114510421A publication Critical patent/CN114510421A/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/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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

The application discloses a test method, a test device, a chip and module equipment, wherein the method comprises the following steps: acquiring corresponding element information and attribute information in a test file, wherein the element information corresponds to a processing mode of an element, and the attribute information corresponds to a processing mode of an attribute; testing the first tested code based on the element information and the element processing mode and the attribute information and attribute processing mode to obtain a test result; and outputting a test result. By adopting the method described in the application, the working efficiency of developers can be improved.

Description

一种测试方法、装置、芯片及模组设备A test method, device, chip and module equipment

技术领域technical field

本发明涉及通信领域,尤其涉及一种测试方法、装置、芯片及模组设备。The present invention relates to the field of communications, and in particular, to a testing method, device, chip and module equipment.

背景技术Background technique

测试人员在开发通信系统软件的多个测试例时,每个测试例都需要编写不同的测试例配置文件,或者针对某些固定的测试步骤编写通用的代码。大量重复性的工作使得开发人员的工作量较大,工作效率较低。When a tester develops multiple test cases of communication system software, each test case needs to write a different test case configuration file, or write common codes for some fixed test steps. A lot of repetitive work makes developers have a larger workload and lower work efficiency.

发明内容SUMMARY OF THE INVENTION

本申请提供一种测试方法、装置、芯片及模组设备,有利于提高开发人员的工作效率。The present application provides a testing method, device, chip and module equipment, which are beneficial to improve the work efficiency of developers.

第一方面,本申请提供一种测试方法,该方法包括:获取测试文件中对应的元素信息和属性信息,元素信息对应有元素的处理方式,属性信息对应有属性的处理方式;基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果;输出测试结果。In a first aspect, the present application provides a test method, the method includes: acquiring corresponding element information and attribute information in a test file, the element information corresponds to the processing method of the element, and the attribute information corresponds to the processing method of the attribute; based on the element information and The processing method of the element, the attribute information and the processing method of the attribute test the first code under test to obtain the test result; and output the test result.

在一种可能的实现方式中,获取测试文件对应的元素信息和属性信息,具体实现方式为:确定测试文件中的元素和属性;对元素和属性进行预处理,得到元素信息和属性信息,元素信息的数据格式和属性信息的数据格式均为预设格式。In a possible implementation manner, the element information and attribute information corresponding to the test file are obtained, and the specific implementation method is as follows: determining the elements and attributes in the test file; preprocessing the elements and attributes to obtain the element information and attribute information, the element The data format of the information and the data format of the attribute information are both preset formats.

在一种可能的实现方式中,基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果,具体实现方式可以为:基于元素信息和元素的处理方式、属性信息和属性的处理方式,调用外部接口模拟模块和/或硬件模拟模块测试被测代码,得到测试结果;外部接口模拟模块用于在第一被测代码在调用第二被测代码时反馈第二被测代码对应的预设输出值,第一被测代码和第二被测代码为组成同一系统代码的不同模块的代码,硬件模拟模块用于提供被测代码测试时所需的硬件环境。In a possible implementation manner, the first code under test is tested based on the element information and the processing method of the element, the attribute information and the processing method of the attribute, and the test result is obtained. The specific implementation method may be: the processing method based on the element information and the element , attribute information and attribute processing methods, call the external interface simulation module and/or hardware simulation module to test the code under test, and obtain the test result; the external interface simulation module is used for feedback when the first code under test calls the second code under test The preset output value corresponding to the second code under test, the first code under test and the second code under test are codes of different modules that form the same system code, and the hardware simulation module is used to provide the hardware environment required for the test code to be tested .

在一种可能实现方式中,该方法还包括:基于测试结果和预设的期望结果进行对比,确定比对结果;输出比对结果。In a possible implementation manner, the method further includes: comparing the test result with a preset expected result to determine the comparison result; and outputting the comparison result.

在一种可能的实现方式中,该方法还包括:调用代码覆盖模块监控第一被测代码中各个代码执行情况;输出被测代码的覆盖率报告,覆盖率报告用于指示第一被测代码中的各个代码是否被执行。In a possible implementation, the method further includes: calling a code coverage module to monitor the execution of each code in the first code under test; outputting a coverage report of the code under test, where the coverage report is used to indicate the first code under test Whether each code in is executed.

在一种可能的实现方式中,测试文件的格式为XML文件格式。In a possible implementation manner, the format of the test file is an XML file format.

在一种可能的实现方式中,基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,具体实现方式为:基于测试代码、元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,测试代码用于提供第一被测代码测试时所需的多个线程优先级机制。In a possible implementation manner, the first code under test is tested based on the element information and the processing method of the element, the attribute information and the processing method of the attribute, and the specific implementation method is: The processing method of information and attributes tests the first code under test, and the test code is used to provide multiple thread priority mechanisms required when the first code under test is tested.

在一种可能的实现方式中,第一被测代码对应有控制代码,控制代码用于确定第一被测代码所需的消息数据和消息数据对应的交互顺序,测试文件中包括消息数据和消息数据对应的交互顺序;基于元素和元素的处理方式、属性和属性的处理方式测试第一被测代码,具体实现方式为:基于元素信息和元素的处理方式、属性信息和属性的处理方式、消息数据和消息数据对应的交互顺序测试第一被测代码,消息数据为第一被测代码模拟的通信系统中传输的数据。In a possible implementation manner, the first code under test corresponds to a control code, and the control code is used to determine the message data required by the first code under test and the interaction sequence corresponding to the message data, and the test file includes the message data and the message data. The interaction sequence corresponding to the data; the first code under test is tested based on the processing methods of elements and elements, and the processing methods of attributes and attributes. The specific implementation methods are: based on the processing methods of element information and elements, processing methods of attribute information and attributes, and messages The interactive sequence corresponding to the data and the message data tests the first code under test, and the message data is the data transmitted in the communication system simulated by the first code under test.

第二方面,本申请提供一种测试装置,该测试装置包括:获取单元,用于获取测试文件中对应的元素信息和属性信息,元素信息对应有元素的处理方式,属性信息对应有属性的处理方式;测试单元,用于基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果;输出单元,用于输出测试结果。In a second aspect, the present application provides a test device, the test device includes: an acquisition unit for acquiring corresponding element information and attribute information in a test file, the element information corresponds to a processing method of an element, and the attribute information corresponds to a processing method of an attribute method; a test unit for testing the first code under test based on element information and element processing methods, attribute information and attribute processing methods to obtain test results; an output unit for outputting test results.

第三方面,本申请提供一种芯片,包括处理器和通信接口,处理器被配置用于使芯片执行如第一方面所描述的方法及其任意一种可能的实现方式。In a third aspect, the present application provides a chip, including a processor and a communication interface, where the processor is configured to cause the chip to execute the method described in the first aspect and any possible implementation manner thereof.

第四方面,本申请提供一种模组设备,模组设备包括通信模组、电源模组、存储模组以及芯片,其中:电源模组用于为模组设备提供电能;存储模组用于存储数据和指令;通信模组用于进行模组设备内部通信,或者用于模组设备与外部设备进行通信;芯片用于执行如第一方面所描述的方法及其任意一种可能的实现方式。In a fourth aspect, the present application provides a module device, the module device includes a communication module, a power module, a storage module and a chip, wherein: the power module is used for providing electrical energy for the module device; the storage module is used for Store data and instructions; the communication module is used for internal communication of the module device, or for the module device to communicate with external devices; the chip is used to execute the method as described in the first aspect and any possible implementation manner thereof .

第五方面,本申请提供一种测试装置,该测试装置包括存储器和处理器,存储器用于存储计算机程序,计算机程序包括程序指令,处理器被配置用于调用程序指令,使测试装置执行如第一方面所描述的方法及其任意一种可能的实现方式,In a fifth aspect, the present application provides a test device, the test device includes a memory and a processor, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions, so that the test device executes the steps as described in Section 1. The method described on the one hand and any of its possible implementations,

第六方面,本申请提供一种计算机可读存储介质,其特征在于,计算机存储介质中存储有计算机可读指令,当计算机可读指令在测试装置上运行时,使得测试装置执行如第一方面所描述的方法及其任意一种可能的实现方式。In a sixth aspect, the present application provides a computer-readable storage medium, characterized in that, the computer-readable instructions are stored in the computer storage medium, and when the computer-readable instructions are executed on the test device, the test device is made to execute the first aspect. The described method and any of its possible implementations.

第七方面,本申请提供一种计算机程序或计算机程序产品,包括代码或指令,当代码或指令在计算机上运行时,使得计算机执行如第一方面或其任一种可能的实现方式中的方法。In a seventh aspect, the present application provides a computer program or computer program product, comprising codes or instructions, which, when the codes or instructions are run on a computer, cause the computer to execute the method in the first aspect or any of its possible implementations .

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例提供测试例配置文件和测试例脚本文件的示意图;Fig. 1 is the schematic diagram that the embodiment of the present application provides a test case configuration file and a test case script file;

图2是本申请实施例提供的一种测试方法的流程示意图;2 is a schematic flowchart of a testing method provided by an embodiment of the present application;

图3a是本申请实施例提供的基带通信系统软件结构的示意图;3a is a schematic diagram of a software structure of a baseband communication system provided by an embodiment of the present application;

图3b是本申请实施例提供的测试协议栈软件的示意图;3b is a schematic diagram of a test protocol stack software provided by an embodiment of the present application;

图4是本申请实施例提供的一种测试平台的系统框架示意图FIG. 4 is a schematic diagram of a system framework of a test platform provided by an embodiment of the present application

图5是本申请实施例提供的一种测试装置的结构示意图;5 is a schematic structural diagram of a testing device provided by an embodiment of the present application;

图6是本申请实施例提供的一种测试装置的结构示意图;6 is a schematic structural diagram of a testing device provided by an embodiment of the present application;

图7是本申请实施例提供的一种模组设备的结构示意图。FIG. 7 is a schematic structural diagram of a module device provided by an embodiment of the present application.

具体实施方式Detailed ways

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

本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“该”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包括一个或多个所列出项目的任何或所有可能组合。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations of the present application. As used in the specification of this application and the appended claims, the singular expressions "a," "an," "the," "above," "the," and "the" are intended to also include Plural expressions unless the context clearly dictates otherwise. It will also be understood that, as used in this application, the term "and/or" refers to and includes any and all possible combinations of one or more of the listed items.

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

为了更好地理解本申请实施例,下面首先对本申请实施例涉及的背景进行介绍。In order to better understand the embodiments of the present application, the following first introduces the background involved in the embodiments of the present application.

软件测试是指使用人工或者自动的手段来运行或测定某个软件产品系统的过程,其目的是在于检验是否满足规定的需求或者弄清预期的结果与实际结果的区别。Software testing refers to the process of using manual or automatic means to run or measure a software product system, the purpose of which is to check whether the specified requirements are met or to clarify the difference between the expected results and the actual results.

通信系统软件测试可以用于模拟测试通信系统,例如,模拟两个设备基于预设的通信协议进行数据交互,从而测试预设的通信协议是否可以提高数据之间的传输效率等。通信系统软件测试涉及到测试平台开发和测试例构建两个方面。一般来说,测试平台的好坏会对测试效果有较大的影响,好的测试平台能够降低测试例构建的复杂度和灵活度。The communication system software test can be used to simulate and test the communication system, for example, to simulate data interaction between two devices based on a preset communication protocol, so as to test whether the preset communication protocol can improve the transmission efficiency between data, etc. Communication system software testing involves two aspects: test platform development and test case construction. Generally speaking, the quality of the test platform will have a greater impact on the test effect. A good test platform can reduce the complexity and flexibility of test case construction.

测试例一般由两种类型的文件组成:测试例配置文件和测试例脚本文件。测试例配置文件中配置测试例执行过程中需要使用到的各类消息。测试例脚本文件根据测试例设计需求对各条消息进行处理(例如,接收、发送、比较)。由于每个测试例设计的过程都可能存在不一样的需求,如图1所示,测试例开发人员在开发每个测试例时都要开发与其对应的测试例配置文件和测试例脚本文件,由于每个测试例都需要编写不同的测试例配置文件,或者针对某些固定的测试步骤编写通用的代码,开发人员的工作量较大。Test cases generally consist of two types of files: test case configuration files and test case script files. The test case configuration file configures various types of messages that need to be used during the execution of the test case. The test case script file processes each message (eg, receives, sends, compares) according to the test case design requirements. Since each test case design process may have different requirements, as shown in Figure 1, the test case developer must develop the corresponding test case configuration file and test case script file when developing each test case. Each test case needs to write a different test case configuration file, or write common code for some fixed test steps, which increases the workload of developers.

为了能够降低开发人员的工作量,本发明实施例提出了一种测试方法。该方法包括:获取测试文件中对应的元素信息和属性信息,元素信息对应有元素的处理方式,属性信息对应有属性的处理方式;基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果;输出测试结果。基于该方法,重复或者通用测试步骤可以通过元素和属性去定义对应的处理方式,开发人员仅需在测试文件中配置好所需的元素和属性,电子设备会基于配置好的元素和属性测试第一被测代码,从而降低开发人员的工作量。In order to reduce the workload of developers, an embodiment of the present invention proposes a testing method. The method includes: acquiring corresponding element information and attribute information in a test file, the element information corresponds to the processing method of the element, the attribute information corresponds to the processing method of the attribute; the processing method based on the element information and the element, the attribute information and the attribute Test the first code under test to get the test result; output the test result. Based on this method, repeated or general test steps can define corresponding processing methods through elements and attributes. The developer only needs to configure the required elements and attributes in the test file, and the electronic device will test the first step based on the configured elements and attributes. A code under test, thereby reducing the developer's workload.

该方法可以应用在电子设备中,该电子设备具备数据处理功能,能够对获取到的数据进行处理。该电子设备可以是手机(mobile phone)、个人计算机(Personal Computer,PC)、工业控制(industrial control)中的无线终端、车载终端设备、无人驾驶(selfdriving)中的无线终端、智能电网(smart grid)中的无线终端、可穿戴终端设备等等。本申请的实施例对应用场景不做限定。终端有时也可以称为终端设备、用户设备(userequipment,UE)、接入终端设备、车载终端、工业控制终端、UE单元、UE站、移动站、移动台、远方站、远程终端设备、移动设备、UE终端设备、终端设备、无线通信设备、UE代理或UE装置等。电子设备还可以是服务器,具体的,可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。The method can be applied to an electronic device, which has a data processing function and can process the acquired data. The electronic device may be a mobile phone (mobile phone), a personal computer (Personal Computer, PC), a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a smart grid (smart) grid) wireless terminals, wearable terminal devices, etc. The embodiments of the present application do not limit application scenarios. A terminal may also sometimes be referred to as terminal equipment, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment , UE terminal equipment, terminal equipment, wireless communication equipment, UE proxy or UE device, etc. The electronic device can also be a server, specifically, an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud service, cloud database, cloud computing, cloud function, cloud Cloud servers for basic cloud computing services such as storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

本申请实施例中,用于实现电子设备的功能的装置可以是电子设备,也可以是能够支持电子设备实现该功能的装置,例如芯片系统或可实现电子设备功能的组合器件、部件,该装置可以被安装在电子设备中。In the embodiments of the present application, the device for realizing the function of the electronic device may be an electronic device, or a device capable of supporting the electronic device to realize the function, such as a chip system or a combined device or component that can realize the function of the electronic device. Can be installed in electronic equipment.

为了能够提高软件测试开发人员的工作效率,本申请提供了一种测试方法、装置、芯片及模组设备。下面进一步对本申请实施例提供的测试方法、装置、芯片及模组设备进行详细描述。In order to improve the work efficiency of software test developers, the present application provides a test method, device, chip and module device. The test method, device, chip, and module device provided by the embodiments of the present application are further described in detail below.

图2是本申请实施例提供的一种测试方法的流程示意图。如图2所示,该测试方法包括如下步骤201~步骤203。图2所示的方法执行主体可以为电子设备。或者,图2所示的方法执行主体可以为电子设备中的芯片。图2以电子设备为方法的执行主体为例进行说明。FIG. 2 is a schematic flowchart of a testing method provided by an embodiment of the present application. As shown in FIG. 2 , the testing method includes the following steps 201 to 203 . The method execution body shown in FIG. 2 may be an electronic device. Alternatively, the method execution body shown in FIG. 2 may be a chip in an electronic device. FIG. 2 takes an electronic device as an example of the execution body of the method for description.

201、电子设备获取测试文件中对应的元素信息和属性信息,元素信息对应有元素的处理方式,属性信息对应有属性的处理方式。201. The electronic device acquires corresponding element information and attribute information in the test file, where the element information corresponds to the processing method of the element, and the attribute information corresponds to the processing method of the attribute.

本申请实施例中,测试文件可以包括一个或者多个测试例配置文件,即在本申请所提出的方法可以一次性处理多个测试例。每个测试配置文件中包括了一个或者多个元素,以及一个或者多个属性。In this embodiment of the present application, the test file may include one or more test case configuration files, that is, the method proposed in this application may process multiple test cases at one time. Each test configuration file includes one or more elements, and one or more properties.

其中,元素指的是从(且包括)开始标签直到(且包括)结束标签的部分。元素可包括其他元素、文本或者两者的混合物。元素也可以拥有一个或者多个属性,属性用于提供关于元素的额外(附加)信息。Here, element refers to the part from (and including) the start tag up to (and including) the end tag. Elements can include other elements, text, or a mixture of both. Elements can also have one or more attributes, which are used to provide additional (additional) information about the element.

可选地,该测试文件的格式可以为可扩展标记语言(Extensible MarkupLanguage,XML)格式。Optionally, the format of the test file may be an Extensible Markup Language (Extensible Markup Language, XML) format.

以下列XML格式的文档代码为例:Take the following document code in XML format as an example:

Figure BDA0003494509560000061
Figure BDA0003494509560000061

在上述文档代码中包括<bookstore>元素、<book>元素和<title>元素。其中,在该文档代码中,只有<book>元素还包括属性(category="CHILDREN"),其它元素均不包括属性。Include the <bookstore> element, the <book> element, and the <title> element in the above document code. Among them, in the document code, only the <book> element also includes attributes (category="CHILDREN"), and other elements do not include attributes.

需要说明的是,开发人员针对固定的测试步骤编写通用的代码,每个测试例对应的配置文件中都会包含这些通用的代码,非常冗余。基于本申请实施例所描述的方法,元素和属性分别对应的处理方式可以是在通信软件测试中重复或者通用测试步骤,开发人员配置元素和属性只需要输入简单的符号标签,无需输入一大段代码。在测试文件中配置好所需的元素和属性后,电子设备会基于配置好的元素和属性测试第一被测代码,从而降低开发人员的工作量,提高测试效率。It should be noted that developers write common codes for fixed test steps, and the configuration files corresponding to each test case will contain these common codes, which is very redundant. Based on the methods described in the embodiments of the present application, the corresponding processing methods of elements and attributes may be repeated or general test steps in communication software testing. Developers only need to enter simple symbol labels to configure elements and attributes, and do not need to enter a large paragraph. code. After the required elements and attributes are configured in the test file, the electronic device will test the first code under test based on the configured elements and attributes, thereby reducing the workload of developers and improving test efficiency.

在一种可能的实现方式中,步骤201的具体实现方式可以如下:电子设备确定测试文件中的元素和属性;电子设备对元素和属性进行预处理,得到元素信息和属性信息,元素信息的数据格式和属性信息的数据格式均为预设格式。其中,预处理指将测试文件中的元素和属性对应的数据格式转化为预设格式,预设格式的数据能够更适配于电子设备的处理的方式,从而可以提高测试效率。In a possible implementation, the specific implementation of step 201 may be as follows: the electronic device determines the elements and attributes in the test file; the electronic device preprocesses the elements and attributes to obtain element information and attribute information, and data of the element information The data format of the format and attribute information are all preset formats. The preprocessing refers to converting the data format corresponding to the elements and attributes in the test file into a preset format, and the data in the preset format can be more suitable for the processing method of the electronic device, thereby improving the test efficiency.

202、电子设备基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果。202. The electronic device tests the first code under test based on the element information, the processing method of the element, and the attribute information and the processing method of the attribute, and obtains a test result.

在一种可能的实现方式中,步骤202的具体实现方式可以如下:电子设备基于元素信息和元素的处理方式、属性信息和属性的处理方式,调用外部接口模拟模块和/或硬件模拟模块测试被测代码,得到测试结果;外部接口模拟模块用于在第一被测代码在调用第二被测代码时反馈第二被测代码对应的预设输出值,第一被测代码和第二被测代码为组成同一系统代码的不同模块的代码,硬件模拟模块用于提供被测代码测试时所需的硬件环境。In a possible implementation manner, the specific implementation manner of step 202 may be as follows: the electronic device calls the external interface simulation module and/or hardware simulation module to test the test code to obtain the test result; the external interface simulation module is used to feed back the preset output value corresponding to the second tested code when the first tested code calls the second tested code, the first tested code and the second tested code The code is the code of different modules that make up the same system code, and the hardware simulation module is used to provide the hardware environment required when the code under test is tested.

需要说明的是,在多小组对一系统代码进行并行开发的过程中,各个小组的开发进度各不相同,如果要进行完整的模块集成测试,就需要等所有小组的开发都完成后,才能进行测试,这种做法会导致整个系统的测试完成时间推迟,延长研发的进度。It should be noted that in the process of parallel development of a system code by multiple groups, the development progress of each group is different. If a complete module integration test is to be carried out, it is necessary to wait for the development of all groups to be completed before proceeding. Testing, this practice will delay the completion of testing of the entire system and prolong the progress of research and development.

示例性的,假设第一小组的第一被测代码撰写完成,但是第二小组的第二被测代码还未撰写完成。由于第一被测代码运行,需要调用第二被测代码得到相应输出值,因此无法测试第一被测代码。但若采用外部接口模拟模块第二被测代码反馈的输出值,可以在第二被测代码未撰写完成的情况下,测试第一被测代码。基于该方法,可以有效提高开发人员的工作效率。Exemplarily, it is assumed that the first code under test of the first group has been written, but the second code under test of the second group has not been written yet. Since the first code under test runs, the second code under test needs to be called to obtain the corresponding output value, so the first code under test cannot be tested. However, if the output value fed back by the second code under test of the module is simulated using an external interface, the first code under test can be tested without the second code under test being written. Based on this method, the work efficiency of developers can be effectively improved.

又示例性的,如图3a所示,通信系统软件通常由多个子系统构成,以手机终端基带通信系统软件为例,假设第一被测代码为协议软件代码,第二被测代码为物理层软件的代码,物理层软件代码会受上层协议软件的调度控制,测试物理层软件代码需要协议栈软件代码开发完成后才能进行测试。同时测试协议栈软件代码,也需要物理层软件反馈必要的信息,以保证后续的代码流程能够正确执行。如图3b所示,若选择采用编写模拟物理层软件代码去测试协议层软件代码,该模拟物理层软件代码在一定程度上对开发人员提出了更高的要求,也增加了开发人员的工作量,同时这些编写的模拟代码本身又可能引入一些缺陷,和真实的软件开发的代码存在重叠。采用本申请所提出的方法,通过外部接口模拟模块反馈的输出值,能够使被测代码与所有外部接口进行解耦,可以在协议栈软件开发完成之前测试物理层软件代码,或者在物理层软件开发完成之前测试协议栈软件代码,有效提高开发人员的工作效率。In another example, as shown in Figure 3a, the communication system software is usually composed of multiple subsystems. Taking the mobile phone terminal baseband communication system software as an example, it is assumed that the first tested code is the protocol software code, and the second tested code is the physical layer. The software code and the physical layer software code are subject to the scheduling control of the upper-layer protocol software. Testing the physical layer software code requires the completion of the protocol stack software code development before testing. At the same time, to test the software code of the protocol stack, the physical layer software also needs to feed back necessary information to ensure that the subsequent code flow can be executed correctly. As shown in Figure 3b, if you choose to write the simulated physical layer software code to test the protocol layer software code, the simulated physical layer software code puts forward higher requirements for developers to a certain extent, and also increases the workload of developers At the same time, these simulated codes themselves may introduce some defects, which overlap with the codes of real software development. Using the method proposed in this application, the output value fed back by the module is simulated by the external interface, so that the code under test can be decoupled from all external interfaces, and the physical layer software code can be tested before the development of the protocol stack software is completed, or the physical layer software can be tested Test the software code of the protocol stack before the development is completed, which can effectively improve the work efficiency of developers.

还需要说明的是,在通信系统开发过程中,常常需要通过硬件设备实现被测代码中的部分操作。但通常情况下,硬件设备造价昂贵,开发人员不具备采用硬件设备进行测试的条件。而硬件模拟模块可以提供被测代码测试时所需的硬件环境。通常情况下,需要模拟的硬件行为包括:硬件运行一段时间后产生中断的行为、硬件运行后输出结果的行为和配置硬件输入参数的行为。基于该实现方式,可以帮助测试人员降低成本开销。It should also be noted that, in the process of communication system development, it is often necessary to implement some operations in the code under test through hardware devices. But usually, hardware equipment is expensive, and developers do not have the conditions to use hardware equipment for testing. The hardware simulation module can provide the hardware environment required when the code under test is tested. Usually, the hardware behaviors that need to be simulated include: the behavior of generating interrupts after the hardware runs for a period of time, the behavior of outputting results after the hardware runs, and the behavior of configuring hardware input parameters. Based on this implementation, it can help testers reduce cost overhead.

在一种可能的实现方式中,步骤202的具体实现方式可以如下:电子设备基于测试代码、元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,测试代码用于提供第一被测代码测试时所需的多个线程优先级机制。In a possible implementation manner, the specific implementation manner of step 202 may be as follows: the electronic device tests the first code under test based on the test code, element information and element processing methods, attribute information and attribute processing methods, and the test code is used for Provides multiple thread priority mechanisms required when testing the first code under test.

需要说明的是,通信系统软件是通常是在视窗(Windows)环境下进行测试,但由于Windows环境下所提供的线程优先级是有限的,在多任务通信系统中,Windows环境下所提供的线程优先级无法真实模拟所有任务的真实优先级,这将会影响测试效果。示例性的,假设第一被测代码包括N个任务,N个任务对应N个优先级,第一被测代码运行时需要按照各个任务的优先级顺序进行,若测试平台只能提供M个优先级机制,M小于N,则无法模拟第一被测代码的实际应用效果,测试结果将受到一定的影响。而基于本申请所提出的方法,在测试第一被测代码时,调用测试代码进行测试,该测试代码所能提供的线程优先级大于第一被测代码所需的多个线程的优先级,基于该方法,可以提高测试的准确性。可选地,该测试代码可以为迷你实时操作(free realtimeoperatingsystem,FreeRTOS)系统所提供的基于Windows的模拟代码。It should be noted that the communication system software is usually tested in the Windows environment, but because the thread priority provided in the Windows environment is limited, in a multitasking communication system, the threads provided in the Windows environment Priority cannot realistically simulate the real priority of all tasks, which will affect the test results. Exemplarily, assuming that the first code under test includes N tasks, and the N tasks correspond to N priorities, the first code under test needs to be executed according to the priority order of each task when running. If the test platform can only provide M priorities. If M is less than N, the actual application effect of the first tested code cannot be simulated, and the test results will be affected to a certain extent. Based on the method proposed in the present application, when testing the first code under test, the test code is called for testing, and the thread priority that the test code can provide is greater than the priorities of multiple threads required by the first code under test, Based on this method, the accuracy of the test can be improved. Optionally, the test code may be a Windows-based simulation code provided by a free realtime operating system (FreeRTOS) system.

在一种可能的实现方式中,步骤202的具体实现方式可以为:电子设备基于元素信息和元素的处理方式、属性信息和属性的处理方式、消息数据和消息数据对应的交互顺序测试第一被测代码。第一被测代码对应有控制代码,控制代码用于确定第一被测代码所需的消息数据和消息数据对应的交互顺序,测试文件中包括消息数据和消息数据对应的交互顺序,消息数据为第一被测代码模拟的通信系统中传输的数据。In a possible implementation manner, the specific implementation manner of step 202 may be as follows: the electronic device tests the first object based on the element information and the processing method of the element, the processing method of the attribute information and the attribute, the message data and the interaction sequence corresponding to the message data. test code. The first code under test corresponds to a control code, and the control code is used to determine the message data required by the first code under test and the interaction sequence corresponding to the message data. The test file includes the message data and the interaction sequence corresponding to the message data. The message data is: The first code under test simulates the data transmitted in the communication system.

需要说明的是,通信系统软件测试可以用于模拟测试通信系统,例如,模拟两个设备基于预设的通信协议进行数据交互,从而测试预设的通信协议是否可以提高数据之间的传输效率等。其中,消息数据为两个设备之间传输的数据,消息数据对应的交互顺序为该消息数据传输的先后次序。示例性的,第一被测代码模拟了设备A和设备B基于预设的通信协议进行数据交互,例如设备A向设备B发送消息数据1;设备B收到消息数据1后,将会向设备A发送的消息数据2;设备A接收到消息数据2后,再向设备B发送消息数据3。消息数据对应的交互顺序可以帮助设备A和设备B确定什么时候发送消息数据。第一被测代码在运行的过程中,需要基于控制代码确定消息数据,和消息数据传输的先后次序,然而由于各个小组的开发进度各不相同,可能存在控制代码还未撰写完成的情况。因此,可以预先将消息数据,以及设定的消息数据对应的交互顺序存储在测试文件中,第一被测代码在运行的过程中无需通过控制代码确定消息数据,而是可以直接使用测试文件中的消息数据进行模拟,并确定消息数据对应的交互顺序。基于该方法,可以提高测试效率。It should be noted that the communication system software test can be used to simulate and test the communication system, for example, to simulate the data interaction between two devices based on a preset communication protocol, so as to test whether the preset communication protocol can improve the transmission efficiency between data, etc. . The message data is the data transmitted between the two devices, and the interaction order corresponding to the message data is the order of transmission of the message data. Exemplarily, the first code under test simulates the data interaction between device A and device B based on a preset communication protocol. For example, device A sends message data 1 to device B; The message data 2 sent by A; after receiving the message data 2, the device A sends the message data 3 to the device B. The interaction sequence corresponding to the message data can help device A and device B determine when to send the message data. During the running process of the first code under test, it is necessary to determine the message data based on the control code and the sequence of message data transmission. However, due to the different development progress of each group, there may be situations where the control code has not been written yet. Therefore, the message data and the interaction sequence corresponding to the set message data can be stored in the test file in advance. The first code under test does not need to determine the message data through the control code during the running process, but can directly use the test file. The message data is simulated, and the interaction sequence corresponding to the message data is determined. Based on this method, the test efficiency can be improved.

203、电子设备输出测试结果。203. The electronic device outputs the test result.

在一种可能的实现方式中,该方法还包括:电子设备基于测试结果和预设的期望结果进行对比,确定比对结果;电子设备输出比对结果。基于该实现方式,开发人员可以直观地确定本次测试的测试结果是否是预期的测试结果,从而确定是否需要调整被测代码或者再次进行测试,提高测试效率。In a possible implementation manner, the method further includes: the electronic device compares the test result with a preset expected result to determine the comparison result; and the electronic device outputs the comparison result. Based on this implementation, the developer can intuitively determine whether the test result of this test is the expected test result, so as to determine whether it is necessary to adjust the code under test or perform the test again, so as to improve the test efficiency.

在一种可能的实现方式中,该方法还包括:电子设备调用代码覆盖模块监控第一被测代码中各个代码执行情况;电子设备输出被测代码的覆盖率报告,覆盖率报告用于指示第一被测代码中的各个代码是否被执行。示例性的,第一被测代码包括1000行代码,其中前100行代码是主干,第200行代码到第599行代码是第一个分支,第600行代码到第1000行代码是第二分支,当前的测试文件中包括的测试例使第一被测代码只执行了主干上的代码和第一个分支所对应的代码,即前599行代码,后续第600行代码到第1000行代码未执行,通过覆盖率报告可以直观体现出代码的执行情况,从而确定是否需要增加测试例再重新测试第一被测代码。基于该实现方式,有利于提高测试效率。In a possible implementation manner, the method further includes: the electronic device calls a code coverage module to monitor the execution of each code in the first code under test; the electronic device outputs a coverage report of the code under test, and the coverage report is used to indicate the first code under test. Whether each code in a code under test is executed. Exemplarily, the first code under test includes 1000 lines of code, of which the first 100 lines of code are the trunk, the 200th line of code to the 599th line of code is the first branch, and the 600th line of code to the 1000th line of code is the second branch. , the test cases included in the current test file make the first code under test only execute the code on the trunk and the code corresponding to the first branch, that is, the first 599 lines of code, and the subsequent lines of code 600 to 1000 are not Execution, the execution status of the code can be visually reflected through the coverage report, so as to determine whether it is necessary to add test cases and then re-test the first code under test. Based on this implementation, it is beneficial to improve the test efficiency.

基于上述所描述的方法,本申请还提出了一个测试平台的系统框架,电子设备可基于该测试平台的系统框架实现本申请所提出的方法,如图4所示,该测试平台包括两个进程,一个是测试发送端进程,一个是测试接收端进程。通过划分两个进程的方式,可以使得测试平台的结构更加清晰,被测代码中不会过多的耦合测试代码,提高了代码的可维护性。Based on the method described above, the present application also proposes a system framework of a test platform, and an electronic device can implement the method proposed in the present application based on the system framework of the test platform. As shown in FIG. 4 , the test platform includes two processes , one is to test the sender process, and the other is to test the receiver process. By dividing the two processes, the structure of the test platform can be made clearer, and there will not be too much coupled test code in the code under test, which improves the maintainability of the code.

其中,测试发送端进程中包括:适配(Adapter)模块、测试例控制(CaseCtrl)模块、通用处理(Element Handle)模块、XML接口模块、追踪模块。测试接收端进程包括:代码集成(Code Integration)模块、外部接口模拟模块、硬件模拟模块、适配(Adapter)模块、追踪(Trace)模块、Windows实时操作系统(RTOS-Win)模块。两个进程的适配模块通过测试框架(Test Framework)模块相连,除此以外,该平台还可以包括代码覆盖率(Code Coverage)模块。The test sending process includes: an adapter module, a test case control (CaseCtrl) module, a general processing (Element Handle) module, an XML interface module, and a tracking module. The test receiver process includes: a code integration (Code Integration) module, an external interface simulation module, a hardware simulation module, an adapter (Adapter) module, a trace (Trace) module, and a Windows real-time operating system (RTOS-Win) module. The adaptation modules of the two processes are connected through a test framework (Test Framework) module, in addition to this, the platform may also include a code coverage (Code Coverage) module.

其中,测试发送端进程是测试代码功能模块的集合,测试接收端进程是被测代码功能模块的集合。上述各个模块的具体功能如下:The test sender process is a collection of test code function modules, and the test receiver process is a collection of tested code function modules. The specific functions of the above modules are as follows:

测试例控制模块用于解析测试文件。该模块负责读取测试文件,调用XML接口模块确定测试文件中的元素和属性,并调用通用处理模块确定其对应的处理方式。基于该测试例控制模块,用户不需要再根据每个测试例设计的场景单独开发各个测试例对应的测试脚本文件,而是可以根据测试例场景的需求,在测试文件中对各个元素定义不同的属性即可,进而大幅度降低用户的开发工作量。The test case control module is used to parse the test file. This module is responsible for reading the test file, calling the XML interface module to determine the elements and attributes in the test file, and calling the general processing module to determine its corresponding processing method. Based on the test case control module, users do not need to separately develop test script files corresponding to each test case according to the scenarios designed by each test case, but can define different elements in the test file according to the requirements of the test case scenarios. Attributes are sufficient, thereby greatly reducing the user's development workload.

XML接口模块中包括XML文件中各类元素和属性,为测试例控制模块提供访问XML文件中各类元素和属性的方法。其中该XML可以通过引用各种开源XML文件来实现,例如tinyXML文件。The XML interface module includes various elements and attributes in the XML file, and provides methods for accessing various elements and attributes in the XML file for the test case control module. The XML can be implemented by referencing various open source XML files, such as tinyXML files.

通用处理模块用于确定元素和属性对应的处理方式。其中,通用处理模块中预存有各个元素和属性对应的处理方式。The general processing module is used to determine the corresponding processing methods of elements and attributes. The general processing module pre-stores processing methods corresponding to each element and attribute.

适配模块用于将元素和属性转化为元素信息和属性信息,元素信息和属性信息的格式为预设格式,预设格式的数据能够更适配于电子设备的处理的方式,从而可以提高测试效率。也即是说,该适配模块为该测试平台提供支撑功能。可选的,该适配模块还可以为测试平台提供底层的实时操作系统的接口适配等功能。The adaptation module is used to convert elements and attributes into element information and attribute information. The format of the element information and attribute information is a preset format, and the data in the preset format can be more suitable for the processing method of the electronic device, thereby improving the test results. efficiency. That is to say, the adapter module provides a support function for the test platform. Optionally, the adaptation module can also provide functions such as interface adaptation of the underlying real-time operating system for the test platform.

测试框架模块为两个进程提供通信机制,使测试发送端进程和测试接收端进程能够进行数据传输。The test framework module provides a communication mechanism for the two processes, enabling the test sender process and the test receiver process to transfer data.

代码集成模块中包括被测代码。The code under test is included in the code integration module.

外部接口模拟模块用于模拟被测代码测试时反馈外部接口代码对应的预设输出值,第。如果在构建测试平台工程时外部接口模块已经准备就绪,则不需要该模块,可以直接集成外部接口的真实代码;否则,为了能够进行独立测试和开发,不受外部系统开发进度的影响,需要构建该模块来模拟外部接口的行为,用户只需要简单模拟外部接口函数的输出即可,不需要模拟其内部的具体实现。该输出可以是在桩函数中固定的值,也可以通过消息灵活可配置。The external interface simulation module is used to simulate the preset output value corresponding to the external interface code when the tested code is tested. If the external interface module is ready when constructing the test platform project, this module is not required, and the real code of the external interface can be directly integrated; This module simulates the behavior of the external interface, the user only needs to simply simulate the output of the external interface function, and does not need to simulate its internal specific implementation. The output can be a fixed value in the stub function, or it can be flexibly configurable through a message.

硬件模拟模块用于提供被测代码测试时所需的硬件环境。对于通信系统软件,常常需要对硬件进行操作,而在windows环境下,只能通过模拟的方式来实现硬件的行为。一般的,需要模拟的硬件行为包括:硬件运行一段时间后产生中断的行为、硬件运行后输出结果的行为和配置硬件输入参数的行为。The hardware simulation module is used to provide the hardware environment required for testing the code under test. For the communication system software, it is often necessary to operate the hardware, but in the Windows environment, the behavior of the hardware can only be realized by means of simulation. Generally, the hardware behaviors that need to be simulated include: the behavior of generating an interrupt after the hardware runs for a period of time, the behavior of outputting results after the hardware runs, and the behavior of configuring input parameters of the hardware.

代码覆盖模块用于监控测试接收端进程中被测代码的执行情况,输出覆盖率报告,覆盖率报告指示被测代码中的各个代码是否被执行。The code coverage module is used to monitor the execution of the code under test in the process of the test receiver, and output a coverage report. The coverage report indicates whether each code in the code under test is executed.

追踪模块用于为整个系统提供跟踪信息打印和保存的功能,为用户提供代码缺陷调试手段。The trace module is used to provide the function of printing and saving trace information for the whole system, and to provide users with means of debugging code defects.

Windows实时操作系统模块用于在Windows环境下模拟嵌入式实时操作系统的任务调度机制,包括任务调度,中断控制,定时器维护等功能,可以通过引用各种开源的实时操作系统模拟模块来实现,例如FreeRTOS提供的Windows模拟框架。The Windows RTOS module is used to simulate the task scheduling mechanism of the embedded RTOS in the Windows environment, including functions such as task scheduling, interrupt control, and timer maintenance. It can be implemented by referencing various open source RTOS simulation modules. For example, the Windows emulation framework provided by FreeRTOS.

测试发送端进程和测试接收端进程可以通过集成开发环境(integrateddevelopment environment,IDE)分别生成两个独立的可执行文件(测试接收端可执行文件和测试发送端可执行文件),用户可以通过这两个可执行文件使用该测试平台。除此以外,还可以通过可视化模块管理该测试平台的可视化界面,从而为用户提供更为直观的操作方式。The test sender process and the test receiver process can respectively generate two independent executable files (the test receiver executable file and the test sender executable file) through the integrated development environment (IDE). Executables use this testbench. In addition, the visual interface of the test platform can also be managed through the visual module, thereby providing users with a more intuitive operation method.

需要说明的是,在实际的应用场景中,测试平台可以包括更多或者更少的模块,用户可以按照实际的需求来配置对应的模块,本申请对此不作限制。It should be noted that, in an actual application scenario, the test platform may include more or less modules, and users can configure corresponding modules according to actual needs, which is not limited in this application.

基于上述所描述的测试平台,下面通过一个完整的例子介绍该测试平台测试被测代码的执行过程。Based on the test platform described above, the following describes the execution process of the test platform to test the code under test through a complete example.

步骤1:电子设备通过测试例控制模块调用XML接口模块解析测试文件,确定测试文件中的元素和属性,再调用通用处理模块确定元素对应的处理方式,和属性对应的处理方式。Step 1: The electronic device calls the XML interface module through the test case control module to parse the test file, determines the elements and attributes in the test file, and then calls the general processing module to determine the processing mode corresponding to the element and the processing mode corresponding to the attribute.

步骤2:电子设备通过适配模块对元素和属性进行预处理,得到元素信息和属性信息,元素信息的数据格式和属性信息的数据格式均为预设格式。Step 2: The electronic device preprocesses the elements and attributes through the adaptation module to obtain element information and attribute information. The data format of the element information and the data format of the attribute information are both preset formats.

步骤3:电子设备通过测试框架模块将元素信息和属性信息从测试发送端进程传输到测试接收端进程的适配模块。Step 3: The electronic device transmits the element information and attribute information from the test sender process to the adapter module of the test receiver process through the test framework module.

步骤4:电子设备根据元素信息和属性信息对代码集成模块中的被测代码进行测试,在测试的过程中会调用外部接口模拟模块和硬件模块来模拟测试环境,同时电子设备调用代码覆盖模块监控被测代码的执行情况。Step 4: The electronic device tests the code under test in the code integration module according to the element information and attribute information. During the test, the external interface simulation module and hardware module are called to simulate the test environment, and the electronic device calls the code coverage module to monitor The execution of the code under test.

步骤5:在测试结束后,电子设备将测试结果传输回测试发送端进程,根据测试文件中预存的预设结果进行比对,输出比对结果,以及通过代码覆盖率模块输出代码覆盖率报告。Step 5: After the test is completed, the electronic device transmits the test results back to the test sender process, performs comparison according to the preset results stored in the test file, outputs the comparison results, and outputs the code coverage report through the code coverage module.

请参见图5,图5是本发明实施例提供的一种测试装置的结构示意图,该测试装置可以为电子设备或具有电子设备功能的装置(例如芯片)。具体的,如图5所示,测试装置500,可以包括:Referring to FIG. 5 , FIG. 5 is a schematic structural diagram of a testing device provided by an embodiment of the present invention, and the testing device may be an electronic device or a device (eg, a chip) having functions of an electronic device. Specifically, as shown in FIG. 5 , the testing device 500 may include:

获取单元501,用于获取测试文件中对应的元素信息和属性信息,元素信息对应有元素的处理方式,属性信息对应有属性的处理方式;测试单元502,用于基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果;输出单元503,用于输出测试结果。The obtaining unit 501 is used to obtain the corresponding element information and attribute information in the test file, the element information corresponds to the processing method of the element, and the attribute information corresponds to the processing method of the attribute; the testing unit 502 is used for the processing method based on the element information and the element , attribute information and attribute processing methods to test the first code under test to obtain the test result; the output unit 503 is used for outputting the test result.

在一种可能的实现方式中,获取单元501用于测试文件对应的元素信息和属性信息时,具体用于:确定测试文件中的元素和属性;对元素和属性进行预处理,得到元素信息和属性信息,元素信息的数据格式和属性信息的数据格式均为预设格式。In a possible implementation manner, when the acquiring unit 501 is used for the element information and attribute information corresponding to the test file, it is specifically used to: determine the elements and attributes in the test file; preprocess the elements and attributes to obtain the element information and attribute information. The attribute information, the data format of the element information and the data format of the attribute information are all preset formats.

在一种可能的实现方式中,测试单元502基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果时,具体用于:基于元素信息和元素的处理方式、属性信息和属性的处理方式,调用外部接口模拟模块和/或硬件模拟模块测试被测代码,得到测试结果;外部接口模拟模块用于在第一被测代码在调用第二被测代码时反馈第二被测代码对应的预设输出值,第一被测代码和第二被测代码为组成同一系统代码的不同模块的代码,硬件模拟模块用于提供被测代码测试时所需的硬件环境。In a possible implementation manner, the testing unit 502 tests the first code under test based on the element information and the processing method of the element, the attribute information and the processing method of the attribute, and when the test result is obtained, it is specifically used for: based on the element information and the element processing method Processing method, attribute information and attribute processing method, call the external interface simulation module and/or hardware simulation module to test the code under test, and obtain the test result; the external interface simulation module is used to call the second code under test when the first code under test is called When the preset output value corresponding to the second code under test is fed back, the first code under test and the second code under test are codes of different modules that make up the same system code, and the hardware simulation module is used to provide the required code for the test code. hardware environment.

在一种可能的实现方式中,该测试装置还包括对比单元504,该对比单元504用于基于测试结果和预设的期望结果进行对比,确定比对结果;输出单元503,还用于输出比对结果。In a possible implementation manner, the test device further includes a comparison unit 504, which is configured to compare the test result with a preset expected result, and determine the comparison result; the output unit 503 is further configured to output the comparison result. to the results.

在一种可能的实现方式中,该测试装置还包括监控单元505,该监控单元505用于调用代码覆盖模块监控第一被测代码中各个代码执行情况;该输出单元503,还用于输出被测代码的覆盖率报告,覆盖率报告用于指示第一被测代码中的各个代码是否被执行。In a possible implementation manner, the testing device further includes a monitoring unit 505, and the monitoring unit 505 is configured to call the code coverage module to monitor the execution of each code in the first code under test; the output unit 503 is further configured to output the A coverage report of the tested code, where the coverage report is used to indicate whether each code in the first tested code is executed.

在一种可能的实现方式中,测试文件的格式为XML文件格式。In a possible implementation manner, the format of the test file is an XML file format.

在一种可能的实现方式中,测试单元502基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码时,具体用于:基于测试代码、元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,测试代码用于提供第一被测代码测试时所需的多个线程优先级机制。In a possible implementation manner, when the testing unit 502 tests the first code under test based on the element information and the processing method of the element, the attribute information and the processing method of the attribute, it is specifically used for: processing based on the test code, the element information and the element The method, attribute information, and attribute processing method test the first code under test, and the test code is used to provide multiple thread priority mechanisms required for testing the first code under test.

在一种可能的实现方式中,第一被测代码对应有控制代码,控制代码用于确定第一被测代码所需的消息数据和消息数据对应的交互顺序,测试文件中包括消息数据和消息数据对应的交互顺序,消息数据为第一被测代码模拟的通信系统中传输的数据。测试单元502基于元素和元素的处理方式、属性和属性的处理方式测试第一被测代码时,具体用于:基于元素信息和元素的处理方式、属性信息和属性的处理方式、消息数据和消息数据对应的交互顺序测试第一被测代码。In a possible implementation manner, the first code under test corresponds to a control code, and the control code is used to determine the message data required by the first code under test and the interaction sequence corresponding to the message data, and the test file includes the message data and the message data. The interaction sequence corresponding to the data, and the message data is the data transmitted in the communication system simulated by the first code under test. When testing the first code under test based on the element and the processing method of the element, the attribute and the processing method of the attribute, the testing unit 502 is specifically used for: based on the element information and the processing method of the element, the processing method of the attribute information and the attribute, the message data and the message The interactive sequence corresponding to the data tests the first code under test.

本申请实施例还提供了一种芯片,该芯片可以执行前述方法实施例中电子设备的相关步骤。该芯片,包括处理器和通信接口,该处理器被配置用于使芯片执行如下操作:获取测试文件中对应的元素信息和属性信息,元素信息对应有元素的处理方式,属性信息对应有属性的处理方式;基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果;输出测试结果。The embodiments of the present application further provide a chip, and the chip can execute the relevant steps of the electronic device in the foregoing method embodiments. The chip includes a processor and a communication interface, the processor is configured to make the chip perform the following operations: acquire corresponding element information and attribute information in the test file, the element information corresponds to the processing method of the element, and the attribute information corresponds to the attribute information Processing method; test the first code under test based on the element information, the processing method of the element, the attribute information and the processing method of the attribute, and obtain the test result; and output the test result.

在一种可能的实现方式中,该处理器被配置用于使芯片测试文件对应的元素信息和属性信息时,执行如下操作:确定测试文件中的元素和属性;对元素和属性进行预处理,得到元素信息和属性信息,元素信息的数据格式和属性信息的数据格式均为预设格式。In a possible implementation manner, when the processor is configured to make the element information and attribute information corresponding to the chip test file, perform the following operations: determine the elements and attributes in the test file; preprocess the elements and attributes, The element information and the attribute information are obtained, and the data format of the element information and the data format of the attribute information are both preset formats.

在一种可能的实现方式中,该处理器被配置用于使芯片测试文件对应的元素信息和属性信息时,执行如下操作:基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,得到测试结果时,具体用于:基于元素信息和元素的处理方式、属性信息和属性的处理方式,调用外部接口模拟模块和/或硬件模拟模块测试被测代码,得到测试结果;外部接口模拟模块用于在第一被测代码在调用第二被测代码时反馈第二被测代码对应的预设输出值,第一被测代码和第二被测代码为组成同一系统代码的不同模块的代码,硬件模拟模块用于提供被测代码测试时所需的硬件环境。In a possible implementation manner, the processor is configured to perform the following operations when the element information and attribute information corresponding to the chip test file are tested: test based on the element information and the processing mode of the element, the attribute information and the processing mode of the attribute The first code under test, when the test result is obtained, is specifically used to: call the external interface simulation module and/or the hardware simulation module to test the code under test based on the element information and the processing method of the element, the attribute information and the processing method of the attribute, and obtain the test code Result; the external interface simulation module is used to feed back the preset output value corresponding to the second tested code when the first tested code calls the second tested code, and the first tested code and the second tested code form the same system The code of the different modules of the code, the hardware simulation module is used to provide the hardware environment required when the code under test is tested.

在一种可能的实现方式中,该处理器被配置用于使芯片执行如下操作:基于测试结果和预设的期望结果进行对比,确定比对结果;输出比对结果。In a possible implementation manner, the processor is configured to cause the chip to perform the following operations: compare the test result with a preset expected result, determine the comparison result; and output the comparison result.

在一种可能的实现方式中,该处理器被配置用于使芯片执行如下操作:调用代码覆盖模块监控第一被测代码中各个代码执行情况;输出被测代码的覆盖率报告,覆盖率报告用于指示第一被测代码中的各个代码是否被执行。In a possible implementation manner, the processor is configured to cause the chip to perform the following operations: call the code coverage module to monitor the execution of each code in the first code under test; output a coverage report of the code under test, the coverage report Used to indicate whether each code in the first code under test is executed.

在一种可能的实现方式中,测试文件的格式为XML文件格式。In a possible implementation manner, the format of the test file is an XML file format.

在一种可能的实现方式中,该处理器被配置用于使芯片测试文件对应的元素信息和属性信息时,执行如下操作:基于元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码时,具体用于:基于测试代码、元素信息和元素的处理方式、属性信息和属性的处理方式测试第一被测代码,测试代码用于提供第一被测代码测试时所需的多个线程优先级机制。In a possible implementation manner, the processor is configured to perform the following operations when the element information and attribute information corresponding to the chip test file are tested: test based on the element information and the processing mode of the element, the attribute information and the processing mode of the attribute When the first code under test is used, it is specifically used to: test the first code under test based on the test code, element information and element processing methods, attribute information and attribute processing methods, and the test code is used to provide the first code under test when testing. Multiple thread priority mechanisms are required.

在一种可能的实现方式中,第一被测代码对应有控制代码,控制代码用于确定第一被测代码所需的消息数据和消息数据对应的交互顺序,测试文件中包括消息数据和消息数据对应的交互顺序,消息数据为第一被测代码模拟的通信系统中传输的数据;该处理器被配置用于使芯片测试文件对应的元素信息和属性信息时,执行如下操作:基于元素和元素的处理方式、属性和属性的处理方式测试第一被测代码时,具体用于:基于元素信息和元素的处理方式、属性信息和属性的处理方式、消息数据和消息数据对应的交互顺序测试第一被测代码。In a possible implementation manner, the first code under test corresponds to a control code, and the control code is used to determine the message data required by the first code under test and the interaction sequence corresponding to the message data, and the test file includes the message data and the message data. The interaction sequence corresponding to the data, the message data is the data transmitted in the communication system simulated by the first code under test; the processor is configured to make the element information and attribute information corresponding to the chip test file, perform the following operations: based on the element and Element processing method, attribute and attribute processing method When testing the first code under test, it is specifically used for: based on element information and element processing method, attribute information and attribute processing method, message data and interaction sequence test corresponding to message data The first code to be tested.

在一种可能的实现方式中,上述芯片包括至少一个处理器、至少一个第一存储器和至少一个第二存储器;其中,前述至少一个第一存储器和前述至少一个处理器通过线路互联,前述第一存储器中存储有指令;前述至少一个第二存储器和前述至少一个处理器通过线路互联,前述第二存储器中存储前述方法实施例中需要存储的数据。In a possible implementation manner, the chip includes at least one processor, at least one first memory, and at least one second memory; wherein, the at least one first memory and the at least one processor are interconnected through a line, and the first memory Instructions are stored in the memory; the at least one second memory and the at least one processor are interconnected through a line, and the data to be stored in the foregoing method embodiments are stored in the second memory.

对于应用于或集成于芯片的各个装置、产品,其包括的各个模块可以都采用电路等硬件的方式实现,或者,至少部分模块可以采用软件程序的方式实现,该软件程序运行于芯片内部集成的处理器,剩余的(如果有)部分模块可以采用电路等硬件方式实现。For each device or product applied to or integrated in the chip, each module included in it may be implemented by hardware such as circuits, or at least some of the modules may be implemented by a software program that runs on the integrated circuit inside the chip. The processor and the remaining (if any) modules can be implemented in hardware such as circuits.

请参阅图6,图6是本发明实施例提供的一种测试装置的结构示意图。该直接通信装置600可以包括存储器601、处理器602。可选的,还包括通信接口603。存储器601、处理器602和通信接口603通过一条或多条通信总线连接。其中,通信接口603受处理器602的控制用于收发信息。Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a testing device provided by an embodiment of the present invention. The direct communication apparatus 600 may include a memory 601 and a processor 602 . Optionally, a communication interface 603 is also included. Memory 601, processor 602 and communication interface 603 are connected by one or more communication buses. The communication interface 603 is controlled by the processor 602 for sending and receiving information.

存储器601可以包括只读存储器和随机存取存储器,并向处理器602提供指令和数据。存储器601的一部分还可以包括非易失性随机存取存储器。Memory 601 may include read-only memory and random access memory, and provides instructions and data to processor 602 . A portion of memory 601 may also include non-volatile random access memory.

通信接口603用于接收或发送数据。The communication interface 603 is used to receive or transmit data.

处理器602可以是中央处理单元(central processing unit,CPU),该处理器602还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器,可选的,该处理器602也可以是任何常规的处理器等。其中:The processor 602 may be a central processing unit (CPU), and the processor 602 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs) ), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general-purpose processor can be a microprocessor, alternatively, the processor 602 can also be any conventional processor or the like. in:

存储器601,用于存储程序指令。The memory 601 is used to store program instructions.

处理器602,用于调用存储器601中存储的程序指令。The processor 602 is used for calling the program instructions stored in the memory 601 .

处理器602调用存储器601中存储的程序指令,使该直接通信装置600执行上述方法实施例中电子设备所执行的方法。The processor 602 invokes the program instructions stored in the memory 601 to cause the direct communication apparatus 600 to execute the method executed by the electronic device in the above method embodiments.

如图7所示,图7是本申请实施例提供的一种模组设备的结构示意图。该模组设备700可以执行前述方法实施例中电子设备的相关步骤,该模组设备700包括:通信模组701、电源模组702、存储模组703以及芯片704。As shown in FIG. 7 , FIG. 7 is a schematic structural diagram of a module device provided by an embodiment of the present application. The module device 700 can perform the steps related to the electronic device in the foregoing method embodiments, and the module device 700 includes: a communication module 701 , a power module 702 , a storage module 703 and a chip 704 .

其中,电源模组702用于为模组设备提供电能;存储模组703用于存储数据和指令;通信模组701用于进行模组设备内部通信,或者用于模组设备与外部设备进行通信;芯片704用于执行上述方法实施例中电子设备所执行的方法。Among them, the power module 702 is used to provide electrical energy for the module device; the storage module 703 is used to store data and instructions; the communication module 701 is used for internal communication of the module device, or for the module device to communicate with external devices ; The chip 704 is configured to execute the method executed by the electronic device in the above method embodiments.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在处理器上运行时,上述方法实施例的方法流程得以实现。Embodiments of the present application further provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a processor, the method flow of the foregoing method embodiment is implemented.

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在处理器上运行时,上述方法实施例的方法流程得以实现。The embodiments of the present application further provide a computer program product, when the computer program product runs on a processor, the method flow of the above method embodiments is realized.

关于上述实施例中描述的各个装置、产品包括的各个模块/单元,其可以是软件模块/单元,也可以是硬件模块/单元,或者也可以部分是软件模块/单元,部分是硬件模块/单元。例如,对于应用于或集成于芯片的各个装置、产品其包括的各个模块/单元可以都采用电路等硬件的方式实现,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片内部集成处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于芯片模组的各个装置、产品,其包括的各个模块/单元可以都采用电路等硬件的方式实现,不同模块/单元可以位于芯片模组的同一件(例如芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片模组内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于终端的各个装置、产品,其包括的模块/单元可以都采用电路等硬件的方式实现,不同的模块/单元可以位于终端内同一组件(例如,芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于终端内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现。Regarding each module/unit included in each device and product described in the above-mentioned embodiments, it may be a software module/unit, a hardware module/unit, or a part of a software module/unit and a part of a hardware module/unit . For example, for each device or product that is applied to or integrated in a chip, each module/unit included in the product may be implemented by hardware such as a circuit, or at least some modules/units may be implemented by a software program, and the software program runs Because the processor is integrated inside the chip, the remaining (if any) modules/units can be implemented by hardware such as circuits; for each device and product applied to or integrated in the chip module, each module/unit included can be implemented using It is realized by hardware such as circuits, and different modules/units can be located in the same piece of the chip module (such as chips, circuit modules, etc.) or in different components, or at least some modules/units can be realized by software programs. Running on the processor integrated inside the chip module, the remaining (if any) part of the modules/units can be implemented by hardware such as circuits; for each device and product applied to or integrated in the terminal, the modules/units included can be all of them. It is implemented by means of hardware such as circuits, and different modules/units may be located in the same component (eg, chip, circuit module, etc.) or in different components in the terminal, or at least some modules/units may be implemented by means of software programs. The program runs on the processor integrated inside the terminal, and the remaining (if any) part of the modules/units can be implemented by hardware such as circuits.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些操作可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain operations may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

本申请提供的各实施例的描述可以相互参照,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。为描述的方便和简洁,例如关于本申请实施例提供的各装置、设备的功能以及执行的操作可以参照本申请方法实施例的相关描述,各方法实施例之间、各装置实施例之间也可以互相参考、结合或引用。The descriptions of the embodiments provided in this application may refer to each other, and the descriptions of the various embodiments have their own emphasis. For the parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments. For the convenience and brevity of description, for example, regarding the functions and operations of each device and device provided in the embodiments of the present application, reference may be made to the related descriptions of the method embodiments of the present application, and also between the method embodiments and the device embodiments. There may be mutual reference, combination or reference.

最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. scope.

Claims (13)

1. A method of testing, the method comprising:
acquiring corresponding element information and attribute information in a test file, wherein the element information corresponds to a processing mode of an element, and the attribute information corresponds to a processing mode of an attribute;
testing a first tested code based on the element information and the element processing mode, the attribute information and the attribute processing mode to obtain a test result;
and outputting the test result.
2. The method according to claim 1, wherein the obtaining element information and attribute information corresponding to the test file comprises:
determining elements and attributes in the test file;
and preprocessing the element and the attribute to obtain the element information and the attribute information, wherein the data format of the element information and the data format of the attribute information are both preset formats.
3. The method according to claim 1 or 2, wherein testing the first code under test based on the element information and the processing manner of the element, and the attribute information and the processing manner of the attribute, and obtaining a test result comprises:
calling an external interface simulation module and/or a hardware simulation module to test a tested code based on the element information and the element processing mode and the attribute information and the attribute processing mode to obtain a test result;
the external interface simulation module is used for feeding back a preset output value corresponding to a second tested code when the first tested code calls the second tested code, the first tested code and the second tested code are codes of different modules forming the same system code, and the hardware simulation module is used for providing a hardware environment required by the tested code during testing.
4. The method according to any one of claims 1 to 3, further comprising:
comparing the test result with a preset expected result to determine a comparison result;
and outputting the comparison result.
5. The method according to any one of claims 1 to 4, further comprising:
calling a code covering module to monitor the execution condition of each code in the first tested code;
outputting a coverage report of the code under test, the coverage report indicating whether each code in the first code under test is executed.
6. The method according to any one of claims 1 to 5, wherein the format of the test file is an XML file format.
7. The method according to any one of claims 1 to 6, wherein testing the first code under test based on the element information and the processing mode of the element, and the attribute information and the processing mode of the attribute comprises:
and testing a first code to be tested based on the test code, the element information, the element processing mode and the attribute information, wherein the test code is used for providing a plurality of thread priority mechanisms required by the first code to be tested during testing.
8. The method according to any one of claims 1 to 7, wherein the first code under test corresponds to a control code, the control code is used for determining message data required by the first code under test and an interaction sequence corresponding to the message data, the test file includes the message data and the interaction sequence corresponding to the message data, and the message data is data transmitted in a communication system simulated by the first code under test;
testing a first code under test based on the element and the processing mode of the element, the attribute and the processing mode of the attribute, comprising:
and testing a first tested code based on the element information and the element processing mode, the attribute information and the attribute processing mode, and the message data and the interaction sequence corresponding to the message data.
9. A test apparatus, characterized in that the test apparatus comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring corresponding element information and attribute information in a test file, the element information corresponds to a processing mode of an element, and the attribute information corresponds to a processing mode of an attribute;
the test unit is used for testing a first tested code based on the element information, the element processing mode and the attribute information to obtain a test result;
and the output unit is used for outputting the test result.
10. A chip comprising a processor and a communication interface, the processor being configured to cause the chip to perform the method of any of claims 1 to 8.
11. The utility model provides a module equipment, its characterized in that, module equipment includes communication module, power module, storage module and chip, wherein:
the power supply module is used for providing electric energy for the module equipment;
the storage module is used for storing data and instructions;
the communication module is used for carrying out internal communication of module equipment or is used for carrying out communication between the module equipment and external equipment;
the chip is used for executing the method of any one of claims 1-8.
12. A test apparatus comprising a memory for storing a computer program comprising program instructions and a processor configured to invoke the program instructions to cause the test apparatus to perform the method of any one of claims 1 to 8.
13. A computer readable storage medium having computer readable instructions stored thereon which, when run on a test apparatus, cause the test apparatus to perform the method of any of claims 1-8.
CN202210109157.2A 2022-01-28 2022-01-28 Test method, test device, chip and module equipment Pending CN114510421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210109157.2A CN114510421A (en) 2022-01-28 2022-01-28 Test method, test device, chip and module equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210109157.2A CN114510421A (en) 2022-01-28 2022-01-28 Test method, test device, chip and module equipment

Publications (1)

Publication Number Publication Date
CN114510421A true CN114510421A (en) 2022-05-17

Family

ID=81551671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210109157.2A Pending CN114510421A (en) 2022-01-28 2022-01-28 Test method, test device, chip and module equipment

Country Status (1)

Country Link
CN (1) CN114510421A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037787A (en) * 2022-06-09 2022-09-09 上海禾骋科技有限公司 Method, system and device for testing automobile network communication
CN116719684A (en) * 2023-08-11 2023-09-08 中诚华隆计算机技术有限公司 3D packaged chip test system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704396A (en) * 2017-10-20 2018-02-16 平安科技(深圳)有限公司 The method of testing and device of application program
CN109284222A (en) * 2017-07-20 2019-01-29 阿里巴巴集团控股有限公司 Project testing method, device and equipment in software unit, data processing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284222A (en) * 2017-07-20 2019-01-29 阿里巴巴集团控股有限公司 Project testing method, device and equipment in software unit, data processing system
CN107704396A (en) * 2017-10-20 2018-02-16 平安科技(深圳)有限公司 The method of testing and device of application program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037787A (en) * 2022-06-09 2022-09-09 上海禾骋科技有限公司 Method, system and device for testing automobile network communication
CN116719684A (en) * 2023-08-11 2023-09-08 中诚华隆计算机技术有限公司 3D packaged chip test system
CN116719684B (en) * 2023-08-11 2023-10-20 中诚华隆计算机技术有限公司 3D packaged chip test system

Similar Documents

Publication Publication Date Title
CN113722020B (en) Interface calling method, device and computer readable storage medium
CN105335293B (en) A kind of automatization test system and method based on interface concurrent
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
CN112187558B (en) Data verification method and device and electronic equipment
CN113553257B (en) Test method, device, storage medium and electronic equipment
US20190034318A1 (en) Hardware-Software Co-Verification for Debugging Firmware on a Hardware Simulator
CN106776280A (en) Configurable performance test device
CN107688538B (en) Script execution method and device and computing equipment
US20130219226A1 (en) Distributed testing within a serial testing infrastructure
CN111352836A (en) A pressure test method and related device
CN112306887B (en) Program testing distribution method and its corresponding devices, equipment and media
CN112631919A (en) Comparison test method and device, computer equipment and storage medium
CN113204495A (en) Automatic testing method and device based on B/S architecture, storage medium and equipment
CN116107893A (en) Heterogeneous platform embedded software test verification system and method
CN114510421A (en) Test method, test device, chip and module equipment
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN112631937A (en) Automatic CAN operation testing method and device for T-Box
CN110806967A (en) Unit testing method and device
CN110134904B (en) A page inspection method, device, equipment and medium
CN109783295A (en) Test macro self-test method for producing software and device based on configuration
CN109739754A (en) Application automatic testing method and system based on WeChat development
CN116415665A (en) Conversion method and conversion device of end-side push model
CN113792522A (en) Simulation verification method, device and computing device
CN112988588A (en) Client software debugging method and device, storage medium and electronic equipment
CN112380118A (en) Unit testing method, unit testing device, medium and electronic equipment

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