CN105578238A - Automatic test method and system of turn-on and turn-off of electrical appliance device - Google Patents

Automatic test method and system of turn-on and turn-off of electrical appliance device Download PDF

Info

Publication number
CN105578238A
CN105578238A CN201510918440.XA CN201510918440A CN105578238A CN 105578238 A CN105578238 A CN 105578238A CN 201510918440 A CN201510918440 A CN 201510918440A CN 105578238 A CN105578238 A CN 105578238A
Authority
CN
China
Prior art keywords
electric equipment
test
time
shooting
shutting
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
CN201510918440.XA
Other languages
Chinese (zh)
Other versions
CN105578238B (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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN201510918440.XA priority Critical patent/CN105578238B/en
Publication of CN105578238A publication Critical patent/CN105578238A/en
Application granted granted Critical
Publication of CN105578238B publication Critical patent/CN105578238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]

Abstract

The invention discloses an automatic test method and a system of turn-on and turn-off of an electrical appliance device. Test time N and shooting time-delay time of turn-off or turn-on of the electrical appliance device are set, wherein the N is a positive integer. A test device sends N times of instructions for controlling turn-on or turn-off of a WIFI socket to a WIFI socket. The electrical appliance enters a corresponding turn-on state or a turn-off state along with the turn-on or turn-off of the WIFI socket connected thereto. After the shooting time delay time when the instructions are sent to the WIFI sockets every time, display interfaces of the electrical appliance are shot, and it is analyzed whether the turn-on or the turn-off the electrical appliance is normal according to obtained N times of display interfaces. Thus, an automatic test of the turn-on and turn-off of the electrical appliance is achieved; results of the turn-on and turn-off can be verified; accuracy of the test results is quite high; there is no need for testers to be on duty; and great convenience is brought for the testers.

Description

A kind of automatic test approach of electric equipment switching on and shutting down and system
Technical field
The present invention relates to TV technology, the automatic test approach of in particular a kind of electric equipment switching on and shutting down and system.
Background technology
Current electric equipment, such as the equipment such as television set, air-conditioning and Set Top Box, be all equipped with the corresponding control of remote controller, and therefore whether the function such as remote control switch of these electric equipments is reliable, and this is the link must tested before these electric equipments dispatch from the factory.And existing test mode is all by manually carrying out functional verification by remote controller.For manually carrying out functional test by remote controller, such efficiency is not high, and misses some Function detection than being easier to, and is very spended time, this also increases human cost by manual simulation.Part producer adopts software mode to send analogue-key and tests, but this just have sent analogue-key, other flow process still needs artificial multi-pass operation, omnidistance needs are manually on duty, thus, the method for testing automation of existing electric equipment switching on and shutting down is not high, accuracy rate is not high, efficiency is not high and result is not directly perceived.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, provides a kind of automatic test approach and system of electric equipment switching on and shutting down, is intended to solve existing electric equipment switching on and shutting down test automation not high, the inaccurate problem of test result.
The technical scheme that technical solution problem of the present invention adopts is as follows:
An automatic test approach for electric equipment switching on and shutting down, wherein, comprising:
A, set up electric equipment and WIFI socket communicates to connect and sets up the communication connection between WIFI socket and testing equipment;
B, testing equipment end arrange electric equipment shutdown or start testing time N and shooting delay time, wherein, N is positive integer;
C, testing equipment send the instruction of the unlatching of N controls WIFI socket or closedown to WIFI socket, and electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out;
D, each send instruction to the described shooting delay time of WIFI socket after, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal.
The automatic test approach of described electric equipment switching on and shutting down, wherein, described testing equipment comprises: handheld test equipment and computer testing terminal.
The automatic test approach of described electric equipment switching on and shutting down, wherein, described instruction is ultra-red order; The described very first time is greater than described shooting delay time.
The automatic test approach of described electric equipment switching on and shutting down, wherein, described step D specifically comprises:
D1, each transmission instruction, to the current time of record correspondence during WIFI socket, after delay time is taken described in time delay in the basis of described current time, control the display interface of camera shooting electric equipment;
D2, described display interface and the start standard interface that pre-sets or the standard interface that shut down are compared, if unanimously, then the start of electric equipment or shutdown are normally; If inconsistent, then electric equipment start or shut down abnormal.
The automatic test approach of described electric equipment switching on and shutting down, wherein, described step D2 also comprises:
D3, carry out statistical analysis to the comparison result of display interface of N shooting, draw corresponding test analysis report, described test analysis report comprises shutdown or detection number of times corresponding to shutdown, detection time, successful operation number of times and operation failure number of times.
An Auto-Test System for electric equipment switching on and shutting down, wherein, comprising:
Connection establishment module, for setting up electric equipment and WIFI socket communicates to connect and sets up the communication connection between WIFI socket and testing equipment;
Parameter setting module, for arranging testing time N and the shooting delay time of electric equipment shutdown or start at testing equipment end, wherein, N is positive integer;
Instruction sending module, sends the instruction of the unlatching of N controls WIFI socket or closedown to WIFI socket for testing equipment, and electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out;
Test judge module, for after each transmission instruction is to the described shooting delay time of WIFI socket, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal.
The Auto-Test System of described electric equipment switching on and shutting down, wherein, described testing equipment comprises: handheld test equipment and computer testing terminal.
The Auto-Test System of described electric equipment switching on and shutting down, wherein, described instruction is ultra-red order; The described very first time is greater than described shooting delay time.
The Auto-Test System of described electric equipment switching on and shutting down, wherein, described test judge module comprises:
Shooting unit, for sending instruction to the current time of record correspondence during WIFI socket at every turn, after delay time is taken described in time delay in the basis of described current time, controls the display interface of camera shooting electric equipment;
Comparing unit, for described display interface and the start standard interface that pre-sets or the standard interface that shut down being compared, if unanimously, then the start of electric equipment or shutdown are normally; If inconsistent, then electric equipment start or shut down abnormal.
The Auto-Test System of described electric equipment switching on and shutting down, wherein, described comparing unit comprises:
Statistic unit, comparison result for the display interface to N shooting carries out statistical analysis, draw corresponding test analysis report, described test analysis report comprises shutdown or shut down corresponding detection number of times, detection time, successful operation number of times and operation failure number of times.
The automatic test approach of a kind of electric equipment switching on and shutting down provided by the present invention and system, efficiently solve existing electric equipment switching on and shutting down test automation not high, the inaccurate problem of test result, by arranging testing time N and the shooting delay time of electric equipment shutdown or start, wherein, N is positive integer; Send N instruction to WIFI socket, electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out; After each transmission instruction is to the described shooting delay time of WIFI socket, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal; Achieve the automatic test to electric equipment switching on and shutting down, and can verify the result of switching on and shutting down, make test result accuracy rate higher, on duty without the need to tester, bring to tester and facilitate greatly.
Accompanying drawing explanation
Fig. 1 is the flow chart of the automatic test approach preferred embodiment of electric equipment switching on and shutting down provided by the invention.
Fig. 2 is the structured flowchart of the Auto-Test System preferred embodiment of electric equipment switching on and shutting down provided by the invention.
Fig. 3 is the structural representation of the Auto-Test System Application Example of electric equipment switching on and shutting down provided by the invention.
Embodiment
The invention provides a kind of automatic test approach and system of electric equipment switching on and shutting down, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of the automatic test approach preferred embodiment of electric equipment switching on and shutting down provided by the invention, as shown in the figure, said method comprising the steps of:
S100, set up electric equipment and WIFI socket communicates to connect and sets up the communication connection between WIFI socket and testing equipment.
Step S200, testing equipment end arrange electric equipment shutdown or start testing time N and shooting delay time, wherein, N is positive integer;
Step S300, testing equipment send the instruction of the unlatching of N controls WIFI socket or closedown to WIFI socket, and electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out.
Step S400, each send instruction to the described shooting delay time of WIFI socket after, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal.
Below in conjunction with specific embodiment, above-mentioned steps is described in detail.
Described electric equipment comprises television set, router and air-conditioning etc.Because television set and air-conditioning all have display interface, about the detection of router, can to the display interface clapping the television set associated with router, thus follow-up detection be facilitated to judge.For television set, the present invention will be described below.First electric equipment is set up and WIFI socket communicates to connect and sets up the communication connection between WIFI socket and testing equipment.Concrete is connected mobile phone with socket by WIFI, and then is connected with computer by mobile phone by data wire, this completes building of hardware.PC is disconnected to be needed to carry out Android environment configurations, and installs mobile phone adb and drive, and is write want execution script program by python.Perform script by Monkeyrunner, thus the mobile phone of control connection on PC performs WIFI socket APK application program, automatically opens program, finds the socket of connection, perform the operation of ON/OFF.
In step s 200, about the remote-controlled start-up of television set and the reliability testing of remote-control closedown, obviously need the remote-controlled start-up for television set or shutdown, test respectively repeatedly.Can arrange about concrete testing time, it is for example N time, N is positive integer, and startup and shutdown can arrange different testing times respectively, and longly have short owing to having start-up time of startup and shutdown, thus need the shooting delay time that camera is set, for example when sending start-up command to television set, the display interface of camera televising machine after time delay 1 minute, or time delay 40 seconds, specifically can be arranged according to actual.And shutdown command, corresponding delay time can be shorter, such as 10 seconds etc.
In step S300, send N instruction to WIFI socket, described instruction is opened for control WIFI socket or is closed, thus to the electric equipment of its wired connection along with the unlatching or closedown with WIFI socket enters corresponding open state or off-mode.Specifically, be exactly that user passes through handheld device, such as remote controller etc., send N instruction to WIFI socket, described instruction may correspond to control WIFI socket and opens or close.About instruction, there is multiple implementation, such as the ultra-red order of Traditional remote controls, and by network sending controling instruction corresponding control WIFI socket unlatching or closedown etc., do not describe in detail herein.
Owing to carrying out reliability testing to the shutdown of television set or start, therefore need repeatedly to test respectively start or shutdown, so just need to send repeatedly corresponding instruction to coupled WIFI socket.When practical application, each time interval sending instruction can be arranged as required, such as 1 minute, 2 minutes etc.
Specifically, be exactly that user passes through handheld device, such as mobile phone or remote controller etc., Remote TV device, due to apart from restricted, so carries out relaying by WIFI socket.WIFI socket can receive the WIFI data or ultra-red order that user's handheld device sends, and opens accordingly or closed, thus achieves user by the Long-distance Control of handheld device to television boot-strap or shutdown.Each transmission instruction is to WIFI socket, and transmission interval time is the very first time, and the described very first time can be 1 minute, 2 minutes etc.About described instruction, handheld device is made automatically to send to WIFI socket every the very first time by software design patterns.
Preferably, described instruction is ultra-red order; The described very first time is greater than described shooting delay time.That is, when practical application, handheld device sends ultra-red order to WIFI socket.Owing to will test repeatedly, so correspondence also can be taken repeatedly, and can cause confusion if transmission interval is less than shooting delay time, it is good for being therefore greater than described shooting delay time with the very first time.
In step S400, after each transmission instruction is to the described shooting delay time of WIFI socket, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal.
Preferably, described step S400 specifically comprises:
S401, each transmission instruction, to the current time of record correspondence during electric equipment, after delay time is taken described in time delay in the basis of described current time, control the display interface of camera shooting electric equipment;
S402, described display interface and the start standard interface that pre-sets or the standard interface that shut down are compared, if unanimously, then the start of electric equipment or shutdown are normally; If inconsistent, then electric equipment start or shut down abnormal.
Specifically, such as shooting delay time is 1 minute, and sending instruction is 13:00 to time during television set, so starts the display interface of camera shooting electric equipment when 13:01.Just can analyze the start of electric equipment according to the display interface obtained or whether normally shut down.Specifically, described display interface and the start standard interface that pre-sets or the standard interface that shut down are compared, if unanimously, then the start of electric equipment or shutdown are normally; If inconsistent, then electric equipment start or shut down abnormal.Start and the shutdown interface of electric equipment self software systems can be obtained, be set to corresponding start standard interface or shutdown standard interface.When camera shooting display interface and machine standard interface or the standard interface that shuts down do not meet time, then think electric equipment start or shut down abnormal, if meet, then normally.Can test respectively about startup and shutdown.When practical application, by mobile terminal, the equipment that digital camera etc. have camera is taken.For example by the display interface of mobile phone shooting electric equipment, after shooting delay time, start the camera of mobile phone, then mobile phone camera carries out focusing time delay to electric equipment, then obtains picture of TV.
Preferably, described step S402 also comprises:
S403, carry out statistical analysis to the comparison result of display interface of N shooting, draw corresponding test analysis report, described test analysis report comprises shutdown or detection number of times corresponding to shutdown, detection time, successful operation number of times and operation failure number of times.
Specifically, be exactly if desired detect start or shutdown, start is corresponding to be detected 100 times, closes machine testing 200 times, detects startup and shutdown so respectively, start detection 100 times, record 100 corresponding operating results, the namely display interface of correspondence; And then detect and close machine testing 200 times, record 200 corresponding operating results, i.e. corresponding display interface.Numeral is only for illustrating herein, does not limit.Statistical analysis is carried out to the test result of N time, draw corresponding test analysis report, described test analysis report comprises shutdown and start shooting detection number of times corresponding respectively, detection time, successful operation number of times and operation failure number of times, then generates corresponding test analysis report.
The automatic test approach of electric equipment switching on and shutting down provided by the invention, extend the stability and reliability evaluated and tested at remote control switch greatly, and automatic sampling is carried out to the product that there is start process, coordinate serially printing daily record, by the convenient tracking to product exception and process, script is easy to maintenance, upgrades easily, can be used as file to preserve, follow-up use can directly be called.The very big saving operating time, reusability is high, brings and facilitates greatly.
Based on the automatic test approach of above-mentioned electric equipment switching on and shutting down, the embodiment of the present invention additionally provides a kind of Auto-Test System of electric equipment switching on and shutting down, as shown in Figure 2, comprising:
Connect module 10, for setting up electric equipment and WIFI socket communicates to connect and sets up the communication connection between WIFI socket and testing equipment;
Parameter setting module 20, for arranging testing time N and the shooting delay time of electric equipment shutdown or start at testing equipment end, wherein, N is positive integer;
Instruction sending module 30, sends the instruction of the unlatching of N controls WIFI socket or closedown to WIFI socket for testing equipment, and electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out;
Test judge module 40, for after each transmission instruction is to the described shooting delay time of WIFI socket, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal.
Described testing equipment comprises: handheld test equipment and computer testing terminal, such as mobile phone and computer.
Further, described test judge module 40 comprises:
Shooting unit, for sending instruction to the current time of record correspondence during WIFI socket at every turn, after delay time is taken described in time delay in the basis of described current time, controls the display interface of camera shooting electric equipment;
Comparing unit, for described display interface and the start standard interface that pre-sets or the standard interface that shut down being compared, if unanimously, then the start of electric equipment or shutdown are normally; If inconsistent, then electric equipment start or shut down abnormal.
Further, described comparing unit comprises:
Statistic unit, comparison result for the display interface to N shooting carries out statistical analysis, draw corresponding test analysis report, described test analysis report comprises shutdown or shut down corresponding detection number of times, detection time, successful operation number of times and operation failure number of times.
With concrete Application Example, that the present invention is described in detail is as follows below.
Refer to Fig. 3, Fig. 3 is the structural representation of the automatic test approach Application Example of electric equipment switching on and shutting down provided by the invention.When practical application, the test macro of described electric equipment switching on and shutting down comprises: by the equipment test, i.e. television set 110, for controlling testing process and carrying out testing the computer 130 judged, for carrying out the serial ports plate 120 communicated between television set with computer, for sending the handheld device 140 of ultra-red order, for receiving the WIFI socket 150 of ultra-red order and WIFI data, for the video recording equipment 160 of televising machine picture, and the power supply 170 for powering; Described television set 110 connects computer 130 by serial ports plate 120; Described television set 110 connects WIFI socket 150; Described computer 130 is wired connection or wireless connections handheld device 140 and video recording equipment 160 respectively; Described power supply 170 connects WIFI socket 150 and computer 130 respectively, thus power supply.The break-make that WIFI socket 150 is powered for controlling television set 110.
When practical application, handheld device sends infrared signal to WIFI socket, and WIFI socket receives the control command opened and closed, thus achieves the startup and shutdown of user's Remote TV.Take handheld device as mobile phone be example.By WIFI, mobile phone is connected with WIFI socket and infrared assembly, and then by data wire, mobile phone is connected with computer, this completes building of hardware.Computer needs to carry out Android environment configurations, and installs mobile phone adb and drive, and is write want execution script program by python.Script is performed by Monkeyrunner, thus control connection mobile phone on computers performs WIFI socket APK application program, automatically program is opened, find the socket of connection, perform the operation realizing the remote control Power key succeeded in school, start duration controls to be arranged by action delay in script, and in process, computer script can control mobile phone camera and carries out timing sampling and take pictures, and all operations flow process all can be set by script.
For the electric equipment of straighforward operation, remote-control closedown, start are the important test events of test and appraisal product stability, reliability, realize infrared remote control by WIFI remote mode.This cover system mainly realizes unattended operation, and is able to programme, and exports testing time in computer end, and can coordinate in test process and carry out automatic camera sampling, thus implementation procedure automatic synchronous tracking, omnidistance unattended operation.After test terminates, only need to screen sample photographs, by computer end, sample photographs is judged, thus achieve automatic test.The present invention will expand stability and reliability that Products evaluates and tests at remote control switch greatly, and automatic sampling is carried out to the product that there is start process, coordinate serially printing daily record, by the convenient tracking to product exception and process, script is easy to maintenance, upgrade easily, can be used as file and preserve, follow-up use can directly be called.The very big saving operating time, reusability is high.
Concrete, in above-described embodiment process, following scripted code can be used to realize testing the switching on and shutting down of electric equipment:
#coding=gbk
#getthePCtime
importsys,time,os,logging
#writefiletopc
log=open('d:\\MonkeyTest\\Lxiaog\\TV\\\TV_OnOff_YT_COOL_Log.txt','w')
Log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" initialization ... n ")
# imports module
Log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" import module ... n ")
fromcom.android.monkeyrunnerimportMonkeyRunner,MonkeyDevice,MonkeyImage
# connection device
Log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" connection device ... n ")
device=MonkeyRunner.waitForConnection()
ifnotdevice:
Log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" equipment connection failure! N ")
print>>sys.staderr,"file"
sys.exit(1)
else:
Log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" equipment connection success, prepares to start test ... n ")
print"connectsucsessful!TestStarting..."
t=time.strftime("%Y-%m-%d-%X",time.localtime()).replace(":","-")
# cycle-index is arranged
Log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" start circulate n ")
#TV switch testing
Device.press (' KEYCODE_HOME', ' DOWN_AND_UP'), MonkeyRunner.sleep (0.5), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" confirming to treat owner's Jie Mian n ")
foriinrange(0,500):
print("run"+str(i))
Log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" the "+str (i)+" test n ")
device.press('KEYCODE_HOME','DOWN_AND_UP'),MonkeyRunner.sleep(0.5),log.write(str(time.strftime('[%Y-%m-%d%H:%M:%S]'))+"\n")
Device.touch (267,716, " DOWN_AND_UP "), MonkeyRunner.sleep (2), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" start intelligent switch APP n ")
Device.touch (341,255, " DOWN_AND_UP "), MonkeyRunner.sleep (1.5), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" open Intellectualized Switchgear n ")
Device.touch (357,560, " DOWN_AND_UP "), MonkeyRunner.sleep (40), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" be defaulted as powered-down, open now n ")
Device.press (' KEYCODE_HOME', ' DOWN_AND_UP'), MonkeyRunner.sleep (10), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" turn back to main interface n ")
Device.touch (597,705, " DOWN_AND_UP "), MonkeyRunner.sleep (1.5), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" start camera n ")
Device.touch (409,663, " DOWN_AND_UP "), MonkeyRunner.sleep (1), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" focusing n ")
Device.touch (439,1199, " DOWN_AND_UP "), MonkeyRunner.sleep (2), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" obtain video screen n ")
device.press('KEYCODE_BACK','DOWN_AND_UP'),MonkeyRunner.sleep(1),log.write(str(time.strftime('[%Y-%m-%d%H:%M:%S]'))+"\n")
Device.touch (267,716, " DOWN_AND_UP "), MonkeyRunner.sleep (2), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" start intelligent switch APP n ")
Device.touch (357,560, " DOWN_AND_UP "), MonkeyRunner.sleep (1.5), log.write (str (time.strftime (' [%Y-%m-%d%H:%M:%S] '))+" powered-down socket n ")
Log.close()
The invention provides the reliability that electric equipment is evaluated and tested in switching on and shutting down, and automatic sampling is carried out to the product that there is start process, coordinate serially printing daily record, by the convenient tracking to product exception and process, script is easy to maintenance, upgrade easily, can be used as file and preserve, follow-up use can directly be called.The very big saving operating time, reusability is high.
In sum, the invention discloses a kind of automatic test approach and system of electric equipment switching on and shutting down, by arranging testing time N and the shooting delay time of electric equipment shutdown or start, wherein, N is positive integer; Testing equipment sends the instruction of the unlatching of N controls WIFI socket or closedown to WIFI socket, and electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out; After each transmission instruction is to the described shooting delay time of WIFI socket, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal; Achieve the automatic test to electric equipment switching on and shutting down, and can verify the result of switching on and shutting down, make test result accuracy rate higher, on duty without the need to tester, bring to tester and facilitate greatly.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.

Claims (10)

1. an automatic test approach for electric equipment switching on and shutting down, is characterized in that, comprising:
A, the wired connection setting up electric equipment and WIFI socket and the communication connection of setting up between WIFI socket and testing equipment;
B, testing equipment end arrange electric equipment shutdown or start testing time N and shooting delay time, wherein, N is positive integer;
C, testing equipment send the instruction of the unlatching of N controls WIFI socket or closedown to WIFI socket, and electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out;
D, send after instruction is given to the described shooting delay time of WIFI socket each, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal.
2. the automatic test approach of electric equipment switching on and shutting down according to claim 1, is characterized in that, described testing equipment comprises: handheld test equipment and computer testing terminal.
3. the automatic test approach of electric equipment switching on and shutting down according to claim 2, is characterized in that, described instruction is ultra-red order; The described very first time is greater than described shooting delay time.
4. the automatic test approach of electric equipment switching on and shutting down according to claim 1, is characterized in that, described step D specifically comprises:
D1, each transmission instruction, to the current time of record correspondence during WIFI socket, after delay time is taken described in time delay in the basis of described current time, control the display interface of camera shooting electric equipment;
D2, described display interface and the start standard interface that pre-sets or the standard interface that shut down are compared, if unanimously, then the start of electric equipment or shutdown are normally; If inconsistent, then electric equipment start or shut down abnormal.
5. the automatic test approach of electric equipment switching on and shutting down according to claim 4, is characterized in that, described step D2 also comprises:
D3, carry out statistical analysis to the comparison result of display interface of N shooting, draw corresponding test analysis report, described test analysis report comprises shutdown or detection number of times corresponding to shutdown, detection time, successful operation number of times and operation failure number of times.
6. an Auto-Test System for electric equipment switching on and shutting down, is characterized in that, comprising:
Connect module, for the wired connection of setting up electric equipment and WIFI socket and the communication connection of setting up between WIFI socket and testing equipment;
Parameter setting module, for arranging testing time N and the shooting delay time of electric equipment shutdown or start at testing equipment end, wherein, N is positive integer;
Instruction sending module, sends the instruction of the unlatching of N controls WIFI socket or closedown to WIFI socket for testing equipment, and electric equipment enters corresponding open state or off-mode along with the unlatching of coupled WIFI socket or cut out;
Test judge module, for after each transmission instruction is to the described shooting delay time of WIFI socket, whether the display interface of shooting electric equipment, analyze the start of electric equipment according to N the display interface obtained or shut down normal.
7. the Auto-Test System of electric equipment switching on and shutting down according to claim 6, is characterized in that, described testing equipment comprises: handheld test equipment and computer testing terminal.
8. the Auto-Test System of electric equipment switching on and shutting down according to claim 7, is characterized in that, described instruction is ultra-red order; The described very first time is greater than described shooting delay time.
9. the Auto-Test System of electric equipment switching on and shutting down according to claim 6, is characterized in that, described test judge module comprises:
Shooting unit, for sending instruction to the current time of record correspondence during WIFI socket at every turn, after delay time is taken described in time delay in the basis of described current time, controls the display interface of camera shooting electric equipment;
Comparing unit, for described display interface and the start standard interface that pre-sets or the standard interface that shut down being compared, if unanimously, then the start of electric equipment or shutdown are normally; If inconsistent, then electric equipment start or shut down abnormal.
10. the Auto-Test System of electric equipment switching on and shutting down according to claim 9, is characterized in that, described comparing unit comprises:
Statistic unit, comparison result for the display interface to N shooting carries out statistical analysis, draw corresponding test analysis report, described test analysis report comprises shutdown or shut down corresponding detection number of times, detection time, successful operation number of times and operation failure number of times.
CN201510918440.XA 2015-12-11 2015-12-11 A kind of automatic test approach and system of electrical equipment switching on and shutting down Active CN105578238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510918440.XA CN105578238B (en) 2015-12-11 2015-12-11 A kind of automatic test approach and system of electrical equipment switching on and shutting down

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510918440.XA CN105578238B (en) 2015-12-11 2015-12-11 A kind of automatic test approach and system of electrical equipment switching on and shutting down

Publications (2)

Publication Number Publication Date
CN105578238A true CN105578238A (en) 2016-05-11
CN105578238B CN105578238B (en) 2019-04-16

Family

ID=55887830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510918440.XA Active CN105578238B (en) 2015-12-11 2015-12-11 A kind of automatic test approach and system of electrical equipment switching on and shutting down

Country Status (1)

Country Link
CN (1) CN105578238B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107255788A (en) * 2017-04-18 2017-10-17 广东浪潮大数据研究有限公司 A kind of power supply cut-offs the method for testing, system and smart jack of surge
CN110456183A (en) * 2019-07-15 2019-11-15 深圳康佳电子科技有限公司 A kind of method and system detecting electric equipment products exception
CN110703726A (en) * 2019-09-26 2020-01-17 上海赫千电子科技有限公司 Automatic upgrading test method applied to locomotive

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110009061A1 (en) * 2009-07-07 2011-01-13 Impact Instrumentation, Inc. Apparatus, system and method for monitoring and maintaining critical medical equipment
CN103347194A (en) * 2013-01-22 2013-10-09 深圳创维数字技术股份有限公司 Method, apparatus and system for starting-up and shut-down testing
CN203277855U (en) * 2013-05-08 2013-11-06 宁波科曼电子科技有限公司 Wifi socket
CN203895668U (en) * 2014-05-26 2014-10-22 衢州顶点电子科技有限公司 Portable WIFI power socket
CN204271376U (en) * 2014-08-15 2015-04-15 朱文卫 Wifi smart jack

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110009061A1 (en) * 2009-07-07 2011-01-13 Impact Instrumentation, Inc. Apparatus, system and method for monitoring and maintaining critical medical equipment
CN103347194A (en) * 2013-01-22 2013-10-09 深圳创维数字技术股份有限公司 Method, apparatus and system for starting-up and shut-down testing
CN203277855U (en) * 2013-05-08 2013-11-06 宁波科曼电子科技有限公司 Wifi socket
CN203895668U (en) * 2014-05-26 2014-10-22 衢州顶点电子科技有限公司 Portable WIFI power socket
CN204271376U (en) * 2014-08-15 2015-04-15 朱文卫 Wifi smart jack

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107255788A (en) * 2017-04-18 2017-10-17 广东浪潮大数据研究有限公司 A kind of power supply cut-offs the method for testing, system and smart jack of surge
CN110456183A (en) * 2019-07-15 2019-11-15 深圳康佳电子科技有限公司 A kind of method and system detecting electric equipment products exception
CN110703726A (en) * 2019-09-26 2020-01-17 上海赫千电子科技有限公司 Automatic upgrading test method applied to locomotive

Also Published As

Publication number Publication date
CN105578238B (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN105548753A (en) Automatic testing method and system of standby and boot function of electric equipment
CN105578238A (en) Automatic test method and system of turn-on and turn-off of electrical appliance device
CN107566226B (en) Method, device and system for controlling smart home
CN103347194A (en) Method, apparatus and system for starting-up and shut-down testing
CN103730959B (en) The communication protocol method of testing of Distribution Network Equipment
CN110300299A (en) Show facility switching machine method for testing pressure, device, equipment and storage medium
CN102375766A (en) On-off test device and method for electronic device
CN106776320A (en) Android intelligent terminal automatization test system and method
CN102387416A (en) Set-top box repairing method, system, set-top box and server
CN105807155A (en) Testing device and method for power cut and starting of electric devices
CN106803792A (en) Data transfer equipment, electric equipment and electric equipment fault diagnosis system
CN104635722A (en) Abnormal power failure simulation test device
CN202649777U (en) Medical X-ray machine, programmed control hand brake device thereof, relay of device and console of device
CN202693709U (en) Test tool and test system of electric equipment
CN103544104B (en) Testing method for power distribution terminal remote control functional software module
CN103207592B (en) The program control rim brake device of medical x-ray machine, programmed control method and special-purpose member
KR20150062594A (en) Apparatus For Function Test of Intelligent Electronic Device(IED) In Substation Automation System Based On IEC61850
CN203859333U (en) Intelligent television set socket device
CN105704484B (en) Analog subscriber operates the test device and method of TV
CN101593904A (en) Monitoring socket, supervisory control system and control method thereof
CN106649008A (en) Method and system for automatically executing mobile terminal physical startup and shutdown pressure test
CN104216399A (en) Image transmission based remote distribution transformer terminal debugging system and remote debugging method thereof
CN104268041B (en) A kind of Vehicular display device equipment frequently switches on machine automatic closed loop test method
CN104954881B (en) Security system
CN105160726A (en) Column switch control terminal with remote control function and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant