Equipment testing method and device and electronic equipment

By obtaining and utilizing the device identification information of the test terminal equipment, and sending test instructions carrying the identification information to these equipment, the problem of low testing efficiency of terminal equipment in the prior art is solved, and multiple devices are simultaneous testing is realized, testing efficiency and accuracy are improved. sex.

CN119473753APending Publication Date: 2025-02-18SHANGHAI WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411193818.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, the testing efficiency of terminal devices is low, and it is necessary to connect with the test host one by one through USB to test, resulting in cumbersome manual operations and cannot meet the need for one control device to conduct automated testing of multiple test terminal devices at the same time.

Method used

By obtaining device identification information of multiple test terminal devices and establishing a communication connection with these devices, each test terminal device can ensure that each device can accurately identify and execute the test when it is in progress. Task.

Benefits of technology

Simultaneous testing of multiple test terminal devices is realized, testing efficiency is improved, and the accurate delivery of test instructions and the reliability of test results is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473753A_ABST
    Figure CN119473753A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an equipment testing method and device and electronic equipment. The equipment testing method is applied to control equipment, and comprises the following steps: acquiring equipment identification information respectively corresponding to a plurality of pieces of testing terminal equipment; sending a first test instruction to each test terminal device according to the device identification information corresponding to the plurality of test terminal devices under the condition of establishing the communication connection with the plurality of test terminal devices; wherein the first test instruction sent to the first test terminal equipment carries equipment identification information corresponding to the first test terminal equipment, so that the first test terminal equipment executes a test task corresponding to the received first test instruction under the condition of determining that the equipment identification information is matched with the equipment identification information of the first test terminal equipment; and receiving a test result sent by the first test terminal equipment. According to the equipment testing method and device and the electronic equipment, multiple pieces of testing terminal equipment can be tested at the same time, and the testing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a device testing method, apparatus and electronic equipment. Background Art

[0002] In order to ensure product quality, terminal devices need to be tested before leaving the factory. At present, the testing of terminal devices usually relies on the Universal Serial Bus (USB) connection technology, which requires the terminal device to be tested to be connected to the test host via USB, and the test instructions and data are transmitted through the USB connection. In this test mode, the tester needs to connect the terminal devices to be tested to the test host one by one, resulting in low test efficiency. Summary of the invention

[0003] The embodiments of the present application disclose a device testing method, apparatus and electronic device, which can test multiple test terminal devices at the same time, thereby improving the test efficiency.

[0004] A first aspect of an embodiment of the present application discloses a device testing method, which is applied to a control device, and the method includes:

[0005] Obtain device identification information corresponding to multiple test terminal devices respectively;

[0006] In the case of establishing a communication connection with the multiple test terminal devices, a first test instruction is sent to each of the test terminal devices according to the device identification information respectively corresponding to the multiple test terminal devices; wherein the first test instruction sent to the first test terminal device carries the device identification information corresponding to the first test terminal device, so that the first test terminal device executes the test task corresponding to the received first test instruction when determining that the device identification information matches its own device identification information, and the first test terminal device is any of the test terminal devices;

[0007] Receive the test result sent by the first test terminal device.

[0008] In some possible embodiments, the acquiring device identification information respectively corresponding to the plurality of test terminal devices includes:

[0009] Scan the graphic codes respectively displayed by the multiple test terminal devices, and identify the scanned graphic codes to obtain device identification information respectively corresponding to the multiple test terminal devices.

[0010] In some possible embodiments, after acquiring device identification information respectively corresponding to the plurality of test terminal devices, the method further includes:

[0011] A window corresponding to each of the plurality of test terminal devices is created, wherein the window is used to display device identification information and / or transmitted information of the corresponding test terminal device.

[0012] In some possible embodiments, when establishing communication connections with the multiple test terminal devices, sending a first test instruction to each of the test terminal devices according to device identification information respectively corresponding to the multiple test terminal devices includes:

[0013] Acquire a test tag corresponding to a first test terminal device, where the test tag is used to identify a historical test result of the first test terminal device;

[0014] If the test mark indicates that the historical test result is a successful test, a first test instruction is sent to the first test terminal device according to the device identification information corresponding to the first test terminal device.

[0015] In some possible embodiments, when establishing communication connections with the multiple test terminal devices, sending a first test instruction to each of the test terminal devices according to device identification information respectively corresponding to the multiple test terminal devices includes:

[0016] According to the device identification information corresponding to each of the test terminal devices, multiple first test instructions are sent in parallel.

[0017] In some possible embodiments, the method further includes:

[0018] In the case where only a communication connection is established with the second test terminal device, a second test instruction is sent to the second test terminal device, wherein the second test instruction only includes test task information.

[0019] A second aspect of an embodiment of the present application discloses a device testing method, which is applied to a first test terminal device, and the method includes:

[0020] In a case where a communication connection is established with a control device, receiving a first test instruction sent by the control device, the first test instruction carrying device identification information corresponding to the first test terminal device;

[0021] When it is determined that the device identification information matches the device identification information of the device itself, executing the test task corresponding to the first test instruction;

[0022] The test result is sent to the control device.

[0023] A third aspect of the embodiments of the present application discloses a device testing apparatus, which is applied to control a device, and the apparatus includes:

[0024] An information acquisition module is used to acquire device identification information corresponding to a plurality of test terminal devices respectively;

[0025] A first information sending module is used to send a first test instruction to each of the test terminal devices according to the device identification information corresponding to the multiple test terminal devices respectively, when a communication connection is established with the multiple test terminal devices; wherein the first test instruction sent to the first test terminal device carries the device identification information corresponding to the first test terminal device, so that the first test terminal device executes the test task corresponding to the received first test instruction when determining that the device identification information matches its own device identification information, and the first test terminal device is any of the test terminal devices;

[0026] The first information receiving module is used to receive the test result sent by the first test terminal device.

[0027] A fourth aspect of an embodiment of the present application discloses a device testing apparatus, which is applied to a first test terminal device, and the apparatus includes:

[0028] A second information receiving module, configured to receive a first test instruction sent by the control device when a communication connection is established with the control device, wherein the first test instruction carries device identification information corresponding to the first test terminal device;

[0029] An instruction execution module, configured to execute the test task corresponding to the first test instruction when it is determined that the device identification information matches its own device identification information;

[0030] The second information sending module is used to send the test result to the control device.

[0031] A fifth aspect of an embodiment of the present application discloses an electronic device, including a memory, a processor and a communication unit, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the electronic device implements the method described in any of the above embodiments.

[0032] A sixth aspect of the embodiments of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor in an electronic device, the electronic device implements the method described in any of the above embodiments.

[0033] In the embodiment of the present application, the control device obtains the device identification information corresponding to the multiple test terminal devices respectively, and sends a test instruction carrying its device identification information to each test terminal device when establishing a communication connection with the multiple test terminal devices. The test terminal device can accurately identify whether the sent test instruction is the test instruction it needs to execute based on the device identification information picked up in the test instruction, thereby realizing a precise automated test process. This method ensures that the test instruction can be accurately delivered to the test terminal device, and enables each test terminal device to confirm the received test instruction based on its own device identification information, thereby improving the reliability and safety of the test. The control device can test multiple test terminal devices at the same time, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 An application scenario diagram of a device testing method in an embodiment;

[0036] Figure 2 A flowchart of a device testing method provided in one embodiment;

[0037] Figure 3A A timing diagram of a device testing method provided in an embodiment;

[0038] Figure 3B A timing diagram of a device testing method provided in another embodiment;

[0039] Figure 4 A communication connection flow chart of a test terminal device provided in one embodiment;

[0040] Figure 5 An application program interface diagram of a test terminal device provided in one embodiment;

[0041] Figure 6 A schematic diagram of a parallel instruction timing sequence of a device testing method provided in an embodiment;

[0042] Figure 7 A schematic diagram of a control device interface of a device testing method provided by an embodiment;

[0043] Figure 8 A flow chart of test result detection of a test terminal device provided in one embodiment;

[0044] Fig. 9 A flowchart of a device testing method provided in another embodiment;

[0045] Fig. 10A A timing diagram of a control device performing a test on multiple test terminal devices in an embodiment;

[0046] Fig. 10B A timing diagram of a control device performing a test on a plurality of test terminal devices in another embodiment;

[0047] Fig.11 A block diagram of a device testing apparatus provided in one embodiment;

[0048] Fig.12 A block diagram of another device testing apparatus provided in one embodiment;

[0049] Fig.13 A structural block diagram of an electronic device provided in an embodiment. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0052] In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.

[0053] In the related art, the connection between the control device and the test terminal device usually relies on the USB wired connection technology, that is, the test terminal device needs to first access the USB interface of the control device through a data cable, and then make a communication connection. However, due to the limited number of USB interfaces of the control device, and the need for the tester to manually connect the data cable to the USB interface of the control device during the test, the data cable connected to the USB interface is unplugged after the communication connection between the current test terminal device and the control device is completed, and then the data cable of the next test terminal device is used to access the USB interface of the control device. In other words, the tester needs to manually connect multiple test terminal devices to the control device one by one, which not only leads to low test efficiency, but also fails to meet the demand for a control device to perform automated testing on multiple test terminal devices at the same time.

[0054] Based on this, a device testing method, apparatus and electronic device disclosed in the present application can test multiple test terminal devices at the same time, thereby improving the test efficiency.

[0055] Figure 1 FIG. 1 is an application scenario diagram of a device testing method in an embodiment. Figure 1 As shown, the application scenario of the device testing method may include a control device 101 and multiple test terminal devices 102. The control device 101 may include electronic devices with communication functions such as desktop computers, mobile phones, and smart terminals. The computer system in the control device 101 may be Windows, Linux, IOS, or Unix, which is not specifically limited here. The test terminal device 102 may be a smart terminal device with communication capabilities such as a mobile phone, a tablet, a smart watch, a smart speaker, and a car navigation system, which is not specifically limited here.

[0056] A communication connection may be established between the control device 101 and the test terminal device 102 via a wireless network.

[0057] A wireless network refers to a network that can interconnect various communication devices without wiring, mainly including Wireless Fidelity (WIFI), cellular networks, Bluetooth, infrared, and Radio Frequency Identification (REID), etc., which are not limited in this application. A communication connection refers to a connection method that uses a communication protocol to transmit data, that is, using various communication protocols, such as Transmission Control Protocol / Internet Protocol (TCP / IP), Hypertext Transfer Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), etc. to connect devices wirelessly, including a Web Application Programming Interface (Web API), a Message Passing Interface (MPI), a Socket, etc., which are not limited in this application.

[0058] In some embodiments, the control device 101 and multiple test terminal devices 102 may be connected to the same wireless network, for example, they may be connected to the same wireless access point, etc. The control device 101 may obtain device identification information corresponding to each test terminal device 102, and establish a communication connection with each test terminal device 102 according to the device identification information corresponding to each test terminal device 102.

[0059] After the control device 101 establishes a communication connection with the multiple test terminal devices 102 , the control device 101 may send a first test instruction to each test terminal device 102 according to the device identification information respectively corresponding to the multiple test terminal devices 102 .

[0060] Among them, taking the first test terminal device among the multiple test terminal devices 102 as an example, the first test instruction sent to the first test terminal device may carry the device identification information corresponding to the first test terminal device. After the first test terminal device receives the first test instruction sent by the control device 101, it can execute the test task corresponding to the received first test instruction and generate a test result when it determines that the device identification information carried in the first test instruction matches its own device identification information, and then send the test result to the control device 101. The control device 101 can receive the test result sent by the first test terminal device, and determine the test situation corresponding to the first test terminal device according to the test result. In this way, a control device can communicate with multiple test terminal devices at the same time, and then send test instructions to multiple test terminal devices at the same time, thereby improving the efficiency of the test.

[0061] In order to make the purpose and technical solution of this application clearer and more intuitive, the method and electronic device provided by the embodiment of this application will be described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.

[0062] like Figure 2 As shown, in one embodiment, a device testing method is provided, which can be applied to the above-mentioned control device, and the method may include the following steps:

[0063] Step S201: Obtain device identification information corresponding to a plurality of test terminal devices.

[0064] The control device may refer to a terminal device loaded with an automatic test program during the test process. The control device is used to manage the test process, and can send test instructions to control the test terminal device to complete the test task, and receive and analyze the test results fed back by the test terminal device. The test terminal device may refer to the terminal device that needs to be tested, and the test of the terminal device may include hardware testing and / or software function testing. The test terminal device can receive the test instructions sent by the control device and execute the corresponding test task, so as to realize the process of the controlled device controlling the automatic test.

[0065] Optionally, the test performed on the test terminal device may include a man-machine interface (Man-Machine Interface, MMI for short) test, which is also called a multimedia interface test or a full-function test, and refers to a series of tests performed on the man-machine interface of the test terminal device to ensure that the various software and hardware functions of the test terminal device can be used normally. The test content of the MMI test on the test terminal device mainly includes WIFI test, Bluetooth test, Near Field Communication (NFC for short) test, Global Positioning System (GPS for short) test and other software and hardware function tests, which are not limited in this application. By accurately testing each function of the test terminal device, it is ensured that the test terminal device is fully functional and has stable and safe performance after leaving the factory.

[0066] The control device can obtain device identification information corresponding to multiple test terminal devices. Device identification information refers to a collection of information carrying the unique identification of the test terminal device, which is used to provide the control device with a unique identification of the test terminal device, so that the control device can accurately identify the test terminal device and send a control instruction to the specified test terminal device. The control instruction includes a connection instruction, a test instruction, etc., which is not limited in this application.

[0067] Taking a test terminal device with wireless communication capability as an example, the device identification information may include a network connection address and an identification code, etc. The network connection address may include an IP address and a port number, etc. The identification code may include a product serial number (Serial Number, SN number for short), etc.

[0068] Optionally, the device identification information may be pure numbers, pure English letters, or a combination of numbers, English letters and symbols, but is not limited thereto.

[0069] In some embodiments, after the control device obtains the device identification information corresponding to the multiple test terminal devices, it establishes communication connections with the multiple test terminal devices according to the device identification information corresponding to the multiple test terminal devices. The control device can generate a corresponding connection instruction according to the network connection address corresponding to each test terminal device, and send the corresponding connection instruction to each test terminal device. After each test terminal device starts the communication service, it receives and executes the corresponding connection instruction sent by the control device to complete the establishment of the communication connection.

[0070] Exemplarily, the device identification information of the test terminal device is the IP address and port number, and the wireless Socket communication is established between the control device and multiple test terminal devices. The Socket communication connection is a one-to-one reliable transmission communication connection established based on the TCP / IP protocol of the computer. Before establishing a Socket connection, the two devices that establish a communication connection need to allocate or set a dedicated port number to the communication connection, and the two parties identify each other through the IP address and port number. The data sent during the Socket communication process needs to carry the IP address and port number to identify that the data belongs to the connection. First, the control device obtains the IP addresses and port numbers corresponding to the multiple test terminal devices, and then generates the connection instructions corresponding to each test terminal device according to the corresponding IP address and port number, and sends the corresponding connection instructions to these test terminal devices. After the test terminal device first opens the Socket communication service in its own device, and then receives and executes the connection instruction sent by the control device, the Socket communication connection with the control device can be completed. After each test terminal device establishes a Socket communication connection with the control device, the control device and each test terminal device send detection signals to each other to ensure successful two-way communication and the successful connection of the Socket communication service.

[0071] Step S202, when establishing a communication connection with multiple test terminal devices, send a first test instruction to each test terminal device according to the device identification information corresponding to the multiple test terminal devices respectively; wherein the first test instruction sent to the first test terminal device carries the device identification information corresponding to the first test terminal device, so that the first test terminal device executes the test task corresponding to the received first test instruction when determining that the device identification information matches its own device identification information, and the first test terminal device is any test terminal device.

[0072] In some embodiments, the control device may establish a communication connection with each test terminal device according to the acquired device identification information of the multiple test terminal devices, and perform tests on the multiple test terminal devices.

[0073] The control device and the test terminal device use command line tools to establish a communication connection. A command line tool is a program that executes tasks by entering a string of characters or letters in a command line interface, mainly including command prompt (Command, referred to as CMD), Android Debug Bridge (Android Debug Bridge, referred to as ADB), PowerShell, etc., which are not limited in this application. The following will take ADB as an example of a communication connection tool for the control device and the test terminal device.

[0074] ADB is a command line tool in the Android SDK that allows developers to communicate with Android devices and perform various debugging and management tasks directly. It establishes a communication bridge between the control device and the mobile phone, and transmits shell commands in the communication bridge to realize the control device's operation on the mobile phone.

[0075] Exemplarily, when the control device is in communication connection with multiple test terminal devices, the control device generates a test instruction based on the IP address and port number of the test terminal device: adb-s[ip]:[port]X, where adb-s is the basic syntax of ADB that specifies the test terminal device with the corresponding device identification information as the command target, [ip] is the current IP address of the test terminal device, [port] is the port number of the test terminal device, and X refers to the test instruction corresponding to the test task in the instruction set. With this instruction, the control device can send the test instruction X to the test terminal device with the specified IP address [ip] and the specified port number [port]. In the case of multiple test terminal devices, generating and sending a test instruction carrying the device identification information of the test terminal device can send a specific test instruction to a specific test terminal device without being received by other test terminal devices, thereby improving the accuracy of automated testing and reducing the complexity of designated sending.

[0076] In some embodiments, a test link of a test terminal device may include multiple test contents, each test content may have a corresponding test instruction, and the control device may pre-store an instruction set. The control device sends a first test instruction corresponding to different test contents to the test terminal device in sequence according to the instruction set. The test terminal device receives the first test instruction and verifies whether the first test instruction matches through the device identification information. When the device identification information of the first test instruction matches the device identification information of the test terminal device, the test terminal device executes the test task corresponding to the first test instruction to test the test content corresponding to the first test instruction.

[0077] Exemplarily, in a test link, the test terminal device includes an NFC test and a GPS test. In this test link, the control device is pre-set with an NFC test instruction and a GPS test instruction. After the control device successfully completes the communication connection with each test terminal device, the control device sends the corresponding NFC test instruction to each test terminal device according to the NFC test task and the device identification information of each test terminal device. After the test terminal device receives the NFC test instruction, it first verifies whether the device identification information carried by the NFC test instruction matches its own device identification information. If it matches, the test terminal device executes the NFC test instruction to complete the test task of the NFC function. After confirming that the test terminal device has completed the NFC test, the control device sends the corresponding GPS test instruction to each test terminal device according to the GPS test task and the device identification information of each test terminal device. The test terminal device repeats the above process to complete the GPC test task. By pre-storing a set of instructions and carrying the device identification information of the test terminal device in the test instruction, it can not only ensure that the test terminal device will not execute instructions of other devices or other test task instructions, but also improve the test efficiency.

[0078] Step S203: receiving a test result sent by the first test terminal device.

[0079] The test result refers to the completion status of the test task of the first test terminal device. The first test terminal device executes the test task corresponding to the received first test instruction, and sends the test result to the control device after the test task is completed. After the control device receives the test result sent by the first test terminal device, it chooses to send the first test instruction of the next test content according to the remaining test content, or ends the test after completing all the test content. The test terminal device feeds back the test result during the test process. The control device can determine whether the test is successful based on the test result fed back by the test terminal device. If it is determined that the test fails, the test of the test terminal device can be ended, ensuring that the control device and the test terminal device end the test when the test results are found to be substandard, thereby improving the test efficiency.

[0080] For example, Figure 3A FIG. 1 is a timing diagram of a device testing method provided in an embodiment. Figure 3A As shown, after the control device obtains the device identification information corresponding to each test terminal device, the control device can send a connection instruction to each test terminal device according to the device identification information corresponding to each test terminal device. After receiving the connection instruction sent by the control device, the test terminal device successfully establishes a communication connection with the control device.

[0081] After the control device successfully establishes a communication connection with each test terminal device, the control device may send a test instruction to each test terminal device according to the device identification information corresponding to each test terminal device, and the test instruction may carry the device identification information corresponding to the test terminal device. After receiving the test instruction sent by the control device and determining that the device identification information carried by the test instruction is its own device identification information, each test terminal device shall execute the test task corresponding to the received first test instruction, and then record the corresponding test result and send the test result to the control device. The control device completes the test after receiving the test result.

[0082] For example, Figure 3B A timing diagram of a device testing method provided for another embodiment. Take the test as an MMI test, the control device as a computer, the test terminal device including a first mobile phone and a second mobile phone, the communication connection as a Socket communication connection, the device identification information including an IP address and a port number, and the test task as an NFC test as an example.

[0083] like Figure 3B As shown, after obtaining the IP address and port number corresponding to each mobile phone, the computer sends the corresponding connection instruction to each mobile phone according to the IP address and port number corresponding to each mobile phone. After receiving their respective connection instructions, the first mobile phone and the second mobile phone successfully establish a Socket communication connection with the computer. When the computer successfully establishes a Socket communication connection, according to the IP addresses and port numbers corresponding to the first mobile phone and the second mobile phone, respectively, it generates a corresponding NFC test instruction, and then sends the corresponding NFC test instruction to the first mobile phone and the second mobile phone respectively. After receiving the corresponding NFC test instruction, the first mobile phone and the second mobile phone execute the NFC test task corresponding to the NFC test instruction and send the test result to the computer. The computer receives the test result and completes the NFC test task.

[0084] In the embodiment of the present application, the control device obtains the device identification information corresponding to the multiple test terminal devices respectively, and sends a test instruction carrying its device identification information to each test terminal device when establishing a communication connection with the multiple test terminal devices. The test terminal device can accurately identify whether the sent test instruction is the test instruction it needs to execute based on the device identification information picked up in the test instruction, thereby realizing a precise automated test process. This method ensures that the test instruction can be accurately delivered to the test terminal device, and enables each test terminal device to confirm the received test instruction based on its own device identification information, thereby improving the reliability and safety of the test. The control device can test multiple test terminal devices at the same time, thereby improving the test efficiency.

[0085] In the above embodiment, the control device obtains the device identification information corresponding to the multiple test terminal devices respectively, which may include: scanning the graphic codes displayed by the multiple test terminal devices respectively, and identifying the scanned graphic codes to obtain the device identification information corresponding to the multiple test terminal devices respectively. The test terminal device can obtain its own device identification information, generate a graphic code according to the device identification information, and display the graphic code. The control device can scan the graphic codes displayed by the multiple test terminal devices respectively, and identify the graphic code to obtain the device identification information corresponding to the multiple test terminal devices respectively.

[0086] Graphic code refers to a set of specific patterns that encode text information such as numbers, letters, symbols, etc. using specific rules. Optionally, the graphic code can be a two-dimensional code, a one-dimensional code (barcode), or other coding methods presented in graphic form.

[0087] In some embodiments, before the test terminal device generates a graphic code, the network connection address may be configured first, for example, the IP address and port number may be configured, and then the graphic code is generated according to the configured network connection address.

[0088] As an implementation mode, the test terminal device may modify the target port attribute in the configuration file to configure the port number. Optionally, the target port attribute may include a first attribute and a second attribute, wherein the first attribute is a temporary attribute of the port number, and the second attribute may be a permanent attribute of the port number. Further, if the test terminal device can find the first attribute in the configuration file, the first attribute may be modified to complete the configuration of the port number; if the test terminal device does not find the first attribute in the configuration file, the second attribute may be modified to complete the configuration of the port number.

[0089] Exemplarily, the test terminal device first obtains the preset configured port number "6776", then searches for the attribute service.adb.tcp.port in the ADB configuration file, replaces X in the attribute service.adb.tcp.port X in the configuration file with the preset configured port number "6776", obtains service.adb.tcp.port 6776, saves and restarts the ADB service, and completes the port number setting. If the attribute service.adb.tcp.port cannot be found in the configuration file, search for the persist.adb.tcp.port attribute, replace X in persist.adb.tcp.port X with the preset configured port number "6776", obtain persist.adb.tcp.port 6776, save and restart the ADB service, and complete the port number setting.

[0090] It should be noted that the persist.adb.tcp.port property will only be read if the service.adb.tcp.port property cannot be found. This is because the service.adb.tcp.port property temporarily changes the port number, that is, after the test terminal device is restarted, the property service.adb.tcp.port 6776 is reset to service.adb.tcp.port Y, where Y is the default port number of the property service.adb.tcp.port. At this time, the port number needs to be reset to "6776"; while the persist.adb.tcp.port property has the characteristics of the persist property, that is, after the test terminal device is restarted, the property still retains the original port number "6776" and does not need to be reset. Therefore, during the test process, the service.adb.tcp.port property is set first, and then the persist.adb.tcp.port property is set if the service.adb.tcp.port property cannot be found. This can not only ensure that the port number of the ADB configuration file is set to the required port number, but also reduce the impact on other services that rely on the default port number, thereby improving the test efficiency.

[0091] Figure 4 The figure is a flow chart of the communication connection of a test terminal device provided in one embodiment. Before displaying the graphic code, the test terminal device needs to start the pre-installed application program, complete the configuration of the network connection address, thereby starting the communication connection service, and complete the generation of the graphic code based on the device identification information. Figure 4 As shown, the process of testing the display of graphic codes by the terminal device may include the following steps:

[0092] Step S401, start the test application.

[0093] The test application is used to automatically complete the communication connection setting between the control device and the test terminal device. It can be an application or an executable file, which is not limited in this application. The test application automatically sets the configuration file of the corresponding test terminal device, turns on the communication connection service of the test terminal device, generates a graphic code based on the device identification information of the test terminal device, and displays the graphic code on the display screen of the test terminal device. By starting the test application, completing the automatic setting of the configuration file of the test terminal device and the generation of the graphic code based on the device identification information, it can not only ensure the automation of the communication connection between the control device and the test terminal device, reduce operational errors caused by human factors, but also reduce the preparation time for entering the test and improve the test efficiency.

[0094] Optionally, the test application can be started by clicking on the robot arm in the test area, or it can be automatically started after detecting entering the test area, but is not limited thereto.

[0095] Step S402: accessing a designated wireless network.

[0096] In order to ensure the successful establishment of the communication connection between the control device and the test terminal device, the test terminal device and the control device need to be in the same wireless network. Therefore, the network parameters of the wireless network where the control device is located are written into the test application of the test terminal device in advance, so that after the test application of the test terminal device is started, the test terminal device can automatically connect to the wireless network where the control device is located.

[0097] For example, the wireless network where the control device is located is WIFI, so the account and password for connecting to WIFI are written into the test application of the test terminal device in advance. After the test application of the test terminal device is opened, the test terminal device automatically turns on the wireless local area network (Wireless Local Area Network, WLAN) switch, and fills in the relevant WIFI account and password to complete the automatic connection of WIFI.

[0098] Step S403, checking whether the designated wireless network is connected successfully, if connected successfully, executing step S404, otherwise executing step S409.

[0099] During the test, by checking whether the designated wireless network is successfully connected, it is possible to confirm not only whether the communication capability of the test terminal device is normal, but also whether the test terminal device and the control device are in the same wireless network.

[0100] Exemplarily, the control device and the test terminal device are connected to WIFI, and a server is configured outside the control device and the test terminal device to receive the inspection signal sent by the control device and the test terminal device, and the inspection signal carries the network segment of the control device and the test terminal device, that is, the first half of the IP address. The server determines whether the network segment of the control device and the test terminal device is the same. If the network segment is the same, it sends a confirmation signal to the control device and the test terminal device to determine that the communication capability of the test terminal device is normal and successfully connected to the specified WIFI.

[0101] Step S404, setting configuration file parameters.

[0102] Step S405: the service of the configuration file parameter change takes effect.

[0103] After the configuration file parameters are set in step S404, the service whose configuration file parameters are changed generally does not take effect immediately, and needs to be saved, replaced or restarted before it takes effect.

[0104] Exemplarily, in step S404, after replacing X in the property service.adb.tcp.port X or persist.adb.tcp.port X with a preset port number in the configuration file of the ADB service, the ADB service is restarted to make the preset port numbers in the properties service.adb.tcp.port and persist.adb.tcp.port effective.

[0105] Step S406, start the communication connection service.

[0106] After step S402 to step S405, the test terminal device meets the pre-conditions for starting the communication connection service, and the test application opened in step S401 automatically starts the communication connection service.

[0107] Exemplarily, after the test terminal device restarts the ADB service to make the port number effective, the test application detects that the prerequisites for starting the communication connection service are met, and automatically starts the Socket communication connection service according to the preset ADB instructions.

[0108] Step S407, detecting whether the communication connection service is started successfully, if it is started successfully, executing step S408, otherwise executing step S409.

[0109] Step S408, displaying the graphic code.

[0110] After the test terminal device successfully starts the communication connection service in step S406, a graphic code is generated based on the device identification information of the test terminal device, and the graphic code is displayed on the display screen of the test terminal device.

[0111] Optionally, on the test application, network configuration parameters of a specified wireless network may be displayed, device identification information of the test terminal device may be displayed, and key configuration file parameters may also be displayed, but are not limited thereto.

[0112] Exemplarily, the test application of the test terminal device displays the WIFI account and password required to connect, the current IP address, port number and SN number of the mobile phone and other device identification information, as well as a QR code generated based on the IP address, port number and SN number of the mobile phone.

[0113] Step S409: display an error message.

[0114] In step S403, it is detected whether the designated wireless network is successfully connected; in step S407, it is detected whether the communication connection service is successfully started. In the case that the designated wireless network is not successfully connected, or the communication connection service is not successfully started, an error prompt needs to be displayed to remind the user of the specific error information, so that the user can solve the error in a targeted manner.

[0115] For example, Figure 5 This is an application interface diagram of the first test terminal device provided in the embodiment of the present application. Take the test as MMI test, the test application as an application named WlanAta, the wireless network accessed by the first test terminal device as WIFI, the command line tool used by the first test terminal device as ADB service, the communication connection established between the first test terminal device and the control device as Socket service, the identification information of the first test terminal device including IP address, port number and SN number, and the graphic code generated according to the device identification information as a QR code as an example.

[0116] like Figure 5 As shown, in the interface 500 of the test application WlanAta of the first test terminal device, a variety of information is displayed, including: the name of the WIFI to be connected 501 "SSID: ProductionTest_5G", the WIFI password to be connected 502 "PASSWORD: ABCD12345", device identification information such as the current IP address 503 "IP: 123.456.78.910", the ADB service preset port 505 "Adb_Port: 6776" and the first test terminal device SN number 506 "PCBASN: 123456789a" and the first test terminal device Socket default port 504 "Socket_Port: 10000", and related prompts of the first test terminal device before communicating with the control device are displayed, including a WIFI connection prompt 507 "Wireless network connected!", an FTP service prompt 508 "FTP service started successfully!" and a Socket service prompt 509 "Socket server created successfully!", wherein the FTP service is a pre-service of the Socket service. After the configuration file of the first test terminal device is correctly set, the test application generates and displays a QR code 510 according to the device identification information of the first test terminal device, namely, the current IP address 503 , the ADB service preset port 505 and the SN number 506 .

[0117] In an embodiment of the present application, the test terminal device can display a graphic code, and the terminal device can scan the graphic code displayed by the test terminal device to obtain device identification information. The device identification information of the test terminal device can be obtained without the terminal device and the test terminal device first establishing a communication connection, thereby improving the efficiency of obtaining device identification information and thus improving testing efficiency.

[0118] In some embodiments, the control device may send a first test instruction to multiple test terminal devices in parallel according to the device identification information corresponding to the multiple test terminal devices. After the control device establishes a communication connection with the multiple test terminal devices according to the device identification information corresponding to the multiple test terminal devices, it may generate a test instruction according to the device identification information corresponding to the multiple test terminal devices and the corresponding test tasks, and send the test instruction to each test terminal device in parallel, and test multiple test terminal devices at the same time, which can improve the test efficiency.

[0119] Concurrency occurs when two or more events or activities occur at the same time.

[0120] Figure 6 FIG. 1 is a schematic diagram of a parallel instruction timing of a device testing method provided in an embodiment of the present application. Figure 6 As shown, the control device obtains the device identification information corresponding to each test terminal device after scanning the graphic code of each test terminal device. The control device sends a connection instruction to the first test terminal device in parallel. After the first test terminal device receives the connection instruction sent by the control device at the same time, it updates its own configuration file according to the connection instruction and successfully establishes a communication connection with the control device. After the communication connection is successfully established, the control device generates a test instruction according to the device identification information corresponding to the first test terminal device, and sends the test instruction to the first test terminal device in parallel. The first test terminal device receives the test instruction sent by the control device at the same time, executes the test task corresponding to the received first test instruction, and sends the test result to the control device at the same time. After receiving the test result, the control device ends the test.

[0121] By sending test instructions in parallel and ensuring the synchronous testing of multiple test terminal devices, the orderliness and stability of the test process can be ensured, effectively improving the automation level and test efficiency of the test process.

[0122] In some embodiments, when the control device tests multiple test terminal devices simultaneously, the control device may also create windows corresponding to the multiple test terminal devices one by one, and the windows are used to display the device identification information of the corresponding test terminal devices and / or information transmitted between the corresponding test terminal devices.

[0123] When the control device establishes communication connections with multiple test terminal devices, it can create windows corresponding to the multiple test terminal devices one by one, and display the created windows in the interface. Each window can be used to display the device identification information of the corresponding test terminal device and / or the information transmitted between the control device and the corresponding test terminal device. For example, the window can display the test instructions sent by the control device to the test terminal device corresponding to the window, and can also display the test results returned by the test terminal device corresponding to the window, etc.

[0124] For example, Figure 7 A schematic diagram of a control device interface of a device testing method provided in an embodiment of the present application. Figure 7 As shown, the control device has obtained the device identification information of the two test terminal devices, so the windows 7021, 7022 and 7023 of the two test terminal devices are respectively displayed on the display interface 700 of the control device. On the display interface 700 of the control device, there is also a function shortcut key 701 for quick start of common functions, such as test start, test pause, etc. On the displayed test terminal device windows 7021, 7022 and 7023, taking the test terminal device window 7023 as an example, device identification information 703, instruction list 704 and test task list 705 are also displayed, wherein the instruction list 704 is used to display the instructions received by the test terminal device or the instructions sent by the test terminal device, and the test task list 705 is used to display the progress and results of the test tasks executed by the test terminal device.

[0125] By creating a window for each test terminal device on the control device, not only can the test progress and test results of each test terminal device be confirmed in real time, which is convenient for testers to check and analyze, but also multiple test terminal devices can be managed in parallel, shortening the test cycle and improving test efficiency.

[0126] In some embodiments, in addition to testing multiple test terminal devices at the same time, the control device can also test a single test terminal device. When the control device only establishes a communication connection with the second test terminal device, a second test instruction can be sent to the second test terminal device, and the second test instruction only includes test task information, so that the second test terminal device executes the test task corresponding to the second test instruction according to the test task information.

[0127] When a control device establishes a communication connection with a test terminal device, the control device no longer needs to generate a test instruction based on the device identification information of the test terminal device, but directly sends the test instruction corresponding to the test task in the instruction set to the test terminal device.

[0128] Exemplarily, when the control device is in communication connection with only one test terminal device, the control device can generate a test instruction: adb -s X without the device identification information of the test terminal device. When there is only one test terminal device, the generated test instruction does not carry the device identification information of the test terminal device, which can simplify the test process and improve the test efficiency.

[0129] In some embodiments, the entire test process includes multiple test sessions, each test session is responsible for executing the test task by a control device, and each test session includes multiple test tasks. The terminal device can obtain a test tag corresponding to the first test terminal device, and the test tag is used to identify the historical test result of the first test terminal device; if the test tag indicates that the historical test result is a successful test, a first test instruction is sent to the first test terminal device according to the device identification information corresponding to the first test terminal device.

[0130] The test mark is used to identify the historical test results of the first test terminal device, and the historical test results may include the test results corresponding to each test link of the first test terminal device before the current test link.

[0131] The control device can determine whether the first test terminal device has successfully tested in previous test tasks based on the test mark corresponding to the first test terminal device. If the first test terminal device has successfully tested in previous test tasks, the control device can normally test the first test terminal device in the current test phase.

[0132] If the first test terminal device fails the previous test task, the control device can stop testing the first test terminal device in the current test phase. Furthermore, the control device can control the robotic arm on the production line to move the first test terminal device to a designated area for storing test terminal devices that fail the test, so that the tester can check.

[0133] The control device obtains the test task completion status of the first test terminal device through the test mark, and can terminate the test task of the first test terminal device in time, and the first test terminal device will also actively disconnect the communication connection in time. This can not only effectively avoid the ineffective consumption of test resources, but also improve the overall efficiency of the test process.

[0134] In some embodiments, the control device may also detect whether the first test terminal device has been tested before on the control device according to the device identification information corresponding to the first test terminal device. The control device stores the device identification information corresponding to each test terminal device that has completed the test. The control device may obtain the device identification information corresponding to the first test terminal device and compare the device identification information with the stored device identification information corresponding to each test terminal device that has completed the test. If the comparison is successful, it means that the first test terminal device has completed the test corresponding to the control device and skips this test.

[0135] Exemplarily, the control device may compare the SN of the first test terminal device with the SNs corresponding to the various test terminal devices that have completed the test in the Manufacturing Execution System (MES). MES is a software-based solution for monitoring and controlling the production process in the workshop during the manufacturing process. The main purpose of MES is to track and record the transformation of raw materials to finished products in real time to provide accurate and up-to-date information about the status of production activities.

[0136] If the control device retrieves the test information corresponding to the SN number of the first test terminal device through the MES, it is determined that the first test terminal device has performed the test task of the current test link, and the control device will regard the test terminal device as a prototype that has flowed in by mistake, thereby prompting an error to pop up the test terminal device to proceed to the next test link; on the contrary, if the test terminal device has not performed the test task of the current test link, it will execute the subsequent steps and wait for the control device to send a test instruction.

[0137] In some embodiments, the test terminal device writes the test mark of the last test task before the current test session into a specific storage flag of the device identification information, and then uploads the device identification information and the test result to the control device. By writing the test mark of the last test session into the specific storage flag of the device identification information, not only can the control device know the completion status of the test task of the test terminal device in the previous test session when obtaining the device identification information of the test terminal device, but also can avoid multiple transmissions of information, thereby improving test efficiency.

[0138] In some embodiments, after completing the test task, the test terminal device can feedback the test results with the test mark and device identification information to the control device. The control device first verifies whether it is the same test terminal device based on the device identification information, and then determines whether the test terminal device is successfully tested in this test task based on the test mark. If the current test task meets the requirements, the control device sends the next test instruction, or completes all test tasks to end the current test session. Conversely, if the current test task does not meet the requirements, the test of the test terminal device in the current test session will be ended prematurely.

[0139] Figure 8 This is a test flow chart provided in the embodiment of this application. Figure 8 As shown, the method comprises the following steps:

[0140] Step S801: The control device successfully establishes a communication connection with the first test terminal device.

[0141] Step S802: The control device obtains device identification information of the first test terminal device.

[0142] Step S803, the control device searches whether there is test information of the first test terminal device according to the device identification information, and if there is test information, executes step S804, otherwise executes step S809.

[0143] Based on the SN number of the first test terminal device, the control device searches the MES to see whether there is test information corresponding to the SN number of the first test terminal device. If so, it means that the first test terminal device has performed the test task of the current test phase, and the control device can directly end the current test phase of the first test terminal device. If not, it means that the first test terminal device has not performed the test task of the current test phase, and subsequent steps can be executed, waiting for the control device to send a test instruction.

[0144] Step S804: The control device sends a first test instruction.

[0145] Step S805: The first test terminal device receives the first test instruction, executes the test task corresponding to the first test instruction, and generates a test result and a test mark.

[0146] Each time the first test terminal device completes the test task corresponding to the first test instruction, it generates a test tag and stores the test tag in a specific storage bit of the device identification information. Since the first test terminal device carries the device identification information when sending the test result, the control device can complete the inspection of the first test terminal device in the current test phase more quickly.

[0147] Step S806: The control device receives the test result with the test mark and device identification information.

[0148] The first test terminal device sends the test results with the test mark and device identification information to the control device, which not only enables the control device to check whether the first test terminal device is the same device before and after each test task, thereby improving the accuracy of the test process, but also can timely know the completion status of the first test terminal device in the previous test task to determine the subsequent steps and improve the test efficiency. In addition, merging the test mark and device identification information into the test results can also reduce the number of information transmission times and improve communication efficiency.

[0149] In step S807, the control device detects whether the test task meets the standard according to the test mark. If the test task completion of the first test terminal device meets the standard, step S808 is executed. Otherwise, if the test task completion does not meet the standard, or all test tasks of the current test link have been completed, step S809 is executed.

[0150] Step S808, the control device detects whether all test tasks in the current test phase have been completed. If the first test terminal device still has unexecuted test tasks, execute step S804. Otherwise, if the first test terminal device has completed all test tasks, execute step S809.

[0151] Step S809: The control device ends the test of the first test terminal device in the current test phase.

[0152] In an embodiment of the present application, the control device first confirms whether the first test terminal device has performed the test task of the current test phase based on the device identification information corresponding to the first test terminal device, and then obtains the test mark corresponding to the first test terminal device before each test task starts. According to the test mark, the historical test results of the first test terminal device are determined to determine whether to continue the test. This can not only know the completion status of the current test task of the test terminal device and perform subsequent control in a timely manner, but also avoid repeated testing of the test terminal device and improve test efficiency.

[0153] Fig. 9 A flow chart of a device testing method provided in another embodiment. Fig. 9 As shown, it can be applied to the first test terminal device mentioned above, and the method may include the following steps:

[0154] Step S901: When a communication connection is established with a control device, a first test instruction sent by the control device is received, where the first test instruction carries device identification information corresponding to a first test terminal device.

[0155] Step S902: When it is determined that the device identification information matches its own device identification information, execute the test task corresponding to the first test instruction.

[0156] Step S903: Send the test result to the control device.

[0157] In an embodiment of the present application, the first test terminal device receives and verifies the first test instruction sent by the control device, and executes the test task corresponding to the first test instruction when it is determined that the device identification information matches its own device identification information. This ensures that when a control device establishes a communication connection with multiple test terminal devices, the first test terminal device can receive and execute the correct first test instruction, avoiding the erroneous execution of other instructions, thereby reducing the waste of resources and testing costs that may be caused by the erroneous execution of instructions, and improving the stability and efficiency of the test.

[0158] During the entire test process, the first test terminal device needs to start the test application first, complete the opening of the communication connection service by setting the configuration file parameters, and generate and display a graphic code based on the device identification information corresponding to the first test terminal device. The control device scans and identifies the graphic code to obtain the device identification information of each test terminal device, and then during the test process, according to the corresponding device identification information, sends test instructions to each test terminal device in parallel in a targeted manner. After receiving the test instruction, the first test terminal device determines that the device identification information matches its own device identification information, executes the test task corresponding to the test instruction, uses the test mark to indicate the completion status of the test task, and sends the test result with the test mark to the control device. The control recognizes the received test result, parses the test mark, and ends the test task of the current test link.

[0159] For example, Fig. 10A FIG. 1 is a timing diagram of a control device testing multiple test terminal devices in an embodiment. Fig. 10AAs shown, after the first test terminal device starts the test application to complete the wireless network connection and configuration file parameter setting, it starts the communication connection service, and generates and displays the graphic code according to the device identification information corresponding to the first test terminal device. The control device starts the scanning mode, and when the graphic code displayed by the first test terminal device is scanned, the graphic code is identified to obtain the device identification information corresponding to each test terminal device, and then the completion status of the test tasks of each test terminal device in the previous test link is retrieved in the system according to the device identification information. In the case that the completion status of the test tasks of the current test link of each test terminal device cannot be retrieved, the control device sends a connection instruction to each test terminal device in parallel. The first test terminal device receives and executes the connection instruction to establish a communication connection with the control device. When the control device determines that the communication connection is successfully established, the control device generates a first test instruction according to the device identification information corresponding to each test terminal device, and sends it to each test terminal device in parallel. When the first test terminal device determines that the device identification information matches its own device identification information, it receives and executes the test task corresponding to the first test instruction, generates a test mark according to the completion status of the test task, and sends the test result with the test mark to the control device when the completion status of the test task meets the standard. The control device parses the test mark of each test terminal device and ends the test task of the current test link.

[0160] For example, Fig. 10B The timing diagram of a control device testing multiple test terminal devices in another embodiment is shown in FIG. The test is an MMI test, the control device is a computer, the two test terminal devices include a first mobile phone and a second mobile phone, the test application pre-installed in the test terminal device is WlanAta, the wireless network is WIFI, the communication connection is a Socket service, the command line tool is ADB, the device identification information of the test terminal device includes the current IP address, port number and SN number, and the test tasks of the current test phase include NFC test and GPS test.

[0161] like Fig. 10B As shown, the first mobile phone and the second mobile phone enter the test area, click to start the test application WlanAta through the mechanical arm, automatically complete the access to the specified WIFI, and then complete the setting of the port number in the ADB service configuration file, restart the ADB service and start the Socket service. Subsequently, the test application WlanAta of the first mobile phone and the second mobile phone reads the device identification information of the corresponding mobile phone, that is, the IP address, port number and SN number of the current mobile phone, and generates and displays the QR code.

[0162] The computer uses a scanner to scan and identify the QR codes presented by the first and second mobile phones on the test application WlanAta, obtains the IP addresses, port numbers and SN numbers corresponding to the first and second mobile phones, and then detects in MES based on the SN numbers whether the first and second mobile phones have undergone NFC tests and GPS tests in the previous test phase. If the corresponding tests have not been performed, a connection instruction is sent to the two in parallel. The first and second mobile phones receive and execute the connection instruction to complete the Socket communication service connection with the computer.

[0163] After the computer determines that Socket communication has been successfully established with the first mobile phone and the second mobile phone, it generates corresponding NFC test task instructions according to the IP addresses, port numbers and SN numbers of the first mobile phone and the second mobile phone, and sends them to the first mobile phone and the second mobile phone in parallel. The first mobile phone and the second mobile phone perform the NFC test task. The NFC test of the first mobile phone meets the standard, while the NFC test of the second mobile phone does not meet the standard. Therefore, the first mobile phone and the second mobile phone form different test marks according to the completion of the test task. The first mobile phone and the second mobile phone send the test results with the NFC test mark to the computer, the first mobile phone waits for subsequent test instructions, and the second mobile phone disconnects the Socket communication connection with the computer, ending the test of the current test link.

[0164] After receiving the test result of the first mobile phone, the computer detects that the NFC test tag meets the test requirements, and therefore generates a GPS test task instruction and sends the GPS test task instruction to the first mobile phone. The GPS test tasks of the first mobile phone all meet the requirements, and the test results with the GPS test tag are sent to the computer according to the above process. When the computer detects that the GPS test tags all meet the test requirements, it also detects that the test tasks have been completed, and ends the test of the first mobile phone in the current test session.

[0165] In summary, in the embodiment of the present application, the test terminal device uses a preset application to complete the access to the wireless network, the configuration file setting of the communication connection, and the generation and display of the graphic code. The control device completes the communication connection with each test terminal device according to the device identification information contained in the graphic code, and then detects the completion of the test task of the current test link of each test terminal device in the previous test link according to the test mark in the device identification information corresponding to each test terminal device. In the case where the test task of the current test link has not been performed, the control device generates and sends a test instruction to each test terminal device in parallel. Each test terminal device receives the corresponding test instruction, executes the corresponding test task, and forms a test result with a test mark and sends it to the control device. If the test mark parsed by the control device meets the standard, the corresponding test terminal device is controlled to perform the next test, otherwise it returns to wait for retesting. In this way, the automation and wireless level of the entire test process can be greatly improved, the orderliness and stability of the test are guaranteed, and the test efficiency is improved.

[0166] Based on the device testing method provided in the above embodiment, Fig.11 As shown, in one embodiment, a device testing apparatus 1100 is provided, which can be applied to the above-mentioned control device. The device testing apparatus 1100 includes an information acquisition module 1101 , a first information sending module 1102 and a first information receiving module 1103 .

[0167] The information acquisition module 1101 is used to acquire device identification information corresponding to a plurality of test terminal devices respectively;

[0168] The first information sending module 1102 is used to send a first test instruction to each of the test terminal devices according to the device identification information corresponding to the multiple test terminal devices respectively, when a communication connection is established with the multiple test terminal devices; wherein the first test instruction sent to the first test terminal device carries the device identification information corresponding to the first test terminal device, so that the first test terminal device executes the test task corresponding to the received first test instruction when determining that the device identification information matches its own device identification information, and the first test terminal device is any of the test terminal devices;

[0169] The first information receiving module 1103 is used to receive the test result sent by the first test terminal device.

[0170] In one embodiment, the information acquisition module 1101 is further used to identify the scanned graphic code to obtain device identification information corresponding to the multiple test terminal devices.

[0171] In one embodiment, the first information sending module 1102 is further used to obtain a test mark corresponding to the first test terminal device, where the test mark is used to identify a historical test result of the first test terminal device; if the test mark indicates that the historical test result is a successful test, a first test instruction is sent to the first test terminal device according to the device identification information corresponding to the first test terminal device.

[0172] In one embodiment, the first information sending module 1102 is further configured to send the first test instruction to the multiple test terminal devices in parallel according to the device identification information respectively corresponding to the multiple test terminal devices.

[0173] In one embodiment, the first information sending module 1102 is also used to send a second test instruction to the second test terminal device when only a communication connection is established with the second test terminal device, and the second test instruction only includes test task information, so that the second test terminal device executes the test task corresponding to the second test instruction according to the test task information.

[0174] In one embodiment, the device testing apparatus 1100 includes, in addition to the information acquiring module 1101 , the first information sending module 1102 , and the first information receiving module 1103 , a display module.

[0175] The display module is used to create windows corresponding to the multiple test terminal devices one by one after obtaining the device identification information corresponding to the multiple test terminal devices respectively, and the window is used to display the device identification information of the corresponding test terminal device and / or the information transmitted between the corresponding test terminal devices.

[0176] like Fig.12 As shown, in one embodiment, a device testing apparatus 1200 is provided, which can be applied to the above-mentioned first test terminal device. The device testing apparatus 1200 includes a second information receiving module 1201 , an instruction execution module 1202 and a second information sending module 1203 .

[0177] The second information receiving module 1201 is used to receive a first test instruction sent by the control device when a communication connection is established with the control device, where the first test instruction carries device identification information corresponding to the first test terminal device;

[0178] An instruction execution module 1202, configured to execute the test task corresponding to the first test instruction when it is determined that the device identification information matches its own device identification information;

[0179] The second information sending module 1203 is used to send the test result to the control device.

[0180] Fig.13 FIG. 1 is a structural block diagram of an electronic device in an embodiment. Fig.13 As shown, the electronic device 1300 may include one or more of the following components: a processor 1301, and a memory 1302 coupled to the processor 1301, wherein the memory 1302 may store one or more computer programs, and the one or more computer programs may be configured to implement the device testing method applied to the control device as described in the above embodiments when executed by one or more processors 1301.

[0181] The processor 1301 may include one or more processing cores. The processor 1301 uses various interfaces and lines to connect the various parts of the entire electronic device 1300, and executes various functions and processes data of the electronic device 1300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1302, and calling data stored in the memory 1302. Optionally, the processor 1301 can be implemented in at least one hardware form of digital signal processing, field programmable gate array, and programmable logic array. The processor 1301 can integrate one or a combination of a central processing unit, an image processor, and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1301, and may be implemented separately through a communication chip.

[0182] The memory 1302 may include a random access memory or a read-only memory. The memory 1302 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1302 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 1300 during use, etc.

[0183] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor in an electronic device, the electronic device implements a device testing method applied to a control device as described in the above embodiments.

[0184] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor in an electronic device, the electronic device implements a device testing method applied to a first test terminal device as described in the above embodiments.

[0185] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program can be executed by a processor in an electronic device, the electronic device implements the device testing method applied to the control device as described in the above embodiments.

[0186] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program can be executed by a processor in an electronic device, the electronic device implements the device testing method applied to the first test terminal device as described in the above embodiments.

[0187] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a ROM, etc.

[0188] The above description is only a specific example of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A device testing method, characterized in that: Applied to a control device, the method comprises: Obtain device identification information corresponding to multiple test terminal devices respectively; In the case of establishing a communication connection with the multiple test terminal devices, a first test instruction is sent to each of the test terminal devices according to the device identification information respectively corresponding to the multiple test terminal devices; wherein the first test instruction sent to the first test terminal device carries the device identification information corresponding to the first test terminal device, so that the first test terminal device executes the test task corresponding to the received first test instruction when determining that the device identification information matches its own device identification information, and the first test terminal device is any of the test terminal devices; Receive the test result sent by the first test terminal device.

2. The method according to claim 1, characterized in that The obtaining of device identification information respectively corresponding to the plurality of test terminal devices includes: Scan the graphic codes respectively displayed by the multiple test terminal devices, and identify the scanned graphic codes to obtain device identification information respectively corresponding to the multiple test terminal devices.

3. The method according to claim 1 or 2, characterized in that: After acquiring the device identification information respectively corresponding to the plurality of test terminal devices, the method further includes: A window corresponding to each of the plurality of test terminal devices is created, wherein the window is used to display device identification information of the corresponding test terminal device and / or information transmitted between the corresponding test terminal device.

4. The method according to claim 1, characterized in that: The sending a first test instruction to each of the test terminal devices according to the device identification information respectively corresponding to the plurality of test terminal devices comprises: Acquire a test tag corresponding to a first test terminal device, where the test tag is used to identify a historical test result of the first test terminal device; If the test mark indicates that the historical test result is a successful test, a first test instruction is sent to the first test terminal device according to the device identification information corresponding to the first test terminal device.

5. The method according to claim 1, 2 or 4, characterized in that: The sending a first test instruction to each of the test terminal devices according to the device identification information respectively corresponding to the plurality of test terminal devices comprises: According to the device identification information respectively corresponding to the multiple test terminal devices, a first test instruction is sent to the multiple test terminal devices in parallel.

6. The method according to claim 1, characterized in that The method further comprises: When only a communication connection is established with the second test terminal device, a second test instruction is sent to the second test terminal device, wherein the second test instruction only includes test task information, so that the second test terminal device executes the test task corresponding to the second test instruction according to the test task information.

7. A device testing method, characterized in that: Applied to a first test terminal device, the method includes: In a case where a communication connection is established with a control device, receiving a first test instruction sent by the control device, the first test instruction carrying device identification information corresponding to the first test terminal device; When it is determined that the device identification information matches the device identification information of the device itself, executing the test task corresponding to the first test instruction; The test result is sent to the control device.

8. A device testing apparatus, characterized in that: Applied to a control device, the device comprises: An information acquisition module is used to obtain device identification information corresponding to multiple test terminal devices respectively; A first information sending module is used to send a first test instruction to each of the test terminal devices according to the device identification information corresponding to the multiple test terminal devices respectively, when a communication connection is established with the multiple test terminal devices; wherein the first test instruction sent to the first test terminal device carries the device identification information corresponding to the first test terminal device, so that the first test terminal device executes the test task corresponding to the received first test instruction when determining that the device identification information matches its own device identification information, and the first test terminal device is any of the test terminal devices; The first information receiving module is used to receive the test result sent by the first test terminal device.

9. A device testing apparatus, characterized in that: Applied to a first test terminal device, the apparatus comprises: A second information receiving module, configured to receive a first test instruction sent by the control device when a communication connection is established with the control device, wherein the first test instruction carries device identification information corresponding to the first test terminal device; An instruction execution module, configured to execute the test task corresponding to the first test instruction when it is determined that the device identification information matches its own device identification information; The second information sending module is used to send the test result to the control device.

10. An electronic device, characterized in that: The electronic device comprises a memory, a processor and a communication unit, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the electronic device implements the device testing method according to any one of claims 1 to 6 or 7.

Citation Information

Cited By

  • Multi-channel test method, electronic equipment and test system thereof

    CN120559435A

  • Method and device for checking and managing non-networked offline equipment and storage medium

    CN121727986A