CN114945188A - Bluetooth device testing method and device, electronic device and readable storage medium - Google Patents

Bluetooth device testing method and device, electronic device and readable storage medium Download PDF

Info

Publication number
CN114945188A
CN114945188A CN202210565580.3A CN202210565580A CN114945188A CN 114945188 A CN114945188 A CN 114945188A CN 202210565580 A CN202210565580 A CN 202210565580A CN 114945188 A CN114945188 A CN 114945188A
Authority
CN
China
Prior art keywords
test
tested
interactive
bluetooth device
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210565580.3A
Other languages
Chinese (zh)
Inventor
赵于成
陈智威
隋昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tonly Electronics Holdings Ltd
Original Assignee
Tonly Electronics Holdings Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tonly Electronics Holdings Ltd filed Critical Tonly Electronics Holdings Ltd
Priority to CN202210565580.3A priority Critical patent/CN114945188A/en
Publication of CN114945188A publication Critical patent/CN114945188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a Bluetooth device testing method, a Bluetooth device testing device, an electronic device and a readable storage medium, which are applied to a first testing terminal, wherein the first testing terminal is in communication connection with a second testing terminal, and the method comprises the following steps: when the communication connection with the Bluetooth device to be tested is detected, starting the Bluetooth device to be tested in a test mode corresponding to the function to be tested; when the communication connection with the Bluetooth equipment to be tested is detected, starting a test mode corresponding to the function to be tested of the Bluetooth equipment to be tested; if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal, controlling the second test terminal to perform interactive test with the Bluetooth device to be tested, wherein the interactive test frame is popped up by the second test terminal when the Bluetooth device to be tested in the test mode is detected; and generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test. The technical problem that the efficiency of testing to the function test of bluetooth equipment is low is solved to this application.

Description

Bluetooth device testing method and device, electronic device and readable storage medium
Technical Field
The present application relates to the field of functional testing technologies, and in particular, to a method and an apparatus for testing a bluetooth device, an electronic device, and a readable storage medium.
Background
With the continuous development of bluetooth technology, bluetooth is an indispensable basic function of smart devices, wherein real wireless stereo (TWS) headsets are popular with users in the market by virtue of the additional bluetooth technology, in order to provide better user experience, the bluetooth devices need to perform corresponding function tests before leaving the factory, wherein the tests of bluetooth device functions relying on simple interaction between a display interface of a smart phone and the bluetooth devices are more important, the rapid connection function test of the TWS headset is taken as an example, multiple pairing tests need to be performed between multiple smart test terminals and the TWS headset, and when the number of successful rapid connections reaches a certain value, the testing is determined to be qualified The operations such as connection and disconnection are performed to complete the whole test process, which results in a large amount of time cost and labor cost consumed in the test process, and therefore, the efficiency of testing the function test of the bluetooth device in the prior art is low.
Disclosure of Invention
The present application mainly aims to provide a bluetooth device testing method, an apparatus, an electronic device, and a readable storage medium, and aims to solve the technical problem in the prior art that the testing efficiency of the function test of the bluetooth device is low.
In order to achieve the above object, the present application provides a bluetooth device testing method, including:
when communication connection with the Bluetooth device to be tested is detected, starting a test mode corresponding to the function to be tested of the Bluetooth device to be tested;
if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal, controlling the second test terminal to perform interactive test with the Bluetooth device to be tested, wherein the interactive test frame is popped up by the second test terminal when the Bluetooth device to be tested in the test mode is detected;
and generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
In order to achieve the above object, the present application further provides a bluetooth device testing apparatus, which is applied to a first testing terminal, where the first testing terminal is in communication connection with a second testing terminal, and the bluetooth device testing apparatus includes:
the device comprises a sending module, a receiving module and a processing module, wherein the sending module is used for starting a test mode corresponding to a function to be tested of the Bluetooth device to be tested when the communication connection with the Bluetooth device to be tested is detected;
the detection module is used for controlling the second test terminal to carry out interactive test with the Bluetooth equipment to be tested if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal;
and the generating module is used for generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
The present application further provides an electronic device, including: a memory, a processor and a program of the bluetooth device testing method stored on the memory and executable on the processor, the program of the bluetooth device testing method being executable by the processor to implement the steps of the bluetooth device testing method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing the bluetooth device testing method, which when executed by a processor implements the steps of the bluetooth device testing method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the bluetooth device testing method as described above.
The application provides a Bluetooth device testing method and device, an electronic device and a readable storage medium, which are applied to a first testing terminal, wherein the first testing terminal is in communication connection with a second testing terminal, namely, when the communication connection with the Bluetooth device to be tested is detected, a testing mode corresponding to the function to be tested of the Bluetooth device to be tested is started, so that the purpose of testing the function to be tested of the Bluetooth device to be tested in a specific mode is realized; if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal, controlling the second test terminal to perform interactive test with the Bluetooth device to be tested, wherein the interactive test frame is popped up by the second test terminal when the Bluetooth device to be tested in the test mode is detected, namely, whether the second test terminal and the Bluetooth device to be tested are controlled to perform interactive test of the function is judged by detecting whether the interactive test frame exists in the second test terminal on the first test terminal; and generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test. The first test terminal is respectively in communication connection with the second test terminal and the Bluetooth device to be tested, and further aims at the function test that the display interface of the second test terminal and the Bluetooth device to be tested are simply interacted, only the first test terminal is used as intermediate equipment between the second test terminal and the Bluetooth device to be tested, and the relevant information of the function to be tested, which is generated by the second test terminal and the Bluetooth device to be tested, is integrated, so that the purpose of testing the function to be tested of the Bluetooth device to be tested can be achieved, namely, the whole test process can be completed only by the simple interaction of the first test terminal, the second test terminal and the Bluetooth device to be tested, so that the purpose of automatically testing the function to be tested of the Bluetooth device to be tested is achieved, and the problems that in the prior art, a tester needs to repeatedly perform pairing on the display interface of a smart phone, The technical defects that the testing process consumes a large amount of time cost and labor cost are caused by operations such as connection and disconnection, so that the testing efficiency of the function of the Bluetooth equipment which depends on simple interaction between the display interface of the smart phone and the Bluetooth equipment is improved, and the testing efficiency of the function testing of the Bluetooth equipment is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first embodiment of a bluetooth device testing method according to the present application;
FIG. 2 is a schematic diagram illustrating a test of a quick pop-up function in the testing method of the Bluetooth device according to the present application;
fig. 3 is a schematic flowchart of a bluetooth device testing method according to a second embodiment of the present application;
fig. 4 is a schematic device structure diagram of a hardware operating environment related to a bluetooth device testing method in an embodiment of the present application.
The implementation of the objectives, functional features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Firstly, it should be understood that, as for some functions of the bluetooth device, it depends on the tester to perform corresponding operations on the display interface of the test terminal, and then perform tests of corresponding functions, taking the approach quick connection function of the TWS headset as an example, when the TWS headset approaches the smartphone with the bluetooth in the on state, the display interface of the smartphone pops up a pop-up frame for matching connection, the user does not need to search the bluetooth interface for the bluetooth name corresponding to the TWS headset, but performs a click operation on the pop-up frame to complete connection, and in the test phase, in order to ensure the user experience, the TWS headset needs to perform repeated matching connection on the same smartphone and also needs to complete tests on different smartphones, during which, the bluetooth device needs to repeatedly match and disconnect with the same smartphone or different smartphones, at present, under the general circumstances, through the operation that the tester carries out to correspond on the display interface of smart mobile phone, and then lead to having consumed a large amount of manpowers and time in the test procedure, that is, the efficiency of testing that relies on the simple interactive bluetooth equipment function of display interface and bluetooth equipment of test terminal is low, so, need urgently at present to promote the efficiency of testing to the function test of bluetooth equipment's bluetooth equipment test method.
In a first embodiment of the bluetooth device testing method of the present application, referring to fig. 1, the bluetooth device testing method includes:
step S10, when detecting that the communication connection is established with the Bluetooth device to be tested, starting the Bluetooth device to be tested in a test mode corresponding to the function to be tested;
step S20, if it is detected that an interactive test frame corresponding to the function to be tested exists in a preset display interface of the second test terminal, controlling the second test terminal to perform interactive test with the Bluetooth device to be tested, wherein the interactive test frame is popped up by the second test terminal when the Bluetooth device to be tested in the test mode is detected;
in this embodiment, it should be noted that, the first test terminal is an upper computer, and is used for controlling the second test terminal to perform simple interaction with the bluetooth device to be tested, specifically, the second test terminal may be a computer, a notebook, and the like, the second test terminal is an intelligent terminal having a bluetooth function and a display interface, and is used for providing an interface for displaying interaction information of the function to be tested that is simply interacted with the bluetooth device to be tested, specifically, the interface may be an intelligent terminal such as a smart phone, a smart television, and the like, the bluetooth device to be tested is a bluetooth device waiting for performing a function test to be tested, specifically, the interface may be an earphone, a sound box, and the like, the function to be tested is a bluetooth device waiting for testing, and specifically, the function may be a bluetooth device simply interacted with the bluetooth device depending on the display interface of the test terminal.
Additionally, it should be noted that the communication connection between the first test terminal and the second test terminal may be performed through a Type-c interface of a USB data line, when the first test terminal and the second test terminal establish communication connection, a USB debugging function, specifically, an adb (Android Debug Bridge) permission and the like, is started, and when the first test terminal obtains the debugging permission of the second test terminal, the second test terminal may be controlled, for example, the second test terminal is controlled to start a bluetooth function.
Additionally, it should be noted that the communication connection between the first test terminal and the bluetooth device to be tested may be established through a Type-c interface of the USB data line, the first test terminal may send an on command to the bluetooth device to be tested through a transmission protocol with the bluetooth device to be tested, so that the bluetooth device can be scanned by bluetooth of another smart device, the first test terminal may also send a specific command to the bluetooth device to be tested, that is, the bluetooth device to be tested may enter a specific test mode according to the command to be tested, so as to perform a specific test of a function to be tested, in an implementable manner, if the first test terminal is a computer and the bluetooth device to be tested is a TWS headset, the communication connection between the TWS and the computer may be established through a serial port or a charging box, wherein, if the communication connection is performed through the charging box, the TWS earphone is placed in the charging box, and the charging box is connected with a computer through Type-c.
Additionally, it should be noted that the interactive test frame is a visual content corresponding to the function to be tested on a preset display interface of the second test terminal, and is used for displaying the interactive information of the function to be tested, which is simply interacted with the bluetooth device to be tested, generated when the second test terminal detects the bluetooth device to be tested within a preset detection range, and may specifically be a pop frame and a special display, and so on, for example, it is assumed that the first test terminal, the second test terminal and the bluetooth device to be tested are a computer, a mobile phone and a TWS headset respectively, and the function to be tested is a fast pop frame connection function of the TWS headset, after the computer controls the mobile phone to turn on the bluetooth, the mobile phone will detect the bluetooth device within the preset detection range, when the TWS headset under the test mode is detected within the preset detection range, because the computer has already controlled the TWS headset to be in a mode corresponding to the fast pop frame connection function, and then the mobile phone interface can have a popup frame whether to be connected or not, the user can further operate according to the display content of the popup frame, and if the user selects pairing connection and the pairing connection is successful, the interface display of the successful Bluetooth connection appears on the mobile phone interface.
Additionally, it should be noted that the interactive test is a simple interactive action performed by the second test terminal and the to-be-tested bluetooth device for the to-be-tested function, referring to fig. 2, fig. 2 is a test schematic diagram of a fast popup frame function of the bluetooth device test method, the interactive test is that the second test terminal initiates connection with the to-be-tested bluetooth device, and the to-be-tested bluetooth device establishes connection with the second test terminal, and a manner of detecting whether the interactive test frame corresponding to the to-be-tested function exists on the preset display interface may be a manner of detecting through a preset automatic test tool, and specifically may be Airtest (Ui automatic test tool) and the like.
As one example, steps S10 to S20 include: sending a communication connection request to a Bluetooth device to be tested, sending a to-be-tested instruction of a to-be-tested function to the Bluetooth device to be tested when communication connection with the Bluetooth device to be tested is detected, and starting a test mode corresponding to the to-be-tested function of the Bluetooth device to be tested according to the to-be-tested instruction; according to preset automatic testing tool, whether the preset display interface exists in the preset time period or not is detected, if the preset display interface exists in the preset time period, the interactive testing frame corresponding to the function to be tested controls the second testing terminal to perform interactive testing with the Bluetooth device to be tested, wherein the preset time period is set by a user according to the product specification of the Bluetooth device to be tested, specifically, the preset time period can be 1min, 2min and the like, and the interactive testing frame is popped up when the second testing terminal detects the Bluetooth device to be tested in the testing mode.
After the step of starting the test mode corresponding to the function to be tested of the bluetooth device to be tested when the communication connection with the bluetooth device to be tested is detected, the method for testing the bluetooth device further includes:
step A10, if detecting that the interactive test frame corresponding to the function to be tested does not exist in the preset display interface of the second test terminal, sending an adjusting instruction to the Bluetooth device to be tested;
and A20, adjusting the Bluetooth device to be tested according to the adjusting instruction.
As an example, step a10 through step a20 include: if it is detected that the interactive test frame corresponding to the function to be tested does not exist in the preset display interface within the preset time period, sending an adjusting instruction to the Bluetooth device to be tested; and adjusting the Bluetooth device to be tested according to the adjusting instruction, wherein the adjusting mode can be a mode of controlling the Bluetooth device to be tested to be closed, opened and reentered into a test mode of the function to be tested, and can also be a mode of directly controlling the Bluetooth device to be tested to be in a test mode corresponding to the next function to be tested so as to perform interactive test of the next function to be tested.
In an implementation mode, the first test terminal is a test PC, the second test terminal is a test mobile phone, the bluetooth device to be tested is a TWS earphone, the test PC monitors the test mobile phone interface through Airtest image recognition, when an interactive test frame appearing on the test mobile phone interface is detected within 3 minutes, the test mobile phone and the TWS earphone are controlled to perform an interactive test, and if the test PC continuously detects for 3 minutes and does not detect that an interactive test frame appearing on the test mobile phone interface, the test PC sends an instruction to the TWS earphone again, so that the test PC detects whether an interactive test frame appears on the test mobile phone interface again.
Wherein, the step of controlling the second test terminal and the Bluetooth device to be tested to perform interactive test comprises:
step B10, acquiring the test item information displayed in the interactive test frame;
step B20, according to a preset mapping table, inquiring test instruction information corresponding to the test item information;
and step B30, controlling the second test terminal to carry out interactive test with the Bluetooth device to be tested according to the test instruction corresponding to the test instruction information.
In this embodiment, it should be noted that the test item information is used to represent that the second test terminal detects identification information corresponding to a function to be tested of the bluetooth device, for example, if the function to be tested is a fast pop frame connection function, the test item information may be "fast pop frame connection", the test instruction information is information that the terminal initiates an interactive test request corresponding to the function to be tested after the first test terminal controls the second test, the preset mapping table is used to store the test item information and the test instruction information corresponding to the test item information, the storage mode may be a key value pair storage mode, the test instruction is a function test instruction that the first test terminal controls the second test terminal to initiate the function to be tested, and according to the function test instruction, the second test terminal and the bluetooth device to be tested perform an interactive test corresponding to the function to be tested.
As an example, the steps B10 to B30 include: acquiring test item information displayed in the interactive test frame; inquiring a preset mapping table by taking the test item information as an index to obtain test instruction information corresponding to the test item information; and acquiring a test instruction corresponding to the test instruction information, and controlling the second test terminal to perform interactive test with the Bluetooth device to be tested through the test instruction.
Before the step of querying the test instruction information corresponding to the test item information according to the preset mapping table, the method for testing the bluetooth device further includes:
step C10, acquiring interaction test frames corresponding to the preset functions to be tested and corresponding test instruction information according to the preset functions to be tested when the second test terminal and the Bluetooth equipment to be tested perform interaction test;
step C20, establishing the preset mapping table according to the one-to-one correspondence between each interactive test frame and the test instruction information.
As an example, the step C10 to the step C20 include: controlling the second test terminal and the Bluetooth device to be tested to perform interactive tests of each preset function to be tested, and acquiring test item information of the second test terminal corresponding to the test instruction information under any preset function to be tested; and establishing the preset mapping table and storing the preset mapping table in a database according to the one-to-one correspondence between each interactive test frame and the test instruction information, wherein the establishing mode can be a mode of establishing by adopting a shared main key or a unique foreign key.
And step S30, generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
In this embodiment, it should be noted that the interactive test information is used to represent information generated when the second test terminal and the to-be-tested bluetooth device perform an interactive test on the to-be-tested function, for example, if the to-be-tested function is a quick pop-up frame connection function, the interactive test information is "pairing connection success" and "pairing connection failure", and the test result of the to-be-tested function includes a test success result and a test failure result.
As an example, step S30 includes: and generating a test success result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
The step of generating the test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test comprises the following steps:
step D10, acquiring interactive test information in the interactive test frame during interactive test;
step D20, if the interactive test information is detected to be the first interactive test information, generating a test success result;
and D30, if the interactive test information is detected to be the second interactive test information, generating a test failure result.
In this embodiment, it should be noted that the first interactive test information is interactive test information indicating that the function test of the function to be tested is qualified, and the second interactive test information is interactive test information indicating that the function test of the function to be tested is unqualified.
As an example, the steps D10 to D30 include: acquiring interactive test information in the interactive test frame during interactive test; if the interactive test information is detected to be the interactive test information which represents that the function test of the function to be tested is qualified, generating a test success result; and if the interactive test information is detected to be the interactive test information which represents that the function test of the function to be tested is unqualified, generating a test failure result.
After the step of generating the test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test, the method for testing the bluetooth equipment further comprises the following steps:
step E10, updating the total test times of the functions to be tested according to the test result;
and E20, if the total testing times is not smaller than a preset total testing times threshold value, controlling the second testing terminal and the Bluetooth device to be tested to finish the interactive test.
In this embodiment, it should be noted that, if the function under test of the bluetooth device needs to pass the qualification test with the second test terminal, the first test terminal controls the second test terminal to perform interactive tests with the bluetooth device to be tested for a preset number of times, therefore, the preset times is a preset total test time threshold, which is determined by a tester according to the test requirement of the function to be tested, and specifically may be 100 times, 150 times and 200 times, the total test times is the times of actually performing an interactive test by controlling the second test terminal and the bluetooth device to be tested through the first test terminal, the mode of updating the total test times of the function to be tested may be a mode of updating the test success times or the test failure times, the test success times is the times of the test results in the total test times as the test success results, and the test failure times is the times of the test results in the total test times as the test failure results.
As an example, the steps E10 to E20 include: if a test failure result is generated, updating the total test times by updating the test failure times of the function to be tested, and if a test success result is generated, updating the total test times by updating the test success times of the function to be tested; if the total testing times is not smaller than the preset total testing times threshold value, controlling the second testing terminal and the to-be-tested Bluetooth device to finish the interactive testing, wherein the second testing terminal and the to-be-tested Bluetooth device to finish the interactive testing can be controlled to send a request for finishing the interactive testing to the to-be-tested Bluetooth device after waiting for the preset interactive testing times, wherein the preset interactive testing times are used for representing the stability of the functional testing of the to-be-tested function.
The embodiment of the application provides a Bluetooth device testing method, which is applied to a first testing terminal, wherein the first testing terminal is in communication connection with a second testing terminal, namely when the communication connection with a Bluetooth device to be tested is detected, the Bluetooth device to be tested is started to be in a testing mode corresponding to a function to be tested, so that the purpose of testing the function to be tested of the Bluetooth device to be tested in a specific mode is realized; if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal, controlling the second test terminal to perform interactive test with the Bluetooth device to be tested, wherein the interactive test frame is popped up by the second test terminal when the Bluetooth device to be tested in the test mode is detected, namely, whether the second test terminal and the Bluetooth device to be tested are controlled to perform interactive test of the function is judged by detecting whether the interactive test frame exists in the second test terminal on the first test terminal; and generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test. Because the first test terminal is respectively in communication connection with the second test terminal and the Bluetooth device to be tested, and further aiming at the function test that the display interface of the second test terminal and the Bluetooth device to be tested are simply interacted, the first test terminal is only used as intermediate equipment between the second test terminal and the Bluetooth device to be tested, and the relevant information of the function to be tested generated by the second test terminal and the Bluetooth device to be tested is integrated, so that the purpose of testing the function to be tested of the Bluetooth device to be tested can be achieved, namely, the whole test process can be completed only by the simple interaction of the first test terminal, the second test terminal and the Bluetooth device to be tested respectively, so that the purpose of automatically testing the function to be tested of the Bluetooth device to be tested is achieved, and the problems that in the prior art, a tester needs to repeatedly perform pairing on the display interface of a smart phone, The technical defects that the testing process consumes a large amount of time cost and labor cost are caused by operations such as connection and disconnection, so that the testing efficiency of the function of the Bluetooth equipment which depends on simple interaction between the display interface of the smart phone and the Bluetooth equipment is improved, and the testing efficiency of the function testing of the Bluetooth equipment is improved.
Example two
Further, referring to fig. 3, in another embodiment of the present application, the same or similar contents as those in the first embodiment may refer to the above description, and are not repeated herein. On this basis, after the step of controlling the second test terminal to end the interactive test with the bluetooth device to be tested, the bluetooth device test method further includes:
step F10, determining the test success rate of the function to be tested according to the ratio of the test success times and the total test times;
and F20, displaying the total test result corresponding to the test success rate on a preset display interface.
In this embodiment, it should be noted that the total test result is used to represent information of an interactive test result, which is performed by the bluetooth device to control the second test terminal and the bluetooth device to be tested through the first test terminal, where the interactive test result is specific to the function to be tested, and may specifically be graphical information, text information, and the like, the test success frequency is a frequency of the test success result in the total test frequency, and the test success rate is used to represent a test pass rate of the function to be tested of the bluetooth device to be tested, for example, if a preset test success rate threshold is 80%, the test success frequency is 50 times, and the total test frequency is 100 times, the test success rate is 50%, and the total test result is text information that "test failure" is displayed on a preset display interface.
As an example, steps F10 through F20 include: determining the test success rate of the function to be tested according to the ratio of the test success times to the total test times, wherein the test success times are counted by the first test terminal when the first test terminal controls the second test terminal and the Bluetooth device to be tested to carry out interactive test aiming at the function to be tested; and displaying the total test result corresponding to the test success rate on a preset display interface.
In an implementation manner, the total test result may be played through a preset audio playing device of the first display terminal, for example, if the test success rate is lower than a preset success rate threshold, after the interactive test is completed, voice information corresponding to the total test result is generated, so that the user can know the total test result of the to-be-tested function of the to-be-tested bluetooth device.
The embodiment of the application provides a method for expressing the test result of the Bluetooth equipment, namely, determining the test success rate of the function to be tested according to the ratio of the test success times to the total test times; and displaying the total test result corresponding to the test success rate on a preset display interface. Compared with the situation that the total test times only reach the preset total test time threshold, the method and the device can accurately reflect the proportion of the test success times in the interactive test process aiming at the function to be tested based on the first test terminal, wherein the second test terminal and the Bluetooth device to be tested are controlled by the first test terminal through the test success rate, meanwhile, the total pressure test result corresponding to the test success rate is displayed on the preset display interface, the test result of the function to be tested of the Bluetooth device can be visually fed back through a visual means, and the technical defect that a tester needs to further execute the test operation to obtain the test result of the function to be tested is overcome, so that a foundation is laid for improving the test efficiency of the function test of the Bluetooth device.
EXAMPLE III
The embodiment of the present application further provides a bluetooth device testing apparatus, which is applied to a first test terminal, the first test terminal is in communication connection with a second test terminal, the bluetooth device testing apparatus includes:
the device comprises a sending module, a receiving module and a processing module, wherein the sending module is used for starting a test mode corresponding to a function to be tested of the Bluetooth device to be tested when the communication connection with the Bluetooth device to be tested is detected;
the detection module is used for controlling the second test terminal to perform interactive test with the Bluetooth device to be tested if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal;
and the generating module is used for generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
Optionally, the detection module is further configured to:
acquiring test item information displayed in the interactive test frame;
inquiring test instruction information corresponding to the test item information according to a preset mapping table;
and controlling the second test terminal to carry out interactive test with the Bluetooth equipment to be tested according to the test instruction corresponding to the test instruction information.
Optionally, the bluetooth device testing apparatus is further configured to:
according to each preset function to be tested when the second test terminal and the Bluetooth equipment to be tested are interactively tested, acquiring an interactive test frame corresponding to each preset function to be tested and corresponding test instruction information;
and establishing the preset mapping table according to the one-to-one correspondence between each interactive test frame and the test instruction information.
Optionally, the bluetooth device testing apparatus is further configured to:
if the interactive test frame corresponding to the function to be tested does not exist in the preset display interface of the second test terminal, sending an adjusting instruction to the Bluetooth equipment to be tested;
and adjusting the Bluetooth equipment to be tested according to the adjusting instruction.
Optionally, the generating module is further configured to:
acquiring interactive test information in the interactive test frame during interactive test;
if the interactive test information is detected to be first interactive test information, generating a test success result;
and if the interactive test information is detected to be second interactive test information, generating a test failure result.
Optionally, the bluetooth device testing apparatus is further configured to:
updating the total test times of the functions to be tested according to the test result;
and if the total testing times are not smaller than a preset total testing time threshold value, controlling the second testing terminal and the Bluetooth device to be tested to finish the interactive test.
Optionally, the bluetooth device testing apparatus is further configured to:
determining the test success rate of the function to be tested according to the ratio of the test success times to the total test times;
and displaying the total test result corresponding to the test success rate on a preset display interface.
The Bluetooth device testing device provided by the invention adopts the Bluetooth device testing method in the embodiment, and solves the technical problem of low testing efficiency of the function test of the Bluetooth device. Compared with the prior art, the beneficial effects of the test device for the bluetooth equipment provided by the embodiment of the invention are the same as the beneficial effects of the test method for the bluetooth equipment provided by the embodiment, and other technical features in the test device for the bluetooth equipment are the same as those disclosed by the method for the embodiment, which are not repeated herein.
Example four
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the bluetooth device testing method in the first embodiment.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic equipment provided by the invention adopts the Bluetooth equipment testing method in the embodiment, and the technical problem of low testing efficiency of the function test of the Bluetooth equipment is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the bluetooth device testing method provided by the above embodiment, and other technical features of the electronic device are the same as those disclosed in the above embodiment method, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
EXAMPLE five
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the bluetooth device testing method in the first embodiment.
Embodiments of the present invention provide a computer readable storage medium, such as a USB flash drive, but are not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: when the communication connection with the Bluetooth device to be tested is detected, starting a test mode of the Bluetooth device to be tested corresponding to the function to be tested; if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal, controlling the second test terminal to perform interactive test with the Bluetooth device to be tested, wherein the interactive test frame is popped up by the second test terminal when the Bluetooth device to be tested in the test mode is detected; and generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer readable storage medium provided by the invention stores the computer readable program instruction for executing the Bluetooth device testing method, and solves the technical problem of low testing efficiency of the function test of the Bluetooth device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as those of the bluetooth device testing method provided by the embodiment, and are not repeated herein.
EXAMPLE six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the bluetooth device testing method as described above.
The computer program product solves the technical problem of low testing efficiency of the function test of the Bluetooth device. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the invention are the same as those of the testing method of the bluetooth device provided by the embodiment, and are not repeated herein.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A Bluetooth device testing method is applied to a first testing terminal, the first testing terminal is in communication connection with a second testing terminal, and the Bluetooth device testing method comprises the following steps:
when the communication connection with the Bluetooth equipment to be tested is detected, starting a test mode corresponding to the function to be tested of the Bluetooth equipment to be tested;
if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal, controlling the second test terminal to perform interactive test with the Bluetooth device to be tested, wherein the interactive test frame is popped up by the second test terminal when the Bluetooth device to be tested in the test mode is detected;
and generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
2. The method for testing the bluetooth device according to claim 1, wherein the step of controlling the second test terminal to perform the interactive test with the bluetooth device to be tested comprises:
acquiring test item information displayed in the interactive test frame;
inquiring test instruction information corresponding to the test item information according to a preset mapping table;
and controlling the second test terminal to carry out interactive test with the Bluetooth equipment to be tested according to the test instruction corresponding to the test instruction information.
3. The method for testing bluetooth equipment according to claim 2, wherein before the step of querying the test instruction information corresponding to the test item information according to the preset mapping table, the method for testing bluetooth equipment further comprises:
according to each preset function to be tested when the second test terminal and the Bluetooth equipment to be tested are interactively tested, acquiring an interactive test frame corresponding to each preset function to be tested and corresponding test instruction information;
and establishing the preset mapping table according to the one-to-one correspondence between each interactive test frame and the test instruction information.
4. The method for testing a bluetooth device according to claim 1, wherein after the step of turning on the test mode corresponding to the function to be tested of the bluetooth device to be tested when the communication connection with the bluetooth device to be tested is detected, the method for testing a bluetooth device further comprises:
if the interactive test frame corresponding to the function to be tested does not exist in the preset display interface of the second test terminal, sending an adjusting instruction to the Bluetooth equipment to be tested;
and adjusting the Bluetooth equipment to be tested according to the adjusting instruction.
5. The method for testing bluetooth equipment according to claim 1, wherein the step of generating the test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test comprises:
acquiring interactive test information in the interactive test frame during interactive test;
if the interactive test information is detected to be first interactive test information, generating a test success result;
and if the interactive test information is detected to be the second interactive test information, generating a test failure result.
6. The method for testing a bluetooth device according to claim 1, wherein after the step of generating the test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test, the method for testing a bluetooth device further comprises:
updating the total test times of the functions to be tested according to the test result;
and if the total testing times are not smaller than a preset total testing time threshold value, controlling the second testing terminal and the Bluetooth device to be tested to finish the interactive testing.
7. The bluetooth device testing method according to claim 6, wherein after the step of controlling the second testing terminal to end the interactive test with the bluetooth device under test, the bluetooth device testing method further comprises:
determining the test success rate of the function to be tested according to the ratio of the test success times to the total test times;
and displaying the total test result corresponding to the test success rate on a preset display interface.
8. The utility model provides a bluetooth equipment testing arrangement which characterized in that is applied to first test terminal, first test terminal and second test terminal communication connection, bluetooth equipment testing arrangement includes:
the device comprises a sending module, a receiving module and a processing module, wherein the sending module is used for starting a test mode corresponding to a function to be tested of the Bluetooth device to be tested when the communication connection with the Bluetooth device to be tested is detected;
the detection module is used for controlling the second test terminal to carry out interactive test with the Bluetooth equipment to be tested if the interactive test frame corresponding to the function to be tested exists in the preset display interface of the second test terminal;
and the generating module is used for generating a test result of the function to be tested according to the interactive test information displayed in the interactive test frame during the interactive test.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the bluetooth device testing method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a program for implementing a bluetooth device testing method, the program being executed by a processor to implement the steps of the bluetooth device testing method according to any one of claims 1 to 7.
CN202210565580.3A 2022-05-23 2022-05-23 Bluetooth device testing method and device, electronic device and readable storage medium Pending CN114945188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210565580.3A CN114945188A (en) 2022-05-23 2022-05-23 Bluetooth device testing method and device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210565580.3A CN114945188A (en) 2022-05-23 2022-05-23 Bluetooth device testing method and device, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN114945188A true CN114945188A (en) 2022-08-26

Family

ID=82908829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210565580.3A Pending CN114945188A (en) 2022-05-23 2022-05-23 Bluetooth device testing method and device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114945188A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098106A (en) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098106A (en) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium
CN117098106B (en) * 2023-10-18 2023-12-29 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113938456B (en) Session message overhead processing method and device
CN110086889B (en) Terminal device debugging method and device
CN111290819B (en) Method and device for displaying operation prompt and electronic equipment
CN110826050A (en) Login authority management method, device, medium and electronic equipment
CN109542777A (en) A kind of method for testing pressure, device and readable medium
JP7467644B2 (en) Message processing method, device and electronic device
CN113485918A (en) Test method, test device, electronic equipment and storage medium
CN114945188A (en) Bluetooth device testing method and device, electronic device and readable storage medium
CN110022493B (en) Playing progress display method and device, electronic equipment and storage medium
CN112052167A (en) Method and device for generating test script code
CN114510305B (en) Model training method and device, storage medium and electronic equipment
CN113608997B (en) Remote debugging method and device for embedded webpage of application program and electronic equipment
CN114860368A (en) Control method and device of display equipment, electronic equipment and readable storage medium
CN116302766A (en) Fault injection testing method and device, electronic equipment and readable storage medium
CN113542785B (en) Switching method for input and output of audio applied to live broadcast and live broadcast equipment
CN114595154A (en) Test method and device for XTS failure item, electronic equipment and storage medium
CN110874143B (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic equipment
CN114268930A (en) Remote control device matching method, electronic device and readable storage medium
WO2020143556A1 (en) Method and apparatus used for displaying page
US20140049649A1 (en) Portable device and signal converting method thereof
CN111858367A (en) Code coverage rate testing method, system, device, electronic equipment and storage medium
EP3499843A1 (en) Devices, systems, and methods for detecting usage of applications on a device
CN109445873B (en) Method and device for displaying setting interface
CN114461416A (en) Automatic test optimization method and device, electronic equipment and readable storage medium
CN111382556B (en) Data conversion method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination