CN110442525A - The method, apparatus and computer readable storage medium of pressure test - Google Patents

The method, apparatus and computer readable storage medium of pressure test Download PDF

Info

Publication number
CN110442525A
CN110442525A CN201910743610.3A CN201910743610A CN110442525A CN 110442525 A CN110442525 A CN 110442525A CN 201910743610 A CN201910743610 A CN 201910743610A CN 110442525 A CN110442525 A CN 110442525A
Authority
CN
China
Prior art keywords
test
test case
case
port
script file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910743610.3A
Other languages
Chinese (zh)
Inventor
彭伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Shenzhen Chuangwei RGB Electronics Co Ltd
Original Assignee
Shenzhen Chuangwei RGB Electronics 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 Chuangwei RGB Electronics Co Ltd filed Critical Shenzhen Chuangwei RGB Electronics Co Ltd
Priority to CN201910743610.3A priority Critical patent/CN110442525A/en
Publication of CN110442525A publication Critical patent/CN110442525A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The invention discloses a kind of method for testing pressure, the method for testing pressure includes: the test starting command for receiving user's triggering, obtains preset test case in corresponding test port according to the test starting command, wherein the test port is multiple;The script file in the test case is parsed, and corresponding operation instruction is sent to the device to be detected connecting with the test port according to the script file after parsing;Judge whether the test case of the test port tests;If so, obtaining the log information in device detection process to be detected, and the log information is stored into journal file, for customer analysis testing result.The invention also discloses a kind of pressure test device and computer readable storage mediums.The present invention can carry out pressure test simultaneously for the device to be detected of different type of machines and functional requirement, improve the efficiency and intelligence of pressure test.

Description

The method, apparatus and computer readable storage medium of pressure test
Technical field
The present invention relates to the method, apparatus and computer of intelligent measuring technology field more particularly to a kind of pressure test can Read storage medium.
Background technique
Tv product is in exploitation and quality check process at present, it is often necessary to which research and development or tester are repeated several times manually Operation, process it is cumbersome and waste personnel time.Therefore, personnel's manually testing procedure progress is replaced using pressure test equipment Pressure test is more more and more universal.
However, with the development of the times with the progress of ntelligent television technolog, people to the functional requirement of TV also increasingly More, manufacturer is in order to meet consumer demand, and the type of research and development is more and more, and function becomes increasingly complex, and the type of mainstream is basic All support AI phonetic function.However, existing pressure test equipment can only carry out pressure to separate unit or more identical TVs Test has been unable to meet the testing requirement of current complexity.Therefore, it is realized for the smart television of different type of machines and functional requirement high The pressure test of effect, intelligence, becomes technical problem urgently to be resolved.
Summary of the invention
The main purpose of the present invention is to provide a kind of method, apparatus of pressure test and computer readable storage medium, Aim to solve the problem that the smart television for how being directed to different type of machines and functional requirement realizes that the technology of efficient, intelligence pressure test is asked Topic.
To achieve the above object, the present invention provides a kind of method of pressure test, and the method for the pressure test is suitable for Pressure testing system, the pressure testing system include main control unit, and the main control unit connects multi-channel test port, the pressure Power test method include:
The test starting command for receiving user's triggering is obtained in corresponding test port according to the test starting command and is preset Test case, wherein the test port be it is multiple;
The script file in the test case is parsed, and is connected according to the script file after parsing to the test port The device to be detected connect sends corresponding operation instruction;
Judge whether the test case of the test port tests;
If so, obtaining the log information in device detection process to be detected, and the log information is stored to log In file, for customer analysis testing result.
Preferably, it in the test starting command of the reception user triggering, is obtained and is corresponded to according to the test starting command In test port the step of preset test case before, further includes:
The addition test case for receiving user's triggering instructs and records current test lead slogan;
Foot is written to according to format according to default according to the test case data that the addition test case instruction will receive This document, and store into current test port;
Judge whether the test case of current test port adds completion;
If so, switching to next test port addition test case;
If it is not, then return step: the test case data that will be received according to the addition test case instruction is according to pre- If being written to script file according to format, and store into current test port.
Preferably, the test case data includes telecontrol code, exchange impact and/or phonetic order, the basis The test case data that the addition test case instruction will receive is written to script file according to format according to default, and stores Step into current test port includes:
The test case data received according to the addition current test lead slogan of test case command detection;Judge institute State whether test case data is telecontrol code, exchange impact or phonetic order;If the test case data is infrared distant The telecontrol code is then recorded as infrared remote control use-case by control code, by the infrared remote control use-case according to according to default according to lattice Formula is written to script file, and stores into current test port;
It is exchange impact use-case by the exchange impact record, by institute if the test case data is exchange impact It states exchange impact use-case and is written to script file according to format according to default, and store into current test port;
If the test case data is phonetic order, the phonetic order is recorded as tone testing use-case, by institute Predicate sound test case is written to script file according to format according to default, and stores into current test port.
Preferably, the script file in the parsing test case, and according to the script file after parsing to institute The device to be detected for stating test port connection sends the step of corresponding operation instructs, comprising:
Parse the script file in the test case;
The type of test case data is determined according to the script file after parsing;
Signal output module corresponding with the type is selected according to the type of the test case data, and by described Signal output module sends corresponding operation instruction to the device to be detected connecting with the test port, wherein the signal Output module is infrared output module, exchange impact module or audio output module.
Preferably, it in the test starting command of the reception user triggering, is obtained and is corresponded to according to the test starting command In test port the step of preset test case after, further includes:
Judge current test port with the presence or absence of test case;
If there are test cases for current test port, thens follow the steps: parsing the script file in the test case, and Corresponding operation instruction is sent to the device to be detected connecting with the test port according to the script file after parsing;
If test case is not present in current test port, prompt information is generated, so that user is according to the prompt information Judge whether to add test case.
In addition, to achieve the above object, the present invention also provides a kind of device of pressure test, the device of the pressure test Include: test port, signal output module, memory, processor and is stored on the memory and can be in the processor The program of the pressure test of upper operation is realized described in any of the above-described when the program of the pressure test is executed by the processor The step of method of pressure test.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums, it is stored thereon with pressure The method of pressure test described in any of the above-described is realized when the program of the program of test, the pressure test is executed by processor Step.
The present invention is by being arranged multiple test ports, when receiving the test starting command of user's triggering, according to described Test starting command obtains preset test case in corresponding test port, solves to the script file in the test case Analysis, and corresponding operation instruction is sent to the device to be detected connecting with the test port according to the script file after parsing, So that device to be detected executes testing procedure according to the operational order;During the test, by being tested described in real-time judge Whether the test case of port tests;If the testing case of the test port is complete, device detection to be detected is obtained Log information in the process, and the log information is stored into journal file, for customer analysis testing result.By upper Embodiment is stated, more devices to be detected can be respectively connected to different test ports and carry out pressure test, due to each survey The test case in port is tried as user preset setting, can according to need flexible setting, so that different machines can be directed to by realizing The device to be detected of type and functional requirement carries out pressure test simultaneously, improves the efficiency and intelligence of pressure test.
Detailed description of the invention
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the first embodiment of method for testing pressure of the present invention;
Fig. 3 is the flow diagram of the second embodiment of method for testing pressure of the present invention;
Fig. 4 be script file in the test case is parsed in Fig. 2, and according to the script file after parsing to it is described The device to be detected of test port connection sends the refinement flow diagram of the step of corresponding operation instruction;
Fig. 5 is the flow diagram of the 3rd embodiment of method for testing pressure of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.It should Terminal may include: processor 1001, communication bus 1002, user interface 1003, network interface 1004, memory 1005, survey Try port 1006, signal output module 1007.In order to realize that pressure test device can simultaneously carry out more devices to be detected Detection needs processor 1001 to have a fairly large number of GPIO port and serial ports to support multichannel input and output to control, so place Reason device 1001 needs to select high-performance processor, and the embodiment of the present invention is illustrated by taking STM32F767 processor as an example, practical real The processor 1001 can also be using other processors in addition to STM32F767 processor when applying.STM32F767 processor master Frequency is 216MHz, has been internally integrated 1MB FLASH and 512KB RAM, can also be plug-in in processor 1001 in order to facilitate expanding 512MB NAND FLASH and 32MB SDRAM.In addition, STM32F767 processor also supports 2 tunnels totally 16 channel DMA controllers, 6 Road SPI bus controller, 4 road I2C bus control units, 1 road usb host and 1 road USB device support LTDC interface to drive RGB LCD also supports 16 with PWM input/output hardware timer, the UART serial ports on 7 tunnels, 176 GPIO ports, these are multichannel Pressure measurement equipment realization provides splendid hardware condition.Communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.Test port 1006 is for storing test case.Signal output module 1007 is used for according to test case The type of data exports corresponding operational order, wherein the signal output module 1007 may include infrared output module, friendship Stream impact module and audio output module etc..Wherein, infrared output module is used to being converted to telecontrol code into infrared pulse letter Number, and be modulated in the PWM carrier signal of 38.7KHz and launch.Exchange impact module is to be controlled by peripheral MOS circuit The switch of high power relay, to realize that the on-off of electric main carrys out the exchange that analog subscriber encounters in actual use Power-off and electrifying condition.Audio output module is for playing testing material to carry out the pressure test of phonetic function, the present embodiment In be illustrated by taking VS1053B Single Chip Audio Decoder as an example, it is practical to can be used when implementing except VS1053B monolithic audio solution Chip other than code chip, the present invention is with no restrictions.VS1053B Single Chip Audio Decoder support Ogg Vorbis, MP3, The decoding of the formats such as AAC, WMA, MIDI, while including the load that stereophone driver can drive 30 Ω, so pressure The module can be used to play existing testing material and carry out pressure test in force test device.Furthermore the chip supports MP3 It records with WAV format, thus user can pass through the test device recording and storing testing material.
Optionally, device may include infrared input module, microphone, camera, buzzer, loudspeaker, weight sensing Device can also include RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..Wherein, Sensor such as optical sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor And proximity sensor, wherein ambient light sensor can adjust the brightness of display screen according to the light and shade of ambient light, close to sensing Device can close display screen and/or backlight when mobile terminal is moved in one's ear.As a kind of motion sensor, gravity accelerates Spending sensor can detect the size of (generally three axis) acceleration in all directions, can detect that size and the side of gravity when static To, can be used to identify mobile terminal posture application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), vibration Identify correlation function (such as pedometer, percussion) etc.;Certainly, mobile terminal can also configure gyroscope, barometer, hygrometer, temperature The other sensors such as meter, infrared sensor are spent, details are not described herein.
It will be understood by those skilled in the art that the restriction of the not structure twin installation of apparatus structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and pressure test program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the pressure test program stored in memory 1005, and execute following operation:
The test starting command for receiving user's triggering is obtained in corresponding test port according to the test starting command and is preset Test case, wherein the test port be it is multiple;
The script file in the test case is parsed, and is connected according to the script file after parsing to the test port The device to be detected connect sends corresponding operation instruction;
Judge whether the test case of the test port tests;
If so, obtaining the log information in device detection process to be detected, and the log information is stored to log In file, for customer analysis testing result.
Further, processor 1001 can call the pressure test program stored in memory 1005, also execute following Operation:
The addition test case for receiving user's triggering instructs and records current test lead slogan;
Foot is written to according to format according to default according to the test case data that the addition test case instruction will receive This document, and store into current test port;
Judge whether the test case of current test port adds completion;
If so, switching to next test port addition test case;
If it is not, then return step: the test case data that will be received according to the addition test case instruction is according to pre- If being written to script file according to format, and store into current test port.
Further, processor 1001 can call the pressure test program stored in memory 1005, also execute following Operation:
The test case data received according to the addition current test lead slogan of test case command detection;Judge institute State whether test case data is telecontrol code, exchange impact or phonetic order;If the test case data is infrared distant The telecontrol code is then recorded as infrared remote control use-case by control code, by the infrared remote control use-case according to according to default according to lattice Formula is written to script file, and stores into current test port;
It is exchange impact use-case by the exchange impact record, by institute if the test case data is exchange impact It states exchange impact use-case and is written to script file according to format according to default, and store into current test port;
If the test case data is phonetic order, the phonetic order is recorded as tone testing use-case, by institute Predicate sound test case is written to script file according to format according to default, and stores into current test port.
Further, processor 1001 can call the pressure test program stored in memory 1005, also execute following Operation:
Parse the script file in the test case;
The type of test case data is determined according to the script file after parsing;
Signal output module corresponding with the type is selected according to the type of the test case data, and by described Signal output module sends corresponding operation instruction to the device to be detected connecting with the test port, wherein the signal Output module is infrared output module, exchange impact module or audio output module.
Further, processor 1001 can call the pressure test program stored in memory 1005, also execute following Operation:
Judge current test port with the presence or absence of test case;
If there are test cases for current test port, thens follow the steps: parsing the script file in the test case, and Corresponding operation instruction is sent to the device to be detected connecting with the test port according to the script file after parsing;
If test case is not present in current test port, prompt information is generated, so that user is according to the prompt information Judge whether to add test case.
The specific embodiment of pressure test device of the present invention and each embodiment of following method for testing pressure are essentially identical, herein It does not repeat.
It is the flow diagram of the first embodiment of method for testing pressure of the present invention, the pressure test referring to Fig. 2, Fig. 2 Method includes:
Step S10 receives the test starting command of user's triggering, obtains corresponding test lead according to the test starting command Preset test case in mouthful, wherein the test port is multiple.
Based on pressure test device described in above-mentioned Fig. 1, user can be touched by the virtual key touched in LCD touch screen Test starting command is sent out, can also be triggered by modes such as mouse, physical buttons, can also be surveyed certainly by speech trigger Trial assembly is set after the test starting command for receiving user's triggering, is obtained the test in test port according to test starting command and is used Example.Wherein, the test port of test device is multiple.Each preset test case of test port can be identical, can also not Together, those skilled in the art can be freely arranged according to actual needs.For example, using the STM32F767 processor of the example above As the processor of pressure test device, then pressure test device at most supports 15 test ports to carry out pressure test simultaneously. Test case is prerecorded for tester, and the function that detection can be actually subjected to according to device to be detected is configured.For example, if Device to be detected is smart television, need to detect in pressure test the exchange impact property of smart television, AI phonetic function and Infrared remote control control function, then need to be provided in the test port connecting with smart television detection exchange impact property, The test case of AI phonetic function and infrared remote control control function will be according to the survey of setting in this way after user starts test Example on probation is tested one by one, until the testing case in the test port is complete.
Step S20, parses the script file in the test case, and according to the script file after parsing to the survey The device to be detected for trying port connection sends corresponding operation instruction.
In pressure test sequence, test device needs the script file to test case in test port to parse, To obtaining the corresponding operational order of test case, after getting operational order, to being connected to the to be detected of the test port Device sends operational order.Continue to be illustrated based on the example above, if being provided with detection exchange impact in test port The test case of energy, AI phonetic function and infrared remote control control function, needs to parse the script file of these use-cases, obtain The operational order in test case is got, such as exchange impact use-case may include that n times exchange impact is executed to television set to be detected, N is arbitrary positive integer;The test case of AI phonetic function may include that compiling has " booting ", " shutdown ", " plays X channel section The phonetic orders such as mesh ", " play X film ", " F.F. " or " pause ";On infrared remote control control function test case may include Under move left and right, determine, telecontrol codes, these exchange impact, phonetic order and the telecontrol codes such as channel switching are compiled It is translated into the script file of fixed format, so needing to parse script file, to get corresponding behaviour in test It instructs.
Step S30, judges whether the test case of the test port tests.
Due to the test case in test port be it is multiple, obtain test port in test case tested when, Need whether the test case in real-time judge test port has all executed, and according to judging result, it is determined whether to terminate The test function of the test port.
Step S40 if so, obtaining the log information in device detection process to be detected, and the log information is deposited Storage is into journal file, for customer analysis testing result.
In pressure test sequence, device to be detected can generate log information according to detection case, if pressure test device It detects that the test case of test port has tested completion, log information will be obtained by UART serial ports, and in every log Then insertion system timestamp before information generates journal file and saves into USB flash disk or local device.
In the present embodiment by the way that multiple test ports are arranged and test case is arranged come to more in each test port A device to be detected carries out pressure test, thus realize can for the device to be detected of different type of machines and functional requirement simultaneously into Row pressure test improves the efficiency and intelligence of pressure test.
Further, it is the flow diagram of the second embodiment of method for testing pressure of the present invention referring to Fig. 3, Fig. 3, is based on Above-mentioned embodiment shown in Fig. 2 receives the test starting command of user's triggering in the step S10, is tested according to the starting Instruction obtains preset test case in corresponding test port, further includes:
Step S101, the addition test case for receiving user's triggering instruct and record current test lead slogan.
Before carrying out pressure test with pressure test device, preset test case, user in pressure test device are needed Addition test case instruction can be triggered in LCD touch screen, corresponding test lead slogan is selected in LCD touch screen and adds survey Example on probation, therefore pressure test device starts to hold in the test port in the addition test case instruction for receiving user's triggering Row addition use-case.
Step S102, the test case data that will be received according to the addition test case instruction is according to default according to format It is written to script file, and is stored into current test port.
User can be arranged corresponding test case in current test port according to actual needs, which can be with It is telecontrol code test case, exchange one of shock-testing use-case and phonetic order use-case or a variety of.Therefore, Yong Huke To be instructed by infrared input module, exchange impact module or audio recording module typing corresponding operating, as test Case data.
In the present embodiment current test port can be telecontrol code use-case private port, then pressure test device according to The test case data that the addition test case instruction current test lead slogan of real-time detection receives, and judge test case data It whether is telecontrol code;If the test case data is telecontrol code, the telecontrol code is recorded as infrared It is remotely controlled use-case, the infrared remote control use-case is written to script file according to preset data format, and is stored to current test In port, if the non-telecontrol code of test case data, ignores.
As another embodiment, current test port can be exchange impact use-case private port, then pressure test The test case data that device is received according to the addition test case instruction current test lead slogan of real-time detection, and described in judgement Whether test case data is exchange impact;If the test case data is exchange impact, by the exchange impact record Use-case is impacted for exchange, use-case is impacted into the exchange, script file is written to according to preset data format, and is stored to working as In preceding test port, if test case data non-alternating is impacted, ignore.
As another embodiment, current test port can be phonetic order use-case private port, then pressure test The test case data that device is received according to the addition test case instruction current test lead slogan of real-time detection, and described in judgement Whether test case data is phonetic order;If the test case data is phonetic order, the phonetic order is recorded For tone testing use-case, the tone testing use-case is written to script file according to preset data format, and is stored to working as In preceding test port, if test case data non-voice instructs, ignore.
Certainly, those skilled in the art be believed that current test port may be above two or three kinds with The test port of example, then also needing to be written the test case data of the port specified type when adding test case Script file is stored in current test port.
Step S103, judges whether the test case of current test port adds completion.
Judge whether the test case of current test port adds completion, if the test case of current test port has been added At execution step S104: switching to next test port addition test case;If the test case of current test port does not add It adds into, then return step S102.
In the present embodiment by adding test case in test port in advance, allow pressure test device automatic Execute corresponding testing procedure, when pressure test does not need artificially to interfere, to realize the automation of pressure test.
Further, referring to Fig. 4, Fig. 4 is the script file parsed in the test case in Fig. 2, and according to parsing after Script file the refinement process of the step of corresponding operation instructs is sent to the device to be detected that connect with the test port Schematic diagram is based on above-mentioned embodiment shown in Fig. 2, and the step S20 parses the script file in the test case, and according to Script file after parsing sends corresponding operation instruction to the device to be detected connecting with the test port, comprising:
Step S201 parses the script file in the test case;
Test case imports the process with above-mentioned addition test case on the contrary, need to will be stored in when importing test case The script file of the local each test port of USB flash disk or equipment parses, and then each operational order is loaded into local memory, So as to subsequent execution use.
Step S202 determines the type of test case data according to the script file after parsing.
Step S203 selects signal output module corresponding with the type according to the type of the test case data, And corresponding operation instruction is sent to the device to be detected connecting with the test port by the signal output module, In, the signal output module is infrared output module, exchange impact module or audio output module.
Since test case includes multiple types, when executing pressure test, it is thus necessary to determine that the type of test case data, It is exported according to the type of the test case data to corresponding signal output module and sends operational order.If the test case For telecontrol code use-case, then need to send by infrared output module to the device to be detected connecting with the test port infrared Remote control mode.If the test case is exchange impact use-case, opened by the relay that exchange impact module controls external connection It opens or closes, exchange impact is sent by opening or closing to device to be detected for relay.If the test case is voice Use-case is instructed, then is needed through audio output module such as loudspeaker or buzzer, to the dress to be detected being connect with the test port Set broadcasting testing material.
By judging the type of test case in the present embodiment, output to different types of signal output module, which is sent, to be operated Instruction, is achieved in the pressure test for treating detection device different function.
It is the flow diagram of method for testing pressure 3rd embodiment of the present invention referring to Fig. 5, Fig. 5, based on shown in above-mentioned Fig. 2 Embodiment, the step S10 receive user triggering test starting command, according to the test starting command obtain correspond to In test port after preset test case, comprising:
Step S105 judges current test port with the presence or absence of test case.
Since there are when multiple test ports for pressure test device, it is possible to it is not set that the test port being activated can be encountered The case where any test case, the in this way port, can not normally execute pressure test, so needing before executing pressure test Judge current test port with the presence or absence of test case.If there are test cases for current test port, step is continued to execute S20: the script file in the test case is parsed, and to be checked to connecting with the test port according to the script file It surveys device and sends operational order;If test case is not present in current test port, S106 is thened follow the steps.
Step S106 generates prompt information, so that user judges whether to add test case according to the prompt information.
If test case is not present in current test port, prompt information is generated, which can be text prompt Information, or speech prompt information.For example text prompt information then shows text in LCD touch screen;For example voice is believed Breath then carries out voice prompting casting by loudspeaker.After generating prompt information, whether real-time detection receives pressure test device The addition test case instruction triggered to user executes above-mentioned step if detecting the addition test case instruction of user's triggering Rapid S101: recording current test lead slogan and executes the addition test case instruction of user's triggering;If user's triggering is not detected Addition test case instruction, switch to next test port, and obtain preset test case in next test port.
By the current test port of real-time judge, whether there is or not test cases in the present embodiment, and are determined whether according to judging result User is reminded to add test case, to improve the flexibility of pressure test.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with pressure test program, following operation is realized when the pressure test program is executed by processor:
The test starting command for receiving user's triggering is obtained in corresponding test port according to the test starting command and is preset Test case, wherein the test port be it is multiple;
The script file in the test case is parsed, and is connected according to the script file after parsing to the test port The device to be detected connect sends corresponding operation instruction;
Judge whether the test case of the test port tests;
If so, obtaining the log information in device detection process to be detected, and the log information is stored to log In file, for customer analysis testing result.
Further, following operation is also realized when the pressure test program is executed by processor:
The addition test case for receiving user's triggering instructs and records current test lead slogan;
Foot is written to according to format according to default according to the test case data that the addition test case instruction will receive This document, and store into current test port;
Judge whether the test case of current test port adds completion;
If so, switching to next test port addition test case;
If it is not, then return step: the test case data that will be received according to the addition test case instruction is according to pre- If being written to script file according to format, and store into current test port.
Further, following operation is also realized when the pressure test program is executed by processor:
The test case data received according to the addition current test lead slogan of test case command detection;Judge institute State whether test case data is telecontrol code, exchange impact or phonetic order;If the test case data is infrared distant The telecontrol code is then recorded as infrared remote control use-case by control code, by the infrared remote control use-case according to according to default according to lattice Formula is written to script file, and stores into current test port;
It is exchange impact use-case by the exchange impact record, by institute if the test case data is exchange impact It states exchange impact use-case and is written to script file according to format according to default, and store into current test port;
If the test case data is phonetic order, the phonetic order is recorded as tone testing use-case, by institute Predicate sound test case is written to script file according to format according to default, and stores into current test port.
Further, following operation is also realized when the pressure test program is executed by processor:
Parse the script file in the test case;
The type of test case data is determined according to the script file after parsing;
Signal output module corresponding with the type is selected according to the type of the test case data, and by described Signal output module sends corresponding operation instruction to the device to be detected connecting with the test port, wherein the signal Output module is infrared output module, exchange impact module or audio output module.
Further, following operation is also realized when the pressure test program is executed by processor:
Judge current test port with the presence or absence of test case;
If there are test cases for current test port, thens follow the steps: parsing the script file in the test case, and Corresponding operation instruction is sent to the device to be detected connecting with the test port according to the script file after parsing;
If test case is not present in current test port, prompt information is generated, so that user is according to the prompt information Judge whether to add test case.
The specific embodiment of computer readable storage medium of the present invention and the basic phase of each embodiment of above-mentioned method for testing pressure Together, therefore not to repeat here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method for testing pressure, which is characterized in that the method for testing pressure includes:
The test starting command for receiving user's triggering obtains preset survey in corresponding test port according to the test starting command Example on probation, wherein the test port is multiple;
Parse the script file in the test case, and according to the script file after parsing to connecting with the test port Device to be detected sends corresponding operation instruction;
Judge whether the test case of the test port tests;
If so, obtaining the log information in device detection process to be detected, and the log information is stored to journal file In, for customer analysis testing result.
2. method for testing pressure as described in claim 1, which is characterized in that refer in the starting test of the reception user triggering Before the step of enabling, obtaining preset test case in corresponding test port according to the test starting command, further includes:
The addition test case for receiving user's triggering instructs and records current test lead slogan;
The test case data that will be received according to the addition test case instruction is written to script text according to format according to default Part, and store into current test port;
Judge whether the test case of current test port adds completion;
If so, switching to next test port addition test case;
If it is not, then return step: the test case data that will be received according to the addition test case instruction is according to default evidence Format is written to script file, and stores into current test port.
3. method for testing pressure as claimed in claim 2, which is characterized in that the test case data includes infrared remote control Code, exchange impact and/or phonetic order, it is described according to the addition test case test case data that will receive of instruction by It is written to script file according to format according to default, and the step stored into current test port includes:
The test case data received according to the addition current test lead slogan of test case command detection;Judge the survey Whether examination case data is telecontrol code, exchange impact or phonetic order;If the test case data is telecontrol code, The telecontrol code is then recorded as infrared remote control use-case, the infrared remote control use-case is written according to according to default according to format To script file, and store into current test port;
It is exchange impact use-case by the exchange impact record, by the friendship if the test case data is exchange impact Stream impact use-case is written to script file according to format according to default, and stores into current test port;
If the test case data is phonetic order, the phonetic order is recorded as tone testing use-case, by institute's predicate Sound test case is written to script file according to format according to default, and stores into current test port.
4. method for testing pressure as described in claim 1, which is characterized in that the script text in the parsing test case Part, and send what corresponding operation instructed to the device to be detected connecting with the test port according to the script file after parsing Step, comprising:
Parse the script file in the test case;
The type of test case data is determined according to the script file after parsing;
Signal output module corresponding with the type is selected according to the type of the test case data, and passes through the signal Output module sends corresponding operation instruction to the device to be detected connecting with the test port, wherein the signal output Module is infrared output module, exchange impact module or audio output module.
5. method for testing pressure as described in claim 1, which is characterized in that refer in the starting test of the reception user triggering After the step of enabling, obtaining preset test case in corresponding test port according to the test starting command, further includes:
Judge current test port with the presence or absence of test case;
If there are test cases for current test port, then follow the steps: parsing the script file in the test case, and according to Script file after parsing sends corresponding operation instruction to the device to be detected connecting with the test port;
If test case is not present in current test port, prompt information is generated, so that user judges according to the prompt information Whether test case is added.
6. a kind of pressure test device, which is characterized in that the pressure test device include: test port, signal output module, Memory, processor and it is stored in the pressure test program that can be run on the memory and on the processor, in which:
The test port, for storing test case;
The signal output module, for exporting corresponding operational order according to the type of test case data;
The pressure test program realizes following steps when being executed by the processor:
The test starting command for receiving user's triggering obtains preset survey in corresponding test port according to the test starting command Example on probation, wherein the test port is multiple;
Parse the script file in the test case, and according to the script file after parsing to connecting with the test port Device to be detected sends corresponding operation instruction;
Judge whether the test case of the test port tests;
If so, obtaining the log information in device detection process to be detected, and the log information is stored to journal file In, for customer analysis testing result.
7. pressure test device as claimed in claim 6, which is characterized in that the pressure test program is held by the processor Following steps are also realized when row:
The addition test case for receiving user's triggering instructs and records current test lead slogan;
The test case data that will be received according to the addition test case instruction is written to script text according to format according to default Part, and store into current test port;
Judge whether the test case of current test port adds completion;
If so, switching to next test port addition test case;
If it is not, then return step: the test case data that will be received according to the addition test case instruction is according to default evidence Format is written to script file, and stores into current test port.
8. pressure test device as claimed in claim 7, which is characterized in that the pressure test program is held by the processor Following steps are also realized when row:
The test case data received according to the addition current test lead slogan of test case command detection;Judge the survey Whether examination case data is telecontrol code, exchange impact or phonetic order;If the test case data is telecontrol code, The telecontrol code is then recorded as infrared remote control use-case, the infrared remote control use-case is written according to according to default according to format To script file, and store into current test port;
It is exchange impact use-case by the exchange impact record, by the friendship if the test case data is exchange impact Stream impact use-case is written to script file according to format according to default, and stores into current test port;
If the test case data is phonetic order, the phonetic order is recorded as tone testing use-case, by institute's predicate Sound test case is written to script file according to format according to default, and stores into current test port.
9. pressure test device as claimed in claim 6, which is characterized in that the pressure test program is held by the processor Following steps are also realized when row:
Parse the script file in the test case;
The type of test case data is determined according to the script file after parsing;
Signal output module corresponding with the type is selected according to the type of the test case data, and passes through the signal Output module sends corresponding operation instruction to the device to be detected connecting with the test port, wherein the signal output Module is infrared output module, exchange impact module or audio output module.
10. a kind of computer readable storage medium is stored thereon with pressure test program, which is characterized in that the pressure test It is realized when program is executed by processor as described in any one of claims 1 to 5 the step of method for testing pressure.
CN201910743610.3A 2019-08-12 2019-08-12 The method, apparatus and computer readable storage medium of pressure test Pending CN110442525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910743610.3A CN110442525A (en) 2019-08-12 2019-08-12 The method, apparatus and computer readable storage medium of pressure test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910743610.3A CN110442525A (en) 2019-08-12 2019-08-12 The method, apparatus and computer readable storage medium of pressure test

Publications (1)

Publication Number Publication Date
CN110442525A true CN110442525A (en) 2019-11-12

Family

ID=68434890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910743610.3A Pending CN110442525A (en) 2019-08-12 2019-08-12 The method, apparatus and computer readable storage medium of pressure test

Country Status (1)

Country Link
CN (1) CN110442525A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240974A (en) * 2020-01-06 2020-06-05 支付宝实验室(新加坡)有限公司 Log output method and device, electronic equipment and medium
CN112463505A (en) * 2020-12-14 2021-03-09 深圳Tcl新技术有限公司 Pressure testing method and device for display equipment
CN114238000A (en) * 2021-12-21 2022-03-25 无锡众星微系统技术有限公司 Port test management method and device for PCIe Switch

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141947A (en) * 2015-08-25 2015-12-09 深圳创维-Rgb电子有限公司 Pressure testing device and method thereof
CN105704487A (en) * 2015-04-27 2016-06-22 深圳Tcl数字技术有限公司 Television stability testing method and device
CN108845954A (en) * 2018-08-31 2018-11-20 中国联合网络通信集团有限公司 Method for testing pressure, system and storage medium
CN109525841A (en) * 2018-12-04 2019-03-26 深圳创维-Rgb电子有限公司 TV method for testing pressure, platform and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704487A (en) * 2015-04-27 2016-06-22 深圳Tcl数字技术有限公司 Television stability testing method and device
CN105141947A (en) * 2015-08-25 2015-12-09 深圳创维-Rgb电子有限公司 Pressure testing device and method thereof
CN108845954A (en) * 2018-08-31 2018-11-20 中国联合网络通信集团有限公司 Method for testing pressure, system and storage medium
CN109525841A (en) * 2018-12-04 2019-03-26 深圳创维-Rgb电子有限公司 TV method for testing pressure, platform and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240974A (en) * 2020-01-06 2020-06-05 支付宝实验室(新加坡)有限公司 Log output method and device, electronic equipment and medium
CN111240974B (en) * 2020-01-06 2024-04-26 先进新星技术(新加坡)控股有限公司 Log output method and device, electronic equipment and medium
CN112463505A (en) * 2020-12-14 2021-03-09 深圳Tcl新技术有限公司 Pressure testing method and device for display equipment
CN112463505B (en) * 2020-12-14 2024-03-12 深圳Tcl新技术有限公司 Pressure testing method and device for display equipment
CN114238000A (en) * 2021-12-21 2022-03-25 无锡众星微系统技术有限公司 Port test management method and device for PCIe Switch

Similar Documents

Publication Publication Date Title
CN110442525A (en) The method, apparatus and computer readable storage medium of pressure test
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN104063305B (en) The method for testing pressure of intelligent terminal software, device and system
CN108255729B (en) Mobile phone game automatic testing method and system based on Unity platform
CN108184109A (en) The test platform and test method of a kind of vehicle-mounted information and entertainment system
CN108874866A (en) Data import management method, apparatus, mobile terminal and storage medium
KR20180117485A (en) Electronic device for processing user utterance and method for operation thereof
CN104536891B (en) System detection method and device
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN109063583A (en) Learning method based on point reading operation and electronic equipment
EP1751741A2 (en) Automated testing of voice regognition software
CN110489344A (en) Engine test method and Related product
CN105975391B (en) One kind restarting test method, equipment and mobile terminal
CN107463500A (en) Adjustment method, medium, system and the computing device of test script
CN107423106A (en) The method and apparatus for supporting more frame grammars
CN110134574A (en) A kind of software performance testing method, system, medium and electronic equipment
CN106878390A (en) Electronic pet interaction control method, device and wearable device
CN107943685A (en) A kind of traverse path generation method, device, server and storage medium
CN109583259A (en) Information identifying method and terminal device
CN111159047A (en) Android equipment auxiliary debugging device with visual interface and operation method thereof
CN107577472A (en) Software installation method, device and computer-readable recording medium
KR20100108000A (en) Testing apparatus and method for mobile software
CN107566769B (en) A kind of video recording method and mobile terminal
CN106471493A (en) Method and apparatus for managing data
CN107704332A (en) Freeze screen solution method, mobile terminal and computer-readable recording 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191112

RJ01 Rejection of invention patent application after publication