A testing method, system, earphone, device and medium for TWS earphones
By pairing the test system with TWS headsets, filtering and judging the output data, the problem of low UI test coverage of TWS headsets is solved, and accurate UI test results are achieved.
Patent Information
- Application Number
- CN202210007232.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-05
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2042-01-05
AI Technical Summary
In the prior art, when the left and right earphones of TWS headphones work independently under wireless connection, the UI test coverage is low, and the unilateral UI is poor, but the test results are inaccurate through touching on the other side.
Through the test system, pairing with the TWS headset, output action test information, receive and filter multiple output data information, judge the test results based on the headset specifications and standards, and ensure the accuracy of UI operation.
It improves the rigor and coverage of TWS headphone UI testing, accurately recognizes the UI output data of left and right ears, and avoids the adverse effects of one-sided UI as a result.
Smart Images

Figure CN114390392B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of acoustic technologies, and particularly to a test method, system, earphone, device, and medium for TWS earphones. Background Art
[0002] Currently, True Wireless Stereo (TWS) earphones, the latest innovation in Bluetooth earphone technology, can achieve wireless separation of the left and right Bluetooth channels. In the prior art, the test of Bluetooth earphones adopts a test solution of a PC (Personal Computer) plus a Bluetooth dongle adapter and a host computer software. This test solution performs UI (User Interface) touch operations on the left and right earphones of the TWS earphones to obtain UI output data and verifies the obtained UI output data. However, the left and right earphones of the TWS earphones can work independently without cable connection, and the existing test solution has the defect that a single-sided UI is defective while the generated UI output data meets the test pass through touch operations on the other side, resulting in a low UI test coverage rate. Summary of the Invention
[0003] The main purpose of the embodiments of the present application is to propose a test method, system, earphone, device, and medium for TWS earphones, which can accurately identify the UI output data of the left and right ears of the TWS earphones and improve the rigor and test coverage rate of the UI test.
[0004] To achieve the above object, the first aspect of the embodiments of the present application proposes a test method for TWS earphones, which is applied to a test system and includes:
[0005] Pairing and connecting the test system with the TWS earphones to be tested;
[0006] Outputting action test information to the TWS earphones to be tested according to the pairing success information;
[0007] Receiving multiple output data information fed back by the TWS earphones to be tested;
[0008] Obtaining action feedback information corresponding to the action test information by performing direction data screening and processing on the multiple output data information;
[0009] Performing data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphones to be tested to obtain the test output result of the TWS earphones to be tested.
[0010] In some embodiments, the obtaining action feedback information corresponding to the action test information by performing direction data screening and processing on the multiple output data information includes:
[0011] Collect the multiple output data information fed back by the to-be-tested TWS earphone within a preset time threshold;
[0012] Determine the direction key information of the to-be-tested TWS earphone according to the action test information;
[0013] Perform direction data screening processing on the multiple output data information according to the direction key information to obtain the action feedback information corresponding to the action test information.
[0014] In some embodiments, the performing direction data screening processing on the multiple output data information according to the direction key information to obtain the action feedback information corresponding to the action test information includes:
[0015] Obtain the multiple output data information fed back by the to-be-tested TWS earphone;
[0016] Perform direction data screening processing on the multiple output data information according to the direction key information to obtain the action output information corresponding to the to-be-tested TWS earphone;
[0017] Perform data splitting processing on the action output information according to the direction key information to obtain the action feedback information corresponding to the action test information.
[0018] In some embodiments, the performing data judgment processing on the action feedback information according to the earphone specification standard of the to-be-tested TWS earphone to obtain the test output result of the to-be-tested TWS earphone includes:
[0019] Perform data judgment processing on the action feedback information according to the earphone specification standard of the to-be-tested TWS earphone to obtain multiple action test results;
[0020] When all of the multiple action test results are test successes, the obtained test output result is test passed;
[0021] Or,
[0022] Perform data judgment processing on the action feedback information according to the earphone specification standard of the to-be-tested TWS earphone to obtain multiple action test results;
[0023] When at least one of the multiple action test results is test failed, the obtained test output result is test failed.
[0024] A second aspect of the embodiments of the present application proposes a test method for a TWS earphone, which is applied to a to-be-tested TWS earphone and includes:
[0025] Pair and connect a test system with the to-be-tested TWS earphone;
[0026] Perform corresponding touch operations on the user interface of the to-be-tested TWS earphone according to the action test information output by the test system, so as to obtain action output information corresponding to the action test information;
[0027] Feed back a plurality of output data information to the test system according to the action test information, wherein the plurality of output data information includes the action output information.
[0028] In some embodiments, the performing corresponding touch operations on the user interface of the to-be-tested TWS earphone according to the action test information of the test system to obtain action output information corresponding to the action test information includes:
[0029] Perform corresponding touch operations on the user interface of the to-be-tested TWS earphone according to the action test information, so as to obtain action feedback information corresponding to the action test information;
[0030] Obtain direction key information corresponding to the to-be-tested TWS earphone;
[0031] Perform data splicing operations on the action feedback information according to the direction key information, so as to obtain action output information including the direction key information.
[0032] A third aspect of the embodiments of the present application proposes a test system for TWS earphones, including:
[0033] A connection module, configured to pair and connect the test system with the to-be-tested TWS earphone;
[0034] An information sending module, configured to output action test information to the to-be-tested TWS earphone according to the pairing success information;
[0035] An information collection module, configured to receive a plurality of output data information fed back by the to-be-tested TWS earphone;
[0036] A first processing module, configured to obtain action feedback information corresponding to the action test information by performing direction data screening processing on the plurality of output data information;
[0037] A second processing module, configured to perform data judgment processing on the action feedback information according to the earphone specification standard of the to-be-tested TWS earphone, so as to obtain a test output result of the to-be-tested TWS earphone.
[0038] A fourth aspect of the embodiments of the present application proposes a TWS earphone, including: a test method for a TWS earphone according to any one of the embodiments of the second aspect of the present application.
[0039] A fifth aspect of the embodiments of the present application provides a computer device, which includes a memory and a processor. Among them, a program is stored in the memory, and when the program is executed by the processor, the processor is configured to execute: a test method for a TWS earphone as described in any one of the embodiments of the first aspect of the present application; or a test method for a TWS earphone as described in any one of the embodiments of the second aspect of the present application.
[0040] A sixth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a computer, the computer is configured to execute: a test method for a TWS earphone as described in the embodiments of the first aspect of the present application; or a test method for a TWS earphone as described in the embodiments of the first aspect of the present application.
[0041] A test method, system, earphone, device, and medium for a TWS earphone provided by the embodiments of the present application pair and connect a test system with a TWS earphone to be tested, collect multiple output data information output by the TWS earphone to be tested, and then test the abnormal conditions of the TWS earphone to be tested. Output action test information to the TWS earphone to be tested according to the pairing success information, and receive multiple output data information fed back by the TWS earphone to be tested. Through direction data screening and processing of the multiple output data information, an action feedback information corresponding to the action test information is obtained. Finally, data judgment processing is performed on the action feedback information according to the earphone specification standard of the TWS earphone to be tested to obtain a test output result of the TWS earphone to be tested. By performing direction data screening and processing on the obtained multiple output data information, the present application can accurately identify the UI output data of the left and right ears of the TWS earphone, improving the rigor and test coverage of the UI test. Description of the Drawings
[0042] Figure 1 is a flowchart of a test method for a TWS earphone provided by the embodiments of the present application;
[0043] Figure 2 is Figure 1 a flowchart of step S140 in
[0044] Figure 3 is Figure 2 a flowchart of step S230 in
[0045] Figure 4 is Figure 1 a first flowchart of step S150 in
[0046] Figure 5 is Figure 1 a second flowchart of step S150 in
[0047] Figure 6 It is another flowchart of a test method for a TWS headset provided by an embodiment of the present application;
[0048] Figure 7 is Figure 6 the flowchart of step S620 in
[0049] Figure 8 It is a schematic diagram of the hardware structure of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] It should be noted that although functional module division is performed in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different module division in the device or a different order in the flowchart. Terms such as "first" and "second" in the description, claims and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0053] Currently, True Wireless Stereo (TWS) headsets, the latest innovation in Bluetooth headset technology, can achieve wireless separation of the left and right Bluetooth channels. In the prior art, the test of Bluetooth headsets adopts a test solution of a PC (Personal Computer) plus a Bluetooth dongle adapter and a host computer software. This test solution performs UI (User Interface) touch operations on the left and right headsets of the TWS headset to obtain UI output data, and verifies the obtained UI output data. However, the left and right headsets of the TWS headset can work independently without cable connection, and the existing test solution has the defect that the UI on one side is defective while the UI output data generated by touching the other side meets the test passing criteria, resulting in a low UI test coverage rate.
[0054] Based on this, the main objective of the embodiments of this application is to propose a test method, system, earphone, device, and medium for TWS earphones, which can accurately identify the UI output data of the left and right ears of TWS earphones, improving the rigor and test coverage of UI testing.
[0055] The embodiments of this application can be used in numerous general or specific computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer computer devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This application can also be practiced in a distributed computing environment, where tasks are executed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0056] Referring to Figure 1 , a test method for TWS earphones according to the first aspect embodiments of the embodiments of this application, which is applied to a test system, includes but is not limited to steps S110 to S150.
[0057] S110, pair and connect the test system with the TWS earphone to be tested;
[0058] S120, output action test information to the TWS earphone to be tested according to the pairing success information;
[0059] S130, receive multiple output data information fed back by the TWS earphone to be tested;
[0060] S140, obtain the action feedback information corresponding to the action test information by performing direction data screening and processing on the multiple output data information;
[0061] S150, perform data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphone to be tested to obtain the test output result of the TWS earphone to be tested.
[0062] In step S110, the test system is paired and connected with the TWS earphone to be tested. Among them, the TWS earphone to be tested is connected to the upper computer test terminal of the test system through Bluetooth pairing. The TWS earphone to be tested includes the left TWS earphone to be tested or the right earphone of the TWS earphone to be tested, and the corresponding TWS earphone to be tested is subjected to UI testing according to the prompts of the upper computer test terminal.
[0063] It should be noted that Bluetooth is a wireless technology standard that enables short - range data exchange between fixed devices, mobile devices, and building personal area networks. In the embodiments of this application, the connection method between the test system and the TWS earphones to be tested is not limited to the Bluetooth pairing method, and no specific Bluetooth version is specifically limited.
[0064] In step S120, to improve the rigor and coverage of UI testing, the test system outputs action test information to the corresponding TWS earphones to be tested by means of a pop - up prompt on the system page. Then, the tester conducts UI testing on the corresponding left TWS earphone to be tested or right TWS earphone to be tested according to the action test information. In addition, the TWS earphones to be tested have a voice prompt function, which can help the tester better perform the corresponding UI operations.
[0065] In step S130, after the tester performs the corresponding operation actions on the TWS earphones to be tested, the TWS earphones to be tested feedback multiple output data information to the test system, such as: automatic return action information, Bluetooth address code, etc. Therefore, the test system needs to capture the information related to the corresponding operation actions from these multiple output data information.
[0066] In step S140, to overcome the problem that the UI output of the TWS earphones to be tested cannot recognize the left - right ear direction, the test system performs direction data screening and processing on the multiple output data information to obtain the action feedback information corresponding to the left TWS earphone to be tested or the right TWS earphone to be tested, thereby overcoming the defect that the action feedback information generated by touching the other side meets the test passing criteria due to poor unilateral UI operation.
[0067] In step S150, data judgment processing is performed on the action feedback information according to the earphone specification standard of the TWS earphones to be tested to obtain the test output result of the TWS earphones to be tested. To better achieve the automatic test judgment of the TWS earphones to be tested, the test system judges the action feedback information according to the UI action information defined in the earphone specification standard of the TWS earphones to be tested, that is, obtains the UI return value corresponding to the action test information, and then the UI test output result of the TWS earphones to be tested. For example, when the obtained UI return value is PASS, it indicates that the action test result of the TWS earphones to be tested under this action test information is normal; when the obtained UI return value is NG (No Good), it indicates that the action test result of the TWS earphones to be tested under this action test information is an abnormal test.
[0068] It should be noted that the action test information output by the test system includes: double-clicking the left ear, double-clicking the right ear, triple-clicking the left ear, triple-clicking the right ear, long-pressing the left ear, long-pressing the right ear, putting on the left ear, putting on the right ear, taking out the left ear, taking out the right ear, swiping up the left ear, swiping down the left ear, swiping up the right ear, swiping down the right ear, etc. The operator performs corresponding UI operations on the user interface of the TWS earphone under test according to the output action test information. In addition, different functions are realized by controlling the TWS earphone under test according to the corresponding UI operations, such as: playing, pausing, increasing volume, decreasing volume, next song, previous song, etc. The functions corresponding to different UI operations are set according to the user's needs and are not specifically limited here.
[0069] In some embodiments, as Figure 2 shown, step S140 specifically includes but is not limited to steps S210 to S230.
[0070] S210, collecting multiple output data information fed back by the TWS earphone under test within a preset time threshold;
[0071] S220, determining the direction key information of the TWS earphone under test according to the action test information;
[0072] S230, performing direction data screening processing on the multiple output data information according to the direction key information to obtain the action feedback information corresponding to the action test information.
[0073] Specifically, the test system continuously collects multiple output data information fed back by the TWS earphone under test within a preset time threshold, and determines the direction key information of the TWS earphone under test according to the action test information, that is, determines whether to test the left TWS earphone under test or the right TWS earphone under test. Specifically, when the test system does not collect output data information containing direction key information within the preset time threshold, the test system defaults that the UI operation performed on the action test information is abnormal and stops the test operation. When the test system does not collect output data information containing direction key information within the preset time threshold, perform direction data screening processing on the multiple output data information according to the direction key information to obtain the action feedback information corresponding to the action test information.
[0074] It should be noted that the test system determines the key direction information of the TWS earphone under test based on the action test information, and then obtains the action feedback information corresponding to the action test information. Specifically, when the tester obtains the action test information output by the test system, it is judged whether to perform the corresponding UI test on the TWS left earphone under test or the TWS right earphone under test, so as to determine the key direction information of the TWS earphone under test. Among them, the key direction information is the direction keyword added by the corresponding TWS earphone under test in the output data information, so as to distinguish the action feedback information output after the TWS earphone under test performs the corresponding UI operation. Specifically, after the TWS earphone under test performs the corresponding UI operation, it outputs the corresponding action feedback information, and the main control IC chip (Integrated Circuit Chip) in the TWS earphone under test adds the direction keyword to the action feedback information. For example, the direction keyword of the TWS left earphone under test is set to "01", and the direction keyword of the TWS right earphone under test is set to "00". When the corresponding action test information is output to the TWS left earphone under test, after the tester performs the corresponding UI operation on the TWS left earphone under test, the action feedback information corresponding to the action test information is obtained, and the main control IC chip in the TWS left earphone under test adds the set direction keyword "01" before the action feedback information. Among them, the specific setting of the direction keyword is changed according to actual needs and is not specifically limited here. Therefore, when the test system collects multiple output data information fed back by the TWS earphone under test, if the multiple output data information contains the direction keyword "01" corresponding to the TWS earphone under test, the action feedback information fed back by the TWS earphone under test according to the action test information is obtained; if the multiple output data information does not contain the direction keyword "01" corresponding to the TWS earphone under test, the test system defaults that the UI operation for the action test information is abnormal and stops the test operation.
[0075] It should be noted that the preset time threshold includes the maximum number of acquisitions and the acquisition time interval of the test system within the preset time threshold. In a specific embodiment, the maximum number of acquisitions is set to 50 in the test system, i.e., the upper computer test software, and the acquisition time interval for each acquisition is 200 ms. Then the preset time threshold is obtained as 50 * 200 = 10 s. After the upper computer test software outputs the corresponding action test information to the TWS earphone under test, within the preset time threshold of 10 s, if the upper computer test software does not collect the action feedback information corresponding to the action test information based on the direction key information in the multiple output data information fed back, the upper computer test software defaults that the UI operation for this action test information is abnormal and stops the test operation. And within the preset time threshold of 10 s, if the upper computer test software collects the action feedback information corresponding to the action test information based on the direction key information in the multiple output data information fed back, the action feedback information is subjected to data judgment processing according to the earphone specification standard of the TWS earphone under test to judge whether the action test result of the TWS earphone under this action test information is PASS or NG.
[0076] In some embodiments, as Figure 3 shown, step S230 specifically includes but is not limited to steps S310 to S330.
[0077] Step S310, obtaining multiple output data information fed back by the TWS earphone under test;
[0078] Step S320, performing direction data screening processing on the multiple test output data according to the direction key information to obtain the action output information corresponding to the TWS earphone under test;
[0079] Step S330, performing data splitting processing on the action output information according to the direction key information to obtain the action feedback information corresponding to the action test information.
[0080] Specifically, the test system performs direction data screening processing on the multiple output data information according to the direction key information of the TWS earphone under test, i.e., the direction keyword corresponding to the TWS earphone under test, to obtain the action output information corresponding to the TWS earphone under test. At this time, the action output information includes the direction key information and the action feedback information after performing the UI operation. Among them, the direction key information and the action feedback information of the TWS earphone under test are obtained as the corresponding action output information through data splicing operation. Therefore, by performing data splitting processing on the action output information, the action feedback information corresponding to the action test information is obtained, and then the action feedback information is subjected to data judgment processing according to the earphone specification standard of the TWS earphone under test to judge whether the action test result of the TWS earphone under this action test information is PASS or NG.
[0081] In some embodiments, asFigure 4 As shown, step S150 specifically includes but is not limited to steps S410 to S420.
[0082] Step S410: Perform data judgment and processing on the motion feedback information according to the headphone specification standard of the TWS earphone to be tested, and obtain multiple motion test results.
[0083] Step S420: When all multiple motion test results are test successes, the obtained test output result is a test pass.
[0084] In some embodiments, as Figure 5 shown, step S150 specifically further includes but is not limited to steps S510 to S520.
[0085] Step S510: Perform data judgment and processing on the motion feedback information according to the headphone specification standard of the TWS earphone to be tested, and obtain multiple motion test results.
[0086] Step S520: When at least one of the multiple motion test results is a test failure, the obtained test output result is a test fail.
[0087] Specifically, performing data judgment and processing on the motion feedback information according to the headphone specification standard of the TWS earphone to be tested means that after the operator performs the corresponding UI operation according to the motion test information, the motion feedback information in the motion output information fed back by the TWS earphone to be tested is judged according to the set headphone specification standard. When the obtained motion feedback information meets the corresponding headphone specification standard, the UI return value of the motion test result corresponding to the motion test information is PASS; when the obtained motion feedback information does not meet the corresponding headphone specification standard, the UI return value of the motion test result corresponding to the motion test information is NG, that is, the test of this item of the TWS earphone to be tested is abnormal. When all multiple motion test results are test successes, the obtained test output result, that is, the total UI test result, is a test pass, and the total UI test result outputs PASS. When at least one of the multiple motion test results is a test failure, the obtained test output result, that is, the total UI test result, is a test fail, and the total UI test result outputs NG.
[0088] In a specific embodiment, a testing method for TWS earphones proposed in the embodiments of the present application is applied to a system under test. The TWS earphones to be tested are connected to the testing system, i.e., the host computer testing end, through Bluetooth pairing. Among them, the TWS earphones to be tested include the left TWS earphone to be tested or the right TWS earphone to be tested. Action test information is output to the TWS earphones to be tested according to the pop-up prompt of the host computer testing end, and then UI testing is performed on the corresponding TWS earphones to be tested. The tester performs UI testing on the corresponding left TWS earphone to be tested or right TWS earphone to be tested according to the action test information. After the tester performs the corresponding operation actions on the TWS earphones to be tested, the TWS earphones to be tested will output multiple output data information to the testing system. The testing system continuously collects multiple output data information fed back by the TWS earphones to be tested within a preset time threshold, performs data screening and processing on the multiple output data information according to the direction keywords corresponding to the corresponding TWS earphones to be tested, collects the action output information containing the direction keywords, and obtains the action feedback information corresponding to the action test information by performing data splitting processing on the action output information. Furthermore, data judgment processing is performed on the action feedback information according to the earphone specification standard of the TWS earphones to be tested to judge whether the action test result of the TWS earphones to be tested under the action test information is PASS or NG. Furthermore, the test output result of the TWS earphones to be tested is judged according to the obtained multiple action test results. Therefore, by performing direction data screening and processing on the obtained multiple output data information, the present application can accurately identify the UI output data of the left and right ears of the TWS earphones, improving the rigor and test coverage of the UI testing.
[0089] Referring to Figure 6 , the embodiments of the present application further provide a testing method for TWS earphones, which is applied to the TWS earphones to be tested. The method includes but is not limited to steps S610 to S630.
[0090] S610, pair and connect the testing system with the TWS earphones to be tested;
[0091] S620, perform corresponding touch operations on the user interface of the TWS earphones to be tested according to the action test information output by the testing system to obtain the action output information corresponding to the action test information;
[0092] S630, feedback multiple output data information to the testing system according to the action test information, where the multiple output data information includes the action output information.
[0093] Specifically, the TWS earphones to be tested are connected to the test system, i.e., the host computer test terminal, through Bluetooth pairing. Among them, the TWS earphones to be tested include the left TWS earphone to be tested or the right TWS earphone to be tested. The tester performs corresponding touch operations on the user interface of the corresponding left TWS earphone to be tested or right TWS earphone to be tested according to the action test information, and then obtains the corresponding action output information. After that, the TWS earphones to be tested output multiple output data information to the test system.
[0094] It should be noted that the main control IC chip (Integrated Circuit Chip) in the TWS earphones to be tested adds direction keywords to the character data output from the earphones, so as to distinguish the action feedback information output after the TWS earphones to be tested perform corresponding UI operations. Among them, the specific setting of the direction keywords is the same as that in the above embodiments, and will not be elaborated here one by one.
[0095] In some embodiments, as Figure 7 shown, step S620 specifically includes but is not limited to steps S710 to S730.
[0096] Step S710, perform corresponding touch operations on the user interface of the TWS earphones to be tested according to the action test information, so as to obtain the action feedback information corresponding to the action test information;
[0097] Step S720, obtain the direction key information corresponding to the TWS earphones to be tested;
[0098] Step S730, perform data splicing operations on the action feedback information according to the direction key information, so as to obtain the action output information including the direction key information.
[0099] Specifically, the tester performs corresponding touch operations on the user interface of the corresponding left TWS earphone to be tested or right TWS earphone to be tested according to the action test information, and obtains the action feedback information output according to the touch operation. The corresponding main control IC chip in the TWS earphones to be tested performs data splicing operations on the action feedback information and the corresponding direction key information, so as to obtain the action output information including the direction key information and the action feedback information, and feeds back the action output information and other output data information output from the main control IC chip to the test system together. The test system performs direction data screening processing on multiple output data information according to the direction key information, obtains the action feedback information corresponding to the action test information, and then performs data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphones to be tested, so as to judge whether the action test result of the TWS earphones to be tested under the action test information is PASS or NG. Through the direction data screening processing of the obtained multiple output data information, the present application can accurately identify the UI output data of the left and right ears of the TWS earphones, and improve the rigor and test coverage of the UI test.
[0100] The embodiment of the present application also provides a test system for TWS earphones, including a connection module, an information sending module, an information collection module, a first processing module, and a second processing module. The connection module is used to pair and connect the test system with the TWS earphones to be tested; the information sending module is used to output action test information to the TWS earphones to be tested according to the pairing success information; the information collection module is used to receive multiple output data information fed back by the TWS earphones to be tested; the first processing module is used to obtain action feedback information corresponding to the action test information by performing direction data screening and processing on the multiple output data information; the second processing module is used to perform data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphones to be tested to obtain the test output result of the TWS earphones to be tested.
[0101] In a specific embodiment, for the test system of TWS earphones proposed in the embodiment of the present application, first, the TWS earphones to be tested are connected to the test system, that is, the upper computer test end, through the connection module via the Bluetooth module, and the information sending module outputs action test information to the TWS earphones to be tested according to the pairing success information. Then, the information collection module receives multiple output data information fed back by the TWS earphones to be tested, and the first processing module performs direction data screening and processing on the multiple output data information to obtain action feedback information corresponding to the action test information. Finally, the second processing module performs data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphones to be tested to obtain the test output result of the TWS earphones to be tested. By performing direction data screening and processing on the obtained multiple output data information, the present application can accurately identify the UI output data of the left and right ears of the TWS earphones, improving the rigor and test coverage of the UI test. By performing direction data screening and processing on the obtained multiple output data information, the present application can accurately identify the UI output data of the left and right ears of the TWS earphones, improving the rigor and test coverage of the UI test.
[0102] The test system for TWS earphones in the embodiment of the present application is used to execute the test method for TWS earphones in the above embodiment, and its specific processing process is the same as that of the test method for TWS earphones in the above embodiment, which will not be elaborated here one by one.
[0103] The embodiment of the present application also provides a TWS earphone, including a test method for TWS earphones according to any one of the embodiments of the second aspect of the present application. Therefore, the TWS earphone in the embodiment of the present application is used to execute the test method for TWS earphones in the above embodiment, and its specific processing process is the same as that of the test method for TWS earphones in the above embodiment, which will not be elaborated here one by one.
[0104] The embodiments of the present application further provide a computer device, including a memory and a processor. Among them, a program is stored in the memory, and when the program is executed by the processor, the processor is used to execute a test method for a TWS headset according to any one of the embodiments of the first aspect or the embodiments of the second aspect of the present application.
[0105] The following will combine Figure 8 to elaborate in detail on the hardware structure of the computer device. The computer device includes: a processor 801, a memory 802, an input / output interface 803, a communication interface 804, and a bus 805.
[0106] The processor 801 can be implemented in ways such as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided by the embodiments of the present application.
[0107] The memory 802 can be implemented in forms such as ROM (Read Only Memory), a static storage device, a dynamic storage device, or RAM (Random Access Memory). The memory 802 can store an operating system and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 802 and are called by the processor 801 to execute a test method for a TWS headset according to an embodiment of the present application.
[0108] The input / output interface 803 is used to implement information input and output.
[0109] The communication interface 804 is used to implement communication interaction between this device and other devices, and can implement communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0110] The bus 805 transmits information between the various components of the device (such as the processor 801, the memory 802, the input / output interface 803, and the communication interface 804).
[0111] Among them, the processor 801, the memory 802, the input / output interface 803, and the communication interface 804 achieve communication connections with each other inside the device through the bus 805.
[0112] The embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions for causing a computer to execute a test method for a TWS headset according to the embodiments of the present application.
[0113] As a non-transitory computer-readable storage medium, a memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory can include high-speed random access memory and can also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory can optionally include a memory remotely disposed relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0114] The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will understand that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0115] Those skilled in the art can understand that Figures 1 to 7 the technical solutions shown in do not constitute a limitation on the embodiments of the present application and may include more or fewer steps than those shown in the figures, or combine certain steps, or different steps.
[0116] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0117] Those of ordinary skill in the art can understand that all or some of the steps in the above-described method, and the functional modules / units in the system and device, can be implemented as software, firmware, hardware, and appropriate combinations thereof.
[0118] In the description of the present application and the above-mentioned drawings, the terms "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0119] It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expression means any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0120] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be in an electrical, mechanical or other form.
[0121] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] In addition, in each embodiment of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0123] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: various media that can store programs such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.
[0124] The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings. However, this does not limit the scope of the rights of the embodiments of the present application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall fall within the scope of the rights of the embodiments of the present application.
Claims
1. A testing method for TWS earphones, applied to a testing system, characterized in that Including: Pair and connect the test system with the TWS earphone to be tested; Output action test information to the TWS earphone to be tested according to the pairing success information; Receive multiple output data information fed back by the TWS earphone to be tested; Obtain the action feedback information corresponding to the action test information by performing direction data screening and processing on the multiple output data information; The obtaining the action feedback information corresponding to the action test information by performing direction data screening and processing on the multiple output data information includes: collecting the multiple output data information fed back by the TWS earphone to be tested within a preset time threshold; determining the direction key information of the TWS earphone to be tested according to the action test information; performing direction data screening and processing on the multiple output data information according to the direction key information to obtain the action feedback information corresponding to the action test information; Perform data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphone to be tested to obtain the test output result of the TWS earphone to be tested.
2. The testing method of a TWS earphone according to claim 1, characterized in that, The performing direction data screening and processing on the multiple output data information according to the direction key information to obtain the action feedback information corresponding to the action test information includes: Obtain the multiple output data information fed back by the TWS earphone to be tested; Perform direction data screening and processing on the multiple output data information according to the direction key information to obtain the action output information corresponding to the TWS earphone to be tested; Perform data splitting processing on the action output information according to the direction key information to obtain the action feedback information corresponding to the action test information.
3. A test method for a TWS headset according to any one of claims 1 to 2, characterized in that The performing data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphone to be tested to obtain the test output result of the TWS earphone to be tested includes: Perform data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphone to be tested to obtain multiple action test results; When all of the multiple action test results are test successes, the obtained test output result is test passed; Or, Perform data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphone to be tested to obtain multiple action test results; When at least one of the multiple action test results is a test failure, the obtained test output result is test not passed.
4. A test method for TWS earphones, applied to the TWS earphones to be tested, characterized in that, Including: Pair and connect the test system with the TWS earphone to be tested; Perform corresponding touch operations on the user interface of the TWS earphones to be tested according to the action test information output by the test system, so as to obtain action output information corresponding to the action test information; the performing corresponding touch operations on the user interface of the TWS earphones to be tested according to the action test information of the test system to obtain action output information corresponding to the action test information includes: performing corresponding touch operations on the user interface of the TWS earphones to be tested according to the action test information to obtain action feedback information corresponding to the action test information; obtaining direction key information corresponding to the TWS earphones to be tested; performing data splicing operations on the action feedback information according to the direction key information to obtain action output information including the direction key information; Feed back multiple output data information to the test system according to the action test information, where the multiple output data information includes the action output information.
5. A test system for TWS earphones, characterized in that, Including: A connection module for pairing and connecting the test system with the TWS earphones to be tested; An information sending module for outputting action test information to the TWS earphones to be tested according to the pairing success information; An information collection module for receiving multiple output data information fed back by the TWS earphones to be tested; A first processing module for obtaining action feedback information corresponding to the action test information by performing direction data screening processing on the multiple output data information; The obtaining action feedback information corresponding to the action test information by performing direction data screening processing on the multiple output data information includes: collecting the multiple output data information fed back by the TWS earphones to be tested within a preset time threshold; determining the direction key information of the TWS earphones to be tested according to the action test information; performing direction data screening processing on the multiple output data information according to the direction key information to obtain action feedback information corresponding to the action test information; A second processing module for performing data judgment processing on the action feedback information according to the earphone specification standard of the TWS earphones to be tested to obtain a test output result of the TWS earphones to be tested.
6. A TWS earphone, characterized in that, Including: A test method for a TWS earphone as described in claim 4.
7. A computer device, characterized in that, The computer device includes a memory and a processor, where a program is stored in the memory, and when the program is executed by the processor, the processor is used to execute: A test method for a TWS earphone as described in any one of claims 1 to 3; or A test method for a TWS earphone as described in claim 4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer is used to execute: A test method for a TWS earphone as described in any one of claims 1 to 3; or A test method for a TWS earphone as described in claim 4.
Citation Information
Patent Citations
Computer readable storage medium, Bluetooth headset testing device and Bluetooth headset testing system
CN107682801A
Earphone testing method, system and device
CN113766406A