Test method, test device, storage medium and electronic equipment
By setting up a second near-field communication module on the test platform of electronic equipment and using near-field communication technology to automatically determine and execute test procedures, it solves the problems of high testing costs and complex automation equipment configuration in electronic equipment production lines, and achieves efficient and simplified testing. Automated testing process, strong adaptability and short development cycle.
Patent Information
- Application Number
- CN202310298601.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
The testing cost of existing electronic equipment production lines is high and the configuration of automated equipment is complex, making it difficult to promote and use it in a large number of production lines, and the development cycle of new test items is long.
By setting the second near field communication module on the test platform, the electronic device uses the first near field communication module to obtain identification information to automatically determine and execute the test program, thereby realizing automated testing and reducing dependence on automated equipment.
It reduces the testing cost, simplifies the testing process, improves the testing efficiency, has strong adaptability, reduces the floor space of the automation equipment, and shortens the development cycle.
Smart Images

Figure CN118694840A
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a testing method, a testing device, a storage medium and an electronic device. Background Art
[0002] In order to ensure the quality of electronic devices such as mobile phones before they leave the factory, various tests need to be performed on the electronic devices on the production line to improve the stability and reliability of the electronic devices. In the related art, in order to improve the test efficiency, the test stations on the production line are equipped with test equipment, such as computers, scanners and other automated equipment used to control the electronic devices for automated testing, resulting in high test costs. Summary of the invention
[0003] The embodiments of the present application provide a testing method, a testing device, a storage medium, and an electronic device, which reduce the testing cost on the basis of realizing automated testing of the electronic device.
[0004] In a first aspect, an embodiment of the present application provides a testing method, which is applied to an electronic device, wherein the electronic device includes a first near field communication module, and the method includes:
[0005] In response to the first near field communication module detecting a second near field communication module, acquiring identification information stored in the second near field communication module, the second near field communication module being arranged on a test platform, the identification information being used to indicate a test item of the test platform;
[0006] Determine the target test item that needs to be tested currently according to the identification information;
[0007] Determining a target test program for executing the target test item;
[0008] Execute the target test program and complete the test of the target test item on the test platform.
[0009] In a second aspect, an embodiment of the present application provides a testing device, which is applied to an electronic device, wherein the electronic device includes a first near field communication module, and the device includes:
[0010] an acquisition module, configured to acquire identification information stored in a second near field communication module in response to the first near field communication module detecting the second near field communication module, wherein the second near field communication module is provided on a test platform, and the identification information is used to indicate a test item of the test platform;
[0011] A first determination module, used to determine a target test item that currently needs to be tested according to the identification information;
[0012] A second determination module, used to determine a target test program for executing the target test item;
[0013] The execution module is used to execute the target test program and complete the test of the target test item on the test platform.
[0014] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the method provided by the embodiment of the present application.
[0015] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the method provided in the embodiment of the present application by calling a computer program stored in the memory.
[0016] In an embodiment of the present application, the test platform is provided with a second near-field communication module, and the second near-field communication module stores identification information, and the identification information is used to indicate the test items of the test platform. The electronic device includes a first near-field communication module. When the electronic device is close to the test platform, the first near-field communication module of the electronic device can obtain the identification information stored in the second near-field communication module of the test platform. According to the identification information, the electronic device can obtain the test items of the test platform. A corresponding test program is stored in the electronic device for each test item. After determining the target test item that the electronic device currently needs to test, a target test program for executing the target test item can be determined, and the target test program can be automatically executed to complete the test of the target test item in accordance with the environmental conditions of the test platform. Therefore, in the embodiment of the present application, the electronic device only needs to use its own first near-field communication module to obtain the identification information of the second near-field communication module of the test platform, so as to automatically determine the target test item that needs to be tested currently, and automatically execute the target test program corresponding to the target test item, so as to automatically complete the test of the target test item on the test platform, that is, as long as the electronic device is moved close to the test platform, the electronic device can self-trigger the test of the corresponding test item, and there is no need to manually trigger the electronic device to start the test, thereby realizing the automated testing of the electronic device, and the test platform only needs to configure relatively simple environmental conditions to assist the test, and does not need to specially configure computers, scanners and other automated equipment for controlling the electronic device to perform automated testing, thereby reducing the testing cost; and the electronic device does not need to interact with these automated equipment for related instructions during the test, the testing method is simpler and more stable, and the testing efficiency is also improved, and it can be promoted and used in a large number of production lines; and because the test platform reduces the automated equipment required for the test, it occupies a small area, and it is also convenient to move and replace the test platform on the production line, and has strong adaptability; in addition, when the electronic device adds a new test item, it is not necessary to develop relevant instructions for the interaction between the automated equipment and the electronic device for the newly added test item, and the development cycle is also relatively short. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 This is a first flow chart of the testing method provided in the embodiment of the present application.
[0019] Figure 2 A first test schematic diagram of an electronic device provided in an embodiment of the present application.
[0020] Figure 3 A second test schematic diagram of an electronic device provided in an embodiment of the present application.
[0021] Figure 4 A second flow chart of the testing method provided in the embodiment of the present application.
[0022] Figure 5 A schematic diagram of identification information stored in a second near field communication module of an electronic device for maintaining a test platform.
[0023] Figure 6 A schematic diagram of a wireless connection interface provided in an embodiment of the present application.
[0024] Figure 7 A first structural schematic diagram of the testing device provided in an embodiment of the present application.
[0025] Figure 8 A second structural diagram of the test device provided in the embodiment of the present application
[0026] Fig. 9 A first structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0027] Fig.10 A second structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] Please refer to the drawings, where the same component symbols represent the same components. The principle of the present application is illustrated by implementing it in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.
[0029] It is understandable that the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
[0030] See also Figure 1 , Figure 1 1 is a schematic diagram of a first flow chart of a test method provided in an embodiment of the present application. The test method can be applied to an electronic device, the electronic device includes a first near field communication module, and the flow of the test method can include:
[0031] In 101, in response to the first near field communication module detecting the second near field communication module, the second near field communication module is set on a test platform, and identification information stored in the second near field communication module is obtained, where the identification information is used to indicate a test item of the test platform.
[0032] Please refer to Figure 2 , Figure 2 A schematic diagram of the first test of an electronic device provided in an embodiment of the present application. The test stations on the production line are equipped with automated equipment, such as computers, scanners, etc. These automated equipment interact with the electronic equipment to perform relevant instructions to control the electronic equipment for automated testing. The testing cost is high and it is not easy to promote on a large number of production lines. Moreover, automated equipment such as computers are large in size and occupy a large area. It is not convenient to move the production line process and arrange the wire drawing process, and the adaptability is poor. In addition, for each new test item of the electronic equipment, it is necessary to design relevant instructions for the interaction between the automated equipment and the electronic equipment, and the development cycle is also long.
[0033] When testing electronic devices, most test platforms do not need to be configured with computers, scanners and other automated equipment to achieve automated testing of electronic devices, thereby reducing testing costs. In the embodiments of the present application, a second near-field communication module can be set on the test platform, and the second near-field communication module stores identification information, and the identification information is used to indicate the test items of the test platform. For example, if the test item applicable to test platform 1 is a flash calibration test, then the identification information stored in the second near-field communication module of test platform 1 is used to indicate that the test item of test platform 1 is a flash calibration test. For another example, if the test item applicable to test platform 2 is an AE calibration test, then the identification information stored in the second near-field communication module of test platform 2 is used to indicate that the test item of test platform 2 is an AE calibration test.
[0034] Please refer to Figure 3 , Figure 3 A second test schematic diagram of an electronic device provided in an embodiment of the present application. The electronic device, such as a mobile phone, has a first near-field communication module. When the electronic device is close to a test platform, the first near-field communication module of the electronic device and the second near-field communication module of the test platform can exchange data. The first near-field communication module of the electronic device can obtain identification information stored in the second near-field communication module of the test platform. According to the identification information, the electronic device can obtain the test items of the test platform.
[0035] In one embodiment, the first near field communication module of the electronic device may include, for example, an NFC chip, on which functions such as an inductive card reader, an inductive card, and point-to-point communication may be integrated. The second near field communication module of the test platform may include, for example, an NFC tag, which may also be understood as a small chip that can be erased and written for input.
[0036] When the electronic device is close to the test platform, the NFC chip of the electronic device can perform contactless point-to-point data transmission with the NFC tag of the test platform. It should be noted that in the embodiment of the present application, the first near-field communication module of the electronic device and the second near-field communication module of the test platform only need to be able to achieve near-field communication, and the embodiment of the present application does not limit the specific technology of near-field communication.
[0037] In 102, a target test item that needs to be tested currently is determined according to the identification information.
[0038] In one embodiment, all test items that need to be tested for electronic devices of different models can be pre-configured. For example, the electronic device can pre-store a configuration file, which is used to describe a test item list of the electronic device. The test item list may include all test items to be tested by the electronic device. When the electronic device is close to the test platform, the first near-field communication module obtains identification information stored by the second near-field communication module. If the test item list of the electronic device includes a test item indicated by the identification information, the test item indicated by the identification information is determined as the target test item that the electronic device currently needs to test on the test platform.
[0039] Exemplarily, the test item list may store a correspondence between the test items and the identification information, wherein the identification information and the test items may correspond one to one, and one identification information may correspond to multiple test items, but each identification information is unique, and each identification information corresponds to a different test item. Please refer to Table 1, which is an example table of the test item list:
[0040]
[0041] For example, an electronic device is close to test platform 1, and the identification information stored in the second near field communication module of test platform 1 indicates that the test item is a flash calibration test. According to the list of test items in Table 1, the test items to be tested for the electronic device include the flash calibration test, so the flash calibration test is determined as the target test item that the electronic device currently needs to test. For another example, an electronic device is close to test platform 2, and the identification information stored in the second near field communication module of test platform 2 indicates that the test item is a vibration test. According to the list of test items in Table 1, if the test items to be tested for the electronic device do not include the vibration test, then it can be considered that the electronic device does not need to be subjected to a vibration test on the test platform. In this case, the employee can be reminded to move the electronic device to other test platforms for testing. The embodiments of the present application do not limit the reminder method, for example, the reminder method can be through sound alarm, flashing indicator light or flash light, or display screen display.
[0042] In 103, a target test program for executing the target test item is determined.
[0043] In 104, the target test program is executed to complete the test of the target test item on the test platform.
[0044] In the embodiment of the present application, the electronic device stores a corresponding test program for each test item, that is, each test item is associated with a corresponding test program, and the test of the corresponding test item can be completed by executing the associated test program. Therefore, when the target test item that the electronic device currently needs to test is determined, the target test program corresponding to the target test item can be determined, and the target test program can be executed to complete the test of the target test item on the test platform.
[0045] It is understandable that the test platform is configured with environmental conditions for completing the target test items. For example, the target test item of the electronic device tested on the test platform 1 is: flash calibration test. The test platform 1 can be designed to be shaped like a box, with a whiteboard fixed to the bottom of the box. A clamp that can fix the electronic device can be set on the top of the box. When the clamp fixes the electronic device, the camera and the flash of the electronic device can be avoided, and the camera of the electronic device faces the whiteboard at the bottom of the box. The second near-field communication module of the test platform 1 can be set on the clamp, and the electronic device can obtain the identification information of the second near-field communication module on the clamp. At the same time, the clamp can also fix the position of the electronic device, so that the electronic device can maintain a suitable relative distance and orientation with the whiteboard at the bottom of the box.
[0046] The electronic device can automatically call the test program corresponding to the flash calibration test and execute the test program. During the execution of the test program, for example, the electronic device can be controlled to turn on the flash, and the white board at the bottom of the box can be photographed by the camera. The parameter status of the flash can be obtained by analyzing the photographed image, and the corresponding parameters can be adjusted to complete the flash calibration test and record the test results.
[0047] Therefore, in an embodiment of the present application, the test platform is provided with a second near-field communication module, and the second near-field communication module stores identification information, where the identification information is used to indicate the test items of the test platform. The electronic device includes a first near-field communication module. When the electronic device is close to the test platform, the first near-field communication module of the electronic device can obtain the identification information stored in the second near-field communication module of the test platform. According to the identification information, the electronic device can obtain the test items of the test platform. If the test items to be tested by the electronic device include the test items indicated by the identification information, then the test items indicated by the identification information are determined as the target test items that the electronic device currently needs to test on the test platform. Different test items in the electronic device are associated with corresponding test programs. After determining the target test items that the electronic device currently needs to test, the target test program for executing the target test item can be determined, and with the assistance of the environmental conditions of the test platform, the target test program can be automatically executed to complete the test of the target test item on the test platform. Therefore, in the embodiment of the present application, the electronic device only needs to use its own first near-field communication module to obtain the identification information of the second near-field communication module of the test platform, so as to automatically determine the target test item that needs to be tested currently, and automatically execute the target test program corresponding to the target test item, so as to automatically complete the test of the target test item on the test platform. That is, as long as the electronic device is moved close to the test platform, the electronic device can self-trigger the test of the corresponding test item, and there is no need to manually trigger the electronic device to start the test, thereby realizing the automated testing of the electronic device. Moreover, the test platform only needs to configure relatively simple environmental conditions to assist the test, and there is no need to specially configure computers, scanners and other automated equipment to control the electronic device for testing, thereby reducing the testing cost. Moreover, the electronic device does not need to interact with these automated equipment for related instructions during the test, and the testing method is simpler and more stable, with high testing efficiency, and can be promoted and used in a large number of production lines. Moreover, since the test platform reduces the automated equipment required for the test, it occupies a small area, and it is also convenient to move and replace the test platform on the production line, and has strong adaptability. In addition, when a new test item is added to the electronic device, there is no need to develop relevant instructions for the interaction between the automated equipment and the electronic device for the new test item, and the development cycle is also relatively short.
[0048] See also Figure 4 , Figure 4 A second flow chart of the testing method provided in the embodiment of the present application.
[0049] In 201, in response to the first near field communication module detecting the second near field communication module, identification information stored in the second near field communication module is acquired, the second near field communication module is set on a test platform, and the identification information is used to indicate a test item of the test platform.
[0050] In an embodiment of the present application, a second near-field communication module may be provided on the test platform, and the second near-field communication module stores identification information, where the identification information is used to indicate a test item of the test platform. For example, if the test item applicable to test platform 1 is a flash calibration test, then the identification information stored in the second near-field communication module of test platform 1 is used to indicate that the test item of test platform 1 is a flash calibration test. For another example, if the test item applicable to test platform 2 is an AE calibration test, then the identification information stored in the second near-field communication module of test platform 2 is used to indicate that the test item of test platform 2 is an AE calibration test.
[0051] In 202, the correspondence between the identification information and the test items is obtained.
[0052] In 203, according to the corresponding relationship and the acquired identification information, the target test item that needs to be tested currently is determined.
[0053] An electronic device, such as a mobile phone, has a first near-field communication module. When the electronic device is close to the test platform, the first near-field communication module of the electronic device and the second near-field communication module of the test platform can exchange data, and the first near-field communication module can obtain the identification information stored by the second near-field communication module. The electronic device can pre-store the correspondence between the test items and the identification information, and determine the target test items that need to be tested currently based on the correspondence and the obtained identification information. Among them, the identification information and the test items can correspond one-to-one, and one identification information can correspond to multiple test items, but each identification information is unique, and each identification information corresponds to a different test item.
[0054] In one embodiment, the test items of the electronic device can be customized, that is, different models of electronic devices can be configured with different test items through customized configuration. Exemplarily, exclusive configuration files can be defined for electronic devices of different models, and the configuration file describes the correspondence between the test items and identification information of the electronic device, that is, the configuration file describes the test items that need to be tested for the electronic device of this model, and the identification information corresponding to the test items. It can also be understood that the test item list of the electronic device is defined by the configuration file, and the configuration file can be in xml or ini format, for example, and the electronic device is connected to the debug bridge ADB through USB or WIFI, and the configuration file corresponding to the electronic device of the current model is written into the file storage root directory of the electronic device through the ADB instruction, and the electronic device can read the configuration file from this root directory.
[0055] For example, please refer to Table 1. The identification information can be a numerical value, such as 001, 002, 003, etc. If the electronic device is close to the test platform 1, the first near field communication module obtains the identification information stored in the second near field communication module. If the obtained identification information is 001, the electronic device reads the stored configuration file, and according to the corresponding relationship between the identification information and the test items described in the configuration file, it is determined that the target test item that the electronic device currently needs to test is: flash calibration test; if the obtained identification information is 002, the electronic device reads the stored configuration file, and according to the corresponding relationship between the identification information and the test items described in the configuration file, it is determined that the target test item that the electronic device currently needs to test is: AE calibration test. In another example, if the obtained identification information is 005, the electronic device reads the stored configuration file, and according to the corresponding relationship between the identification information and the test items described in the configuration file, it is determined that the target test items that the electronic device currently needs to test are two: camera color reproduction test and camera resolution test. It should be noted that the configuration file can also describe the test order of the test items. If there are multiple target test items corresponding to the identification information, they can be tested in sequence according to the test order of the test items defined in the configuration file. In another example, if the obtained identification information is 015, the electronic device reads the stored configuration file, and if the test items that the electronic device described in the configuration file needs to test do not include the test items corresponding to the identification information 015, then it can be considered that the electronic device does not need to be tested on the test platform. In this case, the employee can be reminded to move the electronic device to other test platforms for testing. The embodiment of the present application does not limit the movement method of the electronic device, and it can be moved by a mechanical arm or manually.
[0056] It is understandable that if the test items of the electronic device need to be modified, the configuration file may be modified and rewritten into the electronic device. After the electronic device loads the configuration file, the test items of the electronic device may be refreshed.
[0057] In 204 , a target test program for executing the target test item is determined.
[0058] In 205 , the target test program is executed in the engineering test mode, and the test of the target test item is completed on the test platform.
[0059] In the embodiment of the present application, the electronic device stores a corresponding test program for each test item, and the test of the corresponding test item can be completed by executing the test program. Therefore, when the target test item that the electronic device currently needs to test is determined, the target test program corresponding to the target test item can be determined, and the target test program can be executed in the engineering test mode.
[0060] Exemplarily, the electronic device can run a background monitoring program, which calls the first near-field communication module to detect whether the second near-field communication module is detected. If the first near-field communication module detects the second near-field communication module, the identification information stored in the second near-field communication module is obtained to determine the target test item that the electronic device currently needs to test, and the engineering test mode of the electronic device can be automatically turned on to execute the target test program corresponding to the target test item in the engineering test mode.
[0061] Among them, the engineering test mode is a working mode for testing and viewing the test items of the electronic device. In the engineering test mode, all the test items on the electronic device are basically covered. The electronic device can internally customize the test program running in the engineering test mode. Each test item is associated with a corresponding test program, and the test of the corresponding test item can be completed by executing the associated test program. Exemplarily, if it is determined that the target test item that the electronic device currently needs to test is: flash calibration test, then the test program associated with the flash calibration test can be called, and the test program associated with the flash calibration test can be executed.
[0062] The engineering test mode of an electronic device is generally used for internal test functions during the production of the electronic device. The engineering test mode will be turned off when it leaves the factory, so it does not affect the user's use. It should be noted that the embodiment of the present application does not limit the way in which the electronic device enters the engineering test mode. For example, if the electronic device needs to test multiple test items on multiple test platforms, when the first near-field communication module of the electronic device detects the second near-field communication module on the first test platform and obtains the identification information stored in the second near-field communication module, it can automatically trigger the electronic device to enter the engineering test mode. In the engineering test mode, the target test program corresponding to the target test item is run, and the next multiple test items are completed in the engineering test mode. In another example, the electronic device can also be controlled to enter the engineering test mode in advance before the electronic device is tested. For example, the electronic device can be controlled to enter the engineering test mode by inputting a specified dial value through a dial key, or the electronic device can be controlled to enter the engineering test mode by sending a corresponding ADB instruction, so that the electronic device can complete multiple test items in the engineering test mode.
[0063] In one implementation, the electronic device can also maintain the identification information stored in the second near field communication module of the test platform in the engineering test mode. Specifically, the electronic device can obtain the identification information corresponding to the test item according to the test item of the test platform; and write the identification information into the second near field communication module of the test platform. Figure 5 , Figure 5A schematic diagram of identification information stored in the second near field communication module of the maintenance test platform by an electronic device. The electronic device can not only read the identification information of the second near field communication module on the test platform, but also write the identification information to the second near field communication module on the test platform. It should be noted that the embodiment of the present application does not limit the functions of the engineering test mode. For example, in the engineering test mode, various functional parameter indicators of the electronic device can also be debugged or viewed.
[0064] Exemplarily, when a new test platform is added, identification information corresponding to the test item is obtained based on the test item of the test platform. For example, the test item used to test the new test platform is the AE calibration test. According to the correspondence between the test item and the identification information in Table 1, it can be determined that the identification information is 002. The electronic device can write the identification information 002 into the second near-field communication module of the new test platform. Then, when the electronic device is close to the new test platform, the first near-field communication module can obtain the identification information 002 stored in the second near-field communication module. The electronic device determines that the target test item that currently needs to be tested on the new test platform is the AE calibration test based on the correspondence between the identification information and the test item.
[0065] In another example, if the test item indicated by the identification information stored in the second near-field communication module of the test platform does not match the test platform, that is, the identification information stored in the second near-field communication module of the test platform is incorrect, for example, the test item applicable to test platform 1 is: flash calibration test. According to the correspondence between the test item and the identification information, the identification information stored in the second near-field communication module should be: 001. However, the electronic device reads the identification information of the second near-field communication module on test platform 1 as: 002. Then the electronic device may also write the matching identification information into the second near-field communication module on the test platform.
[0066] It can be understood that the test platform is configured with environmental conditions for completing the target test items, and the electronic device can collect test data under the environmental conditions; process the test data to obtain test results to complete the test of the target test items.
[0067] For example, the target test item of the electronic device tested on the test platform 1 is: flash calibration test. The test platform 1 can be designed to be in a box-like shape, with a whiteboard fixed to the bottom of the box. A clamp that can fix the electronic device can be set on the top of the box. When the clamp fixes the electronic device, the camera and the flash of the electronic device are avoided, and the camera of the electronic device faces the whiteboard at the bottom of the box. The second near-field communication module of the test platform 1 can be set on the clamp, and the electronic device can obtain the identification information of the second near-field communication module on the clamp. At the same time, the clamp can also fix the position of the electronic device, so that the electronic device can maintain a suitable relative distance and orientation with the whiteboard at the bottom of the box.
[0068] The electronic device can automatically call the test program corresponding to the flash calibration test and execute the test program. During the execution of the test program, for example, the electronic device can be controlled to turn on the flash, and the white board at the bottom of the box can be photographed by the camera. The parameter status of the flash can be obtained by analyzing the photographed image, and the corresponding parameters can be adjusted to complete the flash calibration test and record the test results.
[0069] It is understandable that some test platforms include test equipment. For example, if the test item of test platform 4 is: audio test, then the test platform needs to configure the audio equipment to cooperate with the electronic equipment to complete the test. For example, the audio equipment needs to establish a wireless connection with the electronic equipment to realize the transmission of audio data. In the related technology, it is necessary to manually open the wireless connection interface on the electronic equipment. Please refer to Figure 6 , Figure 6 A schematic diagram of a wireless connection interface provided for an embodiment of the present application. The wireless connection interface includes connection information, such as the IP address information of the electronic device, etc. The wireless connection interface may display a QR code including the connection information, and the audio device may achieve a wireless connection with the electronic device, such as a WIFI connection, by scanning the QR code on the electronic device. It is understandable that during testing, employees may easily forget to open the wireless connection interface on the electronic device, resulting in a scanning failure of the audio device, and the inability to connect to the electronic device normally, which increases the probability of test failure, and retesting may also prolong the test time, resulting in low test efficiency.
[0070] In an embodiment of the present application, when the target test item currently being tested by the electronic device is determined and a wireless connection needs to be established between the test device and the electronic device, the electronic device can be automatically triggered to open the wireless connection interface when the target test program for the target test item is executed, so that the test device can establish a wireless connection with the electronic device by scanning the network connection interface. There is no need to manually open the wireless connection interface of the electronic device, thereby avoiding the problem of scan failure of the test device due to the electronic device not opening the wireless connection interface when testing the target test item, thereby improving the test yield and test efficiency of the electronic device.
[0071] It can be understood that if the test items of the test platform require the test device to establish a wireless connection with the electronic device, a second near-field communication module can also be pre-set in the test platform. When the electronic device is close to the second near-field communication module, the wireless connection interface is automatically opened to facilitate the test device to establish a wireless connection with the electronic device. After the wireless connection is established, the electronic device is brought close to another near-field communication module in the test platform to trigger the electronic device to automatically complete the test of the test item; or, if the test items of the test platform require the electronic device to connect to a wireless network, a second near-field communication module can also be set in the test platform to trigger the electronic device to automatically connect to the wireless network. That is, the embodiment of the present application sets a second near-field communication module on the test platform, and different functions are written into the second near-field communication module, so that the electronic device can be automatically triggered to complete the test steps corresponding to the function, thereby reducing manual operations and improving test efficiency.
[0072] In one embodiment, when the electronic device testing platform completes the testing of the target test item, the test result can be displayed. The test result can be, for example, pass (PASS) or fail (FAIL). If the displayed test result is fail, the electronic device can be brought close to the testing platform again to re-trigger the electronic device to test the test item again.
[0073] In one embodiment, after the electronic device testing platform completes the testing of the target test item, the test results can also be recorded. For example, the electronic device will generate a test result flag for the target test item. If the test result flag is generated, it means that the electronic device has completed the test. Different test result flags can also be used to indicate whether the electronic device test result is passed or failed.
[0074] Exemplarily, a testing platform can also be set up on the production line. The testing platform can be set up, for example, at the rear end or the last workstation of the production line. When the electronic equipment reaches the testing platform, multiple test items have been completed. The testing platform can be provided with testing equipment, and the testing equipment is connected to the electronic equipment so that the test result flag of each test item can be read, so as to detect whether all the test items that should be completed have been completed before reaching the testing platform to prevent missed tests; further, detect whether the test results of each test item are passed. If the test results are all passed, the electronic equipment can be controlled to directly enter the next process, such as film pasting, packaging, warehousing and other processes. If there are missed test items, or the test results of some test items are failed, the electronic equipment cannot be controlled to directly enter the next process to ensure the factory quality of the electronic equipment.
[0075] In another example, a display platform can also be set up on the production line, and a third near-field communication module is set up on the display platform. When the electronic device completes the test of multiple test items, the electronic device can be moved close to the display platform, and in response to detecting the third near-field communication module, the display information stored in the third near-field communication module is obtained; according to the display information, the test result interface is displayed, and the test result interface displays the test items and the corresponding test results. That is, in the embodiment of the present application, when it is necessary to confirm whether the electronic device has completed all the test items, or when it is necessary to view the test results of the electronic device test items, the electronic device can be brought close to the third near-field communication module of the display platform, so that the electronic device self-triggers and displays the test result interface. The operation is simple and convenient, and there is no need for manual operation of the electronic device, nor is there a need for the test device to be connected to the electronic device. The test results of the test items can be conveniently viewed through the display screen of the electronic device, so as to facilitate the employees to arrange the next step of testing the electronic device.
[0076] It is understandable that different test platforms can test different test items, but the same test platform can also be used to test multiple test items. Therefore, the electronic device determines that the target test item that needs to be tested currently can be one or more according to the identification information stored in the second near-field communication module. Please refer to Table 1. One identification information can correspond to one test item, but one identification information can also correspond to multiple test items. For example, the electronic device is close to the test platform 5, and the first near-field communication module obtains the identification information stored in the second near-field communication module as 005. The target test items corresponding to the identification information 005 include: the color reproduction test of the camera and the resolution test of the camera. Then, according to the order of the test items defined in the configuration file, one target test item can be completed first, and then the next target test item can be carried out until all the target test items corresponding to the identification information 005 are tested.
[0077] In an embodiment of the present application, the test platform is provided with a second near-field communication module, which stores identification information, and the electronic device includes a first near-field communication module. When the electronic device is close to the test platform, the first near-field communication module can obtain the identification information stored in the second near-field communication module, and determine the target test item that currently needs to be tested based on the correspondence between the identification information and the test item, and the identification information obtained, and automatically execute the target test program associated with the target test item in the engineering test mode with the assistance of the test platform environmental conditions, so as to complete the test of the target test item on the test platform. Therefore, in the embodiment of the present application, the electronic device only needs to use its own first near-field communication module to obtain the identification information of the second near-field communication module of the test platform, so as to automatically determine the target test item that needs to be tested currently, and automatically execute the target test program associated with the target test item to complete the test of the target test item. That is, as long as the electronic device is moved close to the test platform, the electronic device can self-trigger the test of the corresponding test item, and there is no need to manually trigger the electronic device to start the test, thereby realizing the automated testing of the electronic device. The test platform only needs to configure relatively simple environmental conditions to assist the test, and there is no need to specially configure computers, scanners and other automated equipment to control the electronic device for testing, thereby reducing the testing cost. Moreover, the electronic device does not need to interact with these automated equipment for related instructions during the test. The testing method is simpler and more stable, and the testing efficiency is high, so it can be promoted and used in a large number of production lines. Moreover, since the test platform reduces the automated equipment required for the test, it occupies a small area, and it is also convenient to move and replace the test platform on the production line, and it has strong adaptability. In addition, when a new test item is added to the electronic device, there is no need to develop relevant instructions for the interaction between the automated equipment and the electronic device for the new test item, and the development cycle is also relatively short.
[0078] See also Figure 7 and Figure 8 , Figure 7 A first structural diagram of a test device provided in an embodiment of the present application, Figure 8 A second structural diagram of a test device provided in an embodiment of the present application. The test device can be applied to an electronic device, and the electronic device includes a first near field communication module. The test device 300 may include an acquisition module 301, a first determination module 302, a second determination module 303, and an execution module 304.
[0079] The acquisition module 301 is used to: in response to the first near field communication module detecting the second near field communication module, acquire identification information stored in the second near field communication module, the second near field communication module is set on the test platform, and the identification information is used to indicate the test items of the test platform;
[0080] The first determination module 302 is used to: determine the target test item that needs to be tested currently according to the identification information;
[0081] The second determination module 303 is used to: determine a target test program for executing a target test item;
[0082] The execution module 304 is used to execute the target test program and complete the test of the target test item on the test platform.
[0083] In one implementation, the first determining module 302 may be used to: obtain a correspondence between identification information and a test item; and determine a target test item that currently needs to be tested according to the correspondence and the obtained identification information.
[0084] In one implementation, the execution module 304 may be configured to execute a target test program in an engineering test mode.
[0085] In one embodiment, the test platform is configured with environmental conditions for running the test program, and the execution module 304 can be used to: collect test data under the environmental conditions; process the test data to obtain test results to complete the test of the target test items.
[0086] In one implementation, the test platform includes a test device, and the execution module 304 can be used to trigger opening of a wireless connection interface so that the test device establishes a wireless connection with the electronic device by scanning the wireless connection interface.
[0087] In one implementation, the test device further includes a maintenance module 305, which can be used to: obtain identification information corresponding to the test items of the test platform; and write the identification information into the second near field communication module of the test platform.
[0088] In one embodiment, the testing device also includes a display module 306, which can be used to: in response to detecting a third near-field communication module, the third near-field communication module is set on the display platform, and the display information stored in the third near-field communication module is obtained; according to the display information, a test result interface is displayed, and the test result interface displays the test items of the electronic device and the corresponding test results.
[0089] The application embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the test method provided in this embodiment.
[0090] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the process in the test method provided in this embodiment by calling a computer program stored in the memory.
[0091] For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Fig. 9 , Fig. 9 A first structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0092] The electronic device 400 may include a first near field communication module 401, a memory 402, a processor 403 and other components. Those skilled in the art will appreciate that Figure 7 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0093] The first near field communication module 401 may include, for example, an NFC chip, on which functions such as an inductive card reader, an inductive card, and point-to-point communication may be integrated. When the electronic device is close to the test platform, the NFC chip of the electronic device may perform contactless point-to-point data transmission with the NFC tag of the test platform.
[0094] The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 403 executes various functional applications and data processing by running the applications stored in the memory 402. The processor 403 is electrically connected to the memory 402.
[0095] The processor 403 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.
[0096] In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application program stored in the memory 402, thereby executing:
[0097] In response to the first near field communication module detecting the second near field communication module, acquiring identification information stored in the second near field communication module, the second near field communication module being arranged on the test platform, and the identification information being used to indicate a test item of the test platform;
[0098] According to the identification information, determine the target test items that need to be tested currently;
[0099] Determine the target test procedure for executing the target test item;
[0100] Execute the target test program and complete the test of the target test items on the test platform.
[0101] See also Fig.10 , Fig.10 A second structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 400 further includes components such as a display screen 404, a radio frequency circuit 405, a control circuit 406, an input unit 407, an audio circuit 408, a sensor 409, and a power supply 410. The processor 403 is electrically connected to the display screen 404, the radio frequency circuit 405, the control circuit 406, the input unit 407, the audio circuit 408, the sensor 409, and the power supply 410, respectively.
[0102] The display screen 404 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of images, texts, icons, videos and any combination thereof. When the electronic device turns on the floating window function, the display interface of the display screen can be divided into a main window and a floating window for displaying different contents.
[0103] The radio frequency circuit 405 is used to send and receive radio frequency signals to communicate with network devices or other electronic devices through wireless communication.
[0104] The control circuit 406 is electrically connected to the display screen 401 and is used to control the display screen 401 to display information.
[0105] The input unit 407 can be used to receive input numbers, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. The input unit 407 can include a fingerprint recognition module.
[0106] The audio circuit 408 can provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 408 includes a microphone. The microphone is electrically connected to the processor 403. The microphone is used to receive voice information input by the user.
[0107] The sensor 409 is used to collect external environment information. The sensor 409 may include one or more sensors such as an environment brightness sensor, an acceleration sensor, and a gyroscope.
[0108] The power supply 410 is used to supply power to various components of the electronic device 400. In some embodiments, the power supply 410 may be logically connected to the processor 403 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.
[0109] Although not shown in the figure, the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0110] In this embodiment, the processor 403 in the electronic device 400 will load the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 will run the application program stored in the memory 402 to execute:
[0111] In response to the first near field communication module detecting the second near field communication module, acquiring identification information stored in the second near field communication module, the second near field communication module being arranged on the test platform, and the identification information being used to indicate a test item of the test platform;
[0112] According to the identification information, determine the target test items that need to be tested currently;
[0113] Determine the target test procedure for executing the target test item;
[0114] Execute the target test program and complete the test of the target test items on the test platform.
[0115] In one implementation, in determining the target test item that currently needs to be tested according to the identification information, the processor 403 executes: obtaining the correspondence between the identification information and the test item; and determining the target test item that currently needs to be tested according to the correspondence and the obtained identification information.
[0116] In one implementation, in executing the target test program, the processor 403 executes: executing the target test program in an engineering test mode.
[0117] In one embodiment, the test platform is configured with environmental conditions for running the test program and executing the target test program. When the test platform completes the test of the target test item, the processor 403 executes: collecting test data under environmental conditions; processing the test data to obtain test results to complete the test of the target test item.
[0118] In one embodiment, the test platform includes a test device, and in executing the target test program, the processor 403 executes: triggering the opening of the wireless connection interface, so that the test device establishes a wireless connection with the electronic device by scanning the wireless connection interface.
[0119] In one implementation, before acquiring the identification information stored in the second near field communication module, the processor 403 executes: acquiring identification information corresponding to the test item according to the test item of the test platform; and writing the identification information into the second near field communication module of the test platform.
[0120] In one embodiment, after the test platform completes the test of the target test items, the processor 403 executes: in response to detecting the third near-field communication module, the third near-field communication module is set on the display platform, and the display information stored in the third near-field communication module is obtained; according to the display information, a test result interface is displayed, and the test result interface displays the test items of the electronic device and the corresponding test results.
[0121] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the test method above, which will not be repeated here.
[0122] The testing device provided in the embodiment of the present application belongs to the same concept as the testing method in the above embodiment. Any method provided in the testing method embodiment can be run on the testing device. The specific implementation process is detailed in the testing method embodiment and will not be repeated here.
[0123] It should be noted that, for the test method of the embodiment of the present application, a person of ordinary skill in the art can understand that the whole or part of the process of implementing the test method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the test method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0124] For the test device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0125] The test method, test device, storage medium and electronic device provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A testing method, applied to electronic equipment, It is characterized in that The electronic device includes a first near field communication module, and the method includes: In response to the first near field communication module detecting a second near field communication module, acquiring test information stored in the second near field communication module, the second near field communication module being arranged on a test platform, and the identification information being used to indicate a test item of the test platform; Determine the target test item that needs to be tested currently according to the identification information; Determining a target test program for executing the target test item; Execute the target test program and complete the test of the target test item on the test platform.
2. The test method according to claim 1, It is characterized in that Determining the target test item currently to be tested according to the identification information includes: Obtain the correspondence between identification information and test items; According to the corresponding relationship and the acquired identification information, the target test item that currently needs to be tested is determined.
3. The testing method according to claim 1, It is characterized in that The executing the target test program comprises: The target test program is executed in an engineering test mode.
4. The testing method according to claim 1, It is characterized in that The test platform is configured with environmental conditions for running the target test program, and executing the target test program and completing the test of the target test item on the test platform includes: Collecting test data under the environmental conditions; The test data is processed to obtain a test result to complete the test of the target test item.
5. The testing method according to claim 1, It is characterized in that The test platform includes a test device, and the executing the target test program includes: The wireless connection interface is triggered to open, so that the test device establishes a wireless connection with the electronic device by scanning the wireless connection interface.
6. The testing method according to claim 1, It is characterized in that Before acquiring the identification information stored in the second near field communication module, the method further includes: According to the test items of the test platform, obtaining identification information corresponding to the test items; The identification information is written into the second near field communication module of the test platform.
7. The test method according to claim 1, It is characterized in that After the test platform completes the test of the target test item, the method further includes: In response to detecting a third near field communication module, acquiring display information stored in the third near field communication module, the third near field communication module being arranged on the display platform; A test result interface is displayed according to the display information, wherein the test result interface displays the test items of the electronic device and the corresponding test results.
8. A testing device, applied to electronic equipment, It is characterized in that The electronic device includes a first near field communication module, and the device includes: an acquisition module, configured to acquire identification information stored in a second near field communication module in response to the first near field communication module detecting the second near field communication module, wherein the second near field communication module is provided on a test platform, and the identification information is used to indicate a test item of the test platform; A first determination module, used to determine a target test item that currently needs to be tested according to the identification information; A second determination module, used to determine a target test program for executing the target test item; The execution module is used to execute the target test program and complete the test of the target test item on the test platform.
9. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor. It is characterized in that The processor is configured to execute the method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
