Bluetooth headset test method and device, electronic equipment and storage medium

Through the automated Bluetooth headset testing method, the problem of manual testing in the existing technology that consumes a lot of resources and is inefficient is solved, and the automated battery life test of Bluetooth headsets is realized, which improves the testing efficiency and accuracy.

CN120201357APending Publication Date: 2025-06-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311776375.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The test method of Bluetooth headphones in the prior art relies on manual operation, consumes a lot of manpower and material resources, and is low in accuracy and efficiency.

Method used

An automated Bluetooth headset testing method is provided. By determining the target Bluetooth headset to be tested, a Bluetooth connection between the terminal and the target Bluetooth headset is established. If the test task is a battery life test, at least one round of tests will be conducted until the end condition is met, the test data will be obtained and the test results will be obtained.

Benefits of technology

It realizes automatic battery life test of Bluetooth headphones, reduces labor costs, improves testing efficiency and accuracy, and is suitable for battery life test scenarios of TWS headphones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120201357A_ABST
    Figure CN120201357A_ABST
Patent Text Reader

Abstract

The invention relates to a Bluetooth earphone test method and device, electronic equipment and a storage medium, and belongs to the technical field of earphone test. The method comprises the following steps: determining a to-be-tested target Bluetooth headset; establishing a Bluetooth connection between the terminal and the target Bluetooth earphone; if the test task of the target Bluetooth headset is an endurance test, performing at least one round of test on the target Bluetooth headset until an ending condition of the endurance test is met, ending the endurance test of the target Bluetooth headset, and obtaining test data; and obtaining a test result of the target Bluetooth headset based on the test data. Therefore, compared with the prior art which mostly depends on manual testing of the Bluetooth earphone, at least one round of testing can be carried out on the target Bluetooth earphone when the testing task is the endurance testing, so that the automatic endurance testing of the Bluetooth earphone is realized, and the method has the advantages of low labor cost, high testing efficiency, high accuracy and the like; the method is suitable for the endurance test scene of the TWS earphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of headphone testing, and particularly to a testing method, device, electronic device, and storage medium for a Bluetooth headphone. Background Art

[0002] Currently, in order to ensure the normal operation of Bluetooth headphones, it is mostly necessary to test the Bluetooth headphones before they are officially put into use. However, in the related art, most rely on manual testing of Bluetooth headphones. For example, testers manually establish a connection between the Bluetooth headphones and a mobile phone, etc., which consumes a large amount of manpower and material resources, and the accuracy and efficiency are relatively low. Summary of the Invention

[0003] The present disclosure provides a testing method, device, electronic device, computer-readable storage medium, and computer program product for a Bluetooth headphone to at least solve the problem that the testing method for Bluetooth headphones in the related art consumes a large amount of manpower and material resources, and the accuracy and efficiency are relatively low. The technical solution of the present disclosure is as follows:

[0004] According to the first aspect of the embodiments of the present disclosure, a testing method for a Bluetooth headphone is provided, including: determining a target Bluetooth headphone to be tested; establishing a Bluetooth connection between a terminal and the target Bluetooth headphone; if the test task of the target Bluetooth headphone is a battery life test, performing at least one round of testing on the target Bluetooth headphone until the end condition of the battery life test is met, ending the battery life test of the target Bluetooth headphone, and obtaining test data; based on the test data, obtaining the test result of the target Bluetooth headphone.

[0005] In an embodiment of the present disclosure, the method further includes: if the test task of the target Bluetooth headphone is a short battery life test, performing a test on the target Bluetooth headphone until the battery level of at least one of the headphones in the target Bluetooth headphone is less than a first set threshold, ending the short battery life test of the target Bluetooth headphone.

[0006] In an embodiment of the present disclosure, the method further includes: if the test task of the target Bluetooth headphone is a long battery life test, performing the i-th round of testing on the target Bluetooth headphone until the battery level of at least one of the headphones in the target Bluetooth headphone is less than a first set threshold, ending the i-th round of testing, where i is a positive integer; controlling the earphone case corresponding to the target Bluetooth headphone to charge the target Bluetooth headphone; if the target Bluetooth headphone is fully charged, continuing to perform the (i + 1)-th round of testing on the target Bluetooth headphone until the battery level of at least one of the headphones in the target Bluetooth headphone is less than the first set threshold, and the battery level of the earphone case corresponding to the target Bluetooth headphone is less than a second set threshold, ending the long battery life test of the target Bluetooth headphone.

[0007] In an embodiment of the present disclosure, before controlling the earphone case corresponding to the target Bluetooth earphone to charge the target Bluetooth earphone, it further includes: identifying that the power of the earphone case corresponding to the target Bluetooth earphone is greater than or equal to the second set threshold.

[0008] In an embodiment of the present disclosure, the method further includes: if the power of the earphone case corresponding to the target Bluetooth earphone is less than the second set threshold, charging the earphone case corresponding to the target Bluetooth earphone.

[0009] In an embodiment of the present disclosure, the test data includes the total battery life of the target Bluetooth earphone. Obtaining the test data includes: obtaining the battery life of the target Bluetooth earphone in any round of testing; obtaining the sum of the battery lives of the target Bluetooth earphone in multiple rounds of testing as the total battery life.

[0010] In an embodiment of the present disclosure, performing at least one round of testing on the target Bluetooth earphone includes: obtaining the service category of the battery life test of the target Bluetooth earphone, where the service category is the category of the service provided by the target Bluetooth earphone; executing the test process corresponding to the service category to perform at least one round of testing on the target Bluetooth earphone.

[0011] In an embodiment of the present disclosure, executing the test process corresponding to the service category includes: if the service category is an audio playback service, converting a first audio to obtain a first digital signal; sending the first digital signal to the target Bluetooth earphone; controlling the target Bluetooth earphone to convert the first digital signal to obtain the first audio and play the first audio.

[0012] In an embodiment of the present disclosure, executing the test process corresponding to the service category includes: if the service category is a first type of call service, obtaining a second digital signal sent by the call object of the terminal, where the second digital signal is converted based on a second audio; sending the second digital signal to the target Bluetooth earphone; controlling the target Bluetooth earphone to convert the second digital signal to obtain the second audio and play the second audio.

[0013] In an embodiment of the present disclosure, executing the test process corresponding to the service category includes: if the service category is a second type of call service, playing a third audio in the surrounding area of the target Bluetooth earphone; controlling the target Bluetooth earphone to collect the third audio, convert the third audio to obtain a third digital signal, and send the third digital signal to the terminal; receiving the third digital signal sent by the target Bluetooth earphone; sending the third digital signal to the call object of the terminal.

[0014] In one embodiment of the present disclosure, the method further includes: obtaining the remaining terminals bound to the terminal as the call objects.

[0015] In one embodiment of the present disclosure, the method further includes: monitoring whether an abnormality occurs during the test process of the target Bluetooth headset; if an abnormality occurs during the test process of the target Bluetooth headset, performing a root cause analysis on the test abnormality to obtain a root cause analysis result; and executing the abnormality handling process corresponding to the root cause analysis result.

[0016] In one embodiment of the present disclosure, the executing the abnormality handling process corresponding to the root cause analysis result includes: if the root cause analysis result includes that the Bluetooth connection between the terminal and the target Bluetooth headset is abnormal, re - establishing the Bluetooth connection between the terminal and the target Bluetooth headset.

[0017] After establishing the Bluetooth connection between the terminal and the target Bluetooth headset, in one embodiment of the present disclosure, the method further includes: controlling the mechanical fixture to perform a set operation to control the target Bluetooth headset to perform at least one of opening the cover, closing the cover, taking out of the case, and putting into the case.

[0018] In one embodiment of the present disclosure, the determining the target Bluetooth headset to be tested includes: obtaining a test task; extracting a target identifier from the test task, and using the candidate Bluetooth headset identified by the target identifier as the target Bluetooth headset.

[0019] Before performing at least one round of testing on the target Bluetooth headset, in one embodiment of the present disclosure, the method further includes: configuring the parameters of the target device, where the target device includes the target Bluetooth headset and / or the terminal.

[0020] In one embodiment of the present disclosure, the configuring the parameters of the target device includes: obtaining a test task, and extracting the target value of the parameters of the target device from the test task; and configuring the value of the parameters of the target device to the target value.

[0021] In one embodiment of the present disclosure, the obtaining the test data includes: during the test process, receiving at least one of the data of the target Bluetooth headset and the data of the earphone case corresponding to the target Bluetooth headset sent by the target Bluetooth headset as the test data; and during the test process, obtaining at least one of the Bluetooth connection data between the terminal and the target Bluetooth headset, the audio playback data of the terminal, and the call data as the test data.

[0022] According to a second aspect of the embodiments of the present disclosure, there is provided a test device for a Bluetooth headset, including: a determination module configured to determine a target Bluetooth headset to be tested; a connection module configured to establish a Bluetooth connection between a terminal and the target Bluetooth headset; a test module configured to, if the test task of the target Bluetooth headset is a battery life test, perform at least one round of tests on the target Bluetooth headset until the end condition of the battery life test is met, end the battery life test of the target Bluetooth headset, and obtain test data; the test module is further configured to obtain a test result of the target Bluetooth headset based on the test data.

[0023] In an embodiment of the present disclosure, the test module is further configured to: if the test task of the target Bluetooth headset is a short battery life test, perform a test on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than a first set threshold, and end the short battery life test of the target Bluetooth headset.

[0024] In an embodiment of the present disclosure, the test module is further configured to: if the test task of the target Bluetooth headset is a long battery life test, perform the i-th round of tests on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than a first set threshold, and end the i-th round of tests, where i is a positive integer; control the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset; if the target Bluetooth headset is fully charged, continue to perform the (i + 1)-th round of tests on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold, and the battery level of the earphone case corresponding to the target Bluetooth headset is less than a second set threshold, and end the long battery life test of the target Bluetooth headset.

[0025] In an embodiment of the present disclosure, before controlling the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset, the test module is further configured to: identify that the battery level of the earphone case corresponding to the target Bluetooth headset is greater than or equal to the second set threshold.

[0026] In an embodiment of the present disclosure, the test module is further configured to: if the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, charge the earphone case corresponding to the target Bluetooth headset.

[0027] In an embodiment of the present disclosure, the test data includes the total battery life duration of the target Bluetooth headset, and the test module is further configured to: obtain the battery life duration of the target Bluetooth headset in any round of tests; obtain the sum value of the battery life durations of the target Bluetooth headset in multiple rounds of tests as the total battery life duration.

[0028] In one embodiment of the present disclosure, the test module is further configured to perform: obtaining the service category of the battery life test of the target Bluetooth headset, where the service category is the category of the service provided by the target Bluetooth headset; and executing the test process corresponding to the service category to perform at least one round of testing on the target Bluetooth headset.

[0029] In one embodiment of the present disclosure, the test module is further configured to perform: if the service category is an audio playback service, converting a first audio to obtain a first digital signal; sending the first digital signal to the target Bluetooth headset; and controlling the target Bluetooth headset to convert the first digital signal to obtain the first audio and play the first audio.

[0030] In one embodiment of the present disclosure, the test module is further configured to perform: if the service category is a first type of call service, obtaining a second digital signal sent by the call object of the terminal, where the second digital signal is obtained by converting a second audio; sending the second digital signal to the target Bluetooth headset; and controlling the target Bluetooth headset to convert the second digital signal to obtain the second audio and play the second audio.

[0031] In one embodiment of the present disclosure, the test module is further configured to perform: if the service category is a second type of call service, playing a third audio in the surrounding area of the target Bluetooth headset; controlling the target Bluetooth headset to collect the third audio, converting the third audio to obtain a third digital signal, and sending the third digital signal to the terminal; receiving the third digital signal sent by the target Bluetooth headset; and sending the third digital signal to the call object of the terminal.

[0032] In one embodiment of the present disclosure, the test module is further configured to perform: obtaining the remaining terminals bound to the terminal as the call object.

[0033] In one embodiment of the present disclosure, the test module is further configured to perform: monitoring whether an abnormality occurs during the test process of the target Bluetooth headset; if an abnormality occurs during the test process of the target Bluetooth headset, performing a root cause analysis on the test abnormality to obtain a root cause analysis result; and executing the exception handling process corresponding to the root cause analysis result.

[0034] In one embodiment of the present disclosure, the test module is further configured to perform: if the root cause analysis result includes that the Bluetooth connection between the terminal and the target Bluetooth headset is abnormal, re - establishing the Bluetooth connection between the terminal and the target Bluetooth headset.

[0035] In one embodiment of the present disclosure, after establishing a Bluetooth connection between the terminal and the target Bluetooth headset, the testing module is further configured to perform: controlling a mechanical jig to perform a set operation to control the target Bluetooth headset to perform at least one of opening the cover, closing the cover, taking out of the case, and putting into the case.

[0036] In one embodiment of the present disclosure, the determining module is further configured to perform: obtaining a test task; extracting a target identifier from the test task, and using the candidate Bluetooth headset identified by the target identifier as the target Bluetooth headset.

[0037] In one embodiment of the present disclosure, before performing at least one round of testing on the target Bluetooth headset, the testing module is further configured to perform: configuring parameters of a target device, where the target device includes the target Bluetooth headset and / or the terminal.

[0038] In one embodiment of the present disclosure, the testing module is further configured to perform: obtaining a test task, and extracting a target value of the parameters of the target device from the test task; configuring the value of the parameters of the target device to the target value.

[0039] In one embodiment of the present disclosure, the testing module is further configured to perform: during the testing process, receiving at least one of the data of the target Bluetooth headset and the data of the earphone case corresponding to the target Bluetooth headset sent by the target Bluetooth headset as the test data; during the testing process, obtaining at least one of the Bluetooth connection data between the terminal and the target Bluetooth headset, the audio playback data and the call data of the terminal as the test data.

[0040] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to implement the steps of the method described in the first aspect of the embodiments of the present disclosure.

[0041] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the method described in the first aspect of the embodiments of the present disclosure are implemented.

[0042] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including a computer program, characterized in that when the computer program is executed by a processor of an electronic device, the steps of the method described in the first aspect of the embodiments of the present disclosure are implemented.

[0043] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects: Determine the target Bluetooth headset to be tested, establish a Bluetooth connection between the terminal and the target Bluetooth headset. If the test task of the target Bluetooth headset is a battery life test, perform at least one round of tests on the target Bluetooth headset until the end condition of the battery life test is met, end the battery life test of the target Bluetooth headset, and obtain test data. Based on the test data, obtain the test result of the target Bluetooth headset. Thus, compared with the related technologies that mostly rely on manual testing of Bluetooth headsets, in this solution, when the test task is a battery life test, at least one round of tests can be performed on the target Bluetooth headset to achieve automatic battery life testing of Bluetooth headsets, with the advantages of low labor cost, high test efficiency, high accuracy, etc., and is applicable to the battery life test scenario of TWS headsets.

[0044] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure, and do not constitute an improper limitation to the present disclosure.

[0046] Figure 1 is a flowchart of a method for testing a Bluetooth headset according to an exemplary embodiment.

[0047] Figure 2 is a flowchart of a method for testing a Bluetooth headset according to another exemplary embodiment.

[0048] Figure 3 is a flowchart of a method for testing a Bluetooth headset according to another exemplary embodiment.

[0049] Figure 4 is a flowchart of a method for testing a Bluetooth headset according to another exemplary embodiment.

[0050] Figure 5 is a flowchart of monitoring anomalies in a method for testing a Bluetooth headset according to an exemplary embodiment.

[0051] Figure 6 is a schematic diagram of a method for testing a Bluetooth headset according to an exemplary embodiment.

[0052] Figure 7 is a block diagram of a testing device for a Bluetooth headset according to an exemplary embodiment.

[0053] Figure 8 is a block diagram of an electronic device according to an exemplary embodiment. Detailed implementation mode

[0054] In order to enable ordinary personnel in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described here can be implemented in an order other than those illustrated or described here. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0056] In the technical solutions of the present disclosure, the acquisition, storage, use, processing, etc. of data all comply with the provisions of relevant laws and regulations.

[0057] Figure 1 is a flowchart of a test method for a Bluetooth headset shown according to an exemplary embodiment. As Figure 1 shown, the test method for the Bluetooth headset in the embodiment of the present disclosure includes the following steps.

[0058] S101, determine the target Bluetooth headset to be tested.

[0059] It should be noted that the execution subject of the test method for the Bluetooth headset in the embodiment of the present disclosure is an electronic device, and the electronic device includes terminals, such as mobile phones, laptops, desktop computers, vehicle-mounted terminals, smart home appliances, wearable devices, etc. Among them, the wearable device may include a wrist-worn device (such as a smart watch, a smart bracelet), a head-worn device, a foot-worn device, etc. The test method for the Bluetooth headset in the embodiment of the present disclosure can be executed by the test device for the Bluetooth headset in the embodiment of the present disclosure, and the test device for the Bluetooth headset in the embodiment of the present disclosure can be configured in any electronic device to execute the test method for the Bluetooth headset in the embodiment of the present disclosure.

[0060] It should be noted that the target Bluetooth headset may include any Bluetooth headset in the related art, and no excessive limitation is made here. For example, it may include TWS (True Wireless Stereo) headphones.

[0061] In one implementation manner, determining the target Bluetooth headset to be tested includes obtaining a test task, extracting a target identifier from the test task, and using the candidate Bluetooth headset identified by the target identifier as the target Bluetooth headset to achieve the determination of the target Bluetooth headset.

[0062] It should be noted that the test task carries a target identifier, and there are no excessive restrictions on the target identifier. For example, it may include the name, number, etc. of the target Bluetooth headset. There are no excessive restrictions on the test task. For example, it can be configured manually or by an RPA (Robotic Process Automation) system.

[0063] For example, the user can operate on the test task configuration page of the server (such as entering data of test items and data of test tasks under test items). Correspondingly, the server can generate a test item and test tasks under the test item based on the above operations of the user, and send the test task to the terminal. Correspondingly, the terminal can obtain the test task sent by the server. It can be understood that multiple test tasks can be included under one test item, different terminals can be sent different test tasks, and the server can send one or more test tasks to the terminal at the same time.

[0064] For example, the server can send multiple test tasks in a set order. For example, the server can send test task A to the terminal. If the terminal finishes executing test task A, the server can send test task B to the terminal. If the terminal finishes executing test task C, the server can send test task C to the terminal. In this embodiment, the server can send test tasks A, B, and C to the terminal in the order of test tasks A, B, and C in sequence.

[0065] For example, the terminal can include terminals 1 to 3, the test tasks can include test tasks A, B, and C. The candidate Bluetooth headsets can include Bluetooth headsets X, Y, and Z.

[0066] Terminal 1 can obtain test task A sent by the server, extract the target identifier X_ from test task A, and use the Bluetooth headset X identified by the target identifier X_ as the target Bluetooth headset.

[0067] Terminal 2 can obtain test task B sent by the server, extract the target identifier Y_ from test task B, and use the Bluetooth headset Y identified by the target identifier Y_ as the target Bluetooth headset.

[0068] Terminal 3 can obtain test task C sent by the server, extract the target identifier Z_ from test task C, and use the Bluetooth headset Z identified by the target identifier Z_ as the target Bluetooth headset.

[0069] S102, establish a Bluetooth connection between the terminal and the target Bluetooth headset.

[0070] It should be noted that the terminal corresponds to the target Bluetooth headset one by one. To establish a Bluetooth connection between the terminal and the target Bluetooth headset, any Bluetooth headset connection method in the related technology can be used to achieve this, and no excessive limitations are imposed here. For example, the Bluetooth mode of the terminal can be enabled to search for Bluetooth devices in the surrounding area of the terminal. If the target Bluetooth headset is found, the terminal and the target Bluetooth headset are paired to establish a Bluetooth connection between the terminal and the target Bluetooth headset. For example, the Bluetooth connection between the terminal and the target Bluetooth headset can be established through the APP (Application) of the target Bluetooth headset deployed on the terminal.

[0071] In one implementation, after establishing the Bluetooth connection between the terminal and the target Bluetooth headset, it further includes controlling the mechanical jig to perform a set operation to control the target Bluetooth headset to perform at least one of the actions of opening the cover, closing the cover, taking out of the box, and putting into the box. Thus, the automation of opening the cover, closing the cover, taking out of the box, and putting into the box of the target Bluetooth headset can be achieved.

[0072] It should be noted that opening the cover means opening the cover of the earphone case corresponding to the target Bluetooth headset, closing the cover means closing the cover of the earphone case corresponding to the target Bluetooth headset, taking out of the box means taking the target Bluetooth headset out of the earphone case, and putting into the box means putting the target Bluetooth headset into the earphone case. Among them, the earphone case is also called the earphone box, charging case, or charging box, which is used to store the Bluetooth headset and charge the Bluetooth headset. The target Bluetooth headset corresponds to the earphone case one by one.

[0073] It should be noted that different actions can correspond to different set operations.

[0074] In some examples, the terminal can send a control signal to the mechanical jig, and the control signal is used to control the mechanical jig to perform a set operation.

[0075] In some examples, the electromagnet is located on the inner surface of the cover of the earphone case, the Hall switch is located on the target Bluetooth headset, and the relay is connected to the electromagnet.

[0076] For example, the relay can be controlled to conduct, so as to control the magnetic force of the electromagnet to change from a set value to zero, so as to control the target Bluetooth headset to perform the action of opening the cover. The Hall switch can detect that the magnetic force of the electromagnet changes from the set value to zero and control the target Bluetooth headset to power on.

[0077] For example, the relay can be controlled to turn off, so as to control the magnetic force of the electromagnet to change from zero to the set value, so as to control the target Bluetooth headset to perform the action of closing the cover. The Hall switch can detect that the magnetic force of the electromagnet changes from zero to the set value and control the target Bluetooth headset to power off.

[0078] In some examples, the contact is located at the bottom of the earphone case, an electrode is arranged in the surrounding area of the contact, the electromagnet is located on the inner surface of the cover of the earphone case, and the relay is connected to the electromagnet.

[0079] For example, the relay can be controlled to conduct or turn off, so as to control the change of the magnetic force of the electromagnet, so as to control the target Bluetooth headset to perform the action of opening or closing the cover. The contact state between the target Bluetooth headset and the contact changes, resulting in a change in the capacitance of the area where the electrode is located. The microcontroller can detect the change in the capacitance of the area where the electrode is located and control the target Bluetooth headset to perform the action of taking out or putting into the case.

[0080] S103. If the test task of the target Bluetooth headset is a battery life test, perform at least one round of tests on the target Bluetooth headset until the end condition of the battery life test is met, end the battery life test of the target Bluetooth headset, and obtain test data.

[0081] It should be noted that the end condition of the battery life test is not overly limited. For example, it may include that the battery power of at least one of the earphones in the target Bluetooth headset is less than the first set threshold, and / or the battery power of each earphone in the target Bluetooth headset is less than the first set threshold, and / or the battery power of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, etc. The first set threshold and the second set threshold are not overly limited. For example, the first set threshold may include 0, 5% of the battery power when the earphone is fully charged, etc., and the second set threshold may include 0, 5% of the battery power when the charging case is fully charged, etc.

[0082] It should be noted that the test data includes the directly collected data and the data obtained after processing the collected data.

[0083] It should be noted that the test data is not overly limited. For example, it may include the test start time, test end time, test duration, data of the target Bluetooth headset, data of the earphone case corresponding to the target Bluetooth headset (such as the battery power of the earphone case corresponding to the target Bluetooth headset), Bluetooth connection data between the terminal and the target Bluetooth headset (such as Bluetooth connection status), audio playback data of the terminal (such as audio playback status), and call data (such as call status), etc. Among them, the Bluetooth connection status may include successful Bluetooth connection, failed Bluetooth connection, interrupted Bluetooth connection, abnormal Bluetooth connection, etc. The abnormal Bluetooth connection may include failed data transmission, lost data transmission, etc. The audio playback status may include successful audio playback, failed audio playback, interrupted audio playback, abnormal audio playback, etc. The abnormal audio playback may include low volume, poor sound quality, repeated interruption of audio playback, no sound, etc. The call status may include successful call, failed call, interrupted call, abnormal call, etc. The abnormal call may include low volume, poor sound quality, repeated interruption of the call, no sound, etc.

[0084] Among them, the data of the target Bluetooth headset includes the battery level, battery life, etc. of the target Bluetooth headset. The battery life can include the battery life of the target Bluetooth headset under the j-th round of testing, the total battery life of the target Bluetooth headset, etc. j is a positive integer. If only one round of testing is performed on the target Bluetooth headset during the testing process, the total battery life of the target Bluetooth headset refers to the battery life of the target Bluetooth headset under one round of testing. If multiple rounds of testing are performed on the target Bluetooth headset during the testing process, the total battery life of the target Bluetooth headset refers to the sum of the battery lives of the target Bluetooth headset under multiple rounds of testing.

[0085] In the embodiments of the present disclosure, obtaining test data includes the following possible implementation manners:

[0086] Method 1: If only one round of testing is performed on the target Bluetooth headset during the testing process, obtain the duration from the fully charged state to the set state of the target Bluetooth headset during the testing process as the total battery life of the target Bluetooth headset, or obtain the duration between the start time and the end time of the testing of the target Bluetooth headset during the testing process as the total battery life of the target Bluetooth headset.

[0087] It should be noted that the test task of the target Bluetooth headset is a battery life test, the test data includes the total battery life of the target Bluetooth headset, and the set state refers to the state where the headset battery is exhausted. For example, it can include the state where the battery level of the target Bluetooth headset is zero.

[0088] Method 2: If multiple rounds of testing are performed on the target Bluetooth headset during the testing process, obtain the duration from the fully charged state to the set state of the target Bluetooth headset during the j-th round of testing as the battery life of the target Bluetooth headset under the j-th round of testing, or obtain the duration between the start time and the end time of the testing of the target Bluetooth headset under the j-th round of testing as the battery life of the target Bluetooth headset under the j-th round of testing.

[0089] It should be noted that the test task of the target Bluetooth headset is a battery life test, and the test data includes the battery life of the target Bluetooth headset under the j-th round of testing.

[0090] Method 3: If multiple rounds of testing are performed on the target Bluetooth headset during the testing process, obtain the battery life of the target Bluetooth headset under the j-th round of testing, and obtain the sum of the battery lives of the target Bluetooth headset under multiple rounds of testing as the total battery life of the target Bluetooth headset.

[0091] It should be noted that the test task of the target Bluetooth headset is a battery life test, and the test data includes the total battery life of the target Bluetooth headset.

[0092] Method 4: During the testing process, receive at least one of the data of the target Bluetooth headset and the data of the earphone case corresponding to the target Bluetooth headset sent by the target Bluetooth headset as test data. During the testing process, obtain at least one of the Bluetooth connection data between the terminal and the target Bluetooth headset, the audio playback data of the terminal, and the call data as test data.

[0093] Thus, real-time acquisition of test data can be achieved during the testing process.

[0094] For example, if there is an APP of the target Bluetooth headset and a test APP deployed on the terminal, the data sent by the target Bluetooth headset can be received through the APP of the target Bluetooth headset as test data and forwarded to the test APP. Correspondingly, the test APP can receive the test data forwarded by the APP of the target Bluetooth headset. Among them, the data sent by the target Bluetooth headset includes at least one of the data of the target Bluetooth headset and the data of the earphone case corresponding to the target Bluetooth headset.

[0095] In one implementation, before performing at least one round of testing on the target Bluetooth headset, it further includes identifying that the target Bluetooth headset and / or the earphone case corresponding to the target Bluetooth headset is in a fully charged state. It should be noted that the target Bluetooth headset being in a fully charged state means that each earphone in the target Bluetooth headset is in a fully charged state.

[0096] In one implementation, before performing at least one round of testing on the target Bluetooth headset, it further includes if the target Bluetooth headset is not in a fully charged state, controlling the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset. It should be noted that the target Bluetooth headset not being in a fully charged state means that at least one earphone in the target Bluetooth headset is not in a fully charged state.

[0097] In one implementation, before performing at least one round of testing on the target Bluetooth headset, it further includes if the earphone case corresponding to the target Bluetooth headset is not in a fully charged state, charging the earphone case corresponding to the target Bluetooth headset.

[0098] S104. Based on the test data, obtain the test result of the target Bluetooth headset.

[0099] It should be noted that the test result of the target Bluetooth headset is not overly limited. For example, it may include that the target Bluetooth headset passes the test, fails the test, test indicators, etc.

[0100] In one embodiment, based on the test data, the test result of the target Bluetooth headset is obtained, including identifying whether the test data meets the passing condition of the test task. If the test data meets the passing condition of the test task, it is determined that the target Bluetooth headset passes the test task. On the contrary, if the test data does not meet the passing condition of the test task, it is determined that the target Bluetooth headset fails the test task. Thus, the automated analysis of whether the target Bluetooth headset passes the test task can be realized.

[0101] It should be noted that there are no excessive restrictions on the passing conditions of the test tasks, and different test tasks may correspond to different passing conditions.

[0102] In some examples, if only one round of testing is performed on the target Bluetooth headset during the testing process, the test data includes the total battery life of the target Bluetooth headset. The passing condition for the battery life test may include that the total battery life of the target Bluetooth headset is greater than or equal to the first set duration, which is applicable to the short battery life test. For the relevant content of the short battery life test, reference can be made to the following embodiments, and no excessive restrictions are imposed here.

[0103] In some examples, if multiple rounds of testing are performed on the target Bluetooth headset during the testing process, the test data includes the battery life of the target Bluetooth headset in the j-th round of testing and the total battery life of the target Bluetooth headset. The passing condition for the battery life test may include that the battery life of the target Bluetooth headset in each round of testing is greater than or equal to the first set duration, and / or the average value of the battery life of the target Bluetooth headset in multiple rounds of testing is greater than or equal to the first set duration, and / or the total battery life of the target Bluetooth headset is greater than or equal to the second set duration, which is applicable to the long battery life test. For the relevant content of the long battery life test, reference can be made to the following embodiments, and no excessive restrictions are imposed here.

[0104] In some examples, before obtaining the test result of the target Bluetooth headset based on the test data, it further includes identifying the unexecuted test tasks, and returning to execute the target identifier and its subsequent steps extracted from the test tasks until there are no unexecuted test tasks. Thus, after all the test tasks are executed, the test result of the target Bluetooth headset is obtained based on the test data.

[0105] The test method for a Bluetooth headset provided by an embodiment of the present disclosure determines a target Bluetooth headset to be tested, establishes a Bluetooth connection between a terminal and the target Bluetooth headset. If the test task of the target Bluetooth headset is a battery life test, at least one round of testing is performed on the target Bluetooth headset until the end condition of the battery life test is met, the battery life test of the target Bluetooth headset is ended, and test data is obtained. Based on the test data, the test result of the target Bluetooth headset is obtained. Thus, compared with the related art where most rely on manual testing of Bluetooth headsets, in this solution, when the test task is a battery life test, at least one round of testing can be performed on the target Bluetooth headset to achieve automated battery life testing of Bluetooth headsets, with advantages such as low labor cost, high test efficiency, and high accuracy, and is applicable to the battery life test scenario of TWS headsets.

[0106] Based on any of the above embodiments, before performing at least one round of testing on the target Bluetooth headset in step S103, it further includes configuring the parameters of the target device, where the target device includes the target Bluetooth headset and / or the terminal. Thus, before performing at least one round of testing on the target Bluetooth headset, the parameters of the target Bluetooth headset and / or the terminal can be configured to ensure that the values of the parameters of the target Bluetooth headset and / or the terminal meet the requirements of the test task.

[0107] It should be noted that there are no excessive limitations on the parameters of the target Bluetooth headset and the parameters of the terminal. For example, the parameters of the target Bluetooth headset include whether the noise reduction mode is turned on, whether the transparency mode is turned on, the headphone volume, etc., and the parameters of the terminal can include the Bluetooth encoding format, the terminal volume, the parameters of the APP deployed on the terminal, etc. For example, taking the APP deployed on the terminal as a music APP as an example, the parameters of the music APP include the music playback mode, the first audio to be played, the volume, etc.

[0108] In one implementation, configuring the parameters of the target device includes obtaining the test task and extracting the target values of the parameters of the target device from the test task, and configuring the values of the parameters of the target device as the target values. It can be understood that the test task carries the target values of the parameters of the target device. Thus, the target values of the parameters of the target device can be extracted from the test task and the values of the parameters of the target device can be configured as the target values.

[0109] Figure 2 is a flowchart of a test method for a Bluetooth headset shown according to another exemplary embodiment. As Figure 2 shown, the test method for a Bluetooth headset in an embodiment of the present disclosure includes the following steps.

[0110] S201, determine the target Bluetooth headset to be tested.

[0111] S202, establish a Bluetooth connection between the terminal and the target Bluetooth headset.

[0112] For the relevant content of steps S201 - S202, reference can be made to the above - mentioned embodiments, which will not be elaborated here.

[0113] S203, if the test task of the target Bluetooth headset is a short - battery - life test, test the target Bluetooth headset until the battery level of at least one of the headsets in the target Bluetooth headset is less than the first set threshold, and end the short - battery - life test of the target Bluetooth headset.

[0114] It should be noted that the battery - life test includes the short - battery - life test. During the short - battery - life test, only one round of testing is performed on the target Bluetooth headset. The end condition of one round of testing and the end condition of the short - battery - life test are both that the battery level of at least one of the headsets in the target Bluetooth headset is less than the first set threshold. The first set threshold can be referred to the above - mentioned embodiments, which will not be elaborated here.

[0115] It can be understood that if the test task of the target Bluetooth headset is a short - battery - life test, testing the target Bluetooth headset until the battery level of at least one of the headsets in the target Bluetooth headset is less than the first set threshold indicates that the battery level of at least one of the headsets in the target Bluetooth headset is low, and one round of testing ends, that is, the short - battery - life test of the target Bluetooth headset ends.

[0116] For example, the terminal obtains the test task sent by the server. The test task is a short - battery - life test. It controls the mechanical jig to perform the set operation to control the target Bluetooth headset to perform the actions of opening the cover and taking out of the box in sequence, extracts the target value of the parameters of the target device from the test task, configures the value of the parameters of the target device as the target value, tests the target Bluetooth headset until the battery level of at least one of the headsets in the target Bluetooth headset is less than the first set threshold, and controls the mechanical jig to perform the set operation to control the target Bluetooth headset to perform the actions of putting into the box and closing the cover in sequence, and ends the short - battery - life test of the target Bluetooth headset.

[0117] S204, obtain the test data, and based on the test data, obtain the test result of the target Bluetooth headset.

[0118] For the relevant content of step S204, reference can be made to the above - mentioned embodiments, which will not be elaborated here.

[0119] The test method of the Bluetooth headset provided by the embodiments of the present disclosure, if the test task of the target Bluetooth headset is a short - battery - life test, tests the target Bluetooth headset until the battery level of at least one of the headsets in the target Bluetooth headset is low, and ends the short - battery - life test of the target Bluetooth headset, is applicable to the short - battery - life test scenario of the Bluetooth headset.

[0120] Figure 3 It is a flowchart of a test method of a Bluetooth headset shown according to another exemplary embodiment. As Figure 3 shown, the test method of the Bluetooth headset in the embodiments of the present disclosure includes the following steps.

[0121] S301, determine the target Bluetooth headset to be tested.

[0122] S302, establish a Bluetooth connection between the terminal and the target Bluetooth headset.

[0123] For the relevant content of steps S301 - S302, refer to the above embodiments and will not be elaborated here.

[0124] S303, if the test task of the target Bluetooth headset is a long - endurance test, conduct the i - th round of testing on the target Bluetooth headset until the battery level of at least one of the earphones in the target Bluetooth headset is less than the first set threshold, and end the i - th round of testing, where i is a positive integer.

[0125] S304, control the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset.

[0126] S305, if the target Bluetooth headset is fully charged, continue to conduct the (i + 1) - th round of testing on the target Bluetooth headset until the battery level of at least one of the earphones in the target Bluetooth headset is less than the first set threshold and the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, and end the long - endurance test of the target Bluetooth headset.

[0127] It should be noted that the endurance test includes the long - endurance test. During the long - endurance test, multiple rounds of testing are conducted on the target Bluetooth headset. The end condition for each round of testing is that the battery level of at least one of the earphones in the target Bluetooth headset is less than the first set threshold, and the end condition for the long - endurance test is that the battery level of at least one of the earphones in the target Bluetooth headset is less than the first set threshold and the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold. The first set threshold and the second set threshold can refer to the above embodiments and will not be elaborated here.

[0128] It can be understood that the initial value of i is 1.

[0129] For example, if the test task of the target Bluetooth headset is a long - endurance test, conduct the first round of testing on the target Bluetooth headset until the battery level of at least one of the earphones in the target Bluetooth headset is less than the first set threshold, end the first round of testing, control the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset.

[0130] If the target Bluetooth headset is fully charged, continue to conduct the second round of testing on the target Bluetooth headset until the battery level of at least one of the earphones in the target Bluetooth headset is less than the first set threshold, end the second round of testing, control the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset.

[0131] If the charging of the target Bluetooth headset is completed, continue to perform the third round of testing on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold, and end the third round of testing. If the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold and the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, end the long battery life test of the target Bluetooth headset. In this embodiment, during the long battery life test, the target Bluetooth headset is tested three times.

[0132] In one implementation, before controlling the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset, it further includes identifying that the battery level of the earphone case corresponding to the target Bluetooth headset is greater than or equal to the second set threshold. Thus, when the battery level of the earphone case corresponding to the target Bluetooth headset is relatively high, the earphone case corresponding to the target Bluetooth headset can be controlled to charge the target Bluetooth headset, which can avoid charging the target Bluetooth headset using the earphone case when the battery level of the earphone case is low, and helps to improve the reliability of charging the Bluetooth headset.

[0133] In one implementation, the method further includes charging the earphone case corresponding to the target Bluetooth headset if the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold. Thus, the earphone case can be charged when the battery level of the earphone case corresponding to the target Bluetooth headset is low.

[0134] In one implementation, during the process of charging the target Bluetooth headset, the method further includes identifying whether the target Bluetooth headset is in a fully charged state. If the target Bluetooth headset is in a fully charged state, it is determined that the charging of the target Bluetooth headset is completed.

[0135] For example, the terminal obtains a test task issued by the server. The test task is a long battery life test. The mechanical jig is controlled to perform a set operation to control the target Bluetooth headset to perform the actions of opening the lid and taking out of the case in sequence. The target value of the parameters of the target device is extracted from the test task, and the value of the parameters of the target device is configured as the target value. The target Bluetooth headset is tested in the i-th round until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold. The mechanical jig is controlled to perform a set operation to control the target Bluetooth headset to perform the actions of putting into the case and closing the lid in sequence, and end the i-th round of testing.

[0136] The terminal identifies that the battery level of the earphone case corresponding to the target Bluetooth headset is greater than or equal to the second set threshold, and controls the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset.

[0137] If the charging of the target Bluetooth headset is completed, control the mechanical jig to perform the set operation to control the target Bluetooth headset to perform the operations of opening the cover and taking out the box in sequence, extract the target value of the parameters of the target device from the test task, configure the value of the parameters of the target device as the target value, and conduct the (i + 1)-th round of test on the target Bluetooth headset until the battery level of at least one earphone in the target Bluetooth headset is less than the first set threshold. Then, control the mechanical jig to perform the set operation to control the target Bluetooth headset to perform the operations of putting into the box and closing the cover in sequence, and end the (i + 1)-th round of test. Until the battery level of at least one earphone in the target Bluetooth headset is less than the first set threshold and the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, end the long battery life test of the target Bluetooth headset.

[0138] S306. Obtain the battery life duration of the target Bluetooth headset in any round of test.

[0139] S307. Obtain the sum value of the battery life durations of the target Bluetooth headset in multiple rounds of test as the total battery life duration of the target Bluetooth headset.

[0140] It should be noted that the test data includes the total battery life duration of the target Bluetooth headset.

[0141] For the relevant content of steps S306 - S307, reference can be made to the above embodiments and will not be elaborated here.

[0142] S308. Based on the test data, obtain the test result of the target Bluetooth headset.

[0143] For the relevant content of step S308, reference can be made to the above embodiments and will not be elaborated here.

[0144] The test method for Bluetooth headset provided by the embodiments of the present disclosure conducts the i-th round of test on the target Bluetooth headset until the battery level of at least one earphone in the target Bluetooth headset is low, and ends the i-th round of test. Then, control the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset. If the charging of the target Bluetooth headset is completed, continue to conduct the (i + 1)-th round of test on the target Bluetooth headset until the battery level of at least one earphone in the target Bluetooth headset is low and the battery level of the earphone case corresponding to the target Bluetooth headset is low, and end the long battery life test of the target Bluetooth headset. This is applicable to the long battery life test scenario of Bluetooth headsets.

[0145] Figure 4 is a flowchart of a test method for a Bluetooth headset shown according to another exemplary embodiment. As Figure 4 shown, the test method for the Bluetooth headset in the embodiments of the present disclosure includes the following steps.

[0146] S401. Determine the target Bluetooth headset to be tested.

[0147] S402. Establish a Bluetooth connection between the terminal and the target Bluetooth headset.

[0148] For the relevant content of steps S401 - S402, reference can be made to the above - mentioned embodiments and will not be elaborated here.

[0149] S403. If the test task of the target Bluetooth headset is a battery life test, obtain the service category of the battery life test of the target Bluetooth headset, where the service category is the category of the service provided by the target Bluetooth headset.

[0150] It should be noted that there are no excessive restrictions on the service category. For example, it may include audio - playing services, the first type of call services, the second type of call services, etc. The first type of call services may include services such as answering calls and answering voice calls, and the second type of call services may include services such as making calls and making voice calls.

[0151] In one implementation, obtaining the service category of the battery life test of the target Bluetooth headset includes extracting the service category of the battery life test from the test task of the target Bluetooth headset. It can be understood that the test task carries the service category of the battery life test.

[0152] S404. Execute the test process corresponding to the service category to perform at least one round of tests on the target Bluetooth headset.

[0153] It can be understood that there is a corresponding relationship between the service category and the test process. Different service categories may correspond to different test processes, and one test process may include at least one step.

[0154] In the embodiments of the present disclosure, executing the test process corresponding to the service category may include the following possible implementation manners:

[0155] Method 1: If the service category is an audio - playing service, convert the first audio to obtain a first digital signal, send the first digital signal to the target Bluetooth headset, and control the target Bluetooth headset to convert the first digital signal to obtain the first audio and play the first audio.

[0156] Thus, this method is applicable to the audio - playing test scenario of Bluetooth headsets.

[0157] It should be noted that the first audio refers to the audio to be played. For example, it may include online audio (such as audio on APPs, web pages), offline audio, etc. Converting the first audio to obtain a first digital signal can be achieved by using any method of converting an audio signal to a digital signal in related technologies. Converting the first digital signal to obtain the first audio can be achieved by using any method of converting a digital signal to an audio signal in related technologies, and no excessive restrictions are imposed here.

[0158] In some examples, before converting the first audio, it further includes receiving indication information for indicating the playback of the first audio. For example, an audio playback type APP deployed on the terminal can be launched, and the "Play" button on the playback page of the first audio can be clicked to generate indication information for indicating the playback of the first audio.

[0159] Method 2: If the service category is the first type of call service, obtain a second digital signal sent by the call object of the terminal, where the second digital signal is obtained by converting a second audio. Send the second digital signal to the target Bluetooth headset, control the target Bluetooth headset to convert the second digital signal to obtain a second audio, and play the second audio.

[0160] Thus, this method is applicable to the first type of call test scenarios of Bluetooth headsets, such as answering calls, answering voice calls and other test scenarios.

[0161] It should be noted that the second audio refers to the call audio between the terminal and the call object of the terminal, and is obtained for the call object of the terminal. For example, it is the audio collected by the target Bluetooth headset corresponding to the call object of the terminal.

[0162] In some examples, before obtaining the second digital signal sent by the call object of the terminal, it further includes receiving a call request sent by the call object of the terminal and clicking the "Answer" button.

[0163] Method 3: If the service category is the second type of call service, play a third audio in the surrounding area of the target Bluetooth headset, control the target Bluetooth headset to collect the third audio, convert the third audio to obtain a third digital signal, and send the third digital signal to the terminal. Receive the third digital signal sent by the target Bluetooth headset and send the third digital signal to the call object of the terminal.

[0164] Thus, this method is applicable to the second type of call test scenarios of Bluetooth headsets, such as making calls, making voice calls and other test scenarios.

[0165] It should be noted that the third audio refers to the call audio between the terminal and the call object of the terminal, and is the audio collected by the target Bluetooth headset corresponding to the terminal.

[0166] In some examples, before sending the third digital signal to the call object of the terminal, it further includes sending a call request to the call object of the terminal. For example, enter the phone number of the call object of the terminal on the call page of the terminal and click the "Call" button, or click the icon of the call object of the terminal on the call page of the terminal, or launch the instant messaging type APP deployed on the terminal and click the "Voice Chat" button on the chat page of the call object of the terminal to generate a call request.

[0167] In some examples, the method further includes obtaining the remaining terminals bound to the terminal as call objects. It can be understood that there may be a binding relationship between two terminals, and the remaining terminals bound to the terminal can be used as the call objects of the terminal.

[0168] For example, there is a binding relationship between terminals 1 and 2. Terminal 1 is the call object of terminal 2, and terminal 2 is the call object of terminal 1, that is, terminals 1 and 2 are call objects of each other. The candidate Bluetooth headsets include Bluetooth headset X and Bluetooth headset Y.

[0169] Terminal 1 can obtain test task A sent by the server, extract target identifier X_ from test task A, and the service category of the battery life test is the first type of call service. Then, take the Bluetooth headset X identified by target identifier X_ as the target Bluetooth headset and establish a Bluetooth connection between terminal 1 and Bluetooth headset X. It can be known that test task A is a battery life test, and the service category of the battery life test is the first type of call service.

[0170] Terminal 2 can obtain test task B sent by the server, extract target identifier Y from test task B, and the service category of the battery life test is the second type of call service. Then, take the Bluetooth headset Y identified by target identifier Y_ as the target Bluetooth headset and establish a Bluetooth connection between terminal 2 and Bluetooth headset Y. It can be known that test task B is a battery life test, and the service category of the battery life test is the second type of call service.

[0171] The test process corresponding to the second type of call service executed by terminal 2 is as follows: Play audio Q in the surrounding area of Bluetooth headset Y, control Bluetooth headset Y to collect audio Q, convert audio Q to obtain digital signal W, and send digital signal W to terminal 2. Receive digital signal W sent by Bluetooth headset Y and send digital signal W to terminal 1. In this embodiment, audio Q is the third audio, and digital signal W is the third digital signal.

[0172] The test process corresponding to the first type of call service executed by terminal 1 is as follows: Obtain digital signal W sent by terminal 2, where digital signal W is obtained by converting audio Q, send digital signal W to Bluetooth headset X, control Bluetooth headset X to convert digital signal W to obtain audio Q, and play audio Q. In this embodiment, audio Q is the second audio, and digital signal W is the second digital signal.

[0173] It can be understood that the test process corresponding to the first type of call service executed by terminal 1 and the test process corresponding to the second type of call service executed by terminal 2 are parallel. The first type of call test for Bluetooth headset X and the second type of call test for Bluetooth headset Y can be realized in parallel, and the call test of any two Bluetooth headsets can be realized simultaneously, which helps to improve the call test efficiency of Bluetooth headsets.

[0174] It should be noted that the service category of the battery life test corresponding to the Bluetooth headset X is the second type of call service, and the service category of the battery life test corresponding to the Bluetooth headset Y is the first type of call service. For the content where the service category of the battery life test corresponding to the Bluetooth headset X is the first type of call service and the service category of the battery life test corresponding to the Bluetooth headset Y is the second type of call service in the above embodiments, it will not be elaborated here.

[0175] S405. Until the end condition of the battery life test is met, end the battery life test of the target Bluetooth headset and obtain the test data.

[0176] S406. Based on the test data, obtain the test result of the target Bluetooth headset.

[0177] For the relevant content of steps S405 - S406, reference can be made to the above embodiments, and it will not be elaborated here.

[0178] The test method for Bluetooth headsets provided by the embodiments of the present disclosure obtains the service category of the battery life test of the target Bluetooth headset, where the service category is the category of the service provided by the target Bluetooth headset, and executes the test process corresponding to the service category to perform at least one round of tests on the target Bluetooth headset. Thus, considering the service category of the battery life test of the target Bluetooth headset, the test process corresponding to the service category can be executed to perform at least one round of tests on the target Bluetooth headset, which is applicable to the battery life test scenarios of multiple service categories of Bluetooth headsets.

[0179] Based on any of the above embodiments, as Figure 5 shown, during the process of performing at least one round of tests on the target Bluetooth headset, the following steps are further included.

[0180] S501. Monitor whether an abnormality occurs during the test process of the target Bluetooth headset.

[0181] In one implementation, monitoring whether an abnormality occurs during the test process of the target Bluetooth headset may include identifying whether the test data is within a set range. If the test data is not within the set range, it is determined that an abnormality occurs during the test process of the target Bluetooth headset. It can be understood that different test data may correspond to different set ranges.

[0182] In one implementation, monitoring whether an abnormality occurs during the test process of the target Bluetooth headset may include monitoring whether at least one of the Bluetooth connection state between the terminal and the target Bluetooth headset, the audio playback state of the terminal, and the call state appears abnormal.

[0183] S502. If an abnormality occurs during the test process of the target Bluetooth headset, perform a root cause analysis on the test abnormality to obtain a root cause analysis result.

[0184] It should be noted that for root cause analysis of test exceptions, any root cause analysis method in related technologies can be used for implementation, and no excessive limitations are imposed here. There are no excessive limitations on the results of root cause analysis. For example, it may include anomalies in the Bluetooth connection between the terminal and the target Bluetooth headset, anomalies in the wearing state of the target Bluetooth headset, anomalies in the network connection of the terminal, anomalies in the APP deployed on the terminal, etc.

[0185] S503, execute the exception handling process corresponding to the root cause analysis result.

[0186] It can be understood that there is a corresponding relationship between the root cause analysis result and the exception handling process. Different root cause analysis results can correspond to different exception handling processes, and an exception handling process can include at least one step.

[0187] In one implementation, executing the exception handling process corresponding to the root cause analysis result includes, if the root cause analysis result includes an anomaly in the Bluetooth connection between the terminal and the target Bluetooth headset, re - establishing the Bluetooth connection between the terminal and the target Bluetooth headset to promptly resolve the situation where the anomaly in the Bluetooth connection between the terminal and the target Bluetooth headset causes an anomaly in the test of the target Bluetooth headset.

[0188] In one implementation, executing the exception handling process corresponding to the root cause analysis result includes, if the root cause analysis result includes an anomaly in the network connection of the terminal, re - establishing the network connection of the terminal to promptly resolve the situation where the anomaly in the network connection of the terminal causes an anomaly in the test of the target Bluetooth headset.

[0189] In one implementation, executing the exception handling process corresponding to the root cause analysis result includes, if the root cause analysis result includes an anomaly in the APP deployed on the terminal, restarting the APP, or updating the APP and then starting the APP to promptly resolve the situation where the anomaly in the APP deployed on the terminal causes an anomaly in the test of the target Bluetooth headset.

[0190] Thus, in this method, it monitors whether there are any anomalies during the test process of the target Bluetooth headset. If there are anomalies during the test process of the target Bluetooth headset, it conducts root cause analysis on the test anomalies to obtain the root cause analysis result, and executes the exception handling process corresponding to the root cause analysis result, thereby being able to capture various possible anomalies during the test process of the Bluetooth headset and quickly restore the normal test state, greatly enhancing the fault - tolerance ability of the Bluetooth headset test.

[0191] Based on any of the above embodiments, the method further includes generating a test report for the target Bluetooth headset based on the test results of the target Bluetooth headset and the template test report, which can realize the automatic generation of the test report. For example, the test report carries data such as test items, time, executor, identification of the test task (such as name), target values of the parameters of the target device, passing conditions of the test task, battery life of the target Bluetooth headset, battery power decline trend chart, etc. For example, a battery power decline trend chart can be generated based on the battery power of the target Bluetooth headset at multiple moments during the test process.

[0192] In some examples, after generating the test report for the target Bluetooth headset, it further includes sending the test report of the target Bluetooth headset to the email bound to the target user. Among them, the target user may include users of the project to which the target Bluetooth headset belongs (such as designers, testers, etc.).

[0193] For example, as Figure 6 shown, the server can send the test tasks to the mobile phone and the mechanical jig respectively. The mobile phone can test the target Bluetooth headset based on the test task. During the test process, the target Bluetooth headset can report the test data to the mobile phone, and the mobile phone reports the test data to the server. The server obtains the test results of the target Bluetooth headset based on the test data, generates a test report for the target Bluetooth headset based on the test results of the target Bluetooth headset, and sends the test report of the target Bluetooth headset to the email bound to the target user.

[0194] The mobile phone can monitor whether there is an abnormality in the test process of the target Bluetooth headset.

[0195] The mobile phone can control the mechanical jig to perform set operations based on the test task to control the target Bluetooth headset to perform at least one of the actions of opening the cover, closing the cover, taking out of the box, and putting into the box, that is, the mechanical jig can directly control the target Bluetooth headset, and the mobile phone and the server can indirectly control the target Bluetooth headset.

[0196] During the test process, the mechanical jig can report its own status to the server.

[0197] Figure 7 is a block diagram of a test device for a Bluetooth headset shown according to an exemplary embodiment. Referring to Figure 7 , the test device 100 for a Bluetooth headset according to an embodiment of the present disclosure includes: a determination module 110, a connection module 120, and a test module 130.

[0198] The determination module 110 is configured to determine the target Bluetooth headset to be tested;

[0199] The connection module 120 is configured to establish a Bluetooth connection between the terminal and the target Bluetooth headset;

[0200] The test module 130 is configured to perform at least one round of tests on the target Bluetooth headset until the end condition of the battery life test is met, end the battery life test of the target Bluetooth headset, and obtain test data if the test task of the target Bluetooth headset is a battery life test.

[0201] The test module 130 is further configured to obtain the test result of the target Bluetooth headset based on the test data.

[0202] In an embodiment of the present disclosure, the test module 130 is further configured to perform: if the test task of the target Bluetooth headset is a battery life test, perform at least one round of tests on the target Bluetooth headset until the end condition of the battery life test is met, and end the battery life test of the target Bluetooth headset.

[0203] In an embodiment of the present disclosure, the test module 130 is further configured to perform: if the test task of the target Bluetooth headset is a short battery life test, test the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold, and end the short battery life test of the target Bluetooth headset.

[0204] In an embodiment of the present disclosure, the test module 130 is further configured to perform: if the test task of the target Bluetooth headset is a long battery life test, perform the i-th round of tests on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold, and end the i-th round of tests, where i is a positive integer; control the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset; if the target Bluetooth headset is fully charged, continue to perform the (i + 1)-th round of tests on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold and the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, and end the long battery life test of the target Bluetooth headset.

[0205] In an embodiment of the present disclosure, before controlling the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset, the test module 130 is further configured to identify that the battery level of the earphone case corresponding to the target Bluetooth headset is greater than or equal to the second set threshold.

[0206] In an embodiment of the present disclosure, the test module 130 is further configured to perform: if the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, charge the earphone case corresponding to the target Bluetooth headset.

[0207] In one embodiment of the present disclosure, the test data includes the total battery life duration of the target Bluetooth headset. The test module 130 is further configured to perform: obtaining the battery life duration of the target Bluetooth headset in any round of testing; obtaining the sum of the battery life durations of the target Bluetooth headset in multiple rounds of testing as the total battery life duration.

[0208] In one embodiment of the present disclosure, the test module 130 is further configured to perform: obtaining the service category of the battery life test of the target Bluetooth headset, where the service category is the category of the service provided by the target Bluetooth headset; performing the test process corresponding to the service category to perform at least one round of testing on the target Bluetooth headset.

[0209] In one embodiment of the present disclosure, the test module 130 is further configured to perform: if the service category is an audio playback service, converting a first audio to obtain a first digital signal; sending the first digital signal to the target Bluetooth headset; controlling the target Bluetooth headset to convert the first digital signal to obtain the first audio and play the first audio.

[0210] In one embodiment of the present disclosure, the test module 130 is further configured to perform: if the service category is a first type of call service, obtaining a second digital signal sent by the call object of the terminal, where the second digital signal is obtained by converting a second audio; sending the second digital signal to the target Bluetooth headset; controlling the target Bluetooth headset to convert the second digital signal to obtain the second audio and play the second audio.

[0211] In one embodiment of the present disclosure, the test module 130 is further configured to perform: if the service category is a second type of call service, playing a third audio in the surrounding area of the target Bluetooth headset; controlling the target Bluetooth headset to collect the third audio, converting the third audio to obtain a third digital signal, and sending the third digital signal to the terminal; receiving the third digital signal sent by the target Bluetooth headset; sending the third digital signal to the call object of the terminal.

[0212] In one embodiment of the present disclosure, the test module 130 is further configured to perform: obtaining the other terminals bound to the terminal as the call object.

[0213] In one embodiment of the present disclosure, the test module 130 is further configured to perform: monitoring whether an abnormality occurs during the testing of the target Bluetooth headset; if an abnormality occurs during the testing of the target Bluetooth headset, performing a root cause analysis on the test abnormality to obtain a root cause analysis result; performing the abnormality handling process corresponding to the root cause analysis result.

[0214] In one embodiment of the present disclosure, the test module 130 is further configured to perform: if the root cause analysis result includes an abnormality in the Bluetooth connection between the terminal and the target Bluetooth headset, re - establish the Bluetooth connection between the terminal and the target Bluetooth headset.

[0215] In one embodiment of the present disclosure, after establishing the Bluetooth connection between the terminal and the target Bluetooth headset, the test module 130 is further configured to perform: controlling the mechanical fixture to perform a set operation to control the target Bluetooth headset to perform at least one of opening the cover, closing the cover, taking out of the box, and putting into the box.

[0216] In one embodiment of the present disclosure, the determination module 110 is further configured to perform: obtaining a test task; extracting a target identifier from the test task, and using the candidate Bluetooth headset identified by the target identifier as the target Bluetooth headset.

[0217] In one embodiment of the present disclosure, before performing at least one round of testing on the target Bluetooth headset, the test module 130 is further configured to perform: configuring the parameters of the target device, where the target device includes the target Bluetooth headset and / or the terminal.

[0218] In one embodiment of the present disclosure, the test module 130 is further configured to perform: obtaining a test task, and extracting the target value of the parameters of the target device from the test task; configuring the value of the parameters of the target device as the target value.

[0219] In one embodiment of the present disclosure, the test module 130 is further configured to perform: during the test, receiving at least one of the data of the target Bluetooth headset and the data of the earphone case corresponding to the target Bluetooth headset sent by the target Bluetooth headset as the test data; during the test, obtaining at least one of the Bluetooth connection data between the terminal and the target Bluetooth headset, the audio playback data of the terminal, and the call data as the test data.

[0220] Regarding the device in the above - mentioned embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0221] The test device for a Bluetooth headset provided by an embodiment of the present disclosure determines a target Bluetooth headset to be tested, establishes a Bluetooth connection between a terminal and the target Bluetooth headset. If the test task of the target Bluetooth headset is a battery life test, at least one round of tests is performed on the target Bluetooth headset until the end condition of the battery life test is met, the battery life test of the target Bluetooth headset is ended, and test data is obtained. Based on the test data, the test result of the target Bluetooth headset is obtained. Thus, compared with the related art where most Bluetooth headset tests rely on manual operation, in this solution, when the test task is a battery life test, at least one round of tests can be performed on the target Bluetooth headset to achieve automatic battery life testing of the Bluetooth headset, which has the advantages of low labor cost, high test efficiency, high accuracy, etc., and is applicable to the battery life test scenario of TWS headsets.

[0222] Figure 8 is a block diagram of an electronic device shown according to an exemplary embodiment.

[0223] As Figure 8 shown, the above-mentioned electronic device 200 includes:

[0224] A memory 210 and a processor 220, a bus 230 connecting different components (including the memory 210 and the processor 220). The memory 210 stores a computer program, and when the processor 220 executes the program, the test method for the Bluetooth headset described in the embodiments of the present disclosure is implemented.

[0225] The bus 230 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0226] The electronic device 200 typically includes a variety of electronically readable media. These media can be any available media accessible by the electronic device 200, including volatile and non-volatile media, removable and non-removable media.

[0227] The memory 210 may further include a computer system readable medium in the form of volatile memory, such as random access memory (RAM) 240 and / or cache memory 250. The electronic device 200 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 260 may be used for reading and writing non-removable, non-volatile magnetic media ( Figure 8 not shown, commonly referred to as a "hard disk drive"). Although Figure 8Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM, or other optical medium) can be provided. In these cases, each drive can be connected to the bus 230 through one or more data medium interfaces. The memory 210 may include at least one program product having a set (such as at least one) of program modules configured to perform the functions of the embodiments of the present disclosure.

[0228] A program / utility 280 having a set (at least one) of program modules 270 can be stored, for example, in the memory 210. Such program modules 270 include - but are not limited to - an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. The program modules 270 generally perform the functions and / or methods in the embodiments described in the present disclosure.

[0229] The electronic device 200 can also communicate with one or more external devices 290 (such as a keyboard, a pointing device, a display 291, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 200, and / or communicate with any device that enables the electronic device 200 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 292. Moreover, the electronic device 200 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 293. As Figure 8 shown, the network adapter 293 communicates with other modules of the electronic device 200 through the bus 230. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0230] The processor 220 executes various functional applications and data processing by running the programs stored in the memory 210.

[0231] It should be noted that for the implementation process and technical principle of the electronic device in this embodiment, refer to the foregoing explanation of the test method of the Bluetooth headset in the embodiments of the present disclosure, which will not be elaborated here.

[0232] The electronic device provided by the embodiments of the present disclosure can execute the test method of the Bluetooth headset as described above, determine the target Bluetooth headset to be tested, establish a Bluetooth connection between the terminal and the target Bluetooth headset. If the test task of the target Bluetooth headset is a battery life test, at least one round of tests is performed on the target Bluetooth headset until the end condition of the battery life test is met, the battery life test of the target Bluetooth headset is ended, and test data is obtained. Based on the test data, the test result of the target Bluetooth headset is obtained. Thus, compared with the related art in which most rely on manual testing of Bluetooth headsets, in this solution, when the test task is a battery life test, at least one round of tests can be performed on the target Bluetooth headset to achieve automatic battery life testing of the Bluetooth headset, which has the advantages of low labor cost, high test efficiency, high accuracy, etc., and is applicable to the battery life test scenario of TWS headsets.

[0233] To implement the above embodiments, the present disclosure also proposes a computer-readable storage medium, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the test method of the Bluetooth headset provided by the present disclosure are implemented.

[0234] Optionally, the computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0235] To implement the above embodiments, the present disclosure also provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor of an electronic device, the test method of the Bluetooth headset as described above is implemented.

[0236] Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0237] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A testing method for a Bluetooth headset, characterized in that, Including: Determine the target Bluetooth headset to be tested; Establish a Bluetooth connection between the terminal and the target Bluetooth headset; If the test task of the target Bluetooth headset is a battery life test, conduct at least one round of tests on the target Bluetooth headset until the end condition of the battery life test is met, end the battery life test of the target Bluetooth headset, and obtain test data; Based on the test data, obtain the test result of the target Bluetooth headset.

2. The method according to claim 1, wherein The method further includes: If the test task of the target Bluetooth headset is a short battery life test, conduct tests on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold, and end the short battery life test of the target Bluetooth headset.

3. The method according to claim 1, wherein The method includes: If the test task of the target Bluetooth headset is a long battery life test, conduct the i-th round of tests on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold, and end the i-th round of tests, where i is a positive integer; Control the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset; If the target Bluetooth headset is fully charged, continue to conduct the (i + 1)-th round of tests on the target Bluetooth headset until the battery level of at least one of the headphones in the target Bluetooth headset is less than the first set threshold and the battery level of the earphone case corresponding to the target Bluetooth headset is less than the second set threshold, and end the long battery life test of the target Bluetooth headset.

4. The method according to claim 3, wherein Before controlling the earphone case corresponding to the target Bluetooth headset to charge the target Bluetooth headset, it further includes: Identify that the battery level of the earphone case corresponding to the target Bluetooth headset is greater than or equal to the second set threshold.

5. The method according to claim 3, wherein The test data includes the total battery life duration of the target Bluetooth headset, and obtaining the test data includes: Obtain the battery life duration of the target Bluetooth headset in any round of tests; Obtain the sum of the battery life durations of the target Bluetooth headset in multiple rounds of tests as the total battery life duration.

6. The method according to claim 1, characterized in that, Conducting at least one round of tests on the target Bluetooth headset includes: Obtain the service category of the battery life test of the target Bluetooth headset, where the service category is the category of the service provided by the target Bluetooth headset; Execute the test process corresponding to the service category to conduct at least one round of tests on the target Bluetooth headset.

7. The method according to claim 6, wherein Executing the test process corresponding to the service category includes: If the service category is an audio playback service, convert the first audio to obtain a first digital signal; Send the first digital signal to the target Bluetooth headset; Control the target Bluetooth headset to convert the first digital signal to obtain the first audio and play the first audio.

8. The method according to claim 6, characterized in that, Executing the test process corresponding to the service category includes: If the service category is the first type of call service, obtain the second digital signal sent by the call object of the terminal, where the second digital signal is obtained based on the conversion of the second audio; Send the second digital signal to the target Bluetooth headset; Control the target Bluetooth headset to convert the second digital signal to obtain the second audio and play the second audio.

9. The method according to claim 6, characterized in that, Performing the test process corresponding to the service category includes: If the service category is the second type of call service, play a third audio in the surrounding area of the target Bluetooth headset; Control the target Bluetooth headset to collect the third audio, convert the third audio to obtain a third digital signal, and send the third digital signal to the terminal; Receive the third digital signal sent by the target Bluetooth headset; Send the third digital signal to the call object of the terminal.

10. The method according to claim 8 or 9, characterized in that, The method further includes: Obtain the other terminals bound to the terminal as the call object.

11. The method according to any one of claims 1-9, characterized in that, The method further includes: Monitor whether an abnormality occurs during the test process of the target Bluetooth headset; If an abnormality occurs during the test process of the target Bluetooth headset, perform root cause analysis on the test abnormality to obtain a root cause analysis result; Execute the exception handling process corresponding to the root cause analysis result.

12. The method according to claim 11, wherein Performing the exception handling process corresponding to the root cause analysis result includes: If the root cause analysis result includes an abnormality in the Bluetooth connection between the terminal and the target Bluetooth headset, re - establish the Bluetooth connection between the terminal and the target Bluetooth headset.

13. The method according to any one of claims 1-9, characterized in that, After establishing the Bluetooth connection between the terminal and the target Bluetooth headset, it further includes: Control the mechanical fixture to perform a set operation to control the target Bluetooth headset to perform at least one of the actions of opening the cover, closing the cover, taking out of the box, and putting into the box.

14. The method according to any one of claims 1-9, characterized in that, Determining the target Bluetooth headset to be tested includes: Obtain a test task; Extract a target identifier from the test task, and use the candidate Bluetooth headset identified by the target identifier as the target Bluetooth headset.

15. The method according to any one of claims 1-9, characterized in that, Before performing at least one round of testing on the target Bluetooth headset, it further includes: Configure the parameters of the target device, where the target device includes the target Bluetooth headset and / or the terminal.

16. The method according to claim 15, wherein Configuring the parameters of the target device includes: Obtain a test task and extract the target value of the parameters of the target device from the test task; Configure the value of the parameters of the target device to the target value.

17. The method according to any one of claims 1-9, characterized in that, Obtaining the test data includes: During the test process, receive at least one of the data of the target Bluetooth headset and the data of the earphone case corresponding to the target Bluetooth headset sent by the target Bluetooth headset as the test data; During the test process, obtain at least one of the Bluetooth connection data between the terminal and the target Bluetooth headset, the audio playback data of the terminal, and the call data as the test data.

18. A testing device for a Bluetooth headset, characterized in that, Includes: A determination module configured to determine the target Bluetooth headset to be tested; A connection module configured to establish a Bluetooth connection between the terminal and the target Bluetooth headset; A test module configured to, if the test task of the target Bluetooth headset is a battery life test, perform at least one round of testing on the target Bluetooth headset until the end condition of the battery life test is met, end the battery life test of the target Bluetooth headset, and obtain test data; The test module is further configured to obtain the test result of the target Bluetooth headset based on the test data.

19. An electronic device, characterized in that, Includes: A processor; A memory for storing processor-executable instructions; wherein the processor is configured to: Implement the steps of the method according to any one of claims 1-17.

20. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, the steps of the method according to any one of claims 1-17 are implemented.