CN116261091B - Bluetooth testing system and method capable of customizing testing flow - Google Patents

Bluetooth testing system and method capable of customizing testing flow Download PDF

Info

Publication number
CN116261091B
CN116261091B CN202310544484.5A CN202310544484A CN116261091B CN 116261091 B CN116261091 B CN 116261091B CN 202310544484 A CN202310544484 A CN 202310544484A CN 116261091 B CN116261091 B CN 116261091B
Authority
CN
China
Prior art keywords
test
flow
software
index
bluetooth
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.)
Active
Application number
CN202310544484.5A
Other languages
Chinese (zh)
Other versions
CN116261091A (en
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.)
Shenzhen Boomtech Industrial Co ltd
Original Assignee
Shenzhen Boomtech Industrial Co 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 Shenzhen Boomtech Industrial Co ltd filed Critical Shenzhen Boomtech Industrial Co ltd
Priority to CN202310544484.5A priority Critical patent/CN116261091B/en
Publication of CN116261091A publication Critical patent/CN116261091A/en
Application granted granted Critical
Publication of CN116261091B publication Critical patent/CN116261091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a Bluetooth testing system and a Bluetooth testing method capable of customizing a testing flow, wherein the Bluetooth testing system comprises: the first acquisition module is used for acquiring a to-be-detected requirement index item of a target user for the to-be-detected Bluetooth headset; the generating module is used for acquiring a test flow of each requirement index based on the requirement index item to be tested and generating a test program according to the test flow; the detection module is used for detecting Bluetooth feedback signals of each requirement index and preprocessing the corresponding electric signals to obtain preprocessed electric signals; and the second acquisition module is used for guiding the electric signals preprocessed by each demand index into the test program to acquire the index value of the demand index. The method and the device can generate the test program for detection in real time based on the expected index of the user, do not need to modify the original test program, and improve flexibility, suitability, test efficiency and experience of the user. The precision and the accuracy of the test result can be ensured, the time cost and the development cost are reduced, and the practicability is improved.

Description

Bluetooth testing system and method capable of customizing testing flow
Technical Field
The invention relates to the technical field of electric signal processing, in particular to a Bluetooth test system and method capable of customizing a test flow.
Background
With the development of bluetooth technology, bluetooth technology has been increasingly applied to multimedia devices, such as vehicle-mounted multimedia devices and bluetooth headsets. The communication function is an important function of the Bluetooth multimedia device, and the Bluetooth with low power consumption is taken as a short-distance wireless communication solution and is increasingly valued by the market. At present, a large amount of low-power consumption Bluetooth communication modules are used by the intelligent terminal, and the performance of the Bluetooth communication modules is an important index of the terminal. In the product research and development stage, bluetooth test is usually required to be performed on a device prototype, such as selecting various bluetooth entity devices sold in the market, and accessing the various performance of the device prototype test device of the research and development prototype, the existing bluetooth test method tests various indexes through a pre-written test program, and the existing bluetooth test method has the defects that a user cannot newly add test instructions and indexes, and software engineers are required to modify the programs for newly adding the test instructions and the indexes, so that flexibility and suitability are reduced, and meanwhile, test time cost and development cost are increased, and practicability is reduced.
Disclosure of Invention
Aiming at the problems displayed above, the invention provides a Bluetooth test system and a Bluetooth test method capable of customizing a test flow, which are used for solving the problems that in the background art, a user cannot newly add a test instruction and an index, a software engineer is required to modify the program to newly add the test instruction and the index, the flexibility and the suitability are reduced, the test time cost and the development cost are increased, and the practicability is reduced.
A bluetooth test system capable of customizing a test flow, the system comprising:
the first acquisition module is used for acquiring a to-be-detected requirement index item of a target user for the to-be-detected Bluetooth headset;
the generating module is used for acquiring a test flow of each requirement index based on the requirement index item to be tested and generating a test program according to the test flow;
the detection module is used for detecting Bluetooth feedback signals of each requirement index and preprocessing the corresponding electric signals to obtain preprocessed electric signals;
and the second acquisition module is used for guiding the electric signals preprocessed by each demand index into the test program to acquire the index value of the demand index.
Preferably, the first obtaining module includes:
the testing submodule is used for carrying out functional test on the Bluetooth headset to be tested and obtaining a test result;
the first determining submodule is used for determining the detectable index item of the Bluetooth headset to be tested according to the test result and visually displaying the detectable index item;
the second determining submodule is used for receiving a detection instruction sent by the target user and analyzing the detection instruction to determine an expected detection item of the target user;
and the screening sub-module is used for screening the to-be-tested requirement index items of the target user for the to-be-tested Bluetooth headset from the detectable index items according to the association relation between the detectable index items and the expected detection items.
Preferably, the generating module includes:
the first generation sub-module is used for generating a test instruction of each demand index based on the demand index item to be tested, determining whether the test instruction is a storage instruction in a preset instruction library, and acquiring a determination result;
the dividing sub-module is used for dividing the test instruction into a first test instruction with a recognition result and a second test instruction without the recognition result according to the determination result;
the first acquisition sub-module is used for acquiring a first software test flow of each first test instruction from a preset Bluetooth test system;
the first selecting sub-module is used for acquiring a plurality of matched second software testing processes from the program library by taking the second testing instructions as keywords, and selecting a third software testing process with compatibility larger than a preset threshold value from the plurality of second software testing processes as a target testing process corresponding to the second testing instructions;
and the second generation sub-module is used for generating the test programs of the first software test flow and the third software test flow.
Preferably, the second generating submodule generates respective test programs of the first software test flow and the third software test flow, specifically:
selecting respective formalized description parameter sets of the first software testing process and the third software testing process according to the carrier system format of the first software testing process and the third software testing process;
calling respective test component templates of the first software test flow and the third software test flow based on the formalized description parameter set;
acquiring template elements corresponding to respective test component templates of the first software test flow and the third software test flow;
determining random variables of the template elements based on the template elements and template design functions corresponding to the test component templates of the first software test flow and the third software test flow;
respectively acquiring respective test logic parameters of the first software test flow and the third software test flow, and determining a control association function between the test logic parameters and random variables of the template elements;
program codes of the first software testing process and the third software testing process are selected based on the control association function;
and calling the test program framework, and writing the respective program codes of the first software test flow and the third software test flow into the test program framework to acquire the respective test programs of the first software test flow and the third software test flow.
Preferably, before obtaining a plurality of matched second software test flows from the program library by using the second test instruction as a keyword, the system is further configured to:
determining the related test attribute of the second test instruction, and simultaneously acquiring the configuration parameters of the Bluetooth headset to be tested;
judging the test feasibility of the second test instruction for the Bluetooth headset to be tested according to the configuration parameters and the related test attributes;
if the test feasibility is greater than or equal to the standard threshold value, determining that the second test instruction is qualified;
if the test feasibility is smaller than the standard threshold, determining that the second test instruction is unqualified, selecting a replacement test attribute according to the related test attribute and a testable attribute set of the Bluetooth headset to be tested, and generating a third test instruction according to the replacement test attribute.
Preferably, the first selecting sub-module includes:
the first determining unit is used for obtaining the test rule of each second software test flow and determining a test reference parameter set of each second software test flow according to the test rule;
the second determining unit is used for determining the test hardware requirement of each second software test flow according to the test reference parameter set of the second software test flow;
the third determining unit is used for determining the compatibility of each second software testing procedure for the Bluetooth headset to be tested based on the testing hardware requirement of the second software testing procedure and the hardware information of the Bluetooth headset to be tested;
the selection unit is used for selecting a third software testing process with the largest difference value from target second software testing processes with compatibility larger than a preset threshold value as a target testing process corresponding to the second testing instruction.
Preferably, the generating module further includes:
the analysis sub-module is used for analyzing the test flow of each requirement index and acquiring a corresponding data acquisition flow and a corresponding data evaluation flow;
the setting submodule is used for setting a branch jump instruction between a data acquisition flow and a data evaluation flow of each requirement index;
the coding sub-module is used for coding the test flow of each demand index according to the data acquisition flow and the data evaluation flow of each demand index and the set branch jump instruction, and obtaining a coding result;
and the packaging submodule is used for packaging the coding result of each requirement index test flow to generate a test program.
Preferably, the detection module includes:
the second acquisition submodule is used for acquiring equipment information of the Bluetooth headset to be tested and connecting the Bluetooth headset to be tested in a Bluetooth mode according to the equipment information;
the receiving sub-module is used for generating a signal receiving and transmitting instruction according to the reference signal parameter of each requirement index, and receiving a Bluetooth feedback signal of the Bluetooth headset to be tested for each requirement index according to the signal receiving and transmitting instruction;
the second selection submodule is used for determining the signal type of the Bluetooth feedback signal of the Bluetooth headset to be tested for each requirement index, and selecting a signal preprocessing mode according to the signal type;
and the preprocessing sub-module is used for preprocessing the electric signals corresponding to the Bluetooth feedback signals of the requirement indexes by utilizing the signal preprocessing mode of the Bluetooth feedback signals of each requirement index, and acquiring the preprocessed electric signals.
Preferably, the second acquisition module includes:
the importing sub-module is used for importing the electric signals preprocessed by each requirement index into a test program for evaluation and obtaining an evaluation analog signal;
the conversion sub-module is used for converting the evaluation analog signal into an evaluation digital signal so as to realize data exchange;
and the third determining submodule is used for determining the index value of each demand index according to the evaluation digital signal of the demand index.
Preferably, the system further comprises:
the third acquisition module is used for carrying out structural decomposition on the test program and acquiring a plurality of configuration files and program logic parameters corresponding to the test flow of each requirement index according to the decomposition result;
the construction module is used for constructing a unified configuration file database and a public demand index module library according to the plurality of configuration files and the program logic parameters corresponding to the test flow of each demand index;
the compiling module is used for compiling a test program automatic generating tool according to the unified configuration file database and the public demand index module library;
and the processing module is used for carrying out self-adaptive program generation processing on the follow-up real-time test flow by the test program automatic generation tool.
A Bluetooth testing method capable of customizing a testing flow comprises the following steps:
acquiring a to-be-tested requirement index item of a target user for the to-be-tested Bluetooth headset;
acquiring a test flow of each demand index based on the to-be-tested demand index item, and generating a test program according to the test flow;
detecting Bluetooth feedback signals of each requirement index and preprocessing corresponding electric signals to obtain preprocessed electric signals;
and importing the electric signals preprocessed by each demand index into a test program to obtain the index value of the demand index.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention.
Fig. 1 is a schematic structural diagram of a bluetooth test system with customizable test flow according to the present invention;
fig. 2 is a schematic structural diagram of a first acquisition module in a bluetooth test system with customizable test flow according to the present invention;
fig. 3 is a schematic structural diagram of a generating module in a bluetooth testing system with customizable testing flow according to the present invention;
fig. 4 is a flowchart of a bluetooth testing method capable of customizing a testing process according to the present invention.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
With the development of bluetooth technology, bluetooth technology has been increasingly applied to multimedia devices, such as vehicle-mounted multimedia devices and bluetooth headsets. The communication function is an important function of the Bluetooth multimedia device, and the Bluetooth with low power consumption is taken as a short-distance wireless communication solution and is increasingly valued by the market. At present, a large amount of low-power consumption Bluetooth communication modules are used by the intelligent terminal, and the performance of the Bluetooth communication modules is an important index of the terminal. In the product research and development stage, bluetooth test is usually required to be performed on a device prototype, such as selecting various bluetooth entity devices sold in the market, and accessing the various performance of the device prototype test device of the research and development prototype, the existing bluetooth test method tests various indexes through a pre-written test program, and the existing bluetooth test method has the defects that a user cannot newly add test instructions and indexes, and software engineers are required to modify the programs for newly adding the test instructions and the indexes, so that flexibility and suitability are reduced, and meanwhile, test time cost and development cost are increased, and practicability is reduced. In order to solve the above-mentioned problems, the present embodiment discloses a bluetooth test system capable of customizing a test flow.
A bluetooth test system capable of customizing a test flow, as shown in fig. 1, the system comprises:
a first obtaining module 101, configured to obtain a to-be-measured requirement index item of a target user for a to-be-measured bluetooth headset;
the generating module 102 is configured to obtain a test procedure of each requirement index based on the requirement index item to be tested, and generate a test program according to the test procedure;
the detection module 103 is configured to detect a bluetooth feedback signal of each requirement indicator and pre-process an electrical signal corresponding to the bluetooth feedback signal, so as to obtain a pre-processed electrical signal;
the second obtaining module 104 is configured to introduce the electrical signal after preprocessing each requirement index into the test program to obtain an index value of the requirement index.
In this embodiment, the requirement index item to be tested is expressed as an expected detection index item of the target user for the bluetooth headset to be tested, for example: sound quality, radio frequency signal strength, current, etc.;
in the present embodiment, the test flow is represented as a test preparation workflow, a test process flow, and a test ending workflow for each demand index;
in this embodiment, the test program is represented as a software program for performing bluetooth index test;
in this embodiment, the bluetooth feedback signal is represented as a feedback signal of the bluetooth headset to be tested for different indexes;
in this embodiment, the electrical signal is represented as a type of electrical signal corresponding to a bluetooth feedback signal of each demand indicator, for example: the tone quality index corresponds to the sound electric signal, the current index corresponds to the current electric signal, and the like;
in the present embodiment, the index value is expressed as an index score of each demand index.
The working principle of the technical scheme is as follows: firstly, acquiring a to-be-tested requirement index item of a target user for a to-be-tested Bluetooth headset through a first acquisition module; secondly, a generating module is utilized to acquire a test flow of each requirement index based on the requirement index item to be tested, and a test program is generated according to the test flow; then detecting Bluetooth feedback signals of each requirement index through a detection module and preprocessing corresponding electric signals to obtain preprocessed electric signals; and finally, the second acquisition module is used for guiding the electric signals preprocessed by each demand index into a test program to acquire the index value of the demand index.
The beneficial effects of the technical scheme are as follows: the test program can be generated in real time based on the expected indexes of the user for detection by adaptively generating the test program according to the test flow of the target user on the to-be-detected requirement index item of the to-be-detected Bluetooth headset, the original test program is not required to be modified, flexibility and adaptability are improved, test efficiency and experience of the user are improved, furthermore, the precision and accuracy of a test result can be guaranteed by testing the electric signal preprocessed by each requirement index by using the test program, the test efficiency is further improved, time cost and development cost are reduced, practicability is improved, the problem that in the prior art, a user cannot newly increase test instructions and indexes, software engineers are required to modify the test instructions and indexes to be newly increased, flexibility and adaptability are reduced, meanwhile, test time cost and development cost are also increased, and practicability is reduced is solved.
In one embodiment, as shown in fig. 2, the first obtaining module 101 includes:
the testing submodule 1011 is used for carrying out functional test on the Bluetooth headset to be tested and obtaining a test result;
the first determining submodule 1012 is used for determining a detectable index item of the Bluetooth headset to be tested according to the test result and visually displaying the detectable index item;
a second determining submodule 1013, configured to receive a detection instruction sent by the target user, and parse the detection instruction to determine a desired detection item of the target user;
and the screening sub-module 1014 is configured to screen out a to-be-tested requirement index item of the to-be-tested bluetooth headset for the target user from the detectable index items according to the association relationship between the detectable index item and the desired detection item.
In this embodiment, the function test is represented as performing a basic function test on the bluetooth headset to be tested, for example: communication, listening to songs, making phone calls, etc.;
in this embodiment, the detectable index item is represented as an index that can be detected under the current function of the bluetooth headset to be detected, for example: the current function of the Bluetooth headset to be tested can be used for communication and song listening, but the current function of the Bluetooth headset to be tested cannot be used for making a call, and indexes which can be detected at the moment are sound quality indexes and communication indexes;
in the present embodiment, the desired detection item is represented as a class of items that the target user wants to detect, for example: and the target user expects to detect stability and tone quality, and then the to-be-detected requirement index items are audio, tone quality and the like.
The beneficial effects of the technical scheme are as follows: the Bluetooth headset to be tested can be quickly and intuitively judged whether the Bluetooth headset to be tested has production defects or not, so that the detectable index items of the Bluetooth headset to be tested can be accurately judged, a reference sample is laid for the expected detection index items of subsequent users, and the practicability is further improved.
In one embodiment, as shown in fig. 3, the generating module 102 includes:
the first generating sub-module 1021 is configured to generate a test instruction of each requirement index based on a requirement index item to be tested, determine whether the test instruction is a storage instruction in a preset instruction library, and obtain a determination result;
a dividing sub-module 1022, configured to divide the test instruction into a first test instruction with a recognition result and a second test instruction without a recognition result according to the determination result;
the first obtaining submodule 1023 is used for obtaining a first software testing flow of each first testing instruction from a preset bluetooth testing system;
the first selection submodule 1024 is configured to obtain a plurality of matched second software test flows from the program library by using the second test instruction as a keyword, and select a third software test flow with compatibility greater than a preset threshold value from the plurality of second software test flows as a target test flow corresponding to the second test instruction;
the second generating submodule 1025 is configured to generate test programs of each of the first software test flow and the third software test flow.
In this embodiment, the test instruction is expressed as an operation instruction for testing each demand indicator;
in this embodiment, the first software test flow is represented as a software test flow included in the preset bluetooth test system itself;
in this embodiment, the second software testing procedure is represented as a software testing procedure which is not included in the preset bluetooth testing system itself and needs to be called from the outside and written into the preset bluetooth testing system.
The beneficial effects of the technical scheme are as follows: the method can realize the detection of all expected detection index items of the target user in an omnibearing manner, and further, the compatibility during index detection can be ensured and the stability is improved by selecting a software test flow with stronger compatibility as a test flow of a second test instruction without an identification result.
In one embodiment, the second generating submodule generates respective test programs of the first software test flow and the third software test flow, specifically:
selecting respective formalized description parameter sets of the first software testing process and the third software testing process according to the carrier system format of the first software testing process and the third software testing process;
calling respective test component templates of the first software test flow and the third software test flow based on the formalized description parameter set;
acquiring template elements corresponding to respective test component templates of the first software test flow and the third software test flow;
determining random variables of the template elements based on the template elements and template design functions corresponding to the test component templates of the first software test flow and the third software test flow;
respectively acquiring respective test logic parameters of the first software test flow and the third software test flow, and determining a control association function between the test logic parameters and random variables of the template elements;
program codes of the first software testing process and the third software testing process are selected based on the control association function;
and calling the test program framework, and writing the respective program codes of the first software test flow and the third software test flow into the test program framework to acquire the respective test programs of the first software test flow and the third software test flow.
In this embodiment, the carrier system format is expressed as a format of a carrier running system of each of the first software test flow and the third software test flow;
in this embodiment, the formalized description parameter set is expressed as a set of software formalized description feature parameters of each of the first software test flow and the third software test flow;
in this embodiment, the test parameters are expressed as the parameters of the test index items of the first software test flow and the third software test flow;
in this embodiment, the template elements are represented as software function elements of the test component templates of the first software test flow and the third software test flow, respectively;
in this embodiment, the random variable is expressed as a set of hop amounts of the template elements under the template design function;
in this embodiment, the control association function is expressed as a function of variation of random variables of the template elements under control of the test logic parameters;
in the present embodiment, the test program framework represents the infrastructure of the test program.
The beneficial effects of the technical scheme are as follows: the control association function between the test logic parameters and the random variables of the template elements can be determined to intuitively acquire the control quantity of the elements required by the test of each of the first software test flow and the third software test flow, and further accurately acquire the program codes to generate the program, so that the generated program ensures the working stability and the control stability, simultaneously ensures the suitability between the generated program and the first software test flow and the third software test flow, and improves the fault tolerance.
In one embodiment, before obtaining a plurality of matched second software test flows from the library using the second test instructions as keywords, the system is further configured to:
determining the related test attribute of the second test instruction, and simultaneously acquiring the configuration parameters of the Bluetooth headset to be tested;
judging the test feasibility of the second test instruction for the Bluetooth headset to be tested according to the configuration parameters and the related test attributes;
if the test feasibility is greater than or equal to the standard threshold value, determining that the second test instruction is qualified;
if the test feasibility is smaller than the standard threshold, determining that the second test instruction is unqualified, selecting a replacement test attribute according to the related test attribute and a testable attribute set of the Bluetooth headset to be tested, and generating a third test instruction according to the replacement test attribute.
In this embodiment, the relevant test attribute is expressed as a detection signal attribute corresponding to the second test instruction;
in this embodiment, the configuration parameter is represented as a chip configuration parameter of the bluetooth headset to be tested.
The beneficial effects of the technical scheme are as follows: the second test instruction of the target user can be adaptively evaluated and replaced according to the software and hardware configuration of the Bluetooth headset to be tested, so that the rationality of the test index and the hardware compatibility of the Bluetooth headset to be tested are ensured, and the practicability and the reliability are further improved.
In one embodiment, the first selection sub-module includes:
the first determining unit is used for obtaining the test rule of each second software test flow and determining a test reference parameter set of each second software test flow according to the test rule;
the second determining unit is used for determining the test hardware requirement of each second software test flow according to the test reference parameter set of the second software test flow;
the third determining unit is used for determining the compatibility of each second software testing procedure for the Bluetooth headset to be tested based on the testing hardware requirement of the second software testing procedure and the hardware information of the Bluetooth headset to be tested;
the selection unit is used for selecting a third software testing process with the largest difference value from target second software testing processes with compatibility larger than a preset threshold value as a target testing process corresponding to the second testing instruction.
In this embodiment, the test rule is expressed as a standard flow rule of each second software test flow;
in this embodiment, the test hardware requirement is expressed as a hardware configuration requirement of the second software test flow for the bluetooth headset to be tested.
The beneficial effects of the technical scheme are as follows: the compatibility of each second software testing process to the Bluetooth headset to be tested can be intuitively and accurately evaluated by judging according to the testing hardware requirements and the hardware information of the Bluetooth headset to be tested, whether each second software testing process can detect the Bluetooth headset to be tested is further ensured, and the practicability is improved.
In one embodiment, the generating module further includes:
the analysis sub-module is used for analyzing the test flow of each requirement index and acquiring a corresponding data acquisition flow and a corresponding data evaluation flow;
the setting submodule is used for setting a branch jump instruction between a data acquisition flow and a data evaluation flow of each requirement index;
the coding sub-module is used for coding the test flow of each demand index according to the data acquisition flow and the data evaluation flow of each demand index and the set branch jump instruction, and obtaining a coding result;
and the packaging submodule is used for packaging the coding result of each requirement index test flow to generate a test program.
In this embodiment, the data collection flow is represented as a collection operation flow of relevant evaluation data of each requirement index;
in this embodiment, the data evaluation flow is represented as a reference weight evaluation flow of the related evaluation data of each demand index for the demand index;
in this embodiment, the branch jump instruction is represented as a control instruction that performs a jump step on data collection and analysis.
The beneficial effects of the technical scheme are as follows: the branch jump instruction between the data acquisition flow and the data evaluation flow of each requirement index can be set to ensure that the step of falling into a dead loop is avoided when electric signal data is input, so that the stability is further improved, and further, a stable test program can be quickly generated by performing software coding and packaging, so that the system stability is further improved.
In one embodiment, the detection module comprises:
the second acquisition submodule is used for acquiring equipment information of the Bluetooth headset to be tested and connecting the Bluetooth headset to be tested in a Bluetooth mode according to the equipment information;
the receiving sub-module is used for generating a signal receiving and transmitting instruction according to the reference signal parameter of each requirement index, and receiving a Bluetooth feedback signal of the Bluetooth headset to be tested for each requirement index according to the signal receiving and transmitting instruction;
the second selection submodule is used for determining the signal type of the Bluetooth feedback signal of the Bluetooth headset to be tested for each requirement index, and selecting a signal preprocessing mode according to the signal type;
and the preprocessing sub-module is used for preprocessing the electric signals corresponding to the Bluetooth feedback signals of the requirement indexes by utilizing the signal preprocessing mode of the Bluetooth feedback signals of each requirement index, and acquiring the preprocessed electric signals.
In this embodiment, the device information is represented as device model information of a bluetooth headset to be tested, or the like.
The beneficial effects of the technical scheme are as follows: the signal preprocessing mode is selected according to the signal type of the Bluetooth feedback signal of each requirement index, so that intelligent preprocessing can be performed on each type of electric signal in a self-adaptive manner, the practicability is further improved, meanwhile, the electric signal cannot be damaged, and the stability is improved.
In one embodiment, the second acquisition module includes:
the importing sub-module is used for importing the electric signals preprocessed by each requirement index into a test program for evaluation and obtaining an evaluation analog signal;
the conversion sub-module is used for converting the evaluation analog signal into an evaluation digital signal so as to realize data exchange;
and the third determining submodule is used for determining the index value of each demand index according to the evaluation digital signal of the demand index.
The beneficial effects of the technical scheme are as follows: through signal analog-to-digital conversion, a target user can intuitively know the index value of each requirement index, and the experience of the target user is improved.
In one embodiment, the system further comprises:
the third acquisition module is used for carrying out structural decomposition on the test program and acquiring a plurality of configuration files and program logic parameters corresponding to the test flow of each requirement index according to the decomposition result;
the construction module is used for constructing a unified configuration file database and a public demand index module library according to the plurality of configuration files and the program logic parameters corresponding to the test flow of each demand index;
the compiling module is used for compiling a test program automatic generating tool according to the unified configuration file database and the public demand index module library;
and the processing module is used for carrying out self-adaptive program generation processing on the follow-up real-time test flow by the test program automatic generation tool.
The beneficial effects of the technical scheme are as follows: the automatic generation tool for automatically programming the test program can enable the whole system to automatically, quickly and stably generate the test program when the test flow is obtained later, and further improves the test efficiency and the working efficiency.
The embodiment also discloses a bluetooth testing method capable of customizing a testing flow, as shown in fig. 4, comprising the following steps:
step S401, obtaining a to-be-tested requirement index item of a target user for the to-be-tested Bluetooth headset;
step S402, acquiring a test flow of each requirement index based on the requirement index item to be tested, and generating a test program according to the test flow;
step S403, detecting Bluetooth feedback signals of each requirement index and preprocessing corresponding electric signals to obtain preprocessed electric signals;
step S404, the electric signals after preprocessing each demand index are imported into a test program to obtain the index value of the demand index.
The working principle and the beneficial effects of the above technical solution are described in the system claims, and are not repeated here.
It will be appreciated by those skilled in the art that the first and second aspects of the present invention refer to different phases of application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A bluetooth test system capable of customizing a test flow, the system comprising:
the first acquisition module is used for acquiring a to-be-detected requirement index item of a target user for the to-be-detected Bluetooth headset;
the generating module is used for acquiring a test flow of each requirement index based on the requirement index item to be tested and generating a test program according to the test flow;
the detection module is used for detecting Bluetooth feedback signals of each requirement index and preprocessing the corresponding electric signals to obtain preprocessed electric signals;
the second acquisition module is used for guiding the electric signals preprocessed by each demand index into a test program to acquire the index value of the demand index;
the generating module comprises:
the first generation sub-module is used for generating a test instruction of each demand index based on the demand index item to be tested, determining whether the test instruction is a storage instruction in a preset instruction library, and acquiring a determination result;
the dividing sub-module is used for dividing the test instruction into a first test instruction with a recognition result and a second test instruction without the recognition result according to the determination result;
the first acquisition sub-module is used for acquiring a first software test flow of each first test instruction from a preset Bluetooth test system;
the first selecting sub-module is used for acquiring a plurality of matched second software testing processes from the program library by taking the second testing instructions as keywords, and selecting a third software testing process with compatibility larger than a preset threshold value from the plurality of second software testing processes as a target testing process corresponding to the second testing instructions;
the second generation sub-module is used for generating respective test programs of the first software test flow and the third software test flow;
before obtaining the matched plurality of second software test flows from the program library by taking the second test instruction as a keyword, the system is further used for:
determining the related test attribute of the second test instruction, and simultaneously acquiring the configuration parameters of the Bluetooth headset to be tested;
judging the test feasibility of the second test instruction for the Bluetooth headset to be tested according to the configuration parameters and the related test attributes;
if the test feasibility is greater than or equal to the standard threshold value, determining that the second test instruction is qualified;
if the test feasibility is smaller than the standard threshold, determining that the second test instruction is unqualified, selecting a replacement test attribute according to the related test attribute and a testable attribute set of the Bluetooth headset to be tested, and generating a third test instruction according to the replacement test attribute.
2. The bluetooth test system according to claim 1, wherein the first acquisition module comprises:
the testing submodule is used for carrying out functional test on the Bluetooth headset to be tested and obtaining a test result;
the first determining submodule is used for determining the detectable index item of the Bluetooth headset to be tested according to the test result and visually displaying the detectable index item;
the second determining submodule is used for receiving a detection instruction sent by the target user and analyzing the detection instruction to determine an expected detection item of the target user;
and the screening sub-module is used for screening the to-be-tested requirement index items of the target user for the to-be-tested Bluetooth headset from the detectable index items according to the association relation between the detectable index items and the expected detection items.
3. The bluetooth test system according to claim 1, wherein the second generating sub-module generates the test program of each of the first software test procedure and the third software test procedure, specifically:
selecting respective formalized description parameter sets of the first software testing process and the third software testing process according to the carrier system format of the first software testing process and the third software testing process;
calling respective test component templates of the first software test flow and the third software test flow based on the formalized description parameter set;
acquiring template elements corresponding to respective test component templates of the first software test flow and the third software test flow;
determining random variables of the template elements based on the template elements and template design functions corresponding to the test component templates of the first software test flow and the third software test flow;
respectively acquiring respective test logic parameters of the first software test flow and the third software test flow, and determining a control association function between the test logic parameters and random variables of the template elements;
program codes of the first software testing process and the third software testing process are selected based on the control association function;
and calling the test program framework, and writing the respective program codes of the first software test flow and the third software test flow into the test program framework to acquire the respective test programs of the first software test flow and the third software test flow.
4. The customizable test flow bluetooth test system according to claim 1, wherein the first selection sub-module comprises:
the first determining unit is used for obtaining the test rule of each second software test flow and determining a test reference parameter set of each second software test flow according to the test rule;
the second determining unit is used for determining the test hardware requirement of each second software test flow according to the test reference parameter set of the second software test flow;
the third determining unit is used for determining the compatibility of each second software testing procedure for the Bluetooth headset to be tested based on the testing hardware requirement of the second software testing procedure and the hardware information of the Bluetooth headset to be tested;
the selection unit is used for selecting a third software testing process with the largest difference value from target second software testing processes with compatibility larger than a preset threshold value as a target testing process corresponding to the second testing instruction.
5. The bluetooth test system according to claim 1, wherein the generating module further comprises:
the analysis sub-module is used for analyzing the test flow of each requirement index and acquiring a corresponding data acquisition flow and a corresponding data evaluation flow;
the setting submodule is used for setting a branch jump instruction between a data acquisition flow and a data evaluation flow of each requirement index;
the coding sub-module is used for coding the test flow of each demand index according to the data acquisition flow and the data evaluation flow of each demand index and the set branch jump instruction, and obtaining a coding result;
and the packaging submodule is used for packaging the coding result of each requirement index test flow to generate a test program.
6. The bluetooth test system according to claim 1, wherein the detection module comprises:
the second acquisition submodule is used for acquiring equipment information of the Bluetooth headset to be tested and connecting the Bluetooth headset to be tested in a Bluetooth mode according to the equipment information;
the receiving sub-module is used for generating a signal receiving and transmitting instruction according to the reference signal parameter of each requirement index, and receiving a Bluetooth feedback signal of the Bluetooth headset to be tested for each requirement index according to the signal receiving and transmitting instruction;
the second selection submodule is used for determining the signal type of the Bluetooth feedback signal of the Bluetooth headset to be tested for each requirement index, and selecting a signal preprocessing mode according to the signal type;
and the preprocessing sub-module is used for preprocessing the electric signals corresponding to the Bluetooth feedback signals of the requirement indexes by utilizing the signal preprocessing mode of the Bluetooth feedback signals of each requirement index, and acquiring the preprocessed electric signals.
7. The bluetooth test system according to claim 1, wherein the second acquisition module comprises:
the importing sub-module is used for importing the electric signals preprocessed by each requirement index into a test program for evaluation and obtaining an evaluation analog signal;
the conversion sub-module is used for converting the evaluation analog signal into an evaluation digital signal so as to realize data exchange;
and the third determining submodule is used for determining the index value of each demand index according to the evaluation digital signal of the demand index.
8. The customizable test flow bluetooth test system according to claim 1, wherein the system further comprises:
the third acquisition module is used for carrying out structural decomposition on the test program and acquiring a plurality of configuration files and program logic parameters corresponding to the test flow of each requirement index according to the decomposition result;
the construction module is used for constructing a unified configuration file database and a public demand index module library according to the plurality of configuration files and the program logic parameters corresponding to the test flow of each demand index;
the compiling module is used for compiling a test program automatic generating tool according to the unified configuration file database and the public demand index module library;
and the processing module is used for carrying out self-adaptive program generation processing on the follow-up real-time test flow by the test program automatic generation tool.
9. A Bluetooth testing method capable of customizing a testing flow is characterized by comprising the following steps:
acquiring a to-be-tested requirement index item of a target user for the to-be-tested Bluetooth headset;
acquiring a test flow of each demand index based on the to-be-tested demand index item, and generating a test program according to the test flow;
detecting Bluetooth feedback signals of each requirement index and preprocessing corresponding electric signals to obtain preprocessed electric signals;
the electric signals preprocessed by each demand index are imported into a test program to obtain index values of the demand index;
the test procedure for obtaining each requirement index based on the requirement index item to be tested generates a test procedure according to the test procedure, and the test procedure comprises the following steps:
generating a test instruction of each demand index based on the to-be-tested demand index item, determining whether the test instruction is a storage instruction in a preset instruction library, and acquiring a determination result;
dividing the test instruction into a first test instruction with a recognition result and a second test instruction without the recognition result according to the determination result;
acquiring a first software test flow of each first test instruction from a preset Bluetooth test system;
acquiring a plurality of matched second software test flows from a program library by taking a second test instruction as a keyword, and selecting a third software test flow with compatibility larger than a preset threshold value from the plurality of second software test flows as a target test flow corresponding to the second test instruction;
generating respective test programs of the first software test flow and the third software test flow;
before the matched multiple second software test flows are obtained from the program library by taking the second test instructions as keywords, the method further comprises the following steps:
determining the related test attribute of the second test instruction, and simultaneously acquiring the configuration parameters of the Bluetooth headset to be tested;
judging the test feasibility of the second test instruction for the Bluetooth headset to be tested according to the configuration parameters and the related test attributes;
if the test feasibility is greater than or equal to the standard threshold value, determining that the second test instruction is qualified;
if the test feasibility is smaller than the standard threshold, determining that the second test instruction is unqualified, selecting a replacement test attribute according to the related test attribute and a testable attribute set of the Bluetooth headset to be tested, and generating a third test instruction according to the replacement test attribute.
CN202310544484.5A 2023-05-16 2023-05-16 Bluetooth testing system and method capable of customizing testing flow Active CN116261091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310544484.5A CN116261091B (en) 2023-05-16 2023-05-16 Bluetooth testing system and method capable of customizing testing flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310544484.5A CN116261091B (en) 2023-05-16 2023-05-16 Bluetooth testing system and method capable of customizing testing flow

Publications (2)

Publication Number Publication Date
CN116261091A CN116261091A (en) 2023-06-13
CN116261091B true CN116261091B (en) 2023-08-04

Family

ID=86686514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310544484.5A Active CN116261091B (en) 2023-05-16 2023-05-16 Bluetooth testing system and method capable of customizing testing flow

Country Status (1)

Country Link
CN (1) CN116261091B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116559662B (en) * 2023-06-27 2024-08-23 湖南贝特新能源科技有限公司 Propelling motor test system
CN117155485B (en) * 2023-10-23 2024-07-26 东莞信宝电子产品检测有限公司 Classical Bluetooth automatic test method, system and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929627A (en) * 2012-10-29 2013-02-13 无锡江南计算技术研究所 Automatic testing program generating method based on ATE (Automatic Test Equipment) and ATE testing method
CN106776284A (en) * 2016-11-25 2017-05-31 深圳市小满科技有限公司 A kind of method for testing software and system
WO2019090454A1 (en) * 2017-11-07 2019-05-16 深圳市汇顶科技股份有限公司 Bluetooth test system and method
CN110334005A (en) * 2019-05-24 2019-10-15 平安普惠企业管理有限公司 Graphic data base screening technique and device, storage medium, electronic equipment
CN112566005A (en) * 2021-02-25 2021-03-26 易兆微电子(杭州)股份有限公司 Audio chip testing method and device, electronic equipment and storage medium
CN113037398A (en) * 2021-03-03 2021-06-25 北京百瑞互联技术有限公司 Automatic production and test system and method for Bluetooth chip and Bluetooth module
CN113626339A (en) * 2021-08-27 2021-11-09 深圳供电局有限公司 Automatic software compatibility testing method and system
CN114640941A (en) * 2022-03-24 2022-06-17 肇庆德庆冠旭电子有限公司 Bluetooth headset hardware testing method and device, electronic equipment and storage medium
CN115408367A (en) * 2022-09-16 2022-11-29 杭州瓴羊智能服务有限公司 Data testing method, storage medium and electronic device
CN115757172A (en) * 2022-11-30 2023-03-07 广州品唯软件有限公司 Test execution method and device, storage medium and computer equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9135131B2 (en) * 2012-02-16 2015-09-15 National Instruments Corporation Customizing operation of a test instrument based on information from a system under test
US10733087B2 (en) * 2018-10-17 2020-08-04 Servicenow, Inc. Environment for continuous testing and integration of software
CN111198787B (en) * 2018-11-16 2021-11-02 长鑫存储技术有限公司 Test program generation method, test program generation device, storage medium and electronic equipment
US11494291B2 (en) * 2019-12-20 2022-11-08 UiPath, Inc. System and computer-implemented method for analyzing test automation workflow of robotic process automation (RPA)

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929627A (en) * 2012-10-29 2013-02-13 无锡江南计算技术研究所 Automatic testing program generating method based on ATE (Automatic Test Equipment) and ATE testing method
CN106776284A (en) * 2016-11-25 2017-05-31 深圳市小满科技有限公司 A kind of method for testing software and system
WO2019090454A1 (en) * 2017-11-07 2019-05-16 深圳市汇顶科技股份有限公司 Bluetooth test system and method
CN110334005A (en) * 2019-05-24 2019-10-15 平安普惠企业管理有限公司 Graphic data base screening technique and device, storage medium, electronic equipment
CN112566005A (en) * 2021-02-25 2021-03-26 易兆微电子(杭州)股份有限公司 Audio chip testing method and device, electronic equipment and storage medium
CN113037398A (en) * 2021-03-03 2021-06-25 北京百瑞互联技术有限公司 Automatic production and test system and method for Bluetooth chip and Bluetooth module
CN113626339A (en) * 2021-08-27 2021-11-09 深圳供电局有限公司 Automatic software compatibility testing method and system
CN114640941A (en) * 2022-03-24 2022-06-17 肇庆德庆冠旭电子有限公司 Bluetooth headset hardware testing method and device, electronic equipment and storage medium
CN115408367A (en) * 2022-09-16 2022-11-29 杭州瓴羊智能服务有限公司 Data testing method, storage medium and electronic device
CN115757172A (en) * 2022-11-30 2023-03-07 广州品唯软件有限公司 Test execution method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN116261091A (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CN116261091B (en) Bluetooth testing system and method capable of customizing testing flow
CN108511000B (en) Method and system for testing identification rate of awakening words of intelligent sound box
CN102387234B (en) Mobile phone automatic test device and method
CN107861870A (en) Interface testing and test data generating method, device, terminal and storage medium
CN112327808A (en) Automobile fault diagnosis method and system and automobile fault diagnosis instrument
CN110426589A (en) A kind of substation secondary device automatic testing method, server and system based on general-purpose interface template
CN105577293A (en) Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system
CN112839323A (en) Bluetooth device testing method and device, terminal and computer readable storage medium
CN100473084C (en) Testing system and method for mobile telephones
CN105760296A (en) Automation testing control method, device and terminal
CN101237662B (en) Method and device for generating automatic test cases of mobile phone
CN106646315A (en) Automatic testing system and automatic testing method for digital measuring instruments
CN116405968B (en) Bluetooth test system with programmable user
CN112148559A (en) Mobile APP power consumption test method, device and system, acquisition end and test end
CN114238071A (en) DCS software automatic verification system and method based on digital simulation technology
CN115424652A (en) Trimming test method and device, electronic equipment and readable storage medium
CN111176995A (en) Test method and test system based on big data test case
CN114460925A (en) Automatic HIL (high-level intelligence) testing method for CAN (controller area network) interface of electric automobile controller
CN114238081A (en) Method and system suitable for small satellite batch test
CN109492039A (en) A kind of recording method of daily record data, device, electronic equipment and readable medium
CN115103392B (en) ESIM terminal test method, instrument, portal server, device and system
CN105872164B (en) Patchcord, test result wiring method, device, mobile terminal and test macro
CN112699022B (en) Method and system for real-time efficient automatic contract testing
CN110600006B (en) Speech recognition evaluation method and system
CN114062887B (en) Quantum chip testing method, device and system 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
GR01 Patent grant
GR01 Patent grant