CN109362015A - Volume test method, console device, storage medium and volume test macro - Google Patents

Volume test method, console device, storage medium and volume test macro Download PDF

Info

Publication number
CN109362015A
CN109362015A CN201811049368.1A CN201811049368A CN109362015A CN 109362015 A CN109362015 A CN 109362015A CN 201811049368 A CN201811049368 A CN 201811049368A CN 109362015 A CN109362015 A CN 109362015A
Authority
CN
China
Prior art keywords
volume
test
equipment
information
equipment under
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.)
Granted
Application number
CN201811049368.1A
Other languages
Chinese (zh)
Other versions
CN109362015B (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201811049368.1A priority Critical patent/CN109362015B/en
Publication of CN109362015A publication Critical patent/CN109362015A/en
Application granted granted Critical
Publication of CN109362015B publication Critical patent/CN109362015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention is applicable in field of computer technology, provide a kind of volume test method, console device, storage medium and volume test macro, this method comprises: establishing the first communication connection between equipment under test, and after the second communication connection between volume test equipment, according to preset configuration information, information is tested with interacting first between equipment under test based on the first communication connection, and information is tested with interacting second between volume test equipment based on the second communication connection, respective output volume test action is executed to trigger equipment under test and volume test equipment.In this way, controllable equipment under test and volume test equipment execute volume test action automatically, is recorded without artificial Attended Operation volume test equipment and equipment under test and result, to improve volume testing efficiency, ensure that the accurate, reliable of test result.

Description

Volume test method, console device, storage medium and volume test macro
Technical field
The invention belongs to field of computer technology more particularly to a kind of volume test method, console device, storage Jie Matter and volume test macro.
Background technique
Currently, usually manually being beaten when testing the outer playback amounts of electronic products such as smart phone, plate in industry The related playing function of equipment under test is opened, and clicks source of sound one by one and plays out, while opening sound level meter manually to test Volume, each source of sound need manually recorded data after having surveyed, since whole process needs artificial degree of participation higher, volume Testing efficiency is lower, is easy error.
Summary of the invention
The purpose of the present invention is to provide the tests of a kind of volume test method, console device, storage medium and volume to be System, it is intended to solve the problems, such as that in the presence of the prior art, volume testing efficiency is lower and error rate is higher.
On the one hand, the present invention provides a kind of volume test method, the method includes the following steps:
Establish the first communication connection between equipment under test, and the second communication link between volume test equipment It connects;
According to preset configuration information, surveyed based on first communication connection with interacting first between the equipment under test Information is tried, information is tested with interacting second between the volume test equipment based on second communication connection, described in triggering Equipment under test and the volume test equipment execute respective output volume test action.
On the other hand, the present invention provides a kind of console device, including memory and processor, the processor is held It realizes when the computer program stored in the row memory such as the step in the above method.
On the other hand, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with computer program, is realized when the computer program is executed by processor such as the step in the above method.
On the other hand, the present invention also provides a kind of volume test macros, comprising: such as above-mentioned console device and The volume test equipment.
First communication connection of the present invention between foundation and equipment under test, and the between volume test equipment After two communication connections, according to preset configuration information, believed based on the first communication connection with the first test is interacted between equipment under test Breath, and information is tested with interacting second between volume test equipment based on the second communication connection, to trigger equipment under test and volume Test equipment executes respective output volume test action.In this way, controllable equipment under test and volume test equipment execute volume survey automatically Examination movement, records without artificial Attended Operation volume test equipment and equipment under test and result, to improve volume survey Efficiency is tried, ensure that the accurate, reliable of test result.
Detailed description of the invention
Fig. 1 is the implementation flow chart for the volume test method that the embodiment of the present invention one provides;
Fig. 2 is notepad text file schematic diagram in the embodiment of the present invention two;
Fig. 3 is the dependence diagram for the volume test method that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for the console device that the embodiment of the present invention five provides;
Fig. 5 is the structural schematic diagram for the volume test macro that the embodiment of the present invention seven provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, The present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair It is bright, it is not intended to limit the present invention.
Specific implementation of the invention is described in detail below in conjunction with specific embodiment:
Embodiment one:
Fig. 1 shows the implementation process of the volume test method of the offer of the embodiment of the present invention one, which is In order to realize that the outer playback amount to electronic products such as smart phone, tablet computers is tested.For ease of description, it only shows Part related to the embodiment of the present invention, details are as follows:
In step s101, the first communication connection between equipment under test is established, and between volume test equipment Second communication connection.
In the present embodiment, it communicates when carrying out equipment under test and volume test equipment by wired or wireless mode When physical structure before connection prepares, needs to rely on and be built between corresponding communication protocol and equipment under test, volume test equipment Vertical communication connection, or referred to as communication link, need between equipment under test and volume test equipment based on communication protocol into Row communication handshake.Instruction, data can be transmitted based on the communication connection.Wired mode, which can be, passes through universal serial bus The connection such as (Universal Serial Bus, USB) connecting line, Serial Port Line, wireless mode can be through bluetooth, wireless guarantor Very (Wireless Fidelity, WiFi) etc. is connected.
In step s 102, according to preset configuration information, based on the first communication connection with the is interacted between equipment under test One test information tests information with interacting second between volume test equipment based on the second communication connection, to trigger equipment under test And volume test equipment executes respective output volume test action.
In the present embodiment, configuration information can indicate: which volume test text when which platform equipment under test play Part, and, when which platform volume test equipment plays out volume acquisition, in this way, can be according to configuration information to tested Equipment and volume test equipment are accordingly controlled, and realize equipment under test, the controlled collaborative work of volume test equipment.It is above-mentioned It, can between the information controlled for equipment under test and the information controlled for volume test equipment in configuration information With directly related or indirect correlation, such as: when can be set in equipment under test and starting broadcast sound volume test file 1, volume is surveyed Examination equipment is directed to this time simultaneously and plays progress volume acquisition, and records corresponding collection result, the realization of this process, can be with It is realized by carrying out corresponding relevant configuration to equipment under test and volume test equipment, such as: it is surveyed to equipment under test and volume The time that the time and triggering equipment under test and volume test equipment that examination equipment sends control instruction acts etc. is synchronous, in this way It is achieved that above-mentioned directly related;Start broadcast sound volume test in the 15:00 on the 15th of August in 2018 alternatively, equipment under test can be set File 1, volume test equipment similarly starts to carry out volume acquisition in the 15:00 on the 15th of August in 2018, in absolute time It is synchronous, but the time for being configured or being sent control instruction to equipment under test and volume test equipment may not synchronize, this Sample is achieved that above-mentioned indirect correlation.Volume test file can first pass through the modes such as network downloading or local unloading in advance and deposit It stores up in equipment under test, equipment under test can also be sent to before interactive testing information, need to load in advance in equipment under test It can be carried out the playout software of volume test file broadcasting.The relatively simple volume test file of the preferred track of volume test file, The comparison in this way, test result of equipment under test will be more accurate, between the test results of different equipment under tests, reference sample It will be more accurate, reliable.
Implement the present embodiment, controllable equipment under test and volume test equipment execute volume test action automatically, without Artificial Attended Operation volume test equipment and equipment under test and result record, to improve volume testing efficiency, ensure that Test result it is accurate, reliable.
Embodiment two:
The present embodiment is on the basis of embodiment one, it is further provided following content:
Above-mentioned configuration information includes: that volume test file broadcasting timing information and volume acquisition timing information, volume are adopted Collection timing information is related to volume test file broadcasting timing information, and the two correlation is primarily referred to as: the volume of equipment under test is surveyed Try file broadcasting can be synchronous with the acquisition of the volume of volume test equipment, this correlation can use it is above-mentioned directly related or Indirect correlation is realized.
Correspondingly, in step s 102, the first test of interaction information, specifically include the following steps:
It is sent to equipment under test and plays the survey of timing information broadcast sound volume according to volume test file for triggering equipment under test Try the first test instruction of file, wherein the first test instruction type can be set according to equipment under test operating system, example Such as: when equipment under test operating system is Android Android system, the first test instruction type can test bridge for Android (Android Debug Bridge, ADB) instruction, when equipment under test operating system is apple ios system, the first test refers to Enable type that can instruct for ios;Interaction the second test information, specifically include the following steps: being used for the transmission of volume test equipment Trigger tone amount test equipment is instructed according to the second test that volume acquisition timing information plays out volume acquisition, and from volume Test equipment receives broadcast sound volume collection result, wherein if volume test equipment supports serial ports, the second test instruction class Type can instruct for serial ports.It may include the relevant information of volume test file in configuration information, such as: volume test file is known Other information, duration information, type information and playing sequence information etc., these information can be relative to each other and be present in one It include 6 sounds as shown in Fig. 2, listing as a notepad text file a part of in configuration information in relation table Frequency file and 3 video files, and it is labelled with filename and playing duration.
Implement the present embodiment, by adopting equipment under test to the volume of the broadcasting of volume test file and volume test equipment The accurate synchronization of collection, can not precisely synchronize caused by avoiding because of manual operation, test and miss caused by can eliminating as much as possible therefore Difference can more highlight advantage especially when the play time of volume test file is shorter.
Embodiment three:
The present embodiment is on the basis of above-described embodiment one or two, it is further provided following content:
Further include following step as shown in Figure 3 between step S101 and step S102:
In step S301, is communicated to connect based on first and interact initialization information between equipment under test, it is tested to trigger Equipment is by initial grade of the device plays sound volume setting specified by initialization information and enters mute operating state.
In the present embodiment, since equipment under test has several device plays level of sound volume, herein, for subsequent progress Volume test needs to carry out the specified and debugging of the device plays volume initial grade of equipment under test in advance.And in order to it is subsequent into Row volume test environment whether He Ge judgement, need that equipment under test is made to enter mute operating state.
In step s 302, based on interactive debug information between the second communication connection and volume test equipment, with trigger tone Amount test equipment is acquired real time environment volume when equipment under test is mute operating state.
In step S303, real time environment volume collection result is obtained from volume test equipment.
In step s 304, according to real time environment volume collection result obtained and default environmental volume nominal value Comparison result judges whether volume test environment is qualified, if qualified, thens follow the steps S305, no to then follow the steps S306.
In the present embodiment, environmental volume nominal value is preset in high standards, can be in mute shape with indicative for environments State in other cases can be with indicative for environments there are noise, but noise volume is smaller negligible or will not influence test As a result.
In step S305, the interaction of subsequent first test information and the second test information is carried out, to carry out volume test (i.e. above-mentioned steps S102).
In step S306, replacement volume test environment or elimination environmental noise.
In the present embodiment, when having a higher standard requirement to test environment, and when above-mentioned volume test environment is unqualified, Volume test environment is then needed replacing, such as: from the environment in the presence of the noise that may influence test result, it is switched to environment and makes an uproar In the soundproof room that sound there's almost no, alternatively, corresponding environmental noise isolation processing is carried out, such as: setting soundproof wall etc..
Implement the present embodiment, can carry out whether volume test environment meets sound before actually entering volume test process The judgement of testing requirement is measured, can meet volume testing requirement so as to search out or construct and spend higher cost Volume tests environment.
Certainly it should be noted that the sound insulation that can meet volume testing requirement can also be constructed in other application example Room, with shielding environment noise.
Example IV:
The present embodiment is on the basis of above-described embodiment three, it is further provided following content:
In above-mentioned steps S303, is specifically obtained from volume test equipment and be located at different time in predetermined lasting time section Point several real time environment volume collection results, these real time environment volume collection results be in predetermined lasting time section not With time point acquisition.
In the present embodiment, accordingly further include:
Judge whether several real time environment volume collection results substantially remain in same level, if so, broadcast sound volume is adopted Collection result and each real time environment volume collection result are input to data processing model and carry out denoising, obtain equipment under test Final volume test result.
In the present embodiment, data processing model is a kind of denoising model, and main purpose is acquired from broadcast sound volume As a result environmental noise is rejected in, to restore the true volume of equipment under test.
When several real time environment volume collection results do not substantially remain in same level, but fluctuating range is larger, Then instruction may also be unable to get ideal test result by denoising.So, test wrapper may be needed replacing at this time Border.
Embodiment five:
The structure that Fig. 4 shows the console device of the offer of the embodiment of the present invention five illustrates only for ease of description Part related to the embodiment of the present invention.
The console device of the embodiment of the present invention includes processor 401 and memory 402, and processor 401 executes storage The step in above-mentioned each embodiment of the method, such as step shown in FIG. 1 are realized in the computer program 403 in memory 402 Rapid S101 to S102.
The step of realizing when realizing above-mentioned each method when processor 401 executes computer program 403 in console device can With reference to the description of preceding method embodiment, details are not described herein.
Certainly, the console device of the present embodiment can also include other modules in specific implementation, such as: convenient for using Human-computer interactions mould group, the network modules for being communicated with Server remote such as mouse, the keyboard of family operation etc..
Embodiment six:
In embodiments of the present invention, a kind of computer readable storage medium is provided, which deposits Computer program is contained, which realizes the step in above-mentioned each method embodiment when being executed by processor, for example, Step S101 to S102 shown in FIG. 1.
The computer readable storage medium of the embodiment of the present invention may include can carry computer program code any Entity or device, recording medium, for example, the memories such as ROM/RAM, disk, CD, flash memory.
Embodiment seven:
The structure that Fig. 5 shows the volume test macro of the offer of the embodiment of the present invention seven is only shown for ease of description Part related to the embodiment of the present invention.
The volume test macro of the embodiment of the present invention includes: above-mentioned console device 501 and volume test equipment 502, For carrying out volume test to equipment under test 503.Wherein, console device 501 and volume test equipment 502, equipment under test It can be connected by wired or wireless way between 503.Concretely sound level meter, equipment under test 503 have volume test equipment 502 Body can be smart phone or tablet computer.Serial Port Line or indigo plant can be passed through between console device 501 and volume test equipment 502 The modes such as tooth connect, and can be connected by modes such as USB connecting line or bluetooths between console device 501 and equipment under test 503.
It should be noted that volume test macro can be directed to multitone amount test equipment 502 and/or more equipment under tests 503 It is constructed, specifically when being controlled, test prioritization or sequence can be set, sequentially or simultaneously tested.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (10)

1. a kind of volume test method, which is characterized in that the method includes the following steps:
The first communication connection between equipment under test is established, and the second communication connection between volume test equipment;
According to preset configuration information, believed based on first communication connection with the first test is interacted between the equipment under test Breath tests information with interacting second between the volume test equipment based on second communication connection, described tested to trigger Equipment and the volume test equipment execute respective output volume test action.
2. the method as described in claim 1, which is characterized in that the configuration information includes: that volume test file plays timing Information and volume acquire timing information, and the volume acquisition timing information plays timing information phase with the volume test file It closes,
Interaction the first test information, specifically include the following steps:
It sends to the equipment under test and is broadcast for triggering the equipment under test according to volume test file broadcasting timing information First test instruction of playback amount test file,
Interaction the second test information, specifically include the following steps:
To the volume test equipment send for trigger the volume test equipment according to the volume acquire timing information into Second test instruction of row broadcast sound volume acquisition;
Broadcast sound volume collection result is received from the volume test equipment.
3. method according to claim 2, which is characterized in that establish the first communication connection and second communication connection after, Further include following step before the first test information of interaction and the second test information:
It is communicated to connect based on described first and interacts initialization information between the equipment under test, it will to trigger the equipment under test Device plays sound volume setting initial grade specified by the initialization information simultaneously enters mute operating state;
Based on interactive debug information between second communication connection and the volume test equipment, to trigger the volume test Equipment is acquired the real time environment volume when equipment under test is mute operating state;
Real time environment volume collection result is obtained from the volume test equipment;
According to the comparison result of real time environment volume collection result obtained and default environmental volume nominal value, judge that volume is surveyed Whether test ring border is qualified,
If qualified, the first test information and the second test information are interacted.
4. method as claimed in claim 3, which is characterized in that obtain real time environment volume collection result, specifically include as follows Step:
Several real time environment volumes obtained in predetermined lasting time section positioned at different time points from the volume test equipment are adopted Collection as a result,
The method also includes:
Judge whether several real time environment volume collection results substantially remain in same level,
If so, the broadcast sound volume collection result and each real time environment volume collection result are input to data processing model Denoising is carried out, the final volume test result of the equipment under test is obtained.
5. a kind of console device, including memory and processor, which is characterized in that the processor executes in the memory It realizes when the computer program of storage such as the step in any one of Claims 1-4 the method.
6. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization such as the step in any one of Claims 1-4 the method when the computer program is executed by processor.
7. a kind of volume test macro characterized by comprising console device as claimed in claim 5 and the sound Measure test equipment.
8. system as claimed in claim 7, which is characterized in that the console device and the volume test equipment, described It is connected between equipment under test by wired or wireless way.
9. system as claimed in claim 7, which is characterized in that the volume test equipment is sound level meter, the equipment under test For smart phone or tablet computer.
10. system as claimed in claim 8, which is characterized in that between the console device and the volume test equipment By Serial Port Line or bluetooth connection, pass through USB connecting line or bluetooth connection between the console device and the equipment under test.
CN201811049368.1A 2018-09-10 2018-09-10 Volume test method, control end device, storage medium and volume test system Active CN109362015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811049368.1A CN109362015B (en) 2018-09-10 2018-09-10 Volume test method, control end device, storage medium and volume test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811049368.1A CN109362015B (en) 2018-09-10 2018-09-10 Volume test method, control end device, storage medium and volume test system

Publications (2)

Publication Number Publication Date
CN109362015A true CN109362015A (en) 2019-02-19
CN109362015B CN109362015B (en) 2021-06-22

Family

ID=65350766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811049368.1A Active CN109362015B (en) 2018-09-10 2018-09-10 Volume test method, control end device, storage medium and volume test system

Country Status (1)

Country Link
CN (1) CN109362015B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543006A (en) * 2021-06-30 2021-10-22 深圳市豪恩声学股份有限公司 Earphone testing method, earphone testing device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267646A (en) * 2008-04-25 2008-09-17 深圳华为通信技术有限公司 Method, device and system for a measuring terminal device to prompt volume
US20090279707A1 (en) * 2005-01-08 2009-11-12 Robert Swartz Listener Specific Audio Reproduction System
CN201984810U (en) * 2011-03-08 2011-09-21 公安部第一研究所 Testing equipment for objectively evaluating speech quality of pickup system
CN107403627A (en) * 2017-08-16 2017-11-28 歌尔科技有限公司 Sound source calibration system and method
CN107870851A (en) * 2017-11-29 2018-04-03 广州品唯软件有限公司 Application performance test method, apparatus, computer-readable recording medium and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090279707A1 (en) * 2005-01-08 2009-11-12 Robert Swartz Listener Specific Audio Reproduction System
CN101267646A (en) * 2008-04-25 2008-09-17 深圳华为通信技术有限公司 Method, device and system for a measuring terminal device to prompt volume
CN201984810U (en) * 2011-03-08 2011-09-21 公安部第一研究所 Testing equipment for objectively evaluating speech quality of pickup system
CN107403627A (en) * 2017-08-16 2017-11-28 歌尔科技有限公司 Sound source calibration system and method
CN107870851A (en) * 2017-11-29 2018-04-03 广州品唯软件有限公司 Application performance test method, apparatus, computer-readable recording medium and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543006A (en) * 2021-06-30 2021-10-22 深圳市豪恩声学股份有限公司 Earphone testing method, earphone testing device, electronic equipment and medium
CN113543006B (en) * 2021-06-30 2024-01-12 深圳市豪恩声学股份有限公司 Earphone testing method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN109362015B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN110083543B (en) Regression testing method, device, electronic equipment and storage medium
CN108511000B (en) Method and system for testing identification rate of awakening words of intelligent sound box
CN102141962B (en) Safety distributed test framework system and test method thereof
CN106201846B (en) Method for monitoring performance and device in automatic test
CN104461903B (en) The method and apparatus of test client based on browser
CN104679631B (en) Method of testing and system for the equipment based on android system
CN102014126B (en) Voice experience quality evaluation platform based on QoS (quality of service) and evaluation method
CN107436844B (en) Method and device for generating interface use case aggregate
CN105338110A (en) Remote debugging method, platform and server
TW201607262A (en) Virtualization of natural radio environments to test a radio device
CN109413678A (en) A kind of Wi-Fi module automatic test approach and test macro
HUE034737T2 (en) System and method for testing and certification of media devices for use within a connected media environment
CN110245073A (en) Client code coverage rate monitoring method, system, medium and electronic equipment
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN107562637B (en) Method, device, system and storage medium for software testing
CN101295280A (en) Automatic software debugging method and system
CN104505126B (en) A kind of dynamic memory test system and method
CN103001829A (en) Testing method and device of network data transmission
CN110585702A (en) Sound and picture synchronous data processing method, device, equipment and medium
WO2007061241A1 (en) Error test method for mobile communication terminals
CN104702463A (en) Method, device and system for bypass testing of multiple machine rooms
CN109362015A (en) Volume test method, console device, storage medium and volume test macro
CN108132832A (en) Application program launching method and device
CN110430519A (en) A kind of acoustics of intelligent sound box is tested automatically and analysis system and method
CN112104969B (en) Detection method and device for Bluetooth headset

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