Test methods, devices, equipment, and storage media

By adaptively modifying the configuration parameters of public test files and generating target test files, the problem of high development and maintenance costs of 5G Modem chip physical layer subsystem module test files is solved, achieving a more efficient test process and reducing maintenance difficulty.

CN113220580BActive Publication Date: 2024-10-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110541227.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-18
Publication Date
2024-10-25
Estimated Expiration
2041-05-18

AI Technical Summary

Technical Problem

In the physical layer subsystem module testing phase of 5G Modem chips, test file development costs are high and post-maintenance is difficult, especially due to the complexity of mixed multi-core communication protocol messages, which makes modification of the test code cumbersome.

Method used

By obtaining public test files and adaptively modifying their configuration parameters, target test files are generated for testing the current module under test and its associated modules, simplifying the testing process and reducing development and maintenance costs.

Benefits of technology

When multiple modules under test share test messages, only the configuration parameters in the public test file need to be adaptively modified, which significantly reduces the development cost and post-maintenance cost of the test file, and improves the work efficiency of testers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113220580B_ABST
    Figure CN113220580B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a test method and apparatus, a device, and a storage medium; wherein the method comprises: when a test message of a current module to be tested is the same as a test message of other modules to be tested, obtaining a common test file including the test message, wherein the common test file is used to test the current module to be tested or the other modules to be tested through the test message; modifying configuration parameters in the common test file to obtain a target test file; wherein the modified configuration parameters include information of associated modules to be started when testing the current module to be tested; and running the target test file to test the current module to be tested through the test message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to automated testing technology, including but not limited to testing methods and devices, equipment, and storage media. Background Art

[0002] The module test of the physical layer (PHY) mainly occurs in the early stage of the PHY development of the new radio (NR) of the fifth-generation mobile communication technology (5G), which is a unit test between modules. However, in the testing stage, there is a problem of high test file development cost. For example, the cell search and measurement (CSM) module of the physical layer subsystem (PHY SS) of the 5G Modem chip has 50 test cases, and writing the test code requires 2 man-months of work; and there is also the problem of difficult maintenance in the later stage. For example, the CSM module of the physical layer subsystem of the 5G Modem chip involves about 20 hybrid multi-core communication protocol (HMCC) messages, and the modification of a certain message requires the modification of about 10 related test code files. Summary of the invention

[0003] In view of this, the test method, device, equipment, and storage medium provided in the embodiments of the present application can improve and reduce the development cost and subsequent maintenance cost of the test file. The test method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:

[0004] The test method provided by the embodiment of the present application includes: when a test message of a current module to be tested is the same as a test message of other modules to be tested, obtaining a common test file including the test message, wherein the common test file is used to test the current module to be tested or the other modules to be tested through the test message; modifying configuration parameters in the common test file to obtain a target test file; wherein the modified configuration parameters include information of associated modules to be started when testing the current module to be tested; and running the target test file to test the current module to be tested through the test message.

[0005] The test device provided in the embodiment of the present application includes: an obtaining unit, which is used to obtain a common test file including the test message when the test message of the current module to be tested is the same as the test message of other modules to be tested, and the common test file is used to test the current module to be tested or the other modules to be tested through the test message; a modifying unit, which is used to modify the configuration parameters in the common test file to obtain a target test file; wherein the modified configuration parameters include information of associated modules that need to be started when testing the current module to be tested; and a running unit, which is used to run the target test file, so as to test the current module to be tested through the test message.

[0006] An electronic device provided in an embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.

[0007] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0008] In an embodiment of the present application, when a test message used by multiple different modules to be tested is the same, it is only necessary to adaptively modify the configuration parameters in the corresponding public test file to implement the test of the current module to be tested; in this way, on the one hand, the development cost of the test file can be reduced and the work efficiency of the testers can be improved; on the other hand, the subsequent maintenance cost is also greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0010] Figure 1 A schematic diagram of the implementation flow of the test method provided in the embodiment of the present application;

[0011] Figure 2 A comparative schematic diagram of Scheme 1 and Scheme 2 of the embodiment of the present application;

[0012] Figure 3 This is a schematic diagram of the operation process of the target test file of the embodiment of the present application;

[0013] Figure 4 Another schematic diagram of the operation process of the target test file of the embodiment of the present application;

[0014] Figure 5A schematic diagram of a flow chart of testing the Feedback Management and Beam Management (FBM) module in an embodiment of the present application;

[0015] Figure 6 This is a schematic diagram of the structure of the physical layer of the 5G communication chip of the terminal in the embodiment of the present application;

[0016] Figure 7 This is a schematic diagram of the workflow of the module testing framework of the embodiment of the present application;

[0017] Figure 8 Another schematic diagram of the workflow of the module testing framework of the embodiment of the present application;

[0018] Fig. 9 This is a schematic diagram of the structure of the test device of the embodiment of the present application;

[0019] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0022] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0023] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0024] The embodiment of the present application provides a test method, which is applied to an electronic device, which can be various devices with wireless communication functions during the implementation process, for example, the electronic device can include a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing devices connected to a wireless modem, and various forms of user terminal devices (Terminal Device, TD) or mobile stations (Mobile Station, MS), etc. The function implemented by the method can be implemented by calling program codes by a processor in the electronic device, and of course the program codes can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.

[0025] Figure 1 A schematic diagram of the implementation flow of the test method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the method may include the following steps 101 to 103:

[0026] Step 101, when a test message of a current module to be tested is the same as a test message of other modules to be tested, obtaining a public test file including the test message, wherein the public test file is used to test the current module to be tested or the other modules to be tested through the test message;

[0027] Step 102, modify the configuration parameters in the public test file to obtain a target test file; wherein the modified configuration parameters include information about associated modules that need to be started when testing the current module to be tested.

[0028] The so-called associated modules refer to other functional modules on the path that the test message needs to pass through to reach the current module to be tested. For example, assuming that the current module to be tested is module F, the test message needs to pass through module A, module B and module C to reach module F, that is, the forwarding path of the test message is module A->module B->module C->module F. Then, module A, module B and module C can be called associated modules of module F (i.e., the current module to be tested).

[0029] In some embodiments, the associated modules other than the current module to be tested can be started in the message simulator. The configuration parameters include not only the information of the associated modules to be started, but also the information of the current module to be tested to be started, that is, the configuration parameters specify which module to be tested to be started, and specify which associated modules to be started.

[0030] In some embodiments, the configuration parameters also include a processing reference for the test message (such as the expected receiving time and expected processing result of the current module to be tested). Of course, the configuration parameters can also include the expected receiving time and expected processing result of the test message in each associated module. The expected receiving time is used by the module to determine whether the time when the message is received meets expectations, and the expected processing result is used by the module to determine whether the received message meets expectations after being processed, thereby obtaining a test result.

[0031] Step 103: Run the target test file, thereby testing the current module to be tested through the test message.

[0032] In the following embodiment, the running process of the target test file is provided, which will not be repeated here.

[0033] In the embodiment of the present application, when a certain test message used by multiple different modules to be tested is the same, it is only necessary to adaptively modify the configuration parameters in the corresponding public test file to implement the test of the current module to be tested; in this way, on the one hand, the development cost of the test file can be reduced and the work efficiency of the tester can be improved; on the other hand, the subsequent maintenance cost is also greatly reduced. For example, to modify the above test message 1, it is only necessary to modify the corresponding public test file.

[0034] for example, Figure 2 As shown, Solution 1 is as follows: using test message 1 to test module A requires writing test file 1 separately, using test message 1 to test module B requires writing test file 2 separately, and using test message 1 to test module C requires writing test file 3 separately. That is to say, for common test messages, testing different modules requires writing corresponding test files separately, which greatly increases the workload of testers; while Solution 2 is as follows: using test message 1 to test module A, module B, or module C, all use common test files, that is to say, testers only need to write one test file. In actual testing, testers only need to adaptively modify the configuration parameters in the common test file to use it, thereby greatly reducing the development cost of testers; it can be seen that compared with Solution 1, Solution 2 can reduce the development cost of test files and improve the work efficiency of testers.

[0035] Furthermore, in some embodiments, the running process of the target test file is as follows: Figure 3 As shown, the process includes the following steps 301 to 303:

[0036] Step 301: start the current module to be tested and the associated module according to the modified configuration parameters.

[0037] The construction of the message state machine can be completed through step 301, and the message state machine includes the started current module to be tested and the associated module.

[0038] In the embodiment of the present application, the tester can flexibly modify the configuration parameters in the public test file according to the different test objects. For example, the module to be tested and its associated modules to be started are specified in the configuration parameters, thereby greatly improving the scalability of test development.

[0039] Step 302: Send the test message to the current module to be tested after being processed by the association module.

[0040] In some embodiments, the test message is obtained by parsing the test script in the public test file, and the message state machine is triggered to start running, that is, step 302 is implemented.

[0041] Furthermore, in some embodiments, after the test message is obtained by parsing the test script, the registration of the test message is triggered, the test message is registered in the message routing module, and the processing reference of the test message in each module (including the associated module and the current module to be tested) is forwarded to the corresponding module through the message routing module for registration; after the registration is successful, each module returns the registration test confirmation to the test control end in the public test file, and after receiving the registration confirmation of each module, the test control end sends a test start request to the message routing module. After receiving the test start request, the message routing module forwards the test message to the entry module of the message state machine (i.e., the first associated module on the message forwarding path), so that after the operation of the message state machine, the processed test message is finally sent to the current module to be tested.

[0042] Step 303: Obtain a test result of the current module to be tested according to the test message.

[0043] In the embodiments of the present application, there is no limitation on who determines the test results. In some embodiments, the test results can be determined by the current module to be tested, and whether the actual reception time of the test message after the current module to be tested is consistent with the expected reception time; if not, a test result indicating a test timeout is returned to the test control end in the target test file; if consistent, the received processed test message is processed, and the processing result is compared with the expected processing result, and if consistent, a test result indicating a correct test is returned to the test control end; if inconsistent, a test result indicating an error in the processing result is returned to the test control end.

[0044] In other embodiments, the test result can also be realized by the test control terminal in the target test file. When the current module to be tested receives the message transmitted by the previous module, it returns the actual receiving time to the test control terminal, and the test control terminal compares the actual receiving time with the expected time; and after processing the received message, the current module to be tested returns the processing result to the test control terminal, and the test control terminal compares the processing result with the expected processing result.

[0045] Furthermore, in some embodiments, the running process of the target test file, such as Figure 4 As shown, the process includes the following steps 401 to 405:

[0046] Step 401, starting the current module to be tested and the associated module according to the modified configuration parameters; wherein the configuration parameters also include a second processing reference of the current module to be tested;

[0047] Step 402, registering the test message in the message routing module; then, proceeding to step 403;

[0048] Step 403: After the registration is completed, the message routing module is controlled to process the test message through the association module and then send it to the current module to be tested.

[0049] In some embodiments, the modified configuration parameters also include: a first processing reference corresponding to each associated module, and the process also includes: registering the first processing reference corresponding to each associated module of the test message in the corresponding associated module; accordingly, step 403 can be implemented as follows: controlling the message routing module to send the test message to the first associated module, so that the first associated module processes the received test message to obtain a first processing result; if the actual receiving time of the test message is consistent with the expected receiving time in the first processing reference, and the first processing result is consistent with the expected processing result in the first processing reference, triggering the message routing module to forward the first processing result to the next associated module, until the second processing result obtained by the last associated module is sent to the current module to be tested.

[0050] On the contrary, if the actual receiving time of the test message is inconsistent with the expected receiving time in the first processing reference or the first processing result is inconsistent with the expected processing result in the first processing reference, the running target test file (such as the test control end) receives the first test result returned by the associated module; when the first test result indicates a test error, the current module to be tested and the associated module are closed, or the test control end controls the message routing module again to send the test message to the first associated module.

[0051] Step 404, registering the second processing reference in the current module to be tested;

[0052] Step 405: Receive the test result returned by the current module to be tested; wherein the test result is obtained by the current module to be tested according to the received second processing result and the second processing reference.

[0053] In some embodiments, the current module to be tested compares the actual receiving time of the second processing result with the expected receiving time in the second processing reference to see if they are consistent; if they are inconsistent, return a test result representing a test timeout to the target test file; if they are consistent, process the second processing result to obtain a third processing result, and the current module to be tested compares the third processing result with the expected processing result in the second processing reference to see if they are consistent; if they are consistent, return a correct test result to the target test file; if they are inconsistent, return a test result with an incorrect processing result to the target test file.

[0054] In some embodiments, the module currently under test is a functional module of a physical layer of a terminal of a wireless communication system.

[0055] In the embodiments of the present application, there is no limitation on the type of wireless communication system. For example, the wireless communication system may be a fourth generation mobile communication system (4G), a 5G NR system or a future communication system, or may be various other wireless communication systems, such as: a narrowband Internet of Things (NB-IoT) system, a global system of mobile communication (GSM), an enhanced data rate for GSM evolution (EDGE) system, a wideband code division multiple access (WCDMA) system, a code division multiple access 2000 (CDMA2000) system, a time division-synchronization code division multiple access (TD-SCDMA) system, a general packet radio service (GPRS), a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, a universal mobile telecommunication system (Universal Mobile Telecommunication) system, a 5G NR system or a future communication system, or may be other various ... System, UMTS) etc.

[0056] It can be understood that the public test files provided in the embodiments of the present application can be applied to the development and testing process of the 5G chip Modem physical layer. For other modules of the 5G chip, such as those with high requirements for message real-time performance, numerous module collaborative working scenarios, diverse types of signal control messages, and numerous configuration combinations, this technical solution can be used to develop and test module test cases for the product.

[0057] In some embodiments, the module test of PHY mainly occurs in the early stage of NR PHY development, which is a unit test between modules. When the development progress of each module of the PHY subsystem is inconsistent, it is necessary to test certain specified modules, such as the CSM module. The module test cases written in C language need to pile the control messages of other modules such as FBM and other modules that interact with the CSM module (that is, implemented through the unit test interface) to ensure that the control messages can go to the next module until the test is completed. For example, Figure 5 As shown, when starting to test the FBM module, Layer1 sends a test message messageA to L1C; L1C determines the test result (success or failure) based on messageA and feeds it back to the upper layer, and L1C sends a test message messageB to the FBM module; the FBM module determines the test result (success or failure) based on messageA and feeds it back to the upper layer, and the FBM module sends a test message messageC to the CSM module, and the CSM module determines the test result based on messageC and returns it to the test code; the test code stubs the return result of messageC and then returns the test result.

[0058] For some module testing solutions, the test case development cost is high. It is necessary to understand the interface details of the components involved in the business process of the PHY subsystem, and different test cases will repeatedly write many common signal control processes. In addition, the subsequent maintenance of test cases is difficult. The modification of the data carrier (payload) corresponding to a common signal control message code (such as request message request and confirmation message confirm) requires the modification of multiple related test case codes.

[0059] Based on this, an exemplary application of an embodiment of the present application in a practical application scenario will be described below.

[0060] The physical layer system of 5G communication chips (such as Modems) is based on a componentized architecture, and these components are controlled based on a HMCC message. Figure 6As shown, the physical layer of the 5G communication chip of the terminal mainly includes the following components: Radio Resource Control (RRC) module 601, Media Access Control (MAC) module 602, PHY Controller HL1C module 603, PHY Controller LL1C module 604, RRP module 605, Shared Channel Decoder (SCHDEC) module 606, Control Channel Decoder (CCHDEC) module 607, Demodulation (DMD) module 608, CSM module 609, FBM module 610, Transmitter (TX) module 611 and PHY Controller HL1C module 612; wherein,

[0061] Modules 603 and 604 are the physical control layer (PHY Controller): located between Layer 1 and PHY SS, providing an interface for them to communicate, controlling the user equipment (UE) and performing cell configuration, thereby controlling other components (i.e. other modules) to perform various signal controls. There are two different types of control types:

[0062] (1) Module 603, as the upper layer of the physical control layer, focuses on the services and processes related to the control layer;

[0063] (2) Module 604, as the lower layer of the physical control layer, performs various scheduling and configuration delivery of the PHY SS.

[0064] It should be noted that the modules 601 and 602 serve as Layer 1, and the modules 606 to 611 serve as PHY SS.

[0065] PHY SS: configures various control signals for the messages of the physical control layer. These control signals are forwarded and processed in different components (ie, modules 606 to 611).

[0066] CSM module 609: responsible for searching and measuring cells of the LTE PSS / SSS layer and the NR SSB layer.

[0067] FBM module 610: performs CSI feedback and beam management.

[0068] TX module 611: responsible for all uplink data transmission behaviors.

[0069] DEC: Decoder, including two separate modules, namely SCHDEC module 606 and CCHDEC module 607, where:

[0070] CCHDEC module 607: focuses on the decoding work of the control channel.

[0071] SCHDEC module 606: focuses on decoding of downlink data channels.

[0072] DMD module 606: responsible for downlink channel evaluation, downlink control and data layer decoupling.

[0073] Compared with 4G LTE, from the perspective of the physical layer on the UE side, 5G NR has more flexible configurations between components, and the control signals between components are more diverse and complex. Of course, it has higher requirements for the timing and delay of various signals.

[0074] In the embodiment of the present application, a module test framework is introduced, that is, a public test file, such as Figure 7 As shown, it is mainly divided into three parts: test script, test control end and module test end; among them,

[0075] Test script: written in C-like language format, parsed by the script parser and registers test messages;

[0076] Test commander: responsible for controlling the internal message control flow of the test framework and for activating and terminating the message state machine;

[0077] Module test end (target module): Use the message state machine to simulate the relevant module messages in the test process, and dynamically stub the messages between modules to ensure the integrity of the test message process, and return the module test results to the test control end (Test commander). The test results are test success or test failure (including data carriers that carry failures or test timeouts).

[0078] like Figure 8 As shown, the working process of the module test framework is as follows, including steps 801 to 805:

[0079] Step 801, after the module test framework is started, other related modules except the current module to be tested are dynamically started in the message simulator according to the configuration parameters, and wait for the external message to trigger the message state machine;

[0080] Step 802, the test script acts as a trigger point for the test, and sends a sending message (i.e., a test message) and a receiving message (i.e., a processing reference) to the message routing module. The message routing module forwards the received message to other associated modules that are started. These modules register the message, and after successful registration, they send a registration test confirmation back to the test control terminal (Testcommander);

[0081] Step 803, after the test control end receives the registration test confirmation from all modules, it starts to send a test start request to the message routing module. At the module test end, each module simulation thread activates the hardware time interrupter (simulation mode), regularly checks the send message queue at regular intervals, and sends the send message to the specified target module through the message routing module, and deletes the send message queue node at the same time. Each module simulation thread checks whether the expected time of each message node in the message receiving queue is consistent with the current time, otherwise a test timeout error is sent to the test control end (Test commander). If both the send and receive message queues are empty, the message test ends and is sent to the test control end (Test commander);

[0082] Step 804, each module simulation thread receives the message forwarded by the message routing module, checks whether the expected time of each message node in the receiving class message queue is consistent with the current time, if not, sends a test timeout error to the test control end; and checks whether the node message content (i.e., the expected content) is consistent with the currently received message content; if not, returns a test result indicating a message content error to the test control end; if the expected time of the message node is consistent with the current time, and the node message content is consistent with the currently received message content, then enters the module processor and forwards the received message (i.e., the currently received message content) for the next time; and deletes the message node from the queue.

[0083] Step 805: If the message in step 804 enters the module processor, message forwarding for interaction with other modules is performed, for example, CSM forwards the message to FBM to drive the message processing flow of the FBM module.

[0084] In the embodiment of the present application, the use of the module test framework can simplify the writing of test cases and greatly improve the work efficiency of testers. For example, the CSM module of PHY SS has 50 test cases. Using the relevant technical solution to write the test code requires 2 man-months of work. With the support of the technical solution of the embodiment of the present application, the development cycle is reduced to about 0.7 man-months;

[0085] In addition, the subsequent maintenance cost is greatly reduced. For example, the CSM of PHY SS involves about 20 HMCC messages. In the original solution, the modification of a certain message requires the modification of about 10 related test code files. When using the new solution, after the module simulator associated with the modified message is adapted, only one test code file referenced by the message needs to be modified.

[0086] In the embodiment of the present application, a module testing framework is introduced to encapsulate the common message mechanism of inter-module testing into a unified framework to improve the reuse of test steps; a message state machine mechanism is used to improve the flexibility and automation of test case development; and other modules to be tested are automatically and dynamically piled according to different test objects, greatly improving the scalability of test development.

[0087] The technical solution of the embodiment of the present application can be applied to the development and testing process of the physical layer of a 5G chip (such as a modem). For other modules of the 5G chip, such as those with high requirements for message real-time performance, numerous module collaborative working scenarios, diverse types of signal control messages, and numerous configuration combinations, the technical solution can be used to develop and test module test cases for the product.

[0088] Based on the foregoing embodiments, an embodiment of the present application provides a testing device, which includes the various units included and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0089] Fig. 9 Schematic diagram of the structure of the test device of the present application embodiment. Fig. 9 As shown, the device 90 includes an obtaining unit 901, a modifying unit 902 and an operating unit 903, wherein:

[0090] An obtaining unit 901 is used to obtain a public test file including the test message when the test message of the current module to be tested is the same as the test message of other modules to be tested, wherein the public test file is used to test the current module to be tested or the other modules to be tested through the test message;

[0091] A modification unit 902 is used to modify the configuration parameters in the common test file to obtain a target test file; wherein the modified configuration parameters include information of associated modules that need to be started when testing the current module to be tested;

[0092] The running unit 903 is used to run the target test file, so as to test the current module to be tested through the test message.

[0093] In some embodiments, the running unit 903 includes a starting subunit, a sending subunit and an obtaining subunit; wherein the starting subunit is used to: start the current module to be tested and the associated module according to the modified configuration parameters; the sending subunit is used to send the test message to the current module to be tested after being processed by the associated module; the obtaining subunit is used to obtain the test result of the current module to be tested according to the test message.

[0094] In some embodiments, the sending subunit is used to: register the test message in the message routing module; and after the registration is completed, control the message routing module to send the test message to the current module to be tested after being processed by the association module.

[0095] In some embodiments, the modified configuration parameters also include: a first processing reference corresponding to each associated module, and the sending subunit is further used to: register the first processing reference corresponding to each associated module of the test message in the corresponding associated module; control the message routing module to send the test message to the first associated module, so that the first associated module processes the received test message to obtain a first processing result; if the actual receiving time of the test message is consistent with the expected receiving time in the first processing reference, and the first processing result is consistent with the expected processing result in the first processing reference, trigger the message routing module to forward the first processing result to the next associated module, until the second processing result obtained by the last associated module is sent to the current module to be tested.

[0096] In some embodiments, the sending subunit is further used to: receive a first test result returned by the associated module; and shut down the current module to be tested and the associated module when the first test result indicates a test error.

[0097] In some embodiments, the modified configuration parameters also include a second processing reference corresponding to the current module to be tested, and the obtaining subunit is used to: register the second processing reference in the current module to be tested; receive the test result returned by the current module to be tested; wherein the test result is obtained by the current module to be tested based on the received second processing result and the second processing reference.

[0098] In some embodiments, the module currently under test is a functional module of the physical layer of a terminal of a wireless communication system; wherein the wireless communication system includes 5G NR.

[0099] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0100] It should be noted that in the embodiments of this application Fig. 9 The division of units in the test device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units. It may also be implemented in the form of a combination of software and hardware.

[0101] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software functional unit and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0102] An embodiment of the present application provides an electronic device, Fig.10 Schematic diagram of the hardware entity of the electronic device of the embodiment of the present application, such as Fig.10 As shown, the electronic device 100 includes a memory 1001 and a processor 1002, wherein the memory 1001 stores a computer program that can be run on the processor 1002, and the processor 1002 implements the steps in the method provided in the above embodiment when executing the program.

[0103] It should be noted that the memory 1001 is configured to store instructions and applications executable by the processor 1002, and can also cache data to be processed or already processed by the processor 1002 and each unit in the electronic device 100 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0104] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0105] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0106] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0107] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0108] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0109] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0110] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0111] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0112] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0113] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0114] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional unit and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0115] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0116] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0117] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0118] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A testing method, It is characterized in that The method comprises: In the case where the test message of the current module to be tested is the same as the test message of other modules to be tested, obtaining a public test file including the test message, wherein the public test file is used to test the current module to be tested or the other modules to be tested through the test message; According to the current module to be tested, modify the configuration parameters in the public test file to obtain a target test file; wherein the modified configuration parameters include information of associated modules to be started when testing the current module to be tested and information of the current module to be tested; the associated modules refer to other functional modules on the path through which the test message reaches the current module to be tested; The target test file is run, thereby testing the current module to be tested through the test message.

2. The method according to claim 1, It is characterized in that The running process of the target test file includes: According to the modified configuration parameters, starting the current module to be tested and the associated module; Sending the test message to the current module to be tested after being processed by the association module; Obtaining a test result of the current module to be tested according to the test message.

3. The method according to claim 2, It is characterized in that The step of sending the test message to the current module to be tested after being processed by the association module includes: Registering the test message in a message routing module; and After the registration is completed, the message routing module is controlled to process the test message through the association module and then send it to the current module to be tested.

4. The method according to claim 3, It is characterized in that The modified configuration parameters also include: first processing references corresponding to each associated module, and the running process of the target test file also includes: registering the first processing references corresponding to each associated module of the test message in the corresponding associated module; accordingly, The controlling the message routing module to send the test message to the current module to be tested after being processed by the association module includes: Control the message routing module to send the test message to the first association module, so that the first association module processes the received test message to obtain a first processing result; if the actual receiving time of the test message is consistent with the expected receiving time in the first processing reference, and the first processing result is consistent with the expected processing result in the first processing reference, trigger the message routing module to forward the first processing result to the next association module, until the second processing result obtained by the last association module is sent to the current module to be tested.

5. The method according to claim 4, It is characterized in that The method further comprises: Receiving a first test result returned by the association module; When the first test result indicates a test error, the current module to be tested and the associated module are turned off.

6. The method according to any one of claims 2 to 5, It is characterized in that The modified configuration parameter also includes a second processing reference corresponding to the current module to be tested, and obtaining a test result of the current module to be tested according to the test message includes: Registering the second processing reference in the current module to be tested; A test result returned by the current module to be tested is received; wherein the test result is obtained by the current module to be tested according to the received second processing result and the second processing reference.

7. The method according to claim 1, It is characterized in that The current module to be tested is a functional module of the physical layer of a terminal of a wireless communication system; wherein the wireless communication system includes a 5G new air interface NR.

8. A testing device, It is characterized in that include: an obtaining unit, configured to obtain, when a test message of a current module to be tested is the same as a test message of other modules to be tested, a public test file including the test message, wherein the public test file is used to test the current module to be tested or the other modules to be tested through the test message; A modification unit, configured to modify the configuration parameters in the common test file according to the current module to be tested, so as to obtain a target test file; wherein the modified configuration parameters include information of associated modules to be started when testing the current module to be tested and information of the current module to be tested; the associated modules refer to other functional modules on the path through which the test message reaches the current module to be tested; The running unit is used to run the target test file, so as to test the current module to be tested through the test message.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.