WO2018107378A1 - Testing method and testing apparatus - Google Patents

Testing method and testing apparatus Download PDF

Info

Publication number
WO2018107378A1
WO2018107378A1 PCT/CN2016/109855 CN2016109855W WO2018107378A1 WO 2018107378 A1 WO2018107378 A1 WO 2018107378A1 CN 2016109855 W CN2016109855 W CN 2016109855W WO 2018107378 A1 WO2018107378 A1 WO 2018107378A1
Authority
WO
WIPO (PCT)
Prior art keywords
tested
tests
power
preset
module
Prior art date
Application number
PCT/CN2016/109855
Other languages
French (fr)
Chinese (zh)
Inventor
李阎非
夏伟才
Original Assignee
深圳中兴力维技术有限公司
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 深圳中兴力维技术有限公司 filed Critical 深圳中兴力维技术有限公司
Priority to PCT/CN2016/109855 priority Critical patent/WO2018107378A1/en
Publication of WO2018107378A1 publication Critical patent/WO2018107378A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Definitions

  • the present invention relates to the field of testing technologies, and in particular, to a testing method and a testing device.
  • the present invention provides a testing method comprising the following steps:
  • the device to be tested is powered on, the state parameter of the device to be tested is obtained according to a preset protocol, and the operation of the device to be tested is determined according to the state parameter. Whether it is normal; if the device to be tested is running normally, power off the device to be tested, and increase the current number of tests by one;
  • the test result is output.
  • the method before the step of determining whether the number of tests of the device to be tested is greater than or equal to the number of tests, the method further includes:
  • the method further includes:
  • the step of acquiring the state parameter of the device to be tested according to the preset protocol includes:
  • the method further includes:
  • the present invention further provides a testing apparatus, including: a determining module, an executing module, and an output module;
  • the determining module is configured to determine whether the current number of tests of the device to be tested is greater than or equal to a preset number of tests
  • the execution module is configured to: after the current test number of the device to be tested is not greater than a preset number of tests, powering on the device to be tested; obtaining a state parameter of the device to be tested according to a preset protocol, and according to the state The parameter determines whether the operation of the device to be tested is normal. If the device to be tested is operating normally, power off the device to be tested, and increase the current number of tests by one;
  • the output module is configured to output a test result when the current number of tests of the device to be tested is greater than a preset number of tests, or the operation of the device to be tested is abnormal.
  • the testing device further includes an acquiring module and a configuration module, where
  • the obtaining module is configured to acquire a rated input voltage of the device to be tested
  • the configuration module is configured to configure an input voltage to the device to be tested according to the rated input voltage.
  • the testing device further includes a generating module
  • the determining module is further configured to determine whether the device to be tested is successfully powered on in a preset power-on time; [0032] the executing module is configured to successfully perform power-on, according to a preset protocol Obtaining the status parameters of the device to be tested; [0033] The generating module is configured to generate a power-on unsuccessful recording after the power-on is unsuccessful.
  • the execution module is specifically configured to:
  • the testing device further includes a generating module
  • the determining module is further configured to determine whether the device to be tested is powered off successfully in a preset power failure time interval
  • the execution module is configured to add 1 to the current test number after the power failure is successful
  • the generating module is configured to generate a power failure unsuccessful recording after the power failure is unsuccessful.
  • the technical solution of the present invention can automatically power on and off the device to be tested, and automatically acquire the state parameters of the device to be tested through the communication protocol, output the test result, realize the automation of the test, and thereby greatly reduce The cost of labor.
  • FIG. 1 is a flow chart of an embodiment of a test method of the present invention
  • FIG. 2 is a flow chart of another embodiment of a testing method of the present invention.
  • FIG. 3 is a flow chart of still another embodiment of a testing method of the present invention.
  • FIG. 4 is a flow chart of still another embodiment of a testing method of the present invention.
  • FIG. 5 is a schematic block diagram of an embodiment of a test apparatus according to the present invention.
  • FIG. 6 is a schematic block diagram of another embodiment of a testing device according to the present invention.
  • FIG. 7 is a schematic block diagram of still another embodiment of a testing device of the present invention.
  • a first embodiment of the present invention provides a testing method.
  • the testing method includes the following steps:
  • Step S101 Determine whether the current number of tests of the device to be tested is greater than a preset number of tests.
  • step S105 If the current number of tests is greater than the preset number of tests, step S105 is performed. If the current number of tests is not greater than (less than or equal to) the preset number of tests, step S102 is performed.
  • the preset number of tests is a number of tests set according to actual needs.
  • the current number of tests represents the actual number of tests for the current test process.
  • the preset number of tests and the current number of tests are recorded in the built-in memory of the test unit.
  • Step S102 The device to be tested is powered on, and the state parameter of the device to be tested is obtained according to a preset protocol, and then step S103 is performed.
  • the state parameter of the device to be tested is obtained according to a preset protocol.
  • the preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, telnet%) and the like.
  • the specific steps of obtaining the state parameter of the device to be tested according to the preset protocol include:
  • Step S103 determining whether the operation of the device to be tested is normal according to the state parameter; if yes, executing step S104; if not, executing step S105.
  • the specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual operation of the device to be tested with the preset normal operation to make the state parameter; if the obtained comparison value Within the preset range, it indicates that the device to be tested is operating normally; if the obtained comparison value is not within the preset range, it indicates that the device to be tested is operating abnormally. [0065] Step S104, powering off the device to be tested, and adding 1 to the current number of tests.
  • the number of recorded tests is increased by one. For example, the current number of tests a
  • Step S105 outputting a test result.
  • the test result is a result of comparing the obtained state parameter of the device to be tested with the state parameter of the device to be tested, and the test result is presented to the user by display, printing, or the like.
  • the technical solution of the embodiment can automatically power on and off the device to be tested, and automatically obtain the state parameters of the device to be tested through the communication protocol, output the test result, and realize the automation of the test, thereby greatly Reduced labor costs.
  • a test method according to a second embodiment of the present invention is based on the foregoing first embodiment. In this embodiment, it is determined whether the current number of tests of the device to be tested is greater than a preset number of tests. Before the steps, the test methods also include:
  • Step S106 Acquire a rated input voltage of the device to be tested, and then perform step S107.
  • the specific manner of obtaining the rated input voltage of the device to be tested may be: automatically obtaining the rated parameter of the device to be tested, or receiving the input of the operator.
  • Step S107 configuring an input voltage to the device to be tested according to the rated input voltage, and then performing step S101.
  • the test device is provided with a relay such that the output voltage has at least three rated input voltages commonly used by commonly used devices to be tested, 12V, 24V, and 48V. After obtaining the rated input voltage of the device to be tested, the corresponding output voltage is selected according to its rated input voltage to supply power to the device to be tested.
  • the technical solution of the embodiment provides a corresponding output voltage for the device to be tested by acquiring the rated input voltage of the device to be tested, so as to meet the testing requirements of different devices to be tested.
  • test method includes:
  • Step S201 Determine whether the current number of tests of the device to be tested is greater than a preset number of tests.
  • step S202 If the current number of tests is greater than the preset number of tests, step S202 is performed, and if the current number of tests is not greater than (less than or equal to) the preset number of tests, step S208 is performed.
  • Step S202 powering on the device to be tested, and then performing step S203.
  • Step S203 determining whether the device to be tested is successfully powered on in the preset power-on time;
  • step S204 is performed. If the power-on is unsuccessful, step S207 is performed.
  • the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
  • the method for determining whether the device to be tested is successfully powered on in the preset power-on time may be: after the preset power-on time is reached, determining whether the device to be tested enters a normal running state, and if so, Then, it is determined that the device to be tested is successfully powered on. If no, it is determined that the device to be tested is powered on unsuccessfully.
  • Step S204 Acquire a state parameter of the device to be tested according to the preset protocol, and then perform step S205.
  • the preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, telnet%) and the like.
  • the specific steps of obtaining the state parameter of the device to be tested according to the preset protocol include:
  • Step S205 determining whether the operation of the device to be tested is normal according to the state parameter; if yes, executing step S206; if not, executing step S208.
  • the specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual operation of the device to be tested with the preset normal operation to make the state parameter; if the obtained comparison value Within the preset range, it indicates that the device to be tested is operating normally; if the obtained comparison value is not within the preset range, it indicates that the device to be tested is operating abnormally.
  • Step S206 powering off the device to be tested, adding 1 to the current number of tests, and then returning to step 201
  • the number of recorded tests is increased by one. For example, the current number of tests a
  • Step S207 generating a power-on unsuccessful record.
  • step S208 when it is detected that the device to be tested fails to be successfully powered on in the preset power-on time (that is, fails to operate normally), generating a power-on unsuccessful record, and then performing step S208.
  • the device to be tested fails to be powered on in the preset power-on time, but is successfully powered on afterwards, then a power-on super-record is generated, and the power-on is super-powered.
  • the ⁇ record will be presented in the output test results.
  • Step S208 outputting a test result.
  • the output test result includes the obtained state parameter of the device to be tested and the device to be tested are normally operated.
  • test method includes:
  • Step S301 Determine whether the current number of tests of the device to be tested is greater than a preset number of tests.
  • step S302 If the current number of tests is greater than the preset number of tests, step S302 is performed. If the current number of tests is not greater than (less than or equal to) the preset number of tests, step S308 is performed.
  • Step S302 The device to be tested is powered on, and the state parameter of the device to be tested is obtained according to a preset protocol, and then step S303 is performed.
  • the state parameter of the device to be tested is obtained according to a preset protocol.
  • the preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, tel net%) and the like.
  • the specific steps of obtaining the state parameter of the device to be tested according to the preset protocol include:
  • Step S303 determining whether the operation of the device to be tested is normal according to the state parameter; if yes, executing step S304; if not, executing step S308.
  • the specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual operation of the device to be tested with the preset normal operation to make the state parameter; If the comparison value is within the preset range, it indicates that the device to be tested is operating normally; if the obtained comparison value is not within the preset range, it indicates that the device to be tested is abnormal.
  • Step S304 Power off the device to be tested, and then perform step S305.
  • Step S305 Determine whether the device to be tested is powered off successfully within a preset power failure time.
  • the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
  • determining whether the device to be tested is powered off successfully in a preset power-off period may be, after reaching a preset power-off time, determining whether the device to be tested enters a completely closed state, and if so, Then, it is determined that the device to be tested is powered off successfully. If no, it is determined that the device to be tested is powered off unsuccessfully.
  • step S306 is performed. If the power is unsuccessful, step S307 is performed.
  • the number of recorded tests is increased by one. For example, the current number of tests a
  • Step S307 generating a power failure unsuccessful record.
  • step S308 is performed.
  • Step S308 outputting a test result.
  • the output test result includes the obtained state parameter of the device to be tested and the device to be tested are normally operated.
  • a first embodiment of the present invention provides a testing apparatus, and the testing apparatus includes a determining module 410.
  • the execution module 420 and the output module 430. among them,
  • the determining module 410 is configured to determine whether the current number of tests of the device to be tested is greater than or equal to a preset number of tests.
  • the preset number of tests is a number of tests set according to actual needs.
  • the current number of tests represents the actual number of tests for the current test process.
  • the preset number of tests and the current number of tests are recorded in the built-in memory of the test unit.
  • the execution module 420 is configured to: after the current test number of the device to be tested is not greater than the preset number of tests, power on the device to be tested; obtain a state parameter of the device to be tested according to a preset protocol, and according to the state parameter Determine whether the device to be tested is running normally. If the device to be tested is operating normally, power off the device to be tested and increase the current number of tests by one.
  • the preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, telnet%) and the like.
  • the specific steps of obtaining the status parameter of the device to be tested according to the preset protocol include
  • the telnet ip port is used to obtain the test interface parameters of the device to be tested.
  • the snmpwalk is used to obtain the memory usage of the device to be tested.
  • the ping ip is used to obtain the network connection parameters of the device to be tested and the actual power of the device to be tested.
  • the specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual device to be tested with the preset normal operation to make the state parameter; if the obtained comparison value is preset The range of the device to be tested indicates that the device to be tested is operating normally. If the comparison value obtained is not within the preset range, it indicates that the device to be tested is operating abnormally.
  • the output module 430 is configured to output a test result when the current number of tests of the device to be tested is greater than a preset number of tests, or the operation of the device to be tested is abnormal.
  • the test result is a result of comparing the obtained state parameter of the device to be tested with the state parameter of the device to be tested, and the test result is presented to the user by display, printing, or the like.
  • the technical solution of the embodiment can automatically power on and off the device to be tested, and automatically obtain the state parameter of the device to be tested through the communication protocol, output the test result, and realize the automation of the test. And greatly reduce the labor cost.
  • a second embodiment of the present invention provides a test apparatus including a determination module 410, an execution module 420, an output module 430, an acquisition module 440, and a configuration module 450. among them,
  • the determination module 410, the execution module 420, and the output module 430 have the same functions as those of the first embodiment described above, and are not described herein.
  • the obtaining module 440 is configured to obtain a rated input voltage of the device to be tested.
  • the specific manner of obtaining the rated input voltage of the device to be tested may be: automatically obtaining the rated parameter of the device to be tested, or receiving the input of the operator.
  • the configuration module 450 is configured to configure an input voltage to the device to be tested according to the rated input voltage.
  • the test device is provided with a relay such that the output voltage has at least three rated input voltages commonly used by commonly used devices to be tested, 12V, 24V, and 48V. After obtaining the rated input voltage of the device to be tested
  • the technical solution of the embodiment provides a corresponding output voltage for the device to be tested by acquiring the rated input voltage of the device to be tested, so as to meet the testing requirements of different devices to be tested.
  • a third embodiment of the present invention provides a testing apparatus, and the testing apparatus includes a determining module 410.
  • the execution module 420 the output module 430, and the generation module 460.
  • the output module 430 has the same functions as the first embodiment described above,
  • the determining module 410 is further configured to determine whether the device to be tested is successfully powered on in the preset power-on time.
  • the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
  • the method for determining whether the device to be tested is successfully powered on in the preset power-on time may be: after the preset power-on time is reached, determining whether the device to be tested is in a normal running state, and if so, Then, it is determined that the device to be tested is successfully powered on. If no, it is determined that the device to be tested is powered on unsuccessfully.
  • the generating module 460 is configured to generate a power-on unsuccessful recording after the power-on is unsuccessful.
  • the output test result includes the acquired state parameter of the device to be tested and the state in which the device to be tested is in normal operation. The result of the comparison of the parameters, as well as the unsuccessful recording of power-on. If the power is unsuccessful in the first test cycle, the output test result only contains the unsuccessful record.
  • a fourth embodiment of the present invention provides a testing apparatus.
  • the testing apparatus includes a determining module 410, an executing module 420, an output module 430, and a generating module 460.
  • the determination module 410, the execution module 4 20, and the output module 430 have the same functions as the first embodiment described above, and
  • the determining module 410 is further configured to determine whether the device to be tested is powered off successfully in a preset power-off time.
  • the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
  • determining whether the device to be tested is powered off successfully in a preset power-off period may be, after reaching a preset power-off time, determining whether the device to be tested enters a completely closed state, and if so, Then, it is determined that the device to be tested is powered off successfully. If no, it is determined that the device to be tested is powered off unsuccessfully.
  • the generating module 460 is configured to generate a power failure unsuccessful recording after the power failure is unsuccessful.
  • the output test result includes the obtained state parameter of the device to be tested and the state in which the device to be tested is in normal operation. The result of the comparison of the parameters, as well as the unsuccessful recording of the power failure. If the power failure is unsuccessful in the first test cycle, the output test result contains only the unsuccessful recording.
  • the foregoing method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases.
  • the former is a better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the technical solution of the present invention can automatically power on and power off the device to be tested, automatically obtain the state parameters of the device to be tested through the communication protocol, output the test result, realize the automation of the test, and thereby greatly reduce The cost of labor. Therefore, it has industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A testing method and testing apparatus, relating to the technical field of testing. Said method comprises the following steps: determining whether a current number of times testing has been performed on equipment to be tested is greater than a pre-set number of times of testing (S101); if the current number of times testing has been performed on the equipment to be tested is greater than the pre-set number of times of testing, powering on the equipment to be tested, and acquiring status parameters of the equipment to be tested according to a pre-set protocol (S102); determining as to whether the equipment to be tested is operating normally according to the status parameters (S103); if the equipment to be tested is operating normally, powering off said equipment to be tested, and adding 1 to the current number of times testing has been performed (S104); if the current number of times testing has been performed on the equipment to be tested is greater than the pre-set number of times of testing, or the equipment to be tested is operating abnormally, then exporting a test result (S105). Said method may automatically power equipment to be tested on and off, while automatically acquiring status parameters of the equipment to be tested by means of a communications protocol, thereby exporting a test result. Automated testing is achieved, thus vastly lowering labor costs.

Description

发明名称:测试方法及测试装置  Title of the invention: test method and test device
技术领域  Technical field
[0001] 本发明涉及测试技术领域, 尤其涉及一种测试方法及测试装置。  [0001] The present invention relates to the field of testing technologies, and in particular, to a testing method and a testing device.
背景技术  Background technique
[0002] 电子设备的频繁断电上电是一项重要的性能测试, 现有测试方式主要是通过人 工控制电源, 以实现上电与断电的操作, 且需要人工值守捕捉异常, 测试结果 需人工分析, 这种测试方式耗费了极大的人力成本。  [0002] Frequent power-off of electronic equipment is an important performance test. The existing test method mainly uses manual control of the power supply to realize the operation of power-on and power-off, and requires manual guard to catch abnormalities. Manual analysis, this method of testing costs a lot of labor.
技术问题  technical problem
[0003] 有鉴于此, 本发明的目的在于提供一种测试方法及测试装置, 以解决现有测试 人力成本过高的问题。  In view of the above, it is an object of the present invention to provide a test method and test apparatus to solve the problem of excessive labor cost of existing tests.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0004] 为实现上述目的, 本发明提供一种测试方法, 包括如下步骤:  [0004] In order to achieve the above object, the present invention provides a testing method comprising the following steps:
[0005] 判断待测试设备的当前测试次数是否大于预设的测试次数; [0005] determining whether the current number of tests of the device to be tested is greater than a preset number of tests;
[0006] 如果待测试设备的当前测试次数不大于预设的测试次数, 则给待测试设备上电 , 根据预设的协议获取待测试设备的状态参数, 并根据状态参数判断待测试设 备的运行是否正常; 如果待测试设备的运行正常, 则给待测试设备断电, 并将 当前测试次数加 1 ; [0006] If the current number of tests of the device to be tested is not greater than the preset number of tests, the device to be tested is powered on, the state parameter of the device to be tested is obtained according to a preset protocol, and the operation of the device to be tested is determined according to the state parameter. Whether it is normal; if the device to be tested is running normally, power off the device to be tested, and increase the current number of tests by one;
[0007] 如果待测试设备的当前测试次数大于预设的测试次数, 或待测试设备的运行异 常, 则输出测试结果。  [0007] If the current number of tests of the device to be tested is greater than the preset number of tests, or the operation of the device to be tested is abnormal, the test result is output.
[0008] 可选的, 在判断待测试设备的测试次数是否大于或等于测试次数的步骤之前, 还包括:  [0008] Optionally, before the step of determining whether the number of tests of the device to be tested is greater than or equal to the number of tests, the method further includes:
[0009] 获取待测试设备的额定输入电压;  [0009] obtaining a rated input voltage of the device to be tested;
[0010] 根据额定输入电压给待测试设备配置输入电压。 [0010] Configuring an input voltage to the device to be tested according to the rated input voltage.
[0011] 可选的, 在给待测试设备上电的步骤之后, 还包括: [0011] Optionally, after the step of powering on the device to be tested, the method further includes:
[0012] 判断待测试设备在预设的上电吋间内是否上电成功; [0013] 如果上电成功, 则根据预设的协议获取待测试设备的状态参数; [0012] determining whether the device to be tested is successfully powered on in the preset power-on time; [0013] if the power-on is successful, obtaining a state parameter of the device to be tested according to a preset protocol;
[0014] 如果上电不成功, 则生成上电不成功记录。  [0014] If the power-on is unsuccessful, a power-on unsuccessful record is generated.
[0015] 可选的, 根据预设的协议获取待测试设备的状态参数的步骤包括:  [0015] Optionally, the step of acquiring the state parameter of the device to be tested according to the preset protocol includes:
[0016] 通过 telnet ip加端口, 获取待测试设备的测试接口参数;  [0016] obtaining a test interface parameter of the device to be tested by using a telnet ip port;
[0017] 通过 snmpwalk获取待测试设备的内存占用率;  [0017] obtaining the memory usage of the device to be tested by using snmpwalk;
[0018] 通过 ping ip获取待测试设备的网络连接参数, 以及待测试设备的实际上电吋间  [0018] obtaining the network connection parameter of the device to be tested by using ping ip, and actually connecting the device to be tested
[0019] 可选的, 在给待测试设备断电的步骤之后, 还包括: [0019] Optionally, after the step of powering off the device to be tested, the method further includes:
[0020] 判断待测试设备在预设的断电吋间内是否断电成功; [0020] determining whether the device to be tested is powered off successfully in a preset power failure time interval;
[0021] 如果断电成功, 则将当前测试次数加 1 ; [0021] If the power failure is successful, the current test number is increased by 1;
[0022] 如果断电不成功, 则生成断电不成功记录。 [0022] If the power failure is unsuccessful, a power failure unsuccessful record is generated.
[0023] 此外, 为了实现上述目的, 本发明还提出一种测试装置, 包括: 判断模块、 执 行模块, 以及输出模块; 其中,  [0023] In addition, in order to achieve the above object, the present invention further provides a testing apparatus, including: a determining module, an executing module, and an output module;
[0024] 所述判断模块, 用于判断待测试设备的当前测试次数是否大于或等于预设的测 试次数; [0024] the determining module is configured to determine whether the current number of tests of the device to be tested is greater than or equal to a preset number of tests;
[0025] 所述执行模块, 用于在待测试设备的当前测试次数不大于预设的测试次数吋, 给待测试设备上电; 根据预设的协议获取待测试设备的状态参数, 并根据状态 参数判断待测试设备的运行是否正常; 如果待测试设备的运行正常, 给待测试 设备断电, 并将当前测试次数加 1 ;  [0025] The execution module is configured to: after the current test number of the device to be tested is not greater than a preset number of tests, powering on the device to be tested; obtaining a state parameter of the device to be tested according to a preset protocol, and according to the state The parameter determines whether the operation of the device to be tested is normal. If the device to be tested is operating normally, power off the device to be tested, and increase the current number of tests by one;
[0026] 所述输出模块, 用于在待测试设备的当前测试次数大于预设的测试次数, 或待 测试设备的运行异常吋, 输出测试结果。  The output module is configured to output a test result when the current number of tests of the device to be tested is greater than a preset number of tests, or the operation of the device to be tested is abnormal.
[0027] 可选的, 所述的测试装置还包括获取模块与配置模块; 其中,  [0027] Optionally, the testing device further includes an acquiring module and a configuration module, where
[0028] 所述获取模块, 用于获取待测试设备的额定输入电压;  [0028] the obtaining module is configured to acquire a rated input voltage of the device to be tested;
[0029] 所述配置模块, 用于根据额定输入电压给待测试设备配置输入电压。  [0029] The configuration module is configured to configure an input voltage to the device to be tested according to the rated input voltage.
[0030] 可选的, 所述的测试装置还包括生成模块;  [0030] Optionally, the testing device further includes a generating module;
[0031] 所述判断模块, 还用于判断待测试设备在预设的上电吋间内是否上电成功; [0032] 所述执行模块, 用于在上电成功吋, 根据预设的协议获取待测试设备的状态参 数; [0033] 所述生成模块, 用于在上电不成功吋, 生成上电不成功记录。 [0031] The determining module is further configured to determine whether the device to be tested is successfully powered on in a preset power-on time; [0032] the executing module is configured to successfully perform power-on, according to a preset protocol Obtaining the status parameters of the device to be tested; [0033] The generating module is configured to generate a power-on unsuccessful recording after the power-on is unsuccessful.
[0034] 可选的, 所述执行模块具体用于,  [0034] Optionally, the execution module is specifically configured to:
[0035] 通过 telnet ip加端口, 获取待测试设备的测试接口参数;  [0035] obtaining a test interface parameter of the device to be tested by using a telnet ip port;
[0036] 通过 snmpwalk获取待测试设备的内存占用率;  [0036] obtaining the memory usage of the device to be tested by using snmpwalk;
[0037] 通过 ping ip获取待测试设备的网络连接参数, 以及待测试设备的实际上电吋间  [0037] obtaining the network connection parameter of the device to be tested by using ping ip, and actually connecting the device to be tested
[0038] 可选的, 所述的测试装置还包括生成模块; [0038] Optionally, the testing device further includes a generating module;
[0039] 所述判断模块, 还用于判断待测试设备在预设的断电吋间内是否断电成功;  [0039] the determining module is further configured to determine whether the device to be tested is powered off successfully in a preset power failure time interval;
[0040] 所述执行模块, 用于在断电成功吋, 将当前测试次数加 1 ;  [0040] the execution module is configured to add 1 to the current test number after the power failure is successful;
[0041] 所述生成模块, 用于在断电不成功吋, 生成断电不成功记录。  [0041] The generating module is configured to generate a power failure unsuccessful recording after the power failure is unsuccessful.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0042] 本发明的技术方案, 可以自动给待测试设备进行上电与断电, 并通过通信协议 自动获取待测试设备的状态参数, 输出测试结果, 实现了测试的自动化, 进而 极大的降低了人力成本。  [0042] The technical solution of the present invention can automatically power on and off the device to be tested, and automatically acquire the state parameters of the device to be tested through the communication protocol, output the test result, realize the automation of the test, and thereby greatly reduce The cost of labor.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0043] 图 1为本发明测试方法一实施例的流程图;  1 is a flow chart of an embodiment of a test method of the present invention;
[0044] 图 2为本发明测试方法另一实施例的流程图; 2 is a flow chart of another embodiment of a testing method of the present invention;
[0045] 图 3为本发明测试方法又一实施例的流程图; 3 is a flow chart of still another embodiment of a testing method of the present invention;
[0046] 图 4为本发明测试方法再一实施例的流程图; 4 is a flow chart of still another embodiment of a testing method of the present invention;
[0047] 图 5为本发明测试装置一实施例的模块示意图; 5 is a schematic block diagram of an embodiment of a test apparatus according to the present invention;
[0048] 图 6为本发明测试装置另一实施例的模块示意图; 6 is a schematic block diagram of another embodiment of a testing device according to the present invention;
[0049] 图 7为本发明测试装置又一实施例的模块示意图。 7 is a schematic block diagram of still another embodiment of a testing device of the present invention.
[0050] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。 本发明的实施方式 [0051] 为了使本发明所要解决的技术问题、 技术方案及工业实用性更加清楚、 明白, 以下结合附图和实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描 述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。 [0050] The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings. Embodiments of the invention The present invention will be further described in detail below with reference to the accompanying drawings and embodiments in order to make the present invention. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0052] 如图 1所示, 本发明第一实施例提出一种测试方法, 在本实施例中, 测试方法 包括以下步骤:  [0052] As shown in FIG. 1, a first embodiment of the present invention provides a testing method. In this embodiment, the testing method includes the following steps:
[0053] 步骤 S101, 判断待测试设备的当前测试次数是否大于预设的测试次数。  [0053] Step S101: Determine whether the current number of tests of the device to be tested is greater than a preset number of tests.
[0054] 如果当前测试次数大于预设的测试次数, 则执行步骤 S105, 如果当前测试次数 不大于 (小于或等于) 预设的测试次数, 则执行步骤 S102。  [0054] If the current number of tests is greater than the preset number of tests, step S105 is performed. If the current number of tests is not greater than (less than or equal to) the preset number of tests, step S102 is performed.
[0055] 具体的, 预设的测试次数为根据实际需要自行设定的测试次数。 而当前测试次 数则表示当前测试流程的实际测试次数。 预设的测试次数与当前测试次数均记 录在测试装置的内置存储器内。 [0055] Specifically, the preset number of tests is a number of tests set according to actual needs. The current number of tests represents the actual number of tests for the current test process. The preset number of tests and the current number of tests are recorded in the built-in memory of the test unit.
[0056] 步骤 S102, 给待测试设备上电, 根据预设的协议获取待测试设备的状态参数, 然后执行步骤 S103。 [0056] Step S102: The device to be tested is powered on, and the state parameter of the device to be tested is obtained according to a preset protocol, and then step S103 is performed.
[0057] 具体地, 当待测试设备上电成功后, 根据预设的协议获取待测试设备的状态参 数。  [0057] Specifically, after the device to be tested is successfully powered on, the state parameter of the device to be tested is obtained according to a preset protocol.
[0058] 预设的协议为测试装置与待测试设备之间的通信协议, 包括 TCP/IP (ping, tel net...) 等。  [0058] The preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, telnet...) and the like.
[0059] 根据预设的协议获取待测试设备的状态参数的具体步骤包括:  [0059] The specific steps of obtaining the state parameter of the device to be tested according to the preset protocol include:
[0060] 通过 telnet ip加端口, 获取待测试设备的测试接口参数;  [0060] obtaining a test interface parameter of the device to be tested by using a telnet ip port;
[0061] 通过 snmpwalk获取待测试设备的内存占用率;  [0061] obtaining the memory usage of the device to be tested by using snmpwalk;
[0062] 通过 ping ip获取待测试设备的网络连接参数, 以及待测试设备的实际上电吋间  [0062] obtaining the network connection parameter of the device to be tested by using ping ip, and actually connecting the device to be tested
[0063] 步骤 S103, 根据状态参数判断待测试设备的运行是否正常; 如果是, 则执行步 骤 S104; 如果否, 则执行步骤 S105。 [0063] Step S103, determining whether the operation of the device to be tested is normal according to the state parameter; if yes, executing step S104; if not, executing step S105.
[0064] 具体的, 判断待测试设备的运行是否正常的具体步骤可以为: 将获取到的待测 试设备实际运行吋的状态参数与预设的正常运行使得状态参数作比较; 如果获 得的比较值在预设的范围内, 则表明待测试设备的运行正常; 如果获得的比较 值不在预设的范围内, 则表明待测试设备的运行异常。 [0065] 步骤 S104, 给待测试设备断电, 并将当前测试次数加 1。 [0064] Specifically, the specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual operation of the device to be tested with the preset normal operation to make the state parameter; if the obtained comparison value Within the preset range, it indicates that the device to be tested is operating normally; if the obtained comparison value is not within the preset range, it indicates that the device to be tested is operating abnormally. [0065] Step S104, powering off the device to be tested, and adding 1 to the current number of tests.
[0066] 具体地, 当待测试设备断电成功后, 记录测试次数加 1。 比如, 当前测试次数 a [0066] Specifically, when the device to be tested is powered off successfully, the number of recorded tests is increased by one. For example, the current number of tests a
=1, 那么记录当前测试次数 a=l+l, 也即, a=2。 然后, 返回执行步骤 101。 =1, then record the current number of tests a=l+l, that is, a=2. Then, go back to step 101.
[0067] 步骤 S105, 输出测试结果。 [0067] Step S105, outputting a test result.
[0068] 具体地, 测试结果为获取到的待测试设备的状态参数与待测试设备正常运行吋 的状态参数做比较的结果, 测试结果通过显示、 打印等方式呈现给用户。  [0068] Specifically, the test result is a result of comparing the obtained state parameter of the device to be tested with the state parameter of the device to be tested, and the test result is presented to the user by display, printing, or the like.
[0069] 本实施例的技术方案, 可以自动给待测试设备进行上电与断电, 并通过通信协 议自动获取待测试设备的状态参数, 输出测试结果, 实现了测试的自动化, 进 而极大的降低了人力成本。 [0069] The technical solution of the embodiment can automatically power on and off the device to be tested, and automatically obtain the state parameters of the device to be tested through the communication protocol, output the test result, and realize the automation of the test, thereby greatly Reduced labor costs.
[0070] 如图 2所示, 本发明第二实施例提出的一种测试方法, 基于上述第一实施例, 在本实施例中, 判断待测试设备的当前测试次数是否大于预设的测试次数的步 骤之前, 测试方法还包括: [0070] As shown in FIG. 2, a test method according to a second embodiment of the present invention is based on the foregoing first embodiment. In this embodiment, it is determined whether the current number of tests of the device to be tested is greater than a preset number of tests. Before the steps, the test methods also include:
[0071] 步骤 S106, 获取待测试设备的额定输入电压, 然后执行步骤 S107。 [0071] Step S106: Acquire a rated input voltage of the device to be tested, and then perform step S107.
[0072] 具体地, 获取待测试设备的额定输入电压的具体方式可以为: 自动获取待测试 设备的额定参数, 或者接收操作者的输入。 [0072] Specifically, the specific manner of obtaining the rated input voltage of the device to be tested may be: automatically obtaining the rated parameter of the device to be tested, or receiving the input of the operator.
[0073] 步骤 S107, 根据额定输入电压给待测试设备配置输入电压, 然后执行步骤 S101 [0073] Step S107, configuring an input voltage to the device to be tested according to the rated input voltage, and then performing step S101.
[0074] 具体地, 测试装置内设有继电器, 使得输出的电压至少有常用待测试设备常用 的三种额定输入电压 12V、 24V、 48V。 当获取到待测试设备的额定输入电压后 , 根据其额定输入电压选择对应的输出电压, 以为待测试设备供电。 [0074] Specifically, the test device is provided with a relay such that the output voltage has at least three rated input voltages commonly used by commonly used devices to be tested, 12V, 24V, and 48V. After obtaining the rated input voltage of the device to be tested, the corresponding output voltage is selected according to its rated input voltage to supply power to the device to be tested.
[0075] 本实施例的技术方案, 通过获取待测试设备的额定输入电压, 选择性的为待测 试设备提供对应的输出电压, 以满足不同待测试设备的测试需求。  [0075] The technical solution of the embodiment provides a corresponding output voltage for the device to be tested by acquiring the rated input voltage of the device to be tested, so as to meet the testing requirements of different devices to be tested.
[0076] 如图 3所示, 本发明第三实施例提出的一种测试方法, 在本实施例中, 测试方 法包括:  [0076] As shown in FIG. 3, a test method according to a third embodiment of the present invention, in this embodiment, the test method includes:
[0077] 步骤 S201, 判断待测试设备的当前测试次数是否大于预设的测试次数。  [0077] Step S201: Determine whether the current number of tests of the device to be tested is greater than a preset number of tests.
[0078] 如果当前测试次数大于预设的测试次数, 则执行步骤 S202, 如果当前测试次数 不大于 (小于或等于) 预设的测试次数, 则执行步骤 S208。  [0078] If the current number of tests is greater than the preset number of tests, step S202 is performed, and if the current number of tests is not greater than (less than or equal to) the preset number of tests, step S208 is performed.
[0079] 步骤 S202, 给待测试设备上电, 然后, 执行步骤 S203。 [0080] 步骤 S203, 判断待测试设备在预设的上电吋间内是否上电成功; 如果上电成功[0079] Step S202, powering on the device to be tested, and then performing step S203. [0080] Step S203, determining whether the device to be tested is successfully powered on in the preset power-on time;
, 执行步骤 S204。 如果上电不成功, 则执行步骤 S207。 , step S204 is performed. If the power-on is unsuccessful, step S207 is performed.
[0081] 具体地, 预设的断电吋间为待测试设备正常断电吋间, 其预先存储于测试装置 的内置存储器内。 [0081] Specifically, the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
[0082] 判断待测试设备在预设的上电吋间内是否上电成功的方式可以为, 当到达预设 的上电吋间后, 判断待测试设备是否进入正常运行的状态, 如果是, 则判定待 测试设备上电成功。 如果否, 则判定待测试设备上电不成功。  [0082] The method for determining whether the device to be tested is successfully powered on in the preset power-on time may be: after the preset power-on time is reached, determining whether the device to be tested enters a normal running state, and if so, Then, it is determined that the device to be tested is successfully powered on. If no, it is determined that the device to be tested is powered on unsuccessfully.
[0083] 步骤 S204, 根据预设的协议获取待测试设备的状态参数, 然后执行步骤 S205。 [0083] Step S204: Acquire a state parameter of the device to be tested according to the preset protocol, and then perform step S205.
[0084] 预设的协议为测试装置与待测试设备之间的通信协议, 包括 TCP/IP (ping, tel net...) 等。 [0084] The preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, telnet...) and the like.
[0085] 根据预设的协议获取待测试设备的状态参数的具体步骤包括:  [0085] The specific steps of obtaining the state parameter of the device to be tested according to the preset protocol include:
[0086] 通过 telnet ip加端口, 获取待测试设备的测试接口参数;  [0086] obtaining a test interface parameter of the device to be tested by using a telnet ip port;
[0087] 通过 snmpwalk获取待测试设备的内存占用率;  [0087] obtaining the memory usage of the device to be tested by using snmpwalk;
[0088] 通过 ping ip获取待测试设备的网络连接参数, 以及待测试设备的实际上电吋间  [0088] obtaining the network connection parameter of the device to be tested by using ping ip, and actually connecting the device to be tested
[0089] 步骤 S205 , 根据状态参数判断待测试设备的运行是否正常; 如果是, 则执行步 骤 S206; 如果否, 则执行步骤 S208。 [0089] Step S205, determining whether the operation of the device to be tested is normal according to the state parameter; if yes, executing step S206; if not, executing step S208.
[0090] 具体的, 判断待测试设备的运行是否正常的具体步骤可以为: 将获取到的待测 试设备实际运行吋的状态参数与预设的正常运行使得状态参数作比较; 如果获 得的比较值在预设的范围内, 则表明待测试设备的运行正常; 如果获得的比较 值不在预设的范围内, 则表明待测试设备的运行异常。 [0090] Specifically, the specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual operation of the device to be tested with the preset normal operation to make the state parameter; if the obtained comparison value Within the preset range, it indicates that the device to be tested is operating normally; if the obtained comparison value is not within the preset range, it indicates that the device to be tested is operating abnormally.
[0091] 步骤 S206, 给待测试设备断电, 并将当前测试次数加 1, 然后返回执行步骤 201 [0091] Step S206, powering off the device to be tested, adding 1 to the current number of tests, and then returning to step 201
[0092] 具体地, 当待测试设备断电成功后, 记录测试次数加 1。 比如, 当前测试次数 a[0092] Specifically, when the device to be tested is powered off successfully, the number of recorded tests is increased by one. For example, the current number of tests a
=1, 那么记录当前测试次数 a=l+l, 也即, a=2。 。 =1, then record the current number of tests a=l+l, that is, a=2. .
[0093] 步骤 S207, 生成上电不成功记录。 [0093] Step S207, generating a power-on unsuccessful record.
[0094] 具体的, 当检测到待测试设备在预设的上电吋间内没能上电成功 (也即没能正 常运行) 吋, 则生成上电不成功记录, 然后执行步骤 S208。 [0095] 值得一提的是, 如果待测试设备在预设的上电吋间内没能上电成功, 但却在之 后上电成功, 那么, 则生成上电超吋记录, 该上电超吋记录将会呈现在输出的 测试结果中。 [0094] Specifically, when it is detected that the device to be tested fails to be successfully powered on in the preset power-on time (that is, fails to operate normally), generating a power-on unsuccessful record, and then performing step S208. [0095] It is worth mentioning that if the device to be tested fails to be powered on in the preset power-on time, but is successfully powered on afterwards, then a power-on super-record is generated, and the power-on is super-powered. The 吋 record will be presented in the output test results.
[0096] 步骤 S208 , 输出测试结果。  [0096] Step S208, outputting a test result.
[0097] 具体地, 在本实施例中, 如果在执行了数个测试循环之后, 某次上电不成功, 则输出的测试结果包括获取到的待测试设备的状态参数与待测试设备正常运行 吋的状态参数做比较的结果, 以及上电不成功记录。 而如果在第一个测试循环 中就上电不成功, 则输出的测试结果只包含电不成功记录。  [0097] Specifically, in this embodiment, if a power-on is unsuccessful after performing a plurality of test cycles, the output test result includes the obtained state parameter of the device to be tested and the device to be tested are normally operated. The result of the comparison of the state parameters of the ,, as well as the unsuccessful recording of the power-on. If the power is unsuccessful in the first test cycle, the output test result only contains the unsuccessful record.
[0098] 如图 4所示, 本发明第四实施例提出的一种测试方法, 在本实施例中, 测试方 法包括:  [0098] As shown in FIG. 4, a test method according to a fourth embodiment of the present invention, in this embodiment, the test method includes:
[0099] 步骤 S301, 判断待测试设备的当前测试次数是否大于预设的测试次数。  [0099] Step S301: Determine whether the current number of tests of the device to be tested is greater than a preset number of tests.
[0100] 如果当前测试次数大于预设的测试次数, 则执行步骤 S302, 如果当前测试次数 不大于 (小于或等于) 预设的测试次数, 则执行步骤 S308。  [0100] If the current number of tests is greater than the preset number of tests, step S302 is performed. If the current number of tests is not greater than (less than or equal to) the preset number of tests, step S308 is performed.
[0101] 步骤 S302, 给待测试设备上电, 根据预设的协议获取待测试设备的状态参数, 然后执行步骤 S303。 [0101] Step S302: The device to be tested is powered on, and the state parameter of the device to be tested is obtained according to a preset protocol, and then step S303 is performed.
[0102] 具体地, 当待测试设备上电成功后, 根据预设的协议获取待测试设备的状态参 数。  [0102] Specifically, after the device to be tested is successfully powered on, the state parameter of the device to be tested is obtained according to a preset protocol.
[0103] 预设的协议为测试装置与待测试设备之间的通信协议, 包括 TCP/IP (ping, tel net...) 等。  [0103] The preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, tel net...) and the like.
[0104] 根据预设的协议获取待测试设备的状态参数的具体步骤包括:  [0104] The specific steps of obtaining the state parameter of the device to be tested according to the preset protocol include:
[0105] 通过 telnet ip加端口, 获取待测试设备的测试接口参数;  [0105] obtaining a test interface parameter of the device to be tested by using a telnet ip port;
[0106] 通过 snmpwalk获取待测试设备的内存占用率;  [0106] obtaining the memory usage of the device to be tested through snmpwalk;
[0107] 通过 ping ip获取待测试设备的网络连接参数, 以及待测试设备的实际上电吋间  [0107] obtaining the network connection parameter of the device to be tested by using ping ip, and actually connecting the device to be tested
[0108] 步骤 S303, 根据状态参数判断待测试设备的运行是否正常; 如果是, 则执行步 骤 S304; 如果否, 则执行步骤 S308。 [0108] Step S303, determining whether the operation of the device to be tested is normal according to the state parameter; if yes, executing step S304; if not, executing step S308.
[0109] 具体的, 判断待测试设备的运行是否正常的具体步骤可以为: 将获取到的待测 试设备实际运行吋的状态参数与预设的正常运行使得状态参数作比较; 如果获 得的比较值在预设的范围内, 则表明待测试设备的运行正常; 如果获得的比较 值不在预设的范围内, 则表明待测试设备的运行异常。 [0109] Specifically, the specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual operation of the device to be tested with the preset normal operation to make the state parameter; If the comparison value is within the preset range, it indicates that the device to be tested is operating normally; if the obtained comparison value is not within the preset range, it indicates that the device to be tested is abnormal.
[0110] 步骤 S304, 给待测试设备断电, 然后执行步骤 S305。  [0110] Step S304: Power off the device to be tested, and then perform step S305.
[0111] 步骤 S305, 判断待测试设备在预设的断电吋间内是否断电成功。 [0111] Step S305: Determine whether the device to be tested is powered off successfully within a preset power failure time.
[0112] 具体地, 预设的断电吋间为待测试设备正常断电吋间, 其预先存储于测试装置 的内置存储器内。 [0112] Specifically, the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
[0113] 判断待测试设备在预设的断电吋间内是否断电成功的方式可以为, 当到达预设 的断电吋间后, 判断待测试设备是否进入完全关闭的状态, 如果是, 则判定待 测试设备断电成功。 如果否, 则判定待测试设备断电不成功。  [0113] determining whether the device to be tested is powered off successfully in a preset power-off period may be, after reaching a preset power-off time, determining whether the device to be tested enters a completely closed state, and if so, Then, it is determined that the device to be tested is powered off successfully. If no, it is determined that the device to be tested is powered off unsuccessfully.
[0114] 如果断电成功, 执行步骤 S306。 如果上电不成功, 则执行步骤 S307。  [0114] If the power failure is successful, step S306 is performed. If the power is unsuccessful, step S307 is performed.
[0115] 步骤 S306, 并将当前测试次数加 1。  [0115] Step S306, and adding 1 to the current number of tests.
[0116] 具体地, 当待测试设备断电成功后, 记录测试次数加 1。 比如, 当前测试次数 a [0116] Specifically, when the device to be tested is powered off successfully, the number of recorded tests is increased by one. For example, the current number of tests a
=1, 那么记录当前测试次数 a=l+l, 也即, a=2。 然后, 返回执行步骤 301。 =1, then record the current number of tests a=l+l, that is, a=2. Then, return to step 301.
[0117] 步骤 S307, 生成断电不成功记录。 [0117] Step S307, generating a power failure unsuccessful record.
[0118] 具体的, 当检测到待测试设备在预设的断电吋间内没能断电成功 (也即没能正 常关闭) 吋, 则生成断电不成功记录, 然后执行步骤 S308。  [0118] Specifically, when it is detected that the device to be tested fails to be powered off successfully (that is, fails to be normally turned off) within the preset power-off time, the power failure unsuccessful recording is generated, and then step S308 is performed.
[0119] 值得一提的是, 如果待测试设备在预设的断电吋间内没能断电成功, 但却在之 后断电成功, 那么, 则生成断电超吋记录, 该断电超吋记录将会呈现在输出的 测试结果中。  [0119] It is worth mentioning that if the device to be tested fails to be powered off in the preset power-off time, but the power is successfully turned off afterwards, then a power-off super-record is generated, and the power-off is super The 吋 record will be presented in the output test results.
[0120] 步骤 S308, 输出测试结果。  [0120] Step S308, outputting a test result.
[0121] 具体地, 在本实施例中, 如果在执行了数个测试循环之后, 某次断电不成功, 则输出的测试结果包括获取到的待测试设备的状态参数与待测试设备正常运行 吋的状态参数做比较的结果, 以及断电不成功记录。 而如果在第一个测试循环 中就断电不成功, 则输出的测试结果只包含电不成功记录。  [0121] Specifically, in this embodiment, if a power failure is unsuccessful after performing a plurality of test cycles, the output test result includes the obtained state parameter of the device to be tested and the device to be tested are normally operated. The result of the comparison of the state parameters of the ,, as well as the unsuccessful recording of the power failure. If the power failure is unsuccessful in the first test cycle, the output test result contains only the unsuccessful recording.
[0122] 值得一提的是, 上述各方法实施例可以在不冲突的前提下相互结合, 以组成新 的实施例。 具体比如, 可以将第二实施例中的步骤 S106与步骤 S107应用于第三 实施例与第四实施例中; 将第四实施例中的步骤 S302替换为第三实施例中的步 骤 S202、 步骤 S203与步骤 S204应用于第四实施例中等。 [0123] 如图 5所示, 本发明第一实施例提出一种测试装置, 测试装置包括判断模块 410[0122] It is worth mentioning that the foregoing method embodiments can be combined with each other without conflicts to form a new embodiment. For example, step S106 and step S107 in the second embodiment may be applied to the third embodiment and the fourth embodiment; step S302 in the fourth embodiment is replaced with step S202 in the third embodiment. S203 and step S204 are applied to the fourth embodiment or the like. [0123] As shown in FIG. 5, a first embodiment of the present invention provides a testing apparatus, and the testing apparatus includes a determining module 410.
、 执行模块 420, 以及输出模块 430。 其中, The execution module 420, and the output module 430. among them,
[0124] 判断模块 410, 用于判断待测试设备的当前测试次数是否大于或等于预设的测 试次数。 [0124] The determining module 410 is configured to determine whether the current number of tests of the device to be tested is greater than or equal to a preset number of tests.
[0125] 具体地, 预设的测试次数为根据实际需要自行设定的测试次数。 而当前测试次 数则表示当前测试流程的实际测试次数。 预设的测试次数与当前测试次数均记 录在测试装置的内置存储器内。  [0125] Specifically, the preset number of tests is a number of tests set according to actual needs. The current number of tests represents the actual number of tests for the current test process. The preset number of tests and the current number of tests are recorded in the built-in memory of the test unit.
[0126] 执行模块 420, 用于在待测试设备的当前测试次数不大于预设的测试次数吋, 给待测试设备上电; 根据预设的协议获取待测试设备的状态参数, 并根据状态 参数判断待测试设备的运行是否正常; 如果待测试设备的运行正常, 给待测试 设备断电, 并将当前测试次数加 1。 [0126] The execution module 420 is configured to: after the current test number of the device to be tested is not greater than the preset number of tests, power on the device to be tested; obtain a state parameter of the device to be tested according to a preset protocol, and according to the state parameter Determine whether the device to be tested is running normally. If the device to be tested is operating normally, power off the device to be tested and increase the current number of tests by one.
[0127] 具体地, 预设的协议为测试装置与待测试设备之间的通信协议, 包括 TCP/IP ( ping, telnet...) 等。 根据预设的协议获取待测试设备的状态参数的具体步骤包括[0127] Specifically, the preset protocol is a communication protocol between the test device and the device to be tested, including TCP/IP (ping, telnet...) and the like. The specific steps of obtaining the status parameter of the device to be tested according to the preset protocol include
: 通过 telnet ip加端口, 获取待测试设备的测试接口参数; 通过 snmpwalk获取待 测试设备的内存占用率; 通过 ping ip获取待测试设备的网络连接参数, 以及待测 试设备的实际上电吋间。 The telnet ip port is used to obtain the test interface parameters of the device to be tested. The snmpwalk is used to obtain the memory usage of the device to be tested. The ping ip is used to obtain the network connection parameters of the device to be tested and the actual power of the device to be tested.
[0128] 判断待测试设备的运行是否正常的具体步骤可以为: 将获取到的待测试设备实 际运行吋的状态参数与预设的正常运行使得状态参数作比较; 如果获得的比较 值在预设的范围内, 则表明待测试设备的运行正常; 如果获得的比较值不在预 设的范围内, 则表明待测试设备的运行异常。 [0128] The specific step of determining whether the operation of the device to be tested is normal may be: comparing the obtained state parameter of the actual device to be tested with the preset normal operation to make the state parameter; if the obtained comparison value is preset The range of the device to be tested indicates that the device to be tested is operating normally. If the comparison value obtained is not within the preset range, it indicates that the device to be tested is operating abnormally.
[0129] 当待测试设备断电成功后, 记录测试次数加 1。 比如, 当前测试次数 a=l, 那么 记录当前测试次数 a=l+l, 也即, a=2。 然后, 返回执行步骤 101。 [0129] When the device to be tested is powered off successfully, the number of recorded tests is increased by one. For example, if the current number of tests is a=l, then the current number of tests is recorded a=l+l, that is, a=2. Then, go back to step 101.
[0130] 输出模块 430, 用于在待测试设备的当前测试次数大于预设的测试次数, 或待 测试设备的运行异常吋, 输出测试结果。 [0130] The output module 430 is configured to output a test result when the current number of tests of the device to be tested is greater than a preset number of tests, or the operation of the device to be tested is abnormal.
[0131] 具体地, 测试结果为获取到的待测试设备的状态参数与待测试设备正常运行吋 的状态参数做比较的结果, 测试结果通过显示、 打印等方式呈现给用户。 [0131] Specifically, the test result is a result of comparing the obtained state parameter of the device to be tested with the state parameter of the device to be tested, and the test result is presented to the user by display, printing, or the like.
[0132] 本实施例的技术方案, 可以自动给待测试设备进行上电与断电, 并通过通信协 议自动获取待测试设备的状态参数, 输出测试结果, 实现了测试的自动化, 进 而极大的降低了人力成本。 [0132] The technical solution of the embodiment can automatically power on and off the device to be tested, and automatically obtain the state parameter of the device to be tested through the communication protocol, output the test result, and realize the automation of the test. And greatly reduce the labor cost.
[0133] 如图 6所示, 本发明第二实施例提出一种测试装置, 测试装置包括判断模块 410 、 执行模块 420、 输出模块 430、 获取模块 440与配置模块 450。 其中,  As shown in FIG. 6, a second embodiment of the present invention provides a test apparatus including a determination module 410, an execution module 420, an output module 430, an acquisition module 440, and a configuration module 450. among them,
[0134] 判断模块 410、 执行模块 420、 输出模块 430具有与上述第一实施例相同的功能 , 在此不作赘述。  [0134] The determination module 410, the execution module 420, and the output module 430 have the same functions as those of the first embodiment described above, and are not described herein.
[0135] 获取模块 440, 用于获取待测试设备的额定输入电压。  [0135] The obtaining module 440 is configured to obtain a rated input voltage of the device to be tested.
[0136] 具体地, 获取待测试设备的额定输入电压的具体方式可以为: 自动获取待测试 设备的额定参数, 或者接收操作者的输入。  [0136] Specifically, the specific manner of obtaining the rated input voltage of the device to be tested may be: automatically obtaining the rated parameter of the device to be tested, or receiving the input of the operator.
[0137] 配置模块 450, 用于根据额定输入电压给待测试设备配置输入电压。 [0137] The configuration module 450 is configured to configure an input voltage to the device to be tested according to the rated input voltage.
[0138] 具体地, 测试装置内设有继电器, 使得输出的电压至少有常用待测试设备常用 的三种额定输入电压 12V、 24V、 48V。 当获取到待测试设备的额定输入电压后[0138] Specifically, the test device is provided with a relay such that the output voltage has at least three rated input voltages commonly used by commonly used devices to be tested, 12V, 24V, and 48V. After obtaining the rated input voltage of the device to be tested
, 根据其额定输入电压选择对应的输出电压, 以为待测试设备供电。 Select the corresponding output voltage according to its rated input voltage to supply power to the device to be tested.
[0139] 本实施例的技术方案, 通过获取待测试设备的额定输入电压, 选择性的为待测 试设备提供对应的输出电压, 以满足不同待测试设备的测试需求。 [0139] The technical solution of the embodiment provides a corresponding output voltage for the device to be tested by acquiring the rated input voltage of the device to be tested, so as to meet the testing requirements of different devices to be tested.
[0140] 如图 7所示, 本发明第三实施例提出一种测试装置, 测试装置包括判断模块 410[0140] As shown in FIG. 7, a third embodiment of the present invention provides a testing apparatus, and the testing apparatus includes a determining module 410.
、 执行模块 420、 输出模块 430、 生成模块 460。 其中, 判断模块 410、 执行模块 4The execution module 420, the output module 430, and the generation module 460. Wherein, the determining module 410 and the executing module 4
20、 输出模块 430具有与上述第一实施例相同的功能, 同吋, 20. The output module 430 has the same functions as the first embodiment described above,
[0141] 判断模块 410, 还用于判断待测试设备在预设的上电吋间内是否上电成功。 The determining module 410 is further configured to determine whether the device to be tested is successfully powered on in the preset power-on time.
[0142] 具体地, 预设的断电吋间为待测试设备正常断电吋间, 其预先存储于测试装置 的内置存储器内。 [0142] Specifically, the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
[0143] 判断待测试设备在预设的上电吋间内是否上电成功的方式可以为, 当到达预设 的上电吋间后, 判断待测试设备是否进入正常运行的状态, 如果是, 则判定待 测试设备上电成功。 如果否, 则判定待测试设备上电不成功。  [0143] The method for determining whether the device to be tested is successfully powered on in the preset power-on time may be: after the preset power-on time is reached, determining whether the device to be tested is in a normal running state, and if so, Then, it is determined that the device to be tested is successfully powered on. If no, it is determined that the device to be tested is powered on unsuccessfully.
[0144] 生成模块 460, 用于在上电不成功吋, 生成上电不成功记录。  [0144] The generating module 460 is configured to generate a power-on unsuccessful recording after the power-on is unsuccessful.
[0145] 具体的, 当检测到待测试设备在预设的上电吋间内没能上电成功 (也即没能正 常运行) 吋, 则生成上电不成功记录。  [0145] Specifically, when it is detected that the device to be tested fails to be successfully powered on in the preset power-on time (that is, fails to operate normally), a power-on unsuccessful record is generated.
[0146] 在本实施例中, 如果在执行了数个测试循环之后, 某次上电不成功, 则输出的 测试结果包括获取到的待测试设备的状态参数与待测试设备正常运行吋的状态 参数做比较的结果, 以及上电不成功记录。 而如果在第一个测试循环中就上电 不成功, 则输出的测试结果只包含电不成功记录。 [0146] In this embodiment, if a power-on is unsuccessful after performing a plurality of test cycles, the output test result includes the acquired state parameter of the device to be tested and the state in which the device to be tested is in normal operation. The result of the comparison of the parameters, as well as the unsuccessful recording of power-on. If the power is unsuccessful in the first test cycle, the output test result only contains the unsuccessful record.
[0147] 值得一提的是, 如果待测试设备在预设的上电吋间内没能上电成功, 但却在之 后上电成功, 那么, 则生成上电超吋记录, 该上电超吋记录将会呈现在输出的 测试结果中。 [0147] It is worth mentioning that if the device to be tested fails to be powered on within the preset power-on time, but is successfully powered on afterwards, then a power-on super-record is generated, and the power-on is super-powered. The 吋 record will be presented in the output test results.
[0148] 如图 7所示, 本发明第四实施例提出一种测试装置, 测试装置包括判断模块 410 、 执行模块 420、 输出模块 430、 生成模块 460。 其中, 判断模块 410、 执行模块 4 20、 输出模块 430具有与上述第一实施例相同的功能, 同吋,  [0148] As shown in FIG. 7, a fourth embodiment of the present invention provides a testing apparatus. The testing apparatus includes a determining module 410, an executing module 420, an output module 430, and a generating module 460. The determination module 410, the execution module 4 20, and the output module 430 have the same functions as the first embodiment described above, and
[0149] 判断模块 410, 还用于判断待测试设备在预设的断电吋间内是否断电成功。 [0149] The determining module 410 is further configured to determine whether the device to be tested is powered off successfully in a preset power-off time.
[0150] 具体地, 预设的断电吋间为待测试设备正常断电吋间, 其预先存储于测试装置 的内置存储器内。 [0150] Specifically, the preset power-off time is a normal power-off time of the device to be tested, which is pre-stored in the built-in memory of the test device.
[0151] 判断待测试设备在预设的断电吋间内是否断电成功的方式可以为, 当到达预设 的断电吋间后, 判断待测试设备是否进入完全关闭的状态, 如果是, 则判定待 测试设备断电成功。 如果否, 则判定待测试设备断电不成功。  [0151] determining whether the device to be tested is powered off successfully in a preset power-off period may be, after reaching a preset power-off time, determining whether the device to be tested enters a completely closed state, and if so, Then, it is determined that the device to be tested is powered off successfully. If no, it is determined that the device to be tested is powered off unsuccessfully.
[0152] 生成模块 460, 用于在断电不成功吋, 生成断电不成功记录。  [0152] The generating module 460 is configured to generate a power failure unsuccessful recording after the power failure is unsuccessful.
[0153] 具体的, 当检测到待测试设备在预设的断电吋间内没能断电成功 (也即没能正 常关闭) 吋, 则生成断电不成功记录。  [0153] Specifically, when it is detected that the device to be tested fails to be powered off successfully within the preset power-off time (that is, fails to be normally turned off), a power failure unsuccessful record is generated.
[0154] 在本实施例中, 如果在执行了数个测试循环之后, 某次断电不成功, 则输出的 测试结果包括获取到的待测试设备的状态参数与待测试设备正常运行吋的状态 参数做比较的结果, 以及断电不成功记录。 而如果在第一个测试循环中就断电 不成功, 则输出的测试结果只包含电不成功记录。  [0154] In this embodiment, if a power failure is unsuccessful after performing a plurality of test cycles, the output test result includes the obtained state parameter of the device to be tested and the state in which the device to be tested is in normal operation. The result of the comparison of the parameters, as well as the unsuccessful recording of the power failure. If the power failure is unsuccessful in the first test cycle, the output test result contains only the unsuccessful recording.
[0155] 值得一提的是, 如果待测试设备在预设的断电吋间内没能断电成功, 但却在之 后断电成功, 那么, 则生成断电超吋记录, 该断电超吋记录将会呈现在输出的 测试结果中。  [0155] It is worth mentioning that if the device to be tested fails to be powered off within the preset power-off time, but after the power-off is successful, then a power-off super-record is generated, and the power-off is exceeded. The 吋 record will be presented in the output test results.
[0156] 需要说明的是, 在本文中, 术语"包括"、 "包含 "或者其任何其他变体意在涵盖 非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者装置不仅 包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过 程、 方法、 物品或者装置所固有的要素。 在没有更多限制的情况下, 由语句 "包 括一个 ...... "限定的要素, 并不排除在包括该要素的过程、 方法、 物品或者装置 中还存在另外的相同要素。 [0156] It is to be noted that the terms "comprising", "including", or any other variants thereof are intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes Those elements, but also other elements not explicitly listed, or elements that are inherent to such a process, method, item or device. In the absence of more restrictions, by the statement "package Included in a "restricted element" does not exclude the existence of additional identical elements in a process, method, article, or device that includes the element.
[0157] 通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到上述实施例 方法可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件来 实现, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术 方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来 , 该计算机软件产品存储在一个存储介质 (如 ROM/RAM、 磁碟、 光盘) 中, 包 括若干指令用以使得一台终端设备 (可以是手机, 计算机, 服务器, 空调器, 或者网络设备等) 执行本发明各个实施例所述的方法。 [0157] Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases. The former is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
[0158] 以上参照附图说明了本发明的优选实施例, 并非因此局限本发明的权利范围。  The preferred embodiments of the present invention have been described above with reference to the drawings, and are not intended to limit the scope of the invention.
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。 另外, 虽然在流 程图中示出了逻辑顺序, 但是在某些情况下, 可以以不同于此处的顺序执行所 示出或描述的步骤。  The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments. In addition, although the logical order is shown in the flowchart, in some cases the steps shown or described may be performed in a different order than the ones described herein.
[0159] 本领域技术人员不脱离本发明的范围和实质, 可以有多种变型方案实现本发明 , 比如作为一个实施例的特征可用于另一实施例而得到又一实施例。 凡在运用 本发明的技术构思之内所作的任何修改、 等同替换和改进, 均应在本发明的权 利范围之内。  A person skilled in the art can implement the invention in various variants without departing from the scope and spirit of the invention. For example, the features of one embodiment can be used in another embodiment to obtain a further embodiment. Any modifications, equivalent substitutions and improvements made within the technical concept of the invention are intended to be within the scope of the invention.
工业实用性  Industrial applicability
[0160] 本发明的技术方案, 可以自动给待测试设备进行上电与断电, 并通过通信协议 自动获取待测试设备的状态参数, 输出测试结果, 实现了测试的自动化, 进而 极大的降低了人力成本。 因此, 具有工业实用性。  [0160] The technical solution of the present invention can automatically power on and power off the device to be tested, automatically obtain the state parameters of the device to be tested through the communication protocol, output the test result, realize the automation of the test, and thereby greatly reduce The cost of labor. Therefore, it has industrial applicability.

Claims

权利要求书 Claim
一种测试方法, 包括如下步骤: A test method includes the following steps:
判断待测试设备的当前测试次数是否大于预设的测试次数; 如果待测试设备的当前测试次数不大于预设的测试次数, 则给待测试 设备上电, 根据预设的协议获取待测试设备的状态参数, 并根据状态 参数判断待测试设备的运行是否正常; 如果待测试设备的运行正常, 则给待测试设备断电, 并将当前测试次数加 1; If the current number of tests of the device to be tested is greater than the preset number of tests, the device to be tested is powered on, and the device to be tested is obtained according to a preset protocol. State parameter, and judge whether the operation of the device to be tested is normal according to the state parameter; if the device to be tested is operating normally, power off the device to be tested, and increase the current number of tests by one;
如果待测试设备的当前测试次数大于预设的测试次数, 或待测试设备 的运行异常, 则输出测试结果。 If the current number of tests of the device to be tested is greater than the preset number of tests, or the device to be tested is abnormally running, the test result is output.
如权利要求 1所述的测试方法, 其中, 在判断待测试设备的测试次数 是否大于或等于测试次数的步骤之前, 还包括: The test method according to claim 1, wherein before the step of determining whether the number of tests of the device to be tested is greater than or equal to the number of tests, the method further comprises:
获取待测试设备的额定输入电压; Obtain the rated input voltage of the device to be tested;
根据额定输入电压给待测试设备配置输入电压。 The input voltage is configured for the device under test based on the rated input voltage.
如权利要求 1所述的测试方法, 其中, 在给待测试设备上电的步骤之 后, 还包括: The testing method of claim 1, wherein after the step of powering up the device to be tested, the method further comprises:
判断待测试设备在预设的上电吋间内是否上电成功; Determining whether the device to be tested is successfully powered on in the preset power-on time;
如果上电成功, 则根据预设的协议获取待测试设备的状态参数; 如果上电不成功, 则生成上电不成功记录。 If the power-on is successful, the status parameter of the device to be tested is obtained according to the preset protocol. If the power-on is unsuccessful, the power-on unsuccessful record is generated.
如权利要求 1所述的测试方法, 其中, 根据预设的协议获取待测试设 备的状态参数的步骤包括: The testing method according to claim 1, wherein the step of acquiring the state parameter of the device to be tested according to the preset protocol comprises:
通过 telnet ip加端口, 获取待测试设备的测试接口参数; Obtain the test interface parameters of the device to be tested by using telnet ip plus port.
通过 snmpwalk获取待测试设备的内存占用率; Obtain the memory usage of the device to be tested through snmpwalk.
通过 ping ip获取待测试设备的网络连接参数, 以及待测试设备的实际 上电吋间。 Use ping ip to obtain the network connection parameters of the device to be tested and the actual power-on time of the device to be tested.
如权利要求 1所述的测试方法, 其中, 在给待测试设备断电的步骤之 后, 还包括: The testing method according to claim 1, wherein after the step of powering off the device to be tested, the method further comprises:
判断待测试设备在预设的断电吋间内是否断电成功; Determining whether the device to be tested is powered off successfully within a preset power failure time;
如果断电成功, 则将当前测试次数加 1 ; 如果断电不成功, 则生成断电不成功记录。 If the power failure is successful, the current test number is increased by 1; If the power failure is unsuccessful, a power failure unsuccessful record is generated.
一种测试装置, 包括: 判断模块、 执行模块, 以及输出模块; 其中, 所述判断模块, 用于判断待测试设备的当前测试次数是否大于或等于 预设的测试次数; A testing device, comprising: a determining module, an executing module, and an output module; wherein the determining module is configured to determine whether the current number of tests of the device to be tested is greater than or equal to a preset number of tests;
所述执行模块, 用于在待测试设备的当前测试次数不大于预设的测试 次数吋, 给待测试设备上电; 根据预设的协议获取待测试设备的状态 参数, 并根据状态参数判断待测试设备的运行是否正常; 如果待测试 设备的运行正常, 给待测试设备断电, 并将当前测试次数加 1 ; The execution module is configured to: after the current number of tests of the device to be tested is not greater than the preset number of tests, power on the device to be tested; obtain a state parameter of the device to be tested according to a preset protocol, and determine, according to the state parameter, Whether the test equipment is running normally; if the equipment to be tested is operating normally, power off the equipment to be tested, and increase the current number of tests by one;
所述输出模块, 用于在待测试设备的当前测试次数大于预设的测试次 数, 或待测试设备的运行异常吋, 输出测试结果。 The output module is configured to output a test result when the current number of tests of the device to be tested is greater than a preset number of tests, or the operation of the device to be tested is abnormal.
如权利要求 6所述的测试装置, 其中, 还包括获取模块与配置模块; 其中, The testing device according to claim 6, further comprising an obtaining module and a configuration module; wherein
所述获取模块, 用于获取待测试设备的额定输入电压; The obtaining module is configured to obtain a rated input voltage of the device to be tested;
所述配置模块, 用于根据额定输入电压给待测试设备配置输入电压。 如权利要求 6所述的测试装置, 其中, 还包括生成模块; The configuration module is configured to configure an input voltage to the device to be tested according to the rated input voltage. The testing device according to claim 6, further comprising a generating module;
所述判断模块, 还用于判断待测试设备在预设的上电吋间内是否上电 成功; The determining module is further configured to determine whether the device to be tested is successfully powered on in a preset power-on time;
所述执行模块, 用于在上电成功吋, 根据预设的协议获取待测试设备 的状态参数; The execution module is configured to obtain a state parameter of the device to be tested according to a preset protocol after the power is successfully powered on;
所述生成模块, 用于在上电不成功吋, 生成上电不成功记录。 The generating module is configured to generate a power-on unsuccessful record after the power-on is unsuccessful.
如权利要求 6所述的测试装置, 其中, The test apparatus according to claim 6, wherein
所述执行模块具体用于, The execution module is specifically used to
通过 telnet ip加端口, 获取待测试设备的测试接口参数; Obtain the test interface parameters of the device to be tested by using telnet ip plus port.
通过 snmpwalk获取待测试设备的内存占用率; Obtain the memory usage of the device to be tested through snmpwalk.
通过 ping ip获取待测试设备的网络连接参数, 以及待测试设备的实际 上电吋间。 Use ping ip to obtain the network connection parameters of the device to be tested and the actual power-on time of the device to be tested.
如权利要求 6所述的测试装置, 其中, 还包括生成模块; The testing device according to claim 6, further comprising a generating module;
所述判断模块, 还用于判断待测试设备在预设的断电吋间内是否断电 成功; The determining module is further configured to determine whether the device to be tested is powered off within a preset power failure time Success
所述执行模块, 用于在断电成功吋, 将当前测试次数加 1 ; 所述生成模块, 用于在断电不成功吋, 生成断电不成功记录。 The execution module is configured to add 1 to the current number of tests after the power failure is successful; and the generating module is configured to generate a power failure unsuccessful record after the power failure is unsuccessful.
PCT/CN2016/109855 2016-12-14 2016-12-14 Testing method and testing apparatus WO2018107378A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/109855 WO2018107378A1 (en) 2016-12-14 2016-12-14 Testing method and testing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/109855 WO2018107378A1 (en) 2016-12-14 2016-12-14 Testing method and testing apparatus

Publications (1)

Publication Number Publication Date
WO2018107378A1 true WO2018107378A1 (en) 2018-06-21

Family

ID=62557675

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109855 WO2018107378A1 (en) 2016-12-14 2016-12-14 Testing method and testing apparatus

Country Status (1)

Country Link
WO (1) WO2018107378A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370218A (en) * 2007-08-17 2009-02-18 深圳富泰宏精密工业有限公司 Electrified test system and method for GSM module
CN102256273A (en) * 2010-05-19 2011-11-23 希姆通信息技术(上海)有限公司 Automatic testing method for multilink communication of time division_machine-to-machine/man (TD_M2M) wireless module
CN102445626A (en) * 2010-10-13 2012-05-09 中兴通讯股份有限公司 Single board testing method and device for the same
CN102479127A (en) * 2010-11-30 2012-05-30 英业达股份有限公司 System for performing power supply cycle period test on multiple servers
CN104615520A (en) * 2015-03-10 2015-05-13 浪潮集团有限公司 Test method for evaluating startup and shutdown life of server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370218A (en) * 2007-08-17 2009-02-18 深圳富泰宏精密工业有限公司 Electrified test system and method for GSM module
CN102256273A (en) * 2010-05-19 2011-11-23 希姆通信息技术(上海)有限公司 Automatic testing method for multilink communication of time division_machine-to-machine/man (TD_M2M) wireless module
CN102445626A (en) * 2010-10-13 2012-05-09 中兴通讯股份有限公司 Single board testing method and device for the same
CN102479127A (en) * 2010-11-30 2012-05-30 英业达股份有限公司 System for performing power supply cycle period test on multiple servers
CN104615520A (en) * 2015-03-10 2015-05-13 浪潮集团有限公司 Test method for evaluating startup and shutdown life of server

Similar Documents

Publication Publication Date Title
CN101478449B (en) Protocol automatic test method and system thereof
CN102104504B (en) Platform and method for testing northbound interface
EP3829141B1 (en) Cloud assisted management of devices
CN105516388B (en) A kind of Wireless Communication Equipment MAC Address test method and system
CN104009898A (en) Household appliance and control method and device thereof
CN101859275A (en) Method, system and mobile terminal for monitoring application program
CN113518018B (en) Router system stability test system and test method
CN104105227A (en) A WIFI module work method and device based on different application scenarios
CN110896366A (en) Network card function testing method and device of multi-network card equipment and storage medium
CN103746879A (en) Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
CN108738059B (en) WIFI module testing method and device
CN105553782A (en) Communication link testing method and system
CN106533823B (en) Automatic test system and method and recyclable sending device thereof
WO2006064364A1 (en) Indicating a configuring status
WO2018107378A1 (en) Testing method and testing apparatus
CN103092118A (en) Household appliance safety detection system and method
CN111124828B (en) Data processing method, device, equipment and storage medium
US20140035464A1 (en) Controlling an event behavior of an illumination interface for a network device
CN105163336B (en) Optimize the method and system of wireless network stability
CN107547920A (en) Fault handling method and device
CN114554466A (en) Equipment detection method and device
CN114158111A (en) Remote network management method, device and computer readable storage medium
US9490995B1 (en) Simulation system for network devices in a network
CN105792240A (en) Test control system
CN114690741A (en) Controller test system and method for vehicle, electronic device and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16923837

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16923837

Country of ref document: EP

Kind code of ref document: A1