WO2021196585A1 - Test method and apparatus, electronic device, and computer-readable storage medium - Google Patents

Test method and apparatus, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
WO2021196585A1
WO2021196585A1 PCT/CN2020/125539 CN2020125539W WO2021196585A1 WO 2021196585 A1 WO2021196585 A1 WO 2021196585A1 CN 2020125539 W CN2020125539 W CN 2020125539W WO 2021196585 A1 WO2021196585 A1 WO 2021196585A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
smart home
control panel
home control
scenario
Prior art date
Application number
PCT/CN2020/125539
Other languages
French (fr)
Chinese (zh)
Inventor
王敏洁
Original Assignee
深圳创维-Rgb电子有限公司
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 深圳创维-Rgb电子有限公司 filed Critical 深圳创维-Rgb电子有限公司
Publication of WO2021196585A1 publication Critical patent/WO2021196585A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • This application relates to the field of computer technology, in particular to a testing method, device electronics, equipment, and computer-readable storage media.
  • Smart home is based on a residential platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate facilities related to home life to build efficient residential facilities and
  • the management system of family schedule affairs improves home safety, convenience, comfort, and artistry, and realizes an environmentally friendly and energy-saving living environment.
  • Smart homes connect various devices in the home (such as audio and video equipment, lighting systems, curtain control, air conditioning control, security systems, digital cinema systems, audio and video servers, video cabinet systems, network appliances, etc.) through the Internet of Things technology to provide Home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control and other functions and methods.
  • devices in the home such as audio and video equipment, lighting systems, curtain control, air conditioning control, security systems, digital cinema systems, audio and video servers, video cabinet systems, network appliances, etc.
  • Internet of Things technology to provide Home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control and other functions and methods.
  • smart homes can realize joint control of multiple devices by setting smart home control panels on various devices in the home.
  • the operating scenarios of the smart home control panel are different, and it becomes more and more difficult to test the smart home control panel in different environments.
  • One of the objectives of this application includes providing a test method, device, electronic equipment, and computer-readable storage medium to test a variety of smart home operation scenarios by simulating contact signals without requiring hardware support for various actual operation scenarios. Improve test efficiency.
  • an embodiment of the present application provides a test method, which is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts, and the method includes:
  • the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; wherein the analog contact signal is configured to simulate the connection contact of the smart home control panel Point the received signal;
  • the step of determining a test scenario corresponding to the test request according to the analog contact signal carried in the test request includes:
  • the test scene is filtered out from the running scene.
  • the step of determining the target connection contact corresponding to the analog contact signal includes:
  • connection contact serves as the target connection contact.
  • the step of acquiring a first test instruction corresponding to the test scenario, and testing the smart home control panel in the test scenario according to the first test instruction includes:
  • the test result of the smart home control panel is determined.
  • the step of determining the test result of the smart home control panel according to the execution result of the first test instruction includes:
  • the step of determining the test result of the smart home control panel according to the execution result of the first test instruction further includes:
  • test result is abnormal
  • the method further includes: recording the running status of the execution of the first test instruction.
  • the method further includes:
  • the parameters of the smart home control panel are adjusted according to the execution result of the first test instruction.
  • the method further includes:
  • an embodiment of the present application also provides a test device, which is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts; the device includes:
  • the determining module is configured to, when a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
  • a scene switching module configured to set the operation scene of the smart home control panel as the test scene
  • the test module is configured to obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
  • the determining module is configured to:
  • the test scene is filtered out from the running scene.
  • test module is configured as:
  • the test result of the smart home control panel is determined.
  • the device further includes:
  • the parameter adjustment module is configured to adjust the parameters of the smart home control panel according to the execution result of the first test instruction when the test result is abnormal.
  • test module is further configured to:
  • an embodiment of the present application also provides an electronic device, including a processor, a memory, and a bus.
  • the memory stores machine-readable instructions executable by the processor.
  • the processing When the electronic device is running, the processing The device communicates with the memory through a bus, and the machine-readable instructions are executed when executed by the processor:
  • test request When a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
  • the processor is further configured to execute:
  • the test scene is filtered out from the running scene.
  • the processor is further configured to execute:
  • the test result of the smart home control panel is determined.
  • the processor is further configured to execute:
  • the parameters of the smart home control panel are adjusted according to the execution result of the first test instruction.
  • the processor is further configured to execute:
  • the embodiments of the present application also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps of the above-mentioned testing method when the computer program is run by a processor.
  • test method device, electronic device, and computer-readable storage medium provided by the embodiments of the present application
  • the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request;
  • the operation scene of the smart home control panel is set to the test scene;
  • the first test instruction corresponding to the test scene is obtained, and the first test instruction is performed according to the first test instruction to the test scene.
  • the smart home control panel is tested.
  • the present application can determine the test scenario according to the detected analog contact signal, thereby realizing the simulation of multiple test scenarios through the analog contact signal, without separately providing hardware environment support for each test scenario, and the test efficiency is high.
  • Fig. 1 shows a flow chart of a test method provided by an embodiment of the present application
  • FIG. 2 shows a flowchart of another testing method provided by an embodiment of the present application
  • Figure 3 shows a schematic structural diagram of a testing device provided by an embodiment of the present application
  • FIG. 4 shows a schematic structural diagram of another test device provided by an embodiment of the present application.
  • Fig. 5 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the smart home control panel may be a control terminal set on multiple smart home devices.
  • the smart home control panel is connected to the smart home device through a plurality of connection contacts, which is different from the connection contacts required for the connection of different types of smart home devices.
  • the operation scenarios of the smart home control panels set on different types of smart home devices are different.
  • smart home devices may include refrigerators, desk lamps, wardrobes, bedside tables, washing machines, range hoods, etc.; operating scenes may include refrigerator scenes, desk lamp scenes, wardrobe scenes, bedside table scenes, washing machine scenes, and range hood scenes.
  • Multiple connection contacts can correspond to multiple communication interfaces and have different communication modes.
  • the embodiments of the present application provide a testing method to reduce the amount of operations when testing multiple operating scenarios and improve testing efficiency.
  • FIG. 1 is a flowchart of a testing method provided by an embodiment of the application. As shown in FIG. 1, the test method provided by the embodiment of the present application is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts, and the method includes:
  • the test request can be generated by the server and sent to the smart home control panel, or can be generated by the smart home control panel through test software.
  • the test request carries an analog contact signal, and the analog contact signal is configured to simulate the signal received by the connection contact of the smart home control panel.
  • the smart home control panel After the smart home control panel detects the test request, it can simulate the smart home control panel to connect to the smart home device according to the analog contact signal. Different types of smart home devices connect to the smart home control panel with different connection contacts. The corresponding contact signals are also different. Therefore, the test scenario corresponding to the analog signal can be determined according to the type of the analog contact signal.
  • the analog contact signal is simulated by the test software on the server or the smart home control panel, there is no need to connect the smart home control panel to the actual device corresponding to the operating environment to be tested, and then the target can be targeted. The operating environment is tested.
  • the smart home control panel determines the test scene corresponding to the test request, it can set its own running scene to the test scene. For example, if the test scene is a refrigerator scene, the smart home control panel can switch the running scene To the refrigerator scene, and provide functions in the refrigerator scene, for example, control the cooling temperature of the refrigerator or control the lighting of the refrigerator.
  • the smart home control panel can request the server for the first test instruction corresponding to the test scenario, and the first test instruction is configured to control the smart home control panel to be implemented in Test the functions in the scenario, or issue the first test instruction through the test software on the smart home control panel.
  • the first test instruction may include one test instruction or multiple test instruction sets. Before acquiring the first test instruction, it can be determined whether the smart home control panel successfully switches the running scene to the test scene according to the operating status information of the smart home control panel, and after the successful switching, the first test instruction can be acquired.
  • test instruction may be "adjust the light brightness of the desk lamp”, “adjust the refrigeration temperature of the refrigerator”, “play designated music”, and so on.
  • the smart home control panel After acquiring the first test instruction, the smart home control panel can execute the acquired first test instruction and record the execution result.
  • the smart home control panel can traverse the running record corresponding to the first test instruction through the test software, and determine whether the smart home control panel can operate normally in the test environment according to the execution result of the first test instruction.
  • test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; then the smart home control panel
  • the running scenario is set to the test scenario; the first test instruction corresponding to the test scenario is acquired, and the smart home control panel in the test scenario is tested according to the first test instruction.
  • This application can The test scenario is determined according to the detected analog contact signal, and then multiple test scenarios can be simulated through the analog contact signal. There is no need to provide hardware environment support for each test scenario separately, which can improve the test efficiency.
  • FIG. 2 is a flowchart of another test method provided by an embodiment of the application.
  • the test method provided in the embodiment of the present application includes:
  • the smart home control panel can compare the type of analog contact signal and the type of contact signal corresponding to each connection contact on the smart home control panel, and use the connection contacts of the same type as the target connection contact.
  • test scenario is selected from the operation scenario.
  • the operation scenario corresponding to the target connection contact can be determined, and the determined operation scenario can be determined as the test scenario.
  • S203 Set the operation scene of the smart home control panel as the test scene.
  • S203 to S204 can refer to the description of S102 to S103, and S203 to S204 can achieve the same or similar technical effects as S102 to S103, which will not be repeated in the embodiment of the present application.
  • the step of acquiring a first test instruction corresponding to the test scenario, and testing the smart home control panel in the test scenario according to the first test instruction includes:
  • the test result of the smart home control panel is determined.
  • the smart home control panel may execute the first test instruction, and record the operation status of the smart home control panel when the first test instruction is executed, and determine the first test instruction according to the operation status. The execution result of the test instruction.
  • the operation of the smart home control panel is normal when executing all the test instructions of the first test instruction, it can be determined that the execution result is normal.
  • the execution result is normal, it can be determined that the test result is normal.
  • the operation of the smart home control panel during execution of any one of the first test instructions is abnormal, such as an error, it can be determined that the execution result is abnormal and the test result is abnormal.
  • the method further includes:
  • the parameters of the smart home control panel are adjusted according to the execution result of the first test instruction.
  • the execution result of the first test instruction can be analyzed to determine the reason for the abnormality, and according to the reason for the abnormality, the parameters of the smart home control panel can be adjusted to repair the abnormality. abnormal situation.
  • the method further includes:
  • the smart home control panel can also be tested again using the second test instruction of other running scenarios.
  • the running scenarios outside the test scenarios refer to the running scenarios different from the test scenarios. For example, if the test scenario is Refrigerator scene, other operating scenes can be range hood scene, desk lamp scene, etc. Perform tests on operating scenarios other than the test scenario, and you can determine whether the smart home control panel is correct to switch the operating scenario to the test scenario according to the test results.
  • FIG. 3 is a schematic structural diagram of a testing device provided by an embodiment of the application
  • FIG. 4 is a schematic structural diagram of another testing device provided by an embodiment of the application.
  • the testing device 300 includes:
  • the determining module 310 is configured to, when a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
  • the scene switching module 320 is configured to set the operation scene of the smart home control panel as the test scene
  • the test module 330 is configured to obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
  • the determining module 310 is configured to:
  • the test scene is filtered out from the running scene.
  • test module 330 is configured to:
  • the test result of the smart home control panel is determined.
  • the testing device 400 includes:
  • the determining module 410 is configured to, when a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request.
  • the scene switching module 420 is configured to set the operation scene of the smart home control panel as the test scene.
  • the test module 430 is configured to obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
  • the parameter adjustment module 440 is configured to adjust the parameters of the smart home control panel according to the execution result of the first test instruction when the test result is abnormal.
  • the test module 430 is configured to: obtain a second test instruction corresponding to a running scene other than the test The smart home control panel in the test scenario is tested.
  • the test device provided by the embodiment of the present application, first, when a test request is detected, the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; then, the smart home control panel The running scenario of is set to the test scenario; finally, the first test instruction corresponding to the test scenario is acquired, and the smart home control panel in the test scenario is tested according to the first test instruction.
  • the present application can determine the test scenario according to the detected analog contact signal, and then realize the simulation of multiple test scenarios through the analog contact signal, without providing hardware environment support for each test scenario separately, and can improve the test efficiency.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device 500 includes a processor 510, a memory 520, and a bus 530.
  • the memory 520 stores machine-readable instructions executable by the processor 510.
  • the processor 510 communicates with the memory 520 through a bus 530, and the machine-readable instructions are When the processor 510 executes, it may execute:
  • test request When a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
  • the processor 510 is further configured to execute:
  • the test scene is filtered out from the running scene.
  • the processor 510 is further configured to execute:
  • the processor 510 is further configured to execute: when the test result is abnormal, perform the operation on the smart home control panel according to the execution result of the first test instruction Parameter adjustment.
  • the processor 510 is further configured to execute:
  • the embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program can execute the above-mentioned FIG. 1 and FIG. 2 when the computer program is run by the processor.
  • the specific implementation manner can refer to the foregoing content of the embodiment of the present application, and will not be repeated here.
  • the disclosed system, device, and method may be implemented in other manners.
  • the implementation of the device described above is merely illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other divisions.
  • multiple units or components may be It can be combined or integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections between devices or units through some communication interfaces, and may be electrical connections, mechanical connections, or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
  • each functional unit in each possible implementation manner of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in each implementation manner of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
  • the embodiments of the present application provide a test method, device, electronic equipment, and computer-readable storage medium.
  • the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; then, The operation scene of the smart home control panel is set as the test scene; finally, the first test instruction corresponding to the test scene is obtained, and the smart home control panel in the test scene is tested according to the first test instruction.
  • the present application can determine the test scenario according to the detected analog contact signal, and then realize the simulation of multiple test scenarios through the analog contact signal, without providing hardware environment support for each test scenario separately, and can improve the test efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Selective Calling Equipment (AREA)
  • Telephone Function (AREA)

Abstract

A test method and apparatus, an electronic device, and a computer-readable storage medium. The method comprises: upon detecting a test request, determining, according to an simulated contact signal carried in the test request, a test scenario corresponding to the test request (S101); setting an operation scenario of a smart home control panel as the test scenario (S102); and obtaining a first test instruction corresponding to the test scenario, and testing the smart home control panel in the test scenario according to the first test instruction (S103). Test scenarios can be determined according to detected simulated contact signals, thus the simulation of a plurality of test scenarios by means of the simulated contact signals is achieved, and because there is no need to provide hardware environment support for each test scenario respectively, the test efficiency can be improved.

Description

测试方法、装置、电子设备及计算机可读存储介质Test method, device, electronic equipment and computer readable storage medium
相关申请的交叉引用Cross-references to related applications
本申请要求于2020年04月02日提交中国专利局的申请号为CN202010256676.2、名称为“一种测试方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number CN202010256676.2 and the name "a test method and device" filed with the China Patent Office on April 2, 2020, the entire content of which is incorporated into this application by reference .
技术领域Technical field
本申请涉及计算机技术领域,尤其是涉及一种测试方法、装置电子、设备及计算机可读存储介质。This application relates to the field of computer technology, in particular to a testing method, device electronics, equipment, and computer-readable storage media.
背景技术Background technique
随着科技的不断进步,智能家居逐渐走入人们的视野。智能家居(smart home,home automation)是以住宅为平台,利用综合布线技术、网络通信技术、安全防范技术、自动控制技术、音视频技术将家居生活有关的设施集成设置,构建高效的住宅设施与家庭日程事务的管理系统,提升家居安全性、便利性、舒适性、艺术性,并实现环保节能的居住环境。智能家居通过物联网技术将家中的各种设备(如音视频设备、照明系统、窗帘控制、空调控制、安防系统、数字影院系统、影音服务器、影柜系统、网络家电等)连接到一起,提供家电控制、照明控制、电话远程控制、室内外遥控、防盗报警、环境监测、暖通控制、红外转发以及可编程定时控制等多种功能和手段。With the continuous advancement of technology, smart homes have gradually come into people's field of vision. Smart home (smart home, home automation) is based on a residential platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate facilities related to home life to build efficient residential facilities and The management system of family schedule affairs improves home safety, convenience, comfort, and artistry, and realizes an environmentally friendly and energy-saving living environment. Smart homes connect various devices in the home (such as audio and video equipment, lighting systems, curtain control, air conditioning control, security systems, digital cinema systems, audio and video servers, video cabinet systems, network appliances, etc.) through the Internet of Things technology to provide Home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control and other functions and methods.
目前,智能家居可以通过在家中的各种设备上设置智能家居控制面板,以实现对多种设备的联合控制。在不同设备上,智能家居控制面板的运行场景不同,对不同环境下的智能家居控制面板进行测试也变得愈发困难。At present, smart homes can realize joint control of multiple devices by setting smart home control panels on various devices in the home. On different devices, the operating scenarios of the smart home control panel are different, and it becomes more and more difficult to test the smart home control panel in different environments.
发明内容Summary of the invention
本申请的目的之一包括提供一种测试方法、装置、电子设备及计算机可读存储介质,以通过模拟触点信号对多种智能家居运行场景进行测试,无须各种实际运行场景的硬件支持,提高测试效率。One of the objectives of this application includes providing a test method, device, electronic equipment, and computer-readable storage medium to test a variety of smart home operation scenarios by simulating contact signals without requiring hardware support for various actual operation scenarios. Improve test efficiency.
为了实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the foregoing objectives, the technical solutions adopted in the embodiments of the present application are as follows:
第一方面,本申请实施例提供了一种测试方法,应用于智能家居控制面板,所述智能家居控制面板包括多个连接触点,所述方法包括:In the first aspect, an embodiment of the present application provides a test method, which is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts, and the method includes:
当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;其中,所述模拟触点信号配置成模拟所述智能家居控制面板的连接触点接收到的信号;When a test request is detected, the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; wherein the analog contact signal is configured to simulate the connection contact of the smart home control panel Point the received signal;
将所述智能家居控制面板的运行场景设置为所述测试场景;Setting the operation scene of the smart home control panel as the test scene;
获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试,其中,所述第一测试指令包括一条测试指令或多条测试指令集。Acquire a first test instruction corresponding to the test scenario, and test the smart home control panel in the test scenario according to the first test instruction, wherein the first test instruction includes a test instruction Or multiple test instruction sets.
在一种可能的实施方式中,所述当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景的步骤,包括:In a possible implementation manner, when a test request is detected, the step of determining a test scenario corresponding to the test request according to the analog contact signal carried in the test request includes:
当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点;When the test request is detected, determine the target connection contact corresponding to the analog contact signal;
根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。According to the mapping relationship between the connection contact point and the running scene, and the target connection contact point corresponding to the analog contact signal, the test scene is filtered out from the running scene.
在一种可能的实施方式中,所述当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点的步骤包括:In a possible implementation manner, when the test request is detected, the step of determining the target connection contact corresponding to the analog contact signal includes:
当检测到所述测试请求时,根据所述测试请求中模拟触点信号的类型与所述智能居家控制面板上每个连接触点对应的触点信号的类型进行比对,将信号类型一致的连接触点作为目标连接触点。When the test request is detected, the type of the analog contact signal in the test request is compared with the type of the contact signal corresponding to each connection contact on the smart home control panel, and the signal type is consistent The connection contact serves as the target connection contact.
在一种可能的实施方式中,所述获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试的步骤,包括:In a possible implementation manner, the step of acquiring a first test instruction corresponding to the test scenario, and testing the smart home control panel in the test scenario according to the first test instruction ,include:
获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;Acquiring the first test instruction corresponding to the test scenario, and controlling the smart home control panel to execute the first test instruction;
根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。According to the execution result of the first test instruction, the test result of the smart home control panel is determined.
在一种可能的实施方式中,根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果的步骤包括:In a possible implementation manner, the step of determining the test result of the smart home control panel according to the execution result of the first test instruction includes:
若所述智能家居控制面板执行所述第一测试指令全部的测试指令的运行情况均正常,则确定所测试结果正常。If the smart home control panel executes the first test instruction and all the test instructions are operating normally, it is determined that the test result is normal.
在一种可能的实施方式中,根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果的步骤还包括:In a possible implementation manner, the step of determining the test result of the smart home control panel according to the execution result of the first test instruction further includes:
若所述智能家居控制面板执行所述第一测试指令中任意一条测试指令的运行情况异常,则确定所述测试结果异常。If the operation of any one of the first test instructions executed by the smart home control panel is abnormal, it is determined that the test result is abnormal.
在一种可能的实施方式中,所述方法还包括:记录执行所述第一测试指令的运行情况。In a possible implementation manner, the method further includes: recording the running status of the execution of the first test instruction.
在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method further includes:
当所述测试结果为异常时,根据所述第一测试指令的执行结果,对所述智能家居控制面板进行参数调整。When the test result is abnormal, the parameters of the smart home control panel are adjusted according to the execution result of the first test instruction.
在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method further includes:
获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire a second test instruction corresponding to a running scenario other than the test scenario, and perform a test on the smart home control panel in the test scenario according to the second test instruction.
第二方面,本申请实施例还提供了一种测试装置,应用于智能家居控制面板,所述智能家居控制面板包括多个连接触点;所述装置包括:In a second aspect, an embodiment of the present application also provides a test device, which is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts; the device includes:
确定模块,配置成当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;The determining module is configured to, when a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
场景切换模块,配置成将所述智能家居控制面板的运行场景设置为所述测试场景;A scene switching module configured to set the operation scene of the smart home control panel as the test scene;
测试模块,配置成获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。The test module is configured to obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
在一种可能的实施方式中,所述确定模块配置成:In a possible implementation manner, the determining module is configured to:
当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点;When the test request is detected, determine the target connection contact corresponding to the analog contact signal;
根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。According to the mapping relationship between the connection contact point and the running scene, and the target connection contact point corresponding to the analog contact signal, the test scene is filtered out from the running scene.
在一种可能的实施方式中,所述测试模块配置成:In a possible implementation manner, the test module is configured as:
获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;Acquiring the first test instruction corresponding to the test scenario, and controlling the smart home control panel to execute the first test instruction;
根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。According to the execution result of the first test instruction, the test result of the smart home control panel is determined.
在一种可能的实施方式中,所述装置还包括:In a possible implementation manner, the device further includes:
参数调整模块,配置成当所述测试结果为异常时,根据所述第一测试指令的执行结果,对所述智能家居控制面板进行参数调整。The parameter adjustment module is configured to adjust the parameters of the smart home control panel according to the execution result of the first test instruction when the test result is abnormal.
在一种可能的实施方式中,所述测试模块还配置成:In a possible implementation manner, the test module is further configured to:
获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire a second test instruction corresponding to a running scenario other than the test scenario, and perform a test on the smart home control panel in the test scenario according to the second test instruction.
第三方面,本申请实施例还提供一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行:In a third aspect, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processing The device communicates with the memory through a bus, and the machine-readable instructions are executed when executed by the processor:
当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;When a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
将所述智能家居控制面板的运行场景设置为所述测试场景;Setting the operation scene of the smart home control panel as the test scene;
获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire the first test instruction corresponding to the test scenario, and test the smart home control panel in the test scenario according to the first test instruction.
在一种可能的实施方式中,所述处理器还配置成执行:In a possible implementation manner, the processor is further configured to execute:
当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点;When the test request is detected, determine the target connection contact corresponding to the analog contact signal;
根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。According to the mapping relationship between the connection contact point and the running scene, and the target connection contact point corresponding to the analog contact signal, the test scene is filtered out from the running scene.
在一种可能的实施方式中,所述处理器还配置成执行:In a possible implementation manner, the processor is further configured to execute:
获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;Acquiring the first test instruction corresponding to the test scenario, and controlling the smart home control panel to execute the first test instruction;
根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。According to the execution result of the first test instruction, the test result of the smart home control panel is determined.
在一种可能的实施方式中,所述处理器还配置成执行:In a possible implementation manner, the processor is further configured to execute:
当所述测试结果为异常时,根据所述第一测试指令的执行结果,对所述智能家居控制面板进行参数调整。When the test result is abnormal, the parameters of the smart home control panel are adjusted according to the execution result of the first test instruction.
在一种可能的实施方式中,所述处理器还配置成执行:In a possible implementation manner, the processor is further configured to execute:
获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire a second test instruction corresponding to a running scenario other than the test scenario, and perform a test on the smart home control panel in the test scenario according to the second test instruction.
第四方面,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述的测试方法的步骤。In a fourth aspect, the embodiments of the present application also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps of the above-mentioned testing method when the computer program is run by a processor.
本申请实施例提供的测试方法、装置、电子设备及计算机可读存储介质,当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;然后,将所述智能家居控制面板的运行场景设置为所述测试场景;最后,获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。本申请能够根据检测到的模拟触点信号确定测试场景,进而实现通过模拟触点信号模拟多个测试场景,不需要分别为每个测试场景提供硬件环境的支持,测试效率较高。In the test method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present application, when a test request is detected, the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; Then, the operation scene of the smart home control panel is set to the test scene; finally, the first test instruction corresponding to the test scene is obtained, and the first test instruction is performed according to the first test instruction to the test scene. The smart home control panel is tested. The present application can determine the test scenario according to the detected analog contact signal, thereby realizing the simulation of multiple test scenarios through the analog contact signal, without separately providing hardware environment support for each test scenario, and the test efficiency is high.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举可选实施例,并配合所附附图,作详细说明如下。In order to make the above objectives, features, and advantages of the present application more comprehensible, optional embodiments accompanied with accompanying drawings are described in detail below.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实现方式,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the embodiments of the present application. It should be understood that the following drawings only show some implementations of the present application. Therefore, It should not be regarded as a limitation of the scope. For those of ordinary skill in the art, other relevant drawings can be obtained from these drawings without creative work.
图1示出了本申请实施例所提供的一种测试方法的流程图;Fig. 1 shows a flow chart of a test method provided by an embodiment of the present application;
图2示出了本申请实施例所提供的另一种测试方法的流程图;Figure 2 shows a flowchart of another testing method provided by an embodiment of the present application;
图3示出了本申请实施例所提供的一种测试装置的结构示意图;Figure 3 shows a schematic structural diagram of a testing device provided by an embodiment of the present application;
图4示出了本申请实施例所提供的另一种测试装置的结构示意图;FIG. 4 shows a schematic structural diagram of another test device provided by an embodiment of the present application;
图5示出了本申请实施例所提供的一种电子设备的结构示意图。Fig. 5 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的本实施例中介绍的各个实现方式仅仅是本申请一部分可能的实现方式,而不是全部的实现方式。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的可选实施方式。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的每个其他实现方式,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiment The various implementation manners introduced in this application are only part of the possible implementation manners of this application, rather than all of the implementation manners. The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents alternative implementations of the application. Based on the embodiments of the present application, every other implementation method obtained by those skilled in the art without creative work falls within the protection scope of the present application.
首先,对本申请可适用的应用场景进行介绍。本申请可应用于智能家居控制面板。智能家居控制面板可以是设置于多个智能家居设备上的控制终端,智能家居控制面板通过多个连接触点与智能家居设备连接,与不同类型的智能家居设备连接需要的连接触点不同。设置在不同种类智能家居设备上的智能家居控制面板的运行场景不同。具体的,智能家居设备可以包括冰箱、台灯、衣柜、床头柜、洗衣机、油烟机等;运行场景可以包括冰箱场景、台灯场景、衣柜场景、床头柜场景、洗衣机场景、油烟机场景等。多个连接触点可以对应多种通信接口,具有不同的通信模式。First, introduce the applicable application scenarios of this application. This application can be applied to smart home control panels. The smart home control panel may be a control terminal set on multiple smart home devices. The smart home control panel is connected to the smart home device through a plurality of connection contacts, which is different from the connection contacts required for the connection of different types of smart home devices. The operation scenarios of the smart home control panels set on different types of smart home devices are different. Specifically, smart home devices may include refrigerators, desk lamps, wardrobes, bedside tables, washing machines, range hoods, etc.; operating scenes may include refrigerator scenes, desk lamp scenes, wardrobe scenes, bedside table scenes, washing machine scenes, and range hood scenes. Multiple connection contacts can correspond to multiple communication interfaces and have different communication modes.
经研究发现,在对智能家居控制面板进行测试时,需要将其接入到多个不同的运行场景中,得到多个运行场景的硬件支持,才能进行多种运行场景的测试,操作复杂繁琐,效率较低。After research, it is found that when testing the smart home control panel, it needs to be connected to multiple different operating scenarios, and the hardware support of multiple operating scenarios can be obtained to test multiple operating scenarios. The operation is complicated and cumbersome. The efficiency is low.
基于对上述问题的发现,本申请实施例提供了一种测试方法,以减少针对多个运行场景进行测试时的操作量,提高测试效率。Based on the findings of the foregoing problems, the embodiments of the present application provide a testing method to reduce the amount of operations when testing multiple operating scenarios and improve testing efficiency.
请参阅图1,图1为本申请实施例所提供的一种测试方法的流程图。所如图1中所示,本申请实施例提供的测试方法,应用于智能家居控制面板,所述智能家居控制面板包括多个连接触点,所述方法包括:Please refer to FIG. 1. FIG. 1 is a flowchart of a testing method provided by an embodiment of the application. As shown in FIG. 1, the test method provided by the embodiment of the present application is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts, and the method includes:
S101、当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景。S101: When a test request is detected, determine a test scenario corresponding to the test request according to the analog contact signal carried in the test request.
该步骤中,测试请求可以由服务器生成并发送给智能家居控制面板,也可以由智能家居控制面板通过测试软件生成。测试请求中携带有模拟触点信号,该模拟触点信号配置成 模拟智能家居控制面板的连接触点接收到的信号。智能家居控制面板在检测到测试请求后,可以根据模拟触点信号,模拟智能家居控制面板接入智能家居设备,不同类型的智能家居设备接入智能家居控制面板所连接的连接触点不同,其对应的触点信号也不同,因此,可以根据模拟触点信号的类型,确定该模拟信号对应的测试场景。In this step, the test request can be generated by the server and sent to the smart home control panel, or can be generated by the smart home control panel through test software. The test request carries an analog contact signal, and the analog contact signal is configured to simulate the signal received by the connection contact of the smart home control panel. After the smart home control panel detects the test request, it can simulate the smart home control panel to connect to the smart home device according to the analog contact signal. Different types of smart home devices connect to the smart home control panel with different connection contacts. The corresponding contact signals are also different. Therefore, the test scenario corresponding to the analog signal can be determined according to the type of the analog contact signal.
由于该模拟触点信号是由服务器或智能家居控制面板上的测试软件模拟而成的,因此,不需要将智能家居控制面板连接到要测试的运行环境对应的实际的设备上,即可进行针对该运行环境进行测试。Since the analog contact signal is simulated by the test software on the server or the smart home control panel, there is no need to connect the smart home control panel to the actual device corresponding to the operating environment to be tested, and then the target can be targeted. The operating environment is tested.
S102、将所述智能家居控制面板的运行场景设置为所述测试场景。S102. Set the operating scene of the smart home control panel as the test scene.
该步骤中,智能家居控制面板在确定了测试请求对应的测试场景之后,可以将自身的运行场景设置为该测试场景,比如,若测试场景为冰箱场景,智能家居控制面板则可以将运行场景切换至冰箱场景,并提供在冰箱场景下的功能,例如,对冰箱的制冷温度进行控制或对冰箱的灯光进行控制等功能。In this step, after the smart home control panel determines the test scene corresponding to the test request, it can set its own running scene to the test scene. For example, if the test scene is a refrigerator scene, the smart home control panel can switch the running scene To the refrigerator scene, and provide functions in the refrigerator scene, for example, control the cooling temperature of the refrigerator or control the lighting of the refrigerator.
S103、获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。S103. Obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
该步骤中,在智能居家控制面板成功将运行场景设置为测试场景后,智能居家控制面板可以向服务器请求测试场景对应的第一测试指令,该第一测试指令配置成控制智能家居控制面板实现在测试场景下的功能,或者通过智能居家控制面板上的测试软件下发第一测试指令,第一测试指令可以包括一条测试指令,也可以包括多条测试指令集。在获取第一测试指令之前,可以先根据智能居家控制面板的运行状态信息,确定智能居家控制面板是否将运行场景成功切换为测试场景,并在成功切换后,再获取第一测试指令。In this step, after the smart home control panel successfully sets the running scene as the test scenario, the smart home control panel can request the server for the first test instruction corresponding to the test scenario, and the first test instruction is configured to control the smart home control panel to be implemented in Test the functions in the scenario, or issue the first test instruction through the test software on the smart home control panel. The first test instruction may include one test instruction or multiple test instruction sets. Before acquiring the first test instruction, it can be determined whether the smart home control panel successfully switches the running scene to the test scene according to the operating status information of the smart home control panel, and after the successful switching, the first test instruction can be acquired.
示例性的,测试指令可以为“调节台灯的灯光亮度”、“调节冰箱的制冷温度”、“播放指定音乐”等。Exemplarily, the test instruction may be "adjust the light brightness of the desk lamp", "adjust the refrigeration temperature of the refrigerator", "play designated music", and so on.
在获取第一测试指令之后,智能居家控制面板可以执行获取的第一测试指令,并将执行结果记录下来。智能居家控制面板可以通过测试软件遍历第一测试指令对应的运行记录,并根据第一测试指令的执行结果确定智能居家控制面板在测试环境下是否能够正常运行。After acquiring the first test instruction, the smart home control panel can execute the acquired first test instruction and record the execution result. The smart home control panel can traverse the running record corresponding to the first test instruction through the test software, and determine whether the smart home control panel can operate normally in the test environment according to the execution result of the first test instruction.
本申请实施例提供的测试方法及装置,当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;然后将所述智能家居控制面板的运行场景设置为所述测试场景;获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试,本申请能够根据检测到的模拟触点信号确定测试场景,进而实现通过模拟触点信号模拟多个测试场景,不需要分别为每个测试场景提供硬件环境的支持,能够提高测试效率。In the test method and device provided by the embodiments of the present application, when a test request is detected, the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; then the smart home control panel The running scenario is set to the test scenario; the first test instruction corresponding to the test scenario is acquired, and the smart home control panel in the test scenario is tested according to the first test instruction. This application can The test scenario is determined according to the detected analog contact signal, and then multiple test scenarios can be simulated through the analog contact signal. There is no need to provide hardware environment support for each test scenario separately, which can improve the test efficiency.
请参阅图2,图2为本申请实施例提供的另一种测试方法的流程图。可选地,如图2 中所示,本申请实施例提供的测试方法,包括:Please refer to FIG. 2. FIG. 2 is a flowchart of another test method provided by an embodiment of the application. Optionally, as shown in FIG. 2, the test method provided in the embodiment of the present application includes:
S201、当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点。S201: When the test request is detected, determine the target connection contact corresponding to the analog contact signal.
该步骤中,智能居家控制面板可以对比模拟触点信号的类型,以及智能居家控制面板上每个连接触点对应的触点信号的类型,将类型一致的连接触点作为目标连接触点。In this step, the smart home control panel can compare the type of analog contact signal and the type of contact signal corresponding to each connection contact on the smart home control panel, and use the connection contacts of the same type as the target connection contact.
S202、根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。S202: According to the mapping relationship between the connection contact point and the operation scenario, and the target connection contact point corresponding to the analog contact signal, the test scenario is selected from the operation scenario.
该步骤中,由于不同类型的设备与智能家居控制面板连接时需要通过不同的连接触点,而运行场景与连接的设备是相关的,因此,连接触点与运行场景之间也存在映射关系。可以按照连接触点与运行场景之间的关系,确定目标连接触点对应的运行场景,并将确定得到的运行场景确定为测试场景。In this step, since different types of devices need to be connected to the smart home control panel through different connection contacts, and the running scene is related to the connected device, there is also a mapping relationship between the connecting contact and the running scene. According to the relationship between the connection contact and the operation scenario, the operation scenario corresponding to the target connection contact can be determined, and the determined operation scenario can be determined as the test scenario.
S203、将所述智能家居控制面板的运行场景设置为所述测试场景。S203: Set the operation scene of the smart home control panel as the test scene.
S204、获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。S204. Obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
其中,S203至S204的描述可以参照S102至S103的描述,并且S203至S204能达到与S102至S103相同或相似的技术效果,本申请实施例对此不做赘述。Among them, the description of S203 to S204 can refer to the description of S102 to S103, and S203 to S204 can achieve the same or similar technical effects as S102 to S103, which will not be repeated in the embodiment of the present application.
在一种可能的实施方式中,所述获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试的步骤,包括:In a possible implementation manner, the step of acquiring a first test instruction corresponding to the test scenario, and testing the smart home control panel in the test scenario according to the first test instruction ,include:
获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;Acquiring the first test instruction corresponding to the test scenario, and controlling the smart home control panel to execute the first test instruction;
根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。According to the execution result of the first test instruction, the test result of the smart home control panel is determined.
可选地,该步骤中,在获取第一测试指令后,智能家居控制面板可以执行该第一测试指令,并记录执行第一测试指令时智能居家控制面板的运行情况,根据运行情况确定第一测试指令的执行结果。Optionally, in this step, after acquiring the first test instruction, the smart home control panel may execute the first test instruction, and record the operation status of the smart home control panel when the first test instruction is executed, and determine the first test instruction according to the operation status. The execution result of the test instruction.
可选地,若智能居家控制面板在执行第一测试指令的全部测试指令时的运行情况正常,则可以确定执行结果为正常。当执行结果为正常时,则可以确定测试结果为正常。若智能居家控制面板在执行第一测试指令中任意一条测试指令时的运行情况出现异常,如报错等情况,则可以确定执行结果为异常,并确定测试结果异常。Optionally, if the operation of the smart home control panel is normal when executing all the test instructions of the first test instruction, it can be determined that the execution result is normal. When the execution result is normal, it can be determined that the test result is normal. If the operation of the smart home control panel during execution of any one of the first test instructions is abnormal, such as an error, it can be determined that the execution result is abnormal and the test result is abnormal.
可选地,在一些可能的实施方式中,所述方法还包括:Optionally, in some possible implementation manners, the method further includes:
当所述测试结果为异常时,根据所述第一测试指令的执行结果,对所述智能家居控制面板进行参数调整。When the test result is abnormal, the parameters of the smart home control panel are adjusted according to the execution result of the first test instruction.
该步骤中,在确定测试结果为异常时,可以对第一测试指令的执行结果进行分析,确定发生异常的原因,并根据发生异常的原因,对智能家居控制面板的参数进行调整,修复 出现的异常情况。In this step, when it is determined that the test result is abnormal, the execution result of the first test instruction can be analyzed to determine the reason for the abnormality, and according to the reason for the abnormality, the parameters of the smart home control panel can be adjusted to repair the abnormality. abnormal situation.
可选地,在一些可能的实施方式中,所述方法还包括:Optionally, in some possible implementation manners, the method further includes:
获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire a second test instruction corresponding to a running scenario other than the test scenario, and perform a test on the smart home control panel in the test scenario according to the second test instruction.
该步骤中,还可以利用其它运行场景的第二测试指令,对智能家居控制面板再次进行测试,其中,测试场景之外的运行场景是指与测试场景不同的运行场景,比如,若测试场景为冰箱场景,则其他运行场景可以是油烟机场景、台灯场景等。针对测试场景之外的运行场景进行测试,可以根据测试结果确定智能家居控制面板是否正确的将运行场景切换为测试场景。In this step, the smart home control panel can also be tested again using the second test instruction of other running scenarios. The running scenarios outside the test scenarios refer to the running scenarios different from the test scenarios. For example, if the test scenario is Refrigerator scene, other operating scenes can be range hood scene, desk lamp scene, etc. Perform tests on operating scenarios other than the test scenario, and you can determine whether the smart home control panel is correct to switch the operating scenario to the test scenario according to the test results.
请参阅图3、图4,图3为本申请实施例所提供的一种测试装置的结构示意图,图4为本申请实施例所提供的另一种测装置的结构示意图。如图3中所示,所述测试装置300包括:Please refer to FIG. 3 and FIG. 4. FIG. 3 is a schematic structural diagram of a testing device provided by an embodiment of the application, and FIG. 4 is a schematic structural diagram of another testing device provided by an embodiment of the application. As shown in FIG. 3, the testing device 300 includes:
确定模块310,配置成当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;The determining module 310 is configured to, when a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
场景切换模块320,配置成将所述智能家居控制面板的运行场景设置为所述测试场景;The scene switching module 320 is configured to set the operation scene of the smart home control panel as the test scene;
测试模块330,配置成获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。The test module 330 is configured to obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
可选地,在一种的可能的实施方式中,所述确定模块310配置成:Optionally, in a possible implementation manner, the determining module 310 is configured to:
当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点;When the test request is detected, determine the target connection contact corresponding to the analog contact signal;
根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。According to the mapping relationship between the connection contact point and the running scene, and the target connection contact point corresponding to the analog contact signal, the test scene is filtered out from the running scene.
可选地,在一种可能的实施方式中,所述测试模块330配置成:Optionally, in a possible implementation manner, the test module 330 is configured to:
获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;Acquiring the first test instruction corresponding to the test scenario, and controlling the smart home control panel to execute the first test instruction;
根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。According to the execution result of the first test instruction, the test result of the smart home control panel is determined.
可选地,在一些可能的实施方式中,如图4所示,所述测试装置400包括:Optionally, in some possible implementation manners, as shown in FIG. 4, the testing device 400 includes:
确定模块410,配置成当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景。The determining module 410 is configured to, when a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request.
场景切换模块420,配置成将所述智能家居控制面板的运行场景设置为所述测试场景。The scene switching module 420 is configured to set the operation scene of the smart home control panel as the test scene.
测试模块430,配置成获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。The test module 430 is configured to obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
参数调整模块440,配置成当所述测试结果为异常时,根据所述第一测试指令的执行结 果,对所述智能家居控制面板进行参数调整。The parameter adjustment module 440 is configured to adjust the parameters of the smart home control panel according to the execution result of the first test instruction when the test result is abnormal.
可选地,在一些可能的实施方式中,所述测试模块430配置成:获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Optionally, in some possible implementation manners, the test module 430 is configured to: obtain a second test instruction corresponding to a running scene other than the test The smart home control panel in the test scenario is tested.
本申请实施例提供的测试装置,首先,当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;然后,将所述智能家居控制面板的运行场景设置为所述测试场景;最后,获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。本申请能够根据检测到的模拟触点信号确定测试场景,进而实现通过模拟触点信号模拟多个测试场景,不需要分别为每个测试场景提供硬件环境的支持,能够提高测试效率。In the test device provided by the embodiment of the present application, first, when a test request is detected, the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; then, the smart home control panel The running scenario of is set to the test scenario; finally, the first test instruction corresponding to the test scenario is acquired, and the smart home control panel in the test scenario is tested according to the first test instruction. The present application can determine the test scenario according to the detected analog contact signal, and then realize the simulation of multiple test scenarios through the analog contact signal, without providing hardware environment support for each test scenario separately, and can improve the test efficiency.
请参阅图5,图5为本申请实施例所提供的一种电子设备的结构示意图。如图5中所示,所述电子设备500包括处理器510、存储器520和总线530。Please refer to FIG. 5, which is a schematic structural diagram of an electronic device provided by an embodiment of the application. As shown in FIG. 5, the electronic device 500 includes a processor 510, a memory 520, and a bus 530.
所述存储器520存储有所述处理器510可执行的机器可读指令,当电子设备500运行时,所述处理器510与所述存储器520之间通过总线530通信,所述机器可读指令被所述处理器510执行时,可以执行:The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 through a bus 530, and the machine-readable instructions are When the processor 510 executes, it may execute:
当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;When a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
将所述智能家居控制面板的运行场景设置为所述测试场景;Setting the operation scene of the smart home control panel as the test scene;
获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire the first test instruction corresponding to the test scenario, and test the smart home control panel in the test scenario according to the first test instruction.
可选地,在一种可能的实施方式中,所述处理器510还配置成执行:Optionally, in a possible implementation manner, the processor 510 is further configured to execute:
当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点;When the test request is detected, determine the target connection contact corresponding to the analog contact signal;
根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。According to the mapping relationship between the connection contact point and the running scene, and the target connection contact point corresponding to the analog contact signal, the test scene is filtered out from the running scene.
可选地,在一些可能的实施方式中,所述处理器510还配置成执行:Optionally, in some possible implementation manners, the processor 510 is further configured to execute:
获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。Acquire the first test instruction corresponding to the test scenario, and control the smart home control panel to execute the first test instruction; determine the test result of the smart home control panel according to the execution result of the first test instruction .
可选地,在一些可能的实施方式中,所述处理器510还配置成执行:当所述测试结果为异常时,根据所述第一测试指令的执行结果,对所述智能家居控制面板进行参数调整。Optionally, in some possible implementation manners, the processor 510 is further configured to execute: when the test result is abnormal, perform the operation on the smart home control panel according to the execution result of the first test instruction Parameter adjustment.
可选地,在一种可能的实施方式中,所述处理器510还配置成执行:Optionally, in a possible implementation manner, the processor 510 is further configured to execute:
获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire a second test instruction corresponding to a running scenario other than the test scenario, and perform a test on the smart home control panel in the test scenario according to the second test instruction.
可选地,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时可以执行如上述图1以及图2所示的测试方法的步骤,具体实现方式可参见本申请实施例前述内容,在此不再赘述。Optionally, the embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program can execute the above-mentioned FIG. 1 and FIG. 2 when the computer program is run by the processor. For the steps of the test method, the specific implementation manner can refer to the foregoing content of the embodiment of the present application, and will not be repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考本实施例前述内容中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing content of this embodiment, which will not be repeated here.
在本申请所提供的几种可能的实现方式中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置的实现方式例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性连接,机械连接或其它的形式。Among the several possible implementation manners provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other manners. The implementation of the device described above is merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other divisions. For example, multiple units or components may be It can be combined or integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections between devices or units through some communication interfaces, and may be electrical connections, mechanical connections, or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
另外,在本申请各个可能的实现方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each possible implementation manner of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实现方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in each implementation manner of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
最后应说明的是:以上所述实现方式,仅为本申请的具体实现方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实现方式对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实现方式所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。Finally, it should be noted that the above implementations are only specific implementations of this application, used to illustrate the technical solutions of this application, not to limit it. The scope of protection of this application is not limited to this, although referring to the foregoing The implementation mode describes the application in detail, and those of ordinary skill in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the foregoing implementation modes within the technical scope disclosed in this application. Or it can be easily conceived of changes, or equivalent replacements of some of the technical features; and these modifications, changes or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should be covered in this application Within the scope of protection. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
工业实用性Industrial applicability
本申请实施例提供了一种测试方法、装置、电子设备及计算机可读存储介质,当检测到测试请求时,根据测试请求中携带的模拟触点信号,确定测试请求对应的测试场景;然后,将智能家居控制面板的运行场景设置为测试场景;最后,获取测试场景对应的第一测试指令,并按照第一测试指令,对在测试场景下的智能家居控制面板进行测试。本申请能够根据检测到的模拟触点信号确定测试场景,进而实现通过模拟触点信号模拟多个测试场景,不需要分别为每个测试场景提供硬件环境的支持,能够提高测试效率。The embodiments of the present application provide a test method, device, electronic equipment, and computer-readable storage medium. When a test request is detected, the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; then, The operation scene of the smart home control panel is set as the test scene; finally, the first test instruction corresponding to the test scene is obtained, and the smart home control panel in the test scene is tested according to the first test instruction. The present application can determine the test scenario according to the detected analog contact signal, and then realize the simulation of multiple test scenarios through the analog contact signal, without providing hardware environment support for each test scenario separately, and can improve the test efficiency.

Claims (16)

  1. 一种测试方法,其特征在于,应用于智能家居控制面板,所述智能家居控制面板包括多个连接触点,所述方法包括:A test method, characterized in that it is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts, and the method includes:
    当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;其中,所述模拟触点信号配置成模拟所述智能家居控制面板的连接触点接收到的信号;When a test request is detected, the test scenario corresponding to the test request is determined according to the analog contact signal carried in the test request; wherein the analog contact signal is configured to simulate the connection contact of the smart home control panel Point the received signal;
    将所述智能家居控制面板的运行场景设置为所述测试场景;Setting the operation scene of the smart home control panel as the test scene;
    获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试,其中,所述第一测试指令包括一条测试指令或多条测试指令集。Acquire a first test instruction corresponding to the test scenario, and test the smart home control panel in the test scenario according to the first test instruction, wherein the first test instruction includes a test instruction Or multiple test instruction sets.
  2. 根据权利要求1所述的方法,其特征在于,所述当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景的步骤,包括:The method according to claim 1, wherein when a test request is detected, the step of determining a test scenario corresponding to the test request according to an analog contact signal carried in the test request comprises:
    当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点;When the test request is detected, determine the target connection contact corresponding to the analog contact signal;
    根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。According to the mapping relationship between the connection contact point and the running scene, and the target connection contact point corresponding to the analog contact signal, the test scene is filtered out from the running scene.
  3. 根据权利要求2所述的方法,其特征在于,所述当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点的步骤包括:The method according to claim 2, wherein when the test request is detected, the step of determining the target connection contact corresponding to the analog contact signal comprises:
    当检测到所述测试请求时,根据所述测试请求中模拟触点信号的类型与所述智能居家控制面板上每个连接触点对应的触点信号的类型进行比对,将信号类型一致的连接触点作为目标连接触点。When the test request is detected, the type of the analog contact signal in the test request is compared with the type of the contact signal corresponding to each connection contact on the smart home control panel, and the signal type is consistent The connection contact serves as the target connection contact.
  4. 根据权利要求1~3任一所述的方法,其特征在于,所述获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试的步骤,包括:The method according to any one of claims 1 to 3, wherein the acquiring a first test instruction corresponding to the test scenario, and according to the first test instruction, the The steps for testing the smart home control panel include:
    获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;Acquiring the first test instruction corresponding to the test scenario, and controlling the smart home control panel to execute the first test instruction;
    根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。According to the execution result of the first test instruction, the test result of the smart home control panel is determined.
  5. 根据权利要求4所述的方法,其特征在于,根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果的步骤包括:The method according to claim 4, wherein the step of determining the test result of the smart home control panel according to the execution result of the first test instruction comprises:
    若所述智能家居控制面板执行所述第一测试指令全部的测试指令的运行情况均正常,则确定所测试结果正常。If the smart home control panel executes the first test instruction and all the test instructions are operating normally, it is determined that the test result is normal.
  6. 根据权利要求4所述的方法,其特征在于,根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果的步骤还包括:The method according to claim 4, wherein the step of determining the test result of the smart home control panel according to the execution result of the first test instruction further comprises:
    若所述智能家居控制面板执行所述第一测试指令中任意一条测试指令的运行情况异常,则确定所述测试结果异常。If the operation of any one of the first test instructions executed by the smart home control panel is abnormal, it is determined that the test result is abnormal.
  7. 根据权利要求5或6所述的方法,其特征在于,所述方法还包括:The method according to claim 5 or 6, wherein the method further comprises:
    记录执行所述第一测试指令的运行情况。Record the running status of the execution of the first test instruction.
  8. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    当所述测试结果为异常时,根据所述第一测试指令的执行结果,对所述智能家居控制面板进行参数调整。When the test result is abnormal, the parameters of the smart home control panel are adjusted according to the execution result of the first test instruction.
  9. 根据权利要求1~8任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises:
    获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。Acquire a second test instruction corresponding to a running scenario other than the test scenario, and perform a test on the smart home control panel in the test scenario according to the second test instruction.
  10. 一种测试装置,其特征在于,应用于智能家居控制面板,所述智能家居控制面板包括多个连接触点;所述测试装置包括:A test device, characterized in that it is applied to a smart home control panel, the smart home control panel includes a plurality of connection contacts; the test device includes:
    确定模块,配置成当检测到测试请求时,根据所述测试请求中携带的模拟触点信号,确定所述测试请求对应的测试场景;The determining module is configured to, when a test request is detected, determine the test scenario corresponding to the test request according to the analog contact signal carried in the test request;
    场景切换模块,配置成将所述智能家居控制面板的运行场景设置为所述测试场景;A scene switching module configured to set the operation scene of the smart home control panel as the test scene;
    测试模块,配置成获取所述测试场景对应的第一测试指令,并按照所述第一测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。The test module is configured to obtain a first test instruction corresponding to the test scenario, and perform a test on the smart home control panel in the test scenario according to the first test instruction.
  11. 根据权利要求10所述的装置,其特征在于,所述确定模块配置成:The device according to claim 10, wherein the determining module is configured to:
    当检测到所述测试请求时,确定所述模拟触点信号对应的目标连接触点;When the test request is detected, determine the target connection contact corresponding to the analog contact signal;
    根据所述连接触点与所述运行场景之间的映射关系,以及所述模拟触点信号对应的目标连接触点,从所述运行场景中筛选出所述测试场景。According to the mapping relationship between the connection contact point and the running scene, and the target connection contact point corresponding to the analog contact signal, the test scene is filtered out from the running scene.
  12. 根据权利要求10所述的装置,其特征在于,所述测试模块配置成:The device according to claim 10, wherein the test module is configured to:
    获取所述测试场景对应的第一测试指令,并控制所述智能家居控制面板执行所述第一测试指令;Acquiring the first test instruction corresponding to the test scenario, and controlling the smart home control panel to execute the first test instruction;
    根据所述第一测试指令的执行结果,确定对所述智能家居控制面板的测试结果。According to the execution result of the first test instruction, the test result of the smart home control panel is determined.
  13. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    参数调整模块,配置成当所述测试结果为异常时,根据所述第一测试指令的执行结果,对所述智能家居控制面板进行参数调整。The parameter adjustment module is configured to adjust the parameters of the smart home control panel according to the execution result of the first test instruction when the test result is abnormal.
  14. 根据权利要求10~13任意一项所述的装置,其特征在于,所述测试模块还配置成:获取所述测试场景之外的运行场景对应的第二测试指令,并按照所述第二测试指令,对在所述测试场景下的所述智能家居控制面板进行测试。The device according to any one of claims 10 to 13, wherein the test module is further configured to: obtain a second test instruction corresponding to a running scenario other than the test scenario, and follow the second test Instructions to test the smart home control panel in the test scenario.
  15. 一种电子设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1至9任一所述的测试方法的步骤。An electronic device, characterized by comprising: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory are Through the bus communication, when the machine-readable instructions are executed by the processor, the steps of the testing method according to any one of claims 1 to 9 are executed.
  16. 一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至9任一所述的测试方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the test method according to any one of claims 1 to 9 when the computer program is run by a processor.
PCT/CN2020/125539 2020-04-02 2020-10-30 Test method and apparatus, electronic device, and computer-readable storage medium WO2021196585A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010256676.2 2020-04-02
CN202010256676.2A CN111475413B (en) 2020-04-02 2020-04-02 Test method and device

Publications (1)

Publication Number Publication Date
WO2021196585A1 true WO2021196585A1 (en) 2021-10-07

Family

ID=71750485

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/125539 WO2021196585A1 (en) 2020-04-02 2020-10-30 Test method and apparatus, electronic device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN111475413B (en)
WO (1) WO2021196585A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475413B (en) * 2020-04-02 2024-03-15 深圳创维-Rgb电子有限公司 Test method and device
CN112148623A (en) * 2020-10-19 2020-12-29 青岛鹏海软件有限公司 LIMS-based intelligent complete set of scene testing method
CN112327768B (en) * 2020-10-27 2023-09-19 深圳Tcl新技术有限公司 Intelligent scene building system, method and computer readable storage medium
CN112611922A (en) * 2020-12-15 2021-04-06 中国联合网络通信集团有限公司 Base station electromagnetic radiation monitoring method and device
CN113032267B (en) * 2021-03-30 2024-03-12 深圳Tcl新技术有限公司 Intelligent scene test method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080172577A1 (en) * 2006-08-09 2008-07-17 Samsung Electronics Co., Ltd. Testing apparatus and method using test script in mobile communication system
CN104181913A (en) * 2014-08-14 2014-12-03 重庆泰凯科技有限公司 Testing system used for intelligent household system
CN106707771A (en) * 2015-11-12 2017-05-24 丰唐物联技术(深圳)有限公司 Test method and system for intelligent appliance
CN107171911A (en) * 2017-06-29 2017-09-15 青岛海信智慧家居系统股份有限公司 The control method and device of intelligent home device
US20180313889A1 (en) * 2017-05-01 2018-11-01 Advantest Corporation Test system and method
CN109491258A (en) * 2018-11-08 2019-03-19 青岛大学 A kind of regression test system of smart home system
CN110380926A (en) * 2019-07-01 2019-10-25 珠海格力电器股份有限公司 Network automatic test approach, terminal and the computer-readable medium of networked devices
CN110505119A (en) * 2019-08-21 2019-11-26 珠海格力电器股份有限公司 A kind of test method, device, system and readable storage medium storing program for executing
CN111475413A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Test method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4517839A (en) * 1983-07-05 1985-05-21 Unit Rig & Equipment Co. Off-highway vehicle systems simulator and control panel testing
US7627462B2 (en) * 2001-11-27 2009-12-01 Arm Limited Hardware simulation using a test scenario manager
KR101613297B1 (en) * 2014-07-21 2016-04-20 주식회사 파나시아 Reliability evaluation test system and method for ballast water managerment system
CN105897522A (en) * 2015-12-23 2016-08-24 乐视网信息技术(北京)股份有限公司 Smart home device control method and device
CN106411637A (en) * 2016-09-13 2017-02-15 四川长虹电器股份有限公司 Internet-of-things device scenario testing method
CN108297647B (en) * 2018-01-02 2020-07-10 北京汽车股份有限公司 Air conditioner communication method, controller, control panel and storage medium
CN108829085A (en) * 2018-06-21 2018-11-16 中国民航大学 In-situ test platform based on air temperature control system functional simulation
CN109782738A (en) * 2019-01-28 2019-05-21 北京天地玛珂电液控制系统有限公司 The emulation test system and method for integrated liquid feeding control system
CN110768863B (en) * 2019-10-10 2023-04-28 南京创维信息技术研究院有限公司 Scheme for simulating and testing AIOT equipment
CN110851312A (en) * 2019-11-13 2020-02-28 深圳忆联信息系统有限公司 Test method and device for rapidly simulating power failure protection and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080172577A1 (en) * 2006-08-09 2008-07-17 Samsung Electronics Co., Ltd. Testing apparatus and method using test script in mobile communication system
CN104181913A (en) * 2014-08-14 2014-12-03 重庆泰凯科技有限公司 Testing system used for intelligent household system
CN106707771A (en) * 2015-11-12 2017-05-24 丰唐物联技术(深圳)有限公司 Test method and system for intelligent appliance
US20180313889A1 (en) * 2017-05-01 2018-11-01 Advantest Corporation Test system and method
CN107171911A (en) * 2017-06-29 2017-09-15 青岛海信智慧家居系统股份有限公司 The control method and device of intelligent home device
CN109491258A (en) * 2018-11-08 2019-03-19 青岛大学 A kind of regression test system of smart home system
CN110380926A (en) * 2019-07-01 2019-10-25 珠海格力电器股份有限公司 Network automatic test approach, terminal and the computer-readable medium of networked devices
CN110505119A (en) * 2019-08-21 2019-11-26 珠海格力电器股份有限公司 A kind of test method, device, system and readable storage medium storing program for executing
CN111475413A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Test method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DUYGU ERTEN; ZEKÂI SEN: "Smart Home Innovative Heat Test Analysis for Heat Storage and Conductivity Coefficients", SUSTAINABILITY, vol. 12, no. 4, 14 February 2020 (2020-02-14), pages 1 - 11, XP009530865, ISSN: 1937-0695, DOI: 10.3390/su12041414 *
XU PENG, YANJIN GUO: "Design and Implementation of Smart Home Control System", SCIENCE MOSAIC, 31 January 2015 (2015-01-31), pages 85 - 89, XP055854654, ISSN: 1671-4792, DOI: 10.13838/j.cnki.kjgc.2015.01.017 *

Also Published As

Publication number Publication date
CN111475413A (en) 2020-07-31
CN111475413B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
WO2021196585A1 (en) Test method and apparatus, electronic device, and computer-readable storage medium
CN108931924B (en) Control method and device of intelligent household system, processor and storage medium
JP7015333B2 (en) User-defined scene for home automation
US20220224596A1 (en) Distributed system of home device controllers
US9306763B2 (en) Providing a user interface for devices of a home automation system
ES2823226T3 (en) Control method, apparatus and system
KR102020100B1 (en) Lighting controller
WO2021196608A1 (en) Display scene switching method, intelligent display screen and readable storage medium
US11412601B2 (en) Temporarily adding a light device to an entertainment group
CN104777754B (en) Virtual equipment creating method and device
WO2019196458A1 (en) Air conditioner controller and air conditioner
WO2018229908A1 (en) Air conditioning system and portable terminal
US11075775B2 (en) Home automation system including cloud server based maintenance operation communication and related methods
KR20150110877A (en) User based home automation method, apparatus thereof, and supporting method and apparatus therefor
KR100486502B1 (en) Device status display method for home network system
CN114616927A (en) Configuring a bridge having a group after adding the bridge to a lighting system
JP7126141B2 (en) Log Acquisition Device, Log Acquisition System, and Log Acquisition Method
JP2020150349A (en) Video reproduction system and program
TWI803628B (en) Warning light control method and electronic device
Leelaprute Resolution of feature interactions in integrated services of home network system
TW201806434A (en) Intelligent home control system enabling to utilize an mobile device to control and configure home appliances through an application program
CN115469638A (en) Interface test method and device, storage medium and electronic device
JP2017151742A (en) Network system, server, information processing method, and electric appliance
CN113985746A (en) Local intelligent furniture system and control method thereof
KR20240020606A (en) Electronic device that manage security policy based on an event and control method thereof

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: 20928709

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20928709

Country of ref document: EP

Kind code of ref document: A1