Summary of the invention
The application's technical problem to be solved provides a kind of test macro and method of bluetooth equipment, can significantly reduce the workload and the human cost of test, improves testing efficiency.
In order to address the above problem, the application discloses a kind of test macro of bluetooth equipment, comprising:
Starting drive is used to start the test event to bluetooth equipment to be measured, and carries out the required operation of this test event for the first time on computers;
Automatic testing equipment is used to write down the required operation of on this computer, carrying out for the first time of this test event, and repeats the operation of being write down on computers;
Recording device is used for the output sound at this bluetooth equipment to be measured of test process record of this test event; And
Decision maker is used for judging according to the output sound that is write down whether this bluetooth equipment to be measured is normal.
Preferably, comprise the mouse that this test event of on this computer, carrying out for the first time is required and/or the operation of keyboard in the required operation of carrying out on this computer of this test event the said first time;
Said automatic testing equipment comprises:
Logging modle is used to write down the required mouse of this test event of on this computer, carrying out the said first time and/or the operation of keyboard;
Modular converter, but be used for the operation of being write down is converted into the operating data of edit format;
Repeat module, be used for according to said operating data, mouse beacon and/or keyboard repeat corresponding operation automatically.
Preferably, said automatic testing equipment also comprises:
Editor module is used for before mouse beacon and/or keyboard repeat corresponding operation automatically, carries out number of times and/or operation execution interval according to operation, but the operating data of the said edit format of editor, the operating data after obtaining editing;
The said module that repeats specifically is used for according to the operating data behind the said editor, and mouse beacon and/or keyboard repeat corresponding operation automatically.
Preferably, said system also comprises:
The serial ports instruction sending module is when being used on this computer carrying out the required operation of this test event, through the serial ports sending controling instruction;
Relay industrial control board device, the one of which end links to each other with this computer through serial ports, and the other end links to each other with bluetooth equipment to be measured, is used for when receiving said control command, carries out with this control command to bluetooth equipment to be measured and operates accordingly.
Preferably, said system also comprises:
The opposite equip. instruction sending module during the required operation of this test event that is used on this computer, carrying out, is sent the control command to opposite equip.;
Opposite equip. computer synchronizer is used for when this opposite equip. is the non-computer opposite equip., controls this opposite equip. on computers according to the control command to opposite equip., realizes the synchronous of this opposite equip. and computer.
Preferably, said non-computer opposite equip. comprises Bluetooth mobile terminal or Bluetooth adapter.
On the other hand, disclosed herein as well is a kind of method of testing of bluetooth equipment, comprising:
Start test event, and carry out the required operation of this test event for the first time on computers to bluetooth equipment to be measured;
The required operation of this test event that record is carried out on this computer for the first time, and repeat the operation of being write down on computers;
The output sound of this bluetooth equipment to be measured of record in the test process of this test event;
According to the output sound that is write down, judge whether this bluetooth equipment to be measured is normal.
Preferably, comprise the mouse that this test event of on this computer, carrying out for the first time is required and/or the operation of keyboard in the required operation of carrying out on this computer of this test event the said first time;
The required operation of this test event that said record is carried out on this computer for the first time, and repeat the step of the operation of being write down on computers, comprising:
Write down the required mouse of this test event of on this computer, carrying out the said first time and/or the operation of keyboard;
But the operation of being write down is converted into the operating data of edit format;
According to said operating data, mouse beacon and/or keyboard repeat corresponding operation automatically.
Preferably, said method also comprises:
Before mouse beacon and/or keyboard repeat corresponding operation automatically, carry out number of times and/or operation execution interval according to operation, but the operating data of the said edit format of editor, the operating data after obtaining editing;
The step that said automatic mouse beacon and/or keyboard repeat corresponding operation is that according to the operating data behind the said editor, mouse beacon and/or keyboard repeat corresponding operation automatically.
Preferably, said method also comprises:
When on this computer, carrying out the required operation of this test event, through the serial ports sending controling instruction;
When receiving said control command; Relay industrial control board device is carried out with this control command to bluetooth equipment to be measured and is operated accordingly, and wherein, an end of said relay industrial control board device links to each other with this computer through serial ports; The other end links to each other with bluetooth equipment to be measured.
Preferably, said method also comprises:
During the required operation of this test event of on this computer, carrying out, send control command to opposite equip.;
When this opposite equip. is non-computer, control this opposite equip. on computers according to control command to opposite equip., realize the synchronous of this opposite equip. and computer.
Preferably, said non-computer opposite equip. comprises Bluetooth mobile terminal or Bluetooth adapter.
Compared with prior art, the application has the following advantages:
With respect to the manual testing of prior art, the application carries out based on computer-controlled automatic test; Because the test of bluetooth equipment needs the retest flow process repeatedly, the application is mainly accomplished by manual work based on the testing process first time of computer-controlled automatic test, and the testing process of residue degree repeats based on computer control automatically; Therefore; Cause repeatedly with respect to the artificial retest flow process of prior art that workload is big, efficient is low and spend a large amount of human cost shortcomings; Because the application mainly spends required workload and the human cost of testing process for the first time; So with respect to prior art, can significantly reduce the workload and the human cost of test, improve testing efficiency.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
One of core idea of the application embodiment, with respect to the manual testing of prior art, the application embodiment carries out based on computer-controlled automatic test; Because the test of bluetooth equipment needs the retest flow process repeatedly, the application is mainly accomplished by manual work based on the testing process first time of computer-controlled automatic test, and the testing process of residue degree repeats based on computer control automatically; Therefore; Cause repeatedly with respect to the artificial retest flow process of prior art that workload is big, efficient is low and spend a large amount of human cost shortcomings; Because the application mainly spends required workload and the human cost of testing process for the first time; So can significantly reduce the workload and the human cost of test, improve testing efficiency.
With reference to Fig. 1, show the structure chart of the test macro embodiment of a kind of bluetooth equipment of the application, specifically can comprise:
Starting drive 101 is used to start the test event to bluetooth equipment to be measured, and carries out the required operation of this test event for the first time on computers;
Automatic testing equipment 102 is used to write down the required operation of on this computer, carrying out for the first time of this test event, and repeats the operation of being write down on computers;
Recording device 103 is used for the output sound at this bluetooth equipment to be measured of test process record of this test event; And
Decision maker 104 is used for judging according to the output sound that is write down whether this bluetooth equipment to be measured is normal.
The application can be used for the test of bluetooth equipments such as bluetooth earphone, blue tooth vehicular be hands-free; Also be; The application's test mainly refers to the test in bluetooth equipment processes such as exploitation bluetooth earphone, blue tooth vehicular be hands-free, and in test process, bluetooth equipment to be measured shows as the Bluetooth system circuit board usually.
For guaranteeing that bluetooth equipment can long-term work under various application scenarioss; Have to the test event of bluetooth equipment to be measured a variety of, like " incoming call being arranged, bluetooth earphone control mobile phone electric connection words 1000 times on the mobile phone "; " use bluetooth earphone control In Call plus-minus in the communication process each 1000 times ", " calling from mobile phone end for 300 times; see whether sound normal in the earphone ", " incoming call being arranged, bluetooth earphone control mobile phone refusal incoming call 1000 times on the mobile phone " or the like.
No matter for which kind of test event, the test event that the application all starts to bluetooth equipment to be measured through starting drive 101, and carry out the required operation of this test event for the first time on computers, to accomplish testing process for the first time.
With reference to Fig. 2, the testing process first time of a kind of test event 1 of the application, the task of test event 1 is " incoming call being arranged, bluetooth earphone control mobile phone electric connection words 1000 times on the mobile phone ", corresponding testing process for the first time specifically can comprise:
Step 201, starting drive 101 are given sound source of mobile phone A;
Step 202, starting drive 101 are carried out the required operation of this test event for the first time on computers, and said operation specifically can comprise: the control mobile phone A calls for the mobile phone B that is connected with the bluetooth earphone pairing, and the control bluetooth earphone receives calls;
The output sound of step 203, recording device 103 this bluetooth equipment to be measured of record in the first time of this test event testing process;
Step 204, starting drive 101 are carried out the required operation of this test event for the first time on computers, and said operation can also comprise: the control mobile phone A is hung up the telephone.
In concrete the realization; The required operation of this test event that can carry out on computers can be the operation of in one or more computer softwares, carrying out; No matter this operation which kind of computer software merchant is carried out; They all need accomplish by means of keyboard and/or mouse, and automatic testing equipment 102 is the operations that can catch and write down keyboard and/or mouse.
Therefore, in a kind of preferred embodiment of the application, can comprise mouse that this test event of for the first time on this computer carrying out required and/or the operation of keyboard in the required operation of this test event of carrying out on this computer the said first time;
At this moment, said automatic testing equipment 102 may further include:
Logging modle is used to write down the required mouse of this test event of on this computer, carrying out the said first time and/or the operation of keyboard;
Modular converter, but be used for the operation of being write down is converted into the operating data of edit format;
Repeat module, be used for according to said operating data, mouse beacon and/or keyboard repeat corresponding operation automatically.
Here; But edit format can refer to the form of specific script; Like JavaScript, Python, ASP, PHP, PERL, Nuva, ActionScript, PostScript, AppleScript, Bash, Ruby etc., but the application does not limit concrete edit format.
In a kind of preferred embodiment of the application, but can also edit number of times (as 999 times) to the operating data of edit format, each interval (like 1s) of carrying out etc. to confirm that corresponding operating is carried out; Correspondingly, said automatic testing equipment 102 can also comprise:
Editor module is used for before mouse beacon and/or keyboard repeat corresponding operation automatically, carries out number of times and/or operation execution interval according to operation, but the operating data of the said edit format of editor, the operating data after obtaining editing;
At this moment, the said module that repeats can specifically be used for according to the operating data behind the said editor, and mouse beacon and/or keyboard repeat corresponding operation automatically.
In test process; Recording device 103 links to each other with bluetooth equipment to be measured; Like this, in comprising the test process of for the first time testing process and all the other testing processs that repeat, recording device 103 all can write down the output sound of this bluetooth equipment to be measured; Decision maker 104 then can judge whether this bluetooth equipment to be measured is normal according to the output sound that is write down.
In reality; Recording device 103 can also show the output sound that is write down that like this, decision maker 104 can be through the output sound of observation station's record in real time with visual form; Judge whether this bluetooth equipment to be measured normal, here normally mainly be normal with the test event function corresponding.For example; If test event is " using bluetooth earphone control In Call plus-minus in the communication process each 1000 times "; Then whether decision maker 104 answers the intensity of output sound signal of observation station record consistent with the increase and decrease of bluetooth earphone end volume, if then this bluetooth equipment to be measured of decidable is normal; Otherwise, judge that then this bluetooth equipment to be measured is unusual.
In a word, because the application mainly spends required workload and the human cost of testing process for the first time,, improve testing efficiency so can significantly reduce the workload and the human cost of test.
Because bluetooth is the radiotechnics of a kind of support equipment short haul connection (generally being within the 10m), so, in test process, need operate bluetooth equipment itself sometimes.For example, can desire then need test bluetooth earphone end itself and regulate volume through the volume adjusting function of " using bluetooth earphone control In Call plus-minus in the communication process each 1000 a times " bluetooth earphone of test.
Because bluetooth equipment to be measured shows as the Bluetooth system circuit board usually in the reality, when carrying out the manual testing, be to need the artificial key position on the Bluetooth system circuit board of going to operate.The application inventor notices, if want based on the key position on the computer-controlled operation Bluetooth system circuit board, can realize with relay industrial control board device.Relay industrial control board device is actually a multicircuit relay switch that can computerized control; If an end of relay industrial control board device is linked to each other with the key position of Bluetooth system circuit board; The other end links to each other with computer through serial ports; So, relay industrial control board device just can pass to the control command of computer the Bluetooth system circuit board, thus the final purpose that realizes based on the key position on the computer-controlled operation Bluetooth system circuit board.
So in a kind of preferred embodiment of the application, said system can also comprise:
The serial ports instruction sending module is when being used on this computer carrying out the required operation of this test event, through the serial ports sending controling instruction;
Relay industrial control board device, the one of which end links to each other with this computer through serial ports, and the other end links to each other with bluetooth equipment to be measured, is used for when receiving said control command, carries out with this control command to bluetooth equipment to be measured and operates accordingly.
With reference to Fig. 3; Show the computer control interface sketch map of a kind of relay industrial control board of the application device, wherein, this computer control interface is octuple relay control interface; Relay 1-8 on the interface links to each other with 8 relay switches of relay industrial control board device respectively; 8 relay switches of relay industrial control board device respectively with the Bluetooth system circuit board on the key position link to each other, the string slogan be the transmitting serial port of relay industrial control board device and computer, baud rate is the transmission rate of control command.
Suppose the volume adjusting function of a bluetooth earphone of test; And relay 1 is used to control volume "+" the key position on the bluetooth earphone circuit board; Then on computers with click " relay 1 leaves " button once; Click once " relay 1 closes " button then, just can realize volume "+" the key position purpose once on the operation bluetooth earphone circuit board.
With reference to Fig. 4, show the automatic testing process sketch map of a kind of test event 2 of the application, this test event 2 is " using bluetooth earphone control In Call plus-minus in the communication process each 1000 times ";
If use the manual testing, then need the bluetooth earphone circuit board be connected with the mobile phone A pairing.Mobile phone A and mobile phone B are conversed, and the mobile phone B place plays a sound source.The volume add-substract key of manual operations bluetooth earphone circuit board each 1000 times, the variation of omnidistance artificial listening;
Automatic testing process shown in Figure 4 specifically can comprise:
Step 401, automatic testing equipment 102 start;
Step 402, starting drive 101 are set up conversation, and bluetooth earphone is connected with the mobile phone A pairing, give sound source of mobile phone B;
Step 403, starting drive 101 are for the first time on computers to relay industrial control board device sending controling instruction, with the increase and decrease of control bluetooth earphone end volume once;
The control bluetooth earphone end volume increase and decrease operation once on this computer for the first time of step 404, automatic testing equipment 102 records; And repeating the operation of being write down on computers 999 times, at every turn repeating wherein all needs relay industrial control board device to order to the bluetooth earphone transmitting control;
Step 405, recording device 103 write down the output sound of bluetooth earphone always in the test process of this test event;
Step 406, decision maker 104 judge according to the output sound that is write down whether the volume adjusting function of this bluetooth earphone is normal.
Because bluetooth is the radiotechnics of a kind of support equipment short haul connection (generally being within the 10m), so, sometimes need be in test process to operating with the bluetooth equipment paired devices, whether normal with the function of test bluetooth equipment.For example, whether normal, then need call from the opposite equip. end if in advance testing in the bluetooth earphone sound through " 300 times call from mobile phone end, see whether sound is normal in the earphone ".
If this opposite equip. is a computer, then can control this opposite equip. with comparalive ease and call, for example, during the required operation of this test event of on this computer, carrying out, a control command that only needs to send to opposite equip. gets final product.
If this opposite equip. is the non-computer opposite equip., needs manual work to grasp the non-computer opposite equip. in the prior art and do; For reaching the purpose of computer control non-computer opposite equip., in a kind of preferred embodiment of the application, said system can also comprise:
The opposite equip. instruction sending module during the required operation of this test event that is used on this computer, carrying out, is sent the control command to opposite equip.;
Opposite equip. computer synchronizer is used for when this opposite equip. is the non-computer opposite equip., controls this opposite equip. on computers according to the control command to opposite equip., realizes the synchronous of this opposite equip. and computer.
In reality, said non-computer opposite equip. specifically can comprise Bluetooth mobile terminal or Bluetooth adapter etc.
Show the interface signal of a kind of opposite equip. computer of the application synchronizer with reference to Fig. 5; It is the synchronization means of mobile phone computer; At mobile phone with after computer is connected; The synchronization interface that will show mobile phone end on computers, if operate the mobile phone on the computer this moment, mobile phone also can and then be operated synchronously; This just can realize utilizing the demand of computer control mobile phone.
With reference to Fig. 6, show the automatic testing process sketch map of a kind of test event 3 of the application, this test event 3 is " 300 times call from mobile phone end, see whether sound is normal in the earphone ";
If use the manual testing, then need manual work that mobile phone A is linked to each other with bluetooth earphone, make a call to 112 with mobile phone A, whether sound is normal in tin bluetooth earphone.Repeat aforesaid operations 300 times;
Automatic testing process shown in Figure 6 specifically can comprise:
Step 601, automatic testing equipment 102 start;
Step 602, starting drive 101 are set up conversation, and bluetooth earphone is connected with the mobile phone A pairing;
Step 603, starting drive 101 are controlled opposite equip. computer synchronizer for the first time on computers, dial 112 with the control mobile phone A;
Step 604, the automatic testing equipment 102 record first time of control mobile phone A on this computer are dialed 112 operation; And repeating the operation of being write down on computers 299 times, at every turn repeating wherein all needs opposite equip. computer synchronizer to order to the mobile phone A transmitting control;
Step 605, recording device 103 write down the output sound of bluetooth earphone always in the test process of this test event;
Step 606, decision maker 104 judge according to the output sound that is write down whether sound is normal in this bluetooth earphone.
Above-mentioned test event 2 needs relay industrial control board device to instruct to the bluetooth cellular phone transmitting control; Above-mentioned test event 3 needs through opposite equip. computer synchronizer control opposite equip.; In reality, possibly use relay industrial control board device simultaneously and opposite equip. computer synchronizer controls simultaneously bluetooth equipment and opposite equip..
With reference to Fig. 7, show the automatic testing process sketch map of a kind of test event 4 of the application, this test event 4 is " incoming call being arranged, bluetooth earphone control mobile phone refusal incoming call 1000 times on the mobile phone ";
If use the manual testing, then need artificial giving to match the mobile phone B that is connected with bluetooth earphone and call, and then the Artificial Control bluetooth earphone hang up the telephone with mobile phone A, from bluetooth earphone, to confirm to hear dialing tone.Repeat this operation 1000 times;
Automatic testing process shown in Figure 7 specifically can comprise:
Step 701, automatic testing equipment 102 start;
Step 702, starting drive 101 are set up conversation, and bluetooth earphone is connected with the mobile phone B pairing;
Step 703, starting drive 101 are controlled opposite equip. computer synchronizer for the first time on computers, dial mobile phone B with the control mobile phone A;
Step 704, recording device 103 write down the output sound of bluetooth earphone always in the test process of this test event;
Step 705, starting drive 101 are for the first time on computers to relay industrial control board device sending controling instruction, with control bluetooth earphone refusing to receive telephone;
The operation that step 706, automatic testing equipment 102 record starting drives 101 are carried out for the first time on computers; And repeating the operation of being write down on computers 999 times, at every turn repeating wherein all need be operated opposite equip. computer synchronizer and relay industrial control board device;
Step 707, decision maker 104 judge according to the output sound that is write down whether the function of this bluetooth earphone refusing incoming call is normal.
With reference to Fig. 8, show the automatic testing process sketch map of a kind of test event 1 of the application, this test event 1 is " incoming call being arranged, bluetooth earphone control mobile phone electric connection words 1000 times on the mobile phone ";
If use the manual testing; Then need manual work to call for the mobile phone B that is connected with the bluetooth earphone pairing with mobile phone A, the Artificial Control bluetooth earphone has connect phone then, and manual work is afterwards spoken through mobile phone A and mobile phone B; From bluetooth earphone, confirm to hear that manual work is afterwards hung up the telephone; Manual work repeats above-mentioned testing process 1000 times;
Automatic testing process shown in Figure 8 specifically can comprise:
Step 801, automatic testing equipment 102 start;
Step 802, starting drive 101 are set up conversation, and bluetooth earphone is connected with the mobile phone B pairing, give sound source of mobile phone A;
Step 803, starting drive 101 are controlled opposite equip. computer synchronizer for the first time on computers, dial mobile phone B with the control mobile phone A;
Step 804, starting drive 101 receive calls with the control bluetooth earphone for the first time on computers to relay industrial control board device sending controling instruction;
Step 805, recording device 103 write down the output sound of bluetooth earphone always in the test process of this test event;
Step 806, starting drive 101 are controlled opposite equip. computer synchronizer for the first time on computers, dial with the control mobile phone A and hang up the telephone;
The operation that step 807, automatic testing equipment 102 record starting drives 101 are carried out for the first time on computers; And repeating the operation of being write down on computers 999 times, at every turn repeating wherein all need be operated opposite equip. computer synchronizer and relay industrial control board device;
Step 808, decision maker 104 judge according to the output sound that is write down whether the function of this bluetooth earphone incoming call answering is normal.
Embodiment is corresponding with aforementioned system, disclosed herein as well is a kind of method of testing of bluetooth equipment, with reference to Fig. 9, specifically can comprise:
Step 901, the test event that starts to bluetooth equipment to be measured, and carry out the required operation of this test event for the first time on computers;
The required operation of this test event that step 902, record are carried out on this computer for the first time, and repeat the operation of being write down on computers;
Step 903, in the test process of this test event the record this bluetooth equipment to be measured output sound;
The output sound that step 904, foundation are write down judges whether this bluetooth equipment to be measured is normal.
In a kind of preferred embodiment of the application, specifically can comprise mouse that this test event of for the first time on this computer carrying out required and/or the operation of keyboard in the required operation of this test event of carrying out on this computer the said first time;
Correspondingly, the required operation of this test event that said record is carried out on this computer for the first time, and repeat the step of the operation of being write down on computers, may further include:
Write down the required mouse of this test event of on this computer, carrying out the said first time and/or the operation of keyboard;
But the operation of being write down is converted into the operating data of edit format;
According to said operating data, mouse beacon and/or keyboard repeat corresponding operation automatically.
In a kind of preferred embodiment of the application, said method can also comprise:
Before mouse beacon and/or keyboard repeat corresponding operation automatically, carry out number of times and/or operation execution interval according to operation, but the operating data of the said edit format of editor, the operating data after obtaining editing;
At this moment, said automatic mouse beacon and/or keyboard repeat corresponding operation step can for, according to the operating data behind the said editor, mouse beacon and/or keyboard repeat corresponding operation automatically.
In another preferred embodiment of the application, said method can also comprise:
When on this computer, carrying out the required operation of this test event, through the serial ports sending controling instruction;
When receiving said control command; Relay industrial control board device is carried out with this control command to bluetooth equipment to be measured and is operated accordingly, and wherein, an end of said relay industrial control board device links to each other with this computer through serial ports; The other end links to each other with bluetooth equipment to be measured.
In a kind of preferred embodiment of the application, said method can also comprise:
During the required operation of this test event of on this computer, carrying out, send control command to opposite equip.;
When this opposite equip. is non-computer, control this opposite equip. on computers according to control command to opposite equip., realize the synchronous of this opposite equip. and computer.
In the application embodiment, preferably, said non-computer opposite equip. can comprise Bluetooth mobile terminal or Bluetooth adapter.
For method embodiment, because it is similar basically with system embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of system embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
More than to the test macro and the method for a kind of bluetooth equipment that the application provided; Be described in detail; Used specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.