Test method, device, test equipment, tested equipment, system and storage medium

By generating and transmitting interface update data in the device under test, the test interface is dynamically updated, which solves the problem in the existing technology that interface developers need to repeatedly modify the interface, and improves test efficiency and adaptability.

CN113961471BActive Publication Date: 2024-09-06SHANGHAI XIRI ELECTRONIC TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111292094.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-03
Publication Date
2024-09-06
Estimated Expiration
2041-11-03

AI Technical Summary

Technical Problem

The existing test interface was developed in one go and could not adapt to new test requirements, causing interface developers to re-modify the interface, which resulted in a heavy workload and reduced test efficiency.

Method used

By generating interface update data on the device under test and transmitting it to the test device, the test interface is updated to adapt to new test requirements, avoiding the heavy workload of re-modifying the interface and improving test efficiency.

Benefits of technology

It realizes dynamic updating of the test interface, reduces the bottleneck of test efficiency, and improves adaptability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113961471B
    Figure CN113961471B
Patent Text Reader

Abstract

The present invention provides a test method, device, test equipment, device under test, system and storage medium, the method comprising: obtaining interface update data, wherein the interface update data is generated by the device under test based on updated test requirements; updating the test interface according to the interface update data; the updated test interface includes the test requirements; and testing the device under test based on the updated test interface. Different from the one-time developed test interface in the prior art, before executing the test, the embodiment of the present invention can generate interface update data based on the newly added test requirements by the device under test, and transmit it to the test equipment, so that the test equipment updates the test interface, thereby avoiding the problem of large workload of re-modifying the interface and reducing the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to a testing method, an apparatus, a testing device, a tested device, a system and a storage medium. Background Art

[0002] Automated testing has become an indispensable part of the software development and hardware debugging process. Currently, there is a common way to perform automated testing through the interface; interface automated testing relies on interface controls and drives the interface controls to perform the same operations as manual testing.

[0003] However, the existing test interface is a one-time developed interface. Once the interface is generated, it cannot be changed and has poor adaptability. If there are new test requirements, the interface developers need to modify the interface again, which is a lot of work and reduces the test efficiency. Summary of the invention

[0004] One of the purposes of the present invention is to provide a testing method, an apparatus, a testing device, a device under test, a system and a storage medium, which can solve the above-mentioned technical problems.

[0005] The embodiments of the present invention can be implemented as follows:

[0006] In a first aspect, the present invention provides a testing method, which is applied to a testing device, wherein the testing device is communicatively connected to any one device under test; the method comprises: obtaining interface update data, wherein the interface update data is generated by the device under test based on updated test requirements; updating a test interface according to the interface update data; the updated test interface includes the test requirements; and testing the device under test based on the updated test interface.

[0007] In a second aspect, the present invention provides a testing method, which is applied to a device under test, and the device under test is communicatively connected to a testing device; the method comprises: generating interface update data based on updated test requirements; sending the interface update data to the testing device so that the testing device updates the test interface; the updated test interface includes the test requirements and is used to test the device under test.

[0008] In a third aspect, the present invention provides a testing device, which is communicatively connected to any device under test, and includes a transmission module, an interface processing module and a processing module; the transmission module is used to obtain interface update data, wherein the interface update data is generated by the device under test based on updated test requirements; the interface processing module is used to update the test interface according to the interface update data; the updated test interface includes the test requirements; the processing module is used to test the device under test based on the updated test interface.

[0009] In a fourth aspect, the present invention provides a device under test, which is communicatively connected to a test device, and the device under test includes: a processing module and a transmission module; the processing module is used to generate interface update data based on updated test requirements; the transmission module is used to send the interface update data to the test device, so that the test device updates the test interface; the updated test interface is used to test the device under test.

[0010] In a fifth aspect, the present invention provides a testing system, comprising a testing device and a device under test, wherein the testing device is communicatively connected to the device under test; the device under test is used to generate interface update data based on updated test requirements; and send the interface update data to the testing device; the testing device is used to update a test interface according to the interface update data; and the device under test is tested based on the updated test interface.

[0011] In a sixth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the test method as described in the first aspect or the test method as described in the second aspect is implemented.

[0012] The present invention provides a test method, device, test equipment, device under test, system and storage medium, the method comprising: obtaining interface update data, wherein the interface update data is generated by the device under test based on updated test requirements; updating the test interface according to the interface update data; the updated test interface includes the test requirements; and testing the device under test based on the updated test interface. Different from the one-time developed test interface in the prior art, before executing the test, the embodiment of the present invention can generate interface update data based on the newly added test requirements by the device under test, and transmit it to the test equipment, so that the test equipment updates the test interface, thereby avoiding the problem of large workload of re-modifying the interface and reducing the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0014] Figure 1 This is a system architecture diagram for automated testing;

[0015] Figure 2 An architectural diagram of a test system provided by an embodiment of the present invention;

[0016] Figure 3 An architectural diagram of another test system provided by an embodiment of the present invention;

[0017] Figure 4 A functional module diagram of a test device provided by an embodiment of the present invention;

[0018] Figure 5 A functional module diagram of a device under test provided by an embodiment of the present invention;

[0019] Figure 6 One of the schematic flow charts of a testing method provided by an embodiment of the present invention;

[0020] Figure 7 A schematic flow chart of an implementation method of step S405 provided in an embodiment of the present invention;

[0021] Figure 8 A schematic diagram of a test interface provided by an embodiment of the present invention;

[0022] Fig. 9 A second schematic flow chart of a testing method provided in an embodiment of the present invention;

[0023] Fig.10 A signaling interaction diagram of a test method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0025] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0027] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, they are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the invention is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0028] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0029] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.

[0030] The following is an explanation of the terms and nouns involved in the embodiments of the present invention:

[0031] Plan 9 file system (9P file system for short) protocol: refers to a file access protocol. The embodiment of the present invention implements directory sharing between the test device and the device under test by adopting the 9P file access protocol. The test device and the device under test exchange data in the 9P message format.

[0032] Test equipment: equipment installed with automated test programs, which can test any hardware or software on the device under test according to the generated test interface. In this embodiment, the core of the test equipment is the 9P client program, which is mainly based on the 9P open source code and communicates with the 9P server application on the device under test to synchronously operate the file system and generate or update the test interface.

[0033] Device under test: refers to the device under test, which has a 9P file system. The core of the device under test in this implementation is the 9P server application and its file system. The 9P server program uses open source code to implement data parsing in the 9P protocol format and management of the file system.

[0034] Configuration file: mainly based on the 9P server program to generate files for the device under test. The configuration file contains XML type files. Each XML tag item corresponds to a directory or file in the 9P file system. The tag item describes the corresponding attributes of the file or directory in detail. In the configuration file, the description of the 9P file system in the form of tags and their attributes ensures that the debugging software can flexibly control the device under test.

[0035] At present, automated testing has become an indispensable part of the software development and hardware debugging process. Interface automated testing relies on interface controls and performs the same operations as manual testing by driving interface controls.

[0036] See also Figure 1 , Figure 1 This is a system architecture diagram of an automated test. The existing test system includes a test device and a device under test, and the test device and the device under test are in communication connection. The device under test has multiple modules to be tested, which can be hardware or software, and are not limited here.

[0037] The test equipment is used to debug, test and detect the device under test. It can generate a test interface. The user can perform corresponding operations on the test interface to complete the test of the device under test. The test results can also be displayed on the test interface for the user to view.

[0038] The devices under test may include: desktop computers, laptops, smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptops, car computers, etc.

[0039] Exemplarily, the device under test may be connected to the testing device, and after the testing device starts the testing program, the module to be tested on the device under test may be tested.

[0040] For example, if the device under test is a speaker, the modules to be tested may include one of the following or a combination thereof: RF, speakers, memory cards, buttons, etc. on the speaker.

[0041] Understandably, Figure 1 The structure shown is only for illustration and may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0042] Continue with Figure 1 Taking the system architecture shown in the figure as an example, the existing test implementation process is: after the test device generates the test interface, if a test command is received, the local test program is started to test the device under test. If the test results need to be displayed, the test data is read out and displayed through the display module. However, the existing test interface is a one-time developed interface. Once the interface is generated, it cannot be changed and has poor adaptability. If there is a new test requirement, the interface developer needs to modify the interface again, which is a large workload and reduces the test efficiency.

[0043] In order to solve the above technical problems, the embodiment of the present invention improves the existing test equipment and the device under test, and proposes an improved test system. It should be noted that in order to make the test system provided by the implementation of the present invention more adaptable, the 9P file system access protocol is adopted in the test system, so that file sharing between the test equipment and the device under test can be realized, and the generation and update of the test interface and the testing of the device under test can be completed.

[0044] It is understandable that the reason why the present implementation adopts the 9P file system access protocol is that in the process of hardware debugging or monitoring, the prior art will modify the test interface every time due to new test requirements, and any change needs to be made on the test device side, causing cumbersome workload for interface developers. The present invention creatively maintains interface update data on the tested device and writes the data into the configuration file in the 9P file format. In this way, once there is a new test requirement, the test device can access the configuration file on the tested device through the 9P file system access protocol, thereby obtaining updated data to update the interface, greatly improving the test efficiency and adaptability.

[0045] In combination with the above content, the architecture diagram of an improved test system provided by an embodiment of the present invention is shown in FIG2. Figure 2 The test system 200 includes a test device 210 and a device under test 220, and the test device 210 and the device under test 220 are in communication connection, wherein: Figure 2 The device under test 220 includes at least one module to be tested, and the configuration file maintained in the device under test 220 is also omitted.

[0046] The device under test 220 is used to generate interface update data based on the updated test requirements; and send the interface update data to the test device 210 .

[0047] The test device 210 is used to update the test interface according to the interface update data; and test the device under test based on the updated test interface.

[0048] It can be seen that, unlike the one-time developed test interface in the prior art, in the embodiment of the present invention, before executing the test, the device under test can generate interface update data based on the newly added test requirements and transmit it to the test device so that the test device can update the test interface, thereby avoiding the problem of large workload of re-modifying the interface and reducing the test efficiency.

[0049] Specifically, to achieve the effect of updating the test interface, see Figure 3 , Figure 3 A functional module diagram of a test device provided in an embodiment of the present invention, the test device 210 may include:

[0050] The first transmission module 211 is used to obtain interface update data, wherein the interface update data is generated by the device under test based on updated test requirements.

[0051] The interface generation module 212 is used to update the test interface according to the interface update data.

[0052] Among them, the updated test interface includes test requirements.

[0053] The first processing module 213 is used to test the device under test based on the updated test interface.

[0054] Correspondingly, to achieve the effect of updating the test interface, see Figure 4 , Figure 4 A functional module diagram of a device under test provided by an embodiment of the present invention, the device under test 220 may include:

[0055] The second processing module 222 is used to generate interface update data based on the updated test requirements.

[0056] In this embodiment, the second processing module 222 can generate interface update data based on a preset configuration file. For example, when a newly added memory card in the speaker needs to be tested, the file information of the memory card can be configured in the configuration file, and then the second processing module 222 generates interface update data according to the updated configuration file.

[0057] The second transmission module 221 is used to send the interface update data to the test device so that the test device updates the test interface.

[0058] It can be understood that the updated test interface is used to test the device under test.

[0059] In some possible implementations, the first transmission module 211 and the second transmission module 211 may be connected to each other via a USB data cable, the communication method may use the Remote Network Driver Interface Protocol (RNDIS for short) as the transmission layer, and the data format may use the 9P format.

[0060] After updating the interface, in order to realize file sharing between the test device and the device under test and to realize the test of the device under test, this embodiment can update the interface and test the device under test based on the 9P file access protocol. Figure 2 The system architecture shown in FIG. 1 is a schematic diagram of a system structure of a plurality of different embodiments of the present invention. The embodiment of the present invention also provides another implementation method. Figure 5 , Figure 5 A structural diagram of another possible implementation of the test system provided in an embodiment of the present invention.

[0061] Among them, for the test device 210, it can also include an interface display module 214, wherein the first processing module 213 can also include: a first 9P file mapping management unit 2131 and a first data processing unit 2132. Similarly, for the device under test 220, it can also include a test module 223, and its second processing module 222 can also include: a second 9P file mapping management unit 2221 and a second data processing unit 2222.

[0062] The second 9P file mapping management unit 2221 is used to generate interface update data based on the updated test requirements.

[0063] The second transmission module 221 is used to send the interface update data to the first transmission module 211 of the test device, so that the first transmission module 211 transmits the interface update data to the first 9P file mapping management unit 2131 .

[0064] The first 9P file mapping management unit 2131 is used to generate corresponding file data according to the interface update data.

[0065] The first data processing unit 2132 is used to update the interface information according to the file data, and send the updated data to the interface generation module 212, so that the interface generation module 212 generates an updated test interface.

[0066] Furthermore, based on the updated test interface, in order to implement the test of the device under test 220, a possible implementation is given below:

[0067] The interface display module 214 is used to receive the operation instruction data displayed by the user;

[0068] The first data processing unit 2132, the user parses the operation instruction data to obtain the corresponding test parameters;

[0069] The first 9P file mapping management unit 2131 is used to generate corresponding file data according to the test parameters, and convert the file data into a 9P message format to pass it to the first transmission module 211.

[0070] The second transmission module 221 is used to transmit the file data in the 9P message format transmitted by the first transmission module 211 to the second 9P file mapping management unit 2221 .

[0071] The second 9P file mapping management unit 2221 is used to convert file data in 9P message format.

[0072] The second data processing unit 2222 obtains the converted data and obtains the corresponding test parameters;

[0073] The test module 223 is used to call the corresponding test program according to the test parameters to implement the test function.

[0074] It can be understood that the above-mentioned first 9P file mapping management unit 2131 can obtain relevant data of the configuration file transmitted from the device under test 220, map it into file data, and parse and pass the data to a data format that can be processed by the interface generation module 212 to enable it to generate or update the test interface.

[0075] Through the test system provided above, not only can the purpose of updating the test interface be achieved, but also the purpose of testing the device under test can be achieved based on the test interface. Among them, the data in the 9P file format is used to update the interface and test the device under test, which is easier to manage and convenient for non-professionals to operate.

[0076] It should be noted that the above-mentioned second 9P file mapping management unit can also obtain the characteristic data of the module to be tested from the device under test 220, and transmit it to the test device 210 through the second transmission module 221, so that the test device 210 can test the device under test 220 in combination with the characteristic data, which is conducive to improving the accuracy of the test.

[0077] The following will be combined Figure 2 , Figure 5 The system architecture diagram is shown, and the testing method provided by the embodiment of the present invention to solve the above technical problems is introduced below.

[0078] First, a test method provided by an embodiment of the present invention can be applied to Figure 2 See the test equipment in Figure 6 , Figure 6One of the schematic flow charts of the testing method provided in the embodiment of the present invention, the method comprises:

[0079] S601, obtaining interface update data.

[0080] Among them, the interface update data is generated by the device under test based on the updated test requirements.

[0081] The test requirements involved in this embodiment can be understood as adding or deleting a module to be tested (hereinafter referred to as a test point) in the device under test, for example, adding a speaker to the speaker box or deleting a memory card.

[0082] It can be understood that according to the configuration file mentioned above, when the device under test has updated test requirements, the test requirements can be written into the configuration file to generate interface update data, and the device under test can transmit the interface data to the test device to complete the interface update.

[0083] S602, updating the test interface according to the interface update data; the updated test interface includes the test requirements.

[0084] It is understandable that if the interface update data includes a new test requirement, the updated interface will have interface information corresponding to the new test requirement. For example, if a speaker is added to the sound box, the updated test interface will have interface information corresponding to the speaker.

[0085] S603, testing the device under test based on the updated test interface.

[0086] The testing method provided by the embodiment of the present invention is different from the one-time test interface developed in the prior art. Before executing the test, the embodiment of the present invention can enable the device under test to generate interface update data based on the newly added test requirements and transmit it to the testing device so that the testing device updates the test interface, thereby avoiding the problem of large workload of re-modifying the interface and reducing the test efficiency.

[0087] Optionally, an implementation method for testing the device under test is given below, see Figure 7 , Figure 7 A schematic flowchart of an implementation method of step S603 provided in an embodiment of the present invention, wherein step S603 may include:

[0088] S603-1, on the updated test interface, in response to a trigger instruction for the identifier of any module to be tested, generate a sub-interface corresponding to the module to be tested.

[0089] S603-2, responding to a trigger instruction of any control on the sub-interface, and determining a test parameter corresponding to the control.

[0090] In this implementation, the control corresponds to the executable function entry in the configuration file corresponding to the module under test. The above content introduces that the configuration file maintained in the device under test contains the file data corresponding to each module under test, and the specific description is saved in the XML type file, which stipulates that the test item is an Action type element, which can contain Argument, Enum, Info, String, Range and other type elements. Each XML tag item corresponds to a file, and the tag item describes in detail the corresponding attributes of the file or directory. In the configuration file, the description of the 9P file system in the form of tags and their attributes ensures that the debugging software can flexibly and configurably control the device under test.

[0091] For example, test parameters can be "set", "get", or "exec", which are standard entries for executable functions. They can be associated with the interface controls described by the label item. Specifically, "set" is mapped to the control value modification action. For example, the selection action of the drop-down list control will trigger the "set" function of the corresponding file of the device under test, and then execute the parameter modification and setting action; "get" is mapped to the execution action of reading the parameter control from the device under test; "exec" is mapped to the click action of the button control, which is usually used to trigger the device under test to execute a series of debugging programs.

[0092] S603-3, transmitting the test parameters to the device under test, so that the device under test calls the test program corresponding to the test parameters to test the module under test.

[0093] It can be understood that since the test parameter corresponding to the control is the standard entry of the executable function, after obtaining the test parameter, the test program corresponding to the test parameter can be called to realize the test function of the module to be tested.

[0094] To understand the above test process, please refer to Figure 8 , Figure 8 A schematic diagram of a test interface provided by an embodiment of the present invention.

[0095] Assuming that a speaker newly adds test requirements for "RF", "audio" and "button", the corresponding labels of "RF", "audio" and "button" can be displayed on the updated test interface, and the user can click any label to start the test. For example, click the label corresponding to "button" to display the sub-interface corresponding to "button". It can be seen that there are controls, input boxes and other triggerable labels on the sub-interface. When the user triggers any control, the test device can send the test parameters corresponding to the control to the device under test to implement the test of the device under test.

[0096] Optionally, it can be known from the above content that the device under test manages the file data of the module under test through the maintained configuration file. Therefore, in order to generate a test interface corresponding to the device under test, before obtaining the interface update data, the method includes:

[0097] Step 1: Establish a connection with the device under test and obtain file data.

[0098] The file data is generated by the device under test according to a preset configuration file, and the configuration file contains the test parameters corresponding to all modules under test on the device under test.

[0099] Step 2: Generate a test interface based on the file data.

[0100] It can be understood that in order to dynamically generate the test interface, the interface generation module in the test device is used to generate interface controls based on the tags and their attributes in the 9P file. For example, the "enum" tag under the "Action" tag will be used to generate the "button" control; the "argument" tag with the "range" sub-tag will be used to generate the "input" control.

[0101] Optionally, in order to achieve the purpose of generating and updating the interface based on the 9P file system protocol, the embodiment of the present invention also converts the test parameters into a data file in a preset file system format during data interaction, and transmits the data file to the device under test using a transmission protocol corresponding to the preset file system format.

[0102] Optionally, if the test result needs to be displayed to the user, the test method provided in this embodiment further includes: receiving the test result sent by the device under test, and displaying the test result on an updated test interface.

[0103] Next, a testing method provided by an embodiment of the present invention can also be applied to Figure 2 For the device under test, see Fig. 9 , Fig. 9 A second schematic flow chart of a testing method provided in an embodiment of the present invention, the method comprising:

[0104] S901, generating interface update data based on updated test requirements;

[0105] S902, sending interface update data to the test device, so that the test device updates the test interface; the updated test interface includes test requirements, which are used to test the device under test.

[0106] Optionally, before generating interface update data based on updated test requirements, the method also includes: generating file data based on a preset configuration file; wherein the configuration file contains test parameters corresponding to all modules to be tested on the device under test; and sending the file data to a test device so that the test device generates a test interface.

[0107] Optionally, in order to implement the test of the module to be tested, the method further includes: receiving test parameters sent by the test device; the test parameters correspond to controls on the test interface; when the controls are triggered, the test device determines the test parameters; and calling the test program corresponding to the test parameters to test the module to be tested. The test results are sent to the test device so that the test device displays the test results.

[0108] To facilitate understanding of the above overall test process, a signaling interaction diagram between the test device and the device under test is also given below. Fig.10 , Fig.10 A signaling interaction diagram of a test method provided by an embodiment of the present invention.

[0109] First, the purpose of generating an initial test interface shown in step S11 can be achieved through signaling interaction between the test device 210 and the device under test 220, which specifically includes:

[0110] S111. The device under test 220 initializes a configuration file.

[0111] In this embodiment, after the device under test 220 is started, the 9P server application establishes a file system according to the configuration file and starts the 9P protocol monitoring service.

[0112] S112. The testing device 210 sends an interface initialization request.

[0113] S113 . The device under test 220 feeds back interface generation data to the testing device 210 .

[0114] In this embodiment, after the test device 210 is started, the device under test 220 establishes a connection with the test device 210 , and the test device 210 caches the interface generation data, specifically the file system information locally, and creates the interface controls accordingly.

[0115] S114. The testing device 210 generates a test interface according to the interface generation data.

[0116] Further, if the device under test 220 has a new test requirement, step S21 is first executed and then step S31 is executed; if there is no new test requirement, step S31 is directly executed. In the process of updating the interface, the following steps may be included:

[0117] S211. The device under test 220 updates the configuration file based on the test requirements and generates interface update data.

[0118] S212 . The device under test 220 sends interface update data to the testing device 210 .

[0119] S213. The testing device 210 updates the testing interface.

[0120] During the test, step S31 may include the following steps:

[0121] S311. The test device 210 receives a user operation instruction and obtains a test parameter.

[0122] S312 . The testing device 210 sends a test parameter to the device under test 220 .

[0123] S313. The device under test 220 calls the test program corresponding to the test parameters to perform the test.

[0124] S314 . The device under test 220 sends the test result to the testing device 210 .

[0125] S315. The testing device 210 displays the test result.

[0126] For example, after receiving the test parameters, the device under test 220 performs corresponding operations on the file system, corresponding to the "get", "set" or "exec" function of a specific file, calls the specified function of the test code, completes the test case, and returns the result to the test device 210.

[0127] In summary, the present invention provides a test method, apparatus, test equipment, device under test, system and storage medium, the method comprising: obtaining interface update data, wherein the interface update data is generated by the device under test based on updated test requirements; updating the test interface according to the interface update data; the updated test interface includes the test requirements; and testing the device under test based on the updated test interface. Different from the one-time developed test interface in the prior art, before executing the test, the embodiment of the present invention can generate interface update data based on the newly added test requirements by the device under test, and transmit it to the test equipment, so that the test equipment updates the test interface, thereby avoiding the problem of large workload of re-modifying the interface and reducing the test efficiency.

[0128] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a test method as described in any one of the above embodiments is implemented. The computer-readable storage medium can be, but is not limited to, a USB flash drive, a mobile hard disk, a ROM, a RAM, a PROM, an EPROM, an EEPROM, a magnetic disk, or an optical disk, and other media that can store program codes.

[0129] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A testing method, characterized in that: Applied to a test device, the test device is communicatively connected with any device under test; the method comprises: Acquire interface update data, wherein the interface update data is generated by the device under test based on updated test requirements; According to the interface update data, the test interface is updated; the updated test interface includes the test requirements; Based on the updated test interface, testing the device under test; Testing the device under test based on the updated test interface includes: generating a sub-interface corresponding to the module under test in response to a trigger instruction for the identification of any module under test on the updated test interface; determining a test parameter corresponding to any control on the sub-interface in response to a trigger instruction for the control; transmitting the test parameter to the device under test so that the device under test calls a test program corresponding to the test parameter to test the module under test; Before obtaining interface update data, the method includes: establishing a connection with the device under test to obtain file data; wherein the file data is generated by the device under test according to a preset configuration file, and the configuration file contains the test parameters corresponding to all modules under test on the device under test; based on the file data, generating the test interface.

2. The testing method according to claim 1, characterized in that: Before transmitting the test parameters to the device under test, the method further includes: Converting the test parameters into a data file in a preset file system format; The data file is transmitted to the device under test using a transmission protocol corresponding to the preset file system format.

3. The testing method according to claim 1, characterized in that: The method further comprises: Receiving the test result sent by the device under test; The test result is displayed on the updated test interface.

4. A testing method, characterized in that: Applied to a device under test, the device under test is communicatively connected with a testing device; the method comprises: Generate interface update data based on updated test requirements; Sending the interface update data to the test device so that the test device updates the test interface; the updated test interface includes the test requirements and is used to test the device under test; Before generating interface update data based on updated test requirements, it also includes: generating file data based on a preset configuration file; wherein the configuration file contains test parameters corresponding to all modules to be tested on the device under test; and sending the file data to the test device so that the test device generates the test interface.

5. The testing method according to claim 4, characterized in that: The method further comprises: receiving a test parameter sent by the test device; the test parameter corresponds to a control on the test interface; when the control is triggered, the test device determines the test parameter; Calling the test program corresponding to the test parameters to test the module to be tested; The test result is sent to the test device so that the test device displays the test result.

6. A testing device, characterized in that: The test device is communicatively connected with any device under test, and the test device comprises a transmission module, an interface generation module and a processing module; The transmission module is used to obtain interface update data, wherein the interface update data is generated by the device under test based on the updated test requirements; The interface generation module is used to update the test interface according to the interface update data; the updated test interface includes the test requirements; The processing module is used to test the device under test based on the updated test interface; The processing module is specifically used to generate a sub-interface corresponding to the module to be tested in response to a trigger instruction for the identification of any module to be tested on the updated test interface; determine the test parameters corresponding to any control on the sub-interface in response to a trigger instruction for the control; transmit the test parameters to the device to be tested, so that the device to be tested calls the test program corresponding to the test parameters to test the module to be tested; The processing module includes a 9P file mapping management unit; the 9P file mapping management unit is used to establish a connection with the device under test to obtain file data; wherein the file data is generated by the device under test according to a preset configuration file, and the configuration file contains the test parameters corresponding to all the modules under test on the device under test; the interface generation module is also used to generate the test interface based on the file data.

7. A device under test, characterized in that: The device under test is in communication connection with the testing device, and the device under test comprises: a processing module and a transmission module; The processing module is used to generate interface update data based on the updated test requirements; The transmission module is used to send the interface update data to the test device, so that the test device updates the test interface for updating; the updated test interface is used to test the device under test; The processing module is also used to generate file data based on a preset configuration file; wherein the configuration file contains test parameters corresponding to all modules to be tested on the device under test; and send the file data to the test device so that the test device generates the test interface.

8. A testing system, characterized in that: The device comprises a testing device and a device under test, wherein the testing device is communicatively connected with the device under test; The device under test is used to generate interface update data based on updated test requirements; and send the interface update data to the test device; The test device is used to update the test interface according to the interface update data; and test the device under test based on the updated test interface; The test device is specifically used to: on the updated test interface, in response to a trigger instruction for the identification of any module to be tested, generate a sub-interface corresponding to the module to be tested; in response to a trigger instruction for any control on the sub-interface, determine the test parameters corresponding to the control; transmit the test parameters to the device under test, so that the device under test calls the test program corresponding to the test parameters to test the module under test; The test device is also used to: establish a connection with the device under test to obtain file data; wherein the file data is generated by the device under test according to a preset configuration file, and the configuration file contains the test parameters corresponding to all modules under test on the device under test; and generate the test interface based on the file data.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the test method according to any one of claims 1 to 3 or the test method according to any one of claims 4 to 5 is implemented.