CN116340129A - Method, device, system, server and storage medium for scene test - Google Patents

Method, device, system, server and storage medium for scene test Download PDF

Info

Publication number
CN116340129A
CN116340129A CN202111584548.1A CN202111584548A CN116340129A CN 116340129 A CN116340129 A CN 116340129A CN 202111584548 A CN202111584548 A CN 202111584548A CN 116340129 A CN116340129 A CN 116340129A
Authority
CN
China
Prior art keywords
test
equipment
tested
link task
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111584548.1A
Other languages
Chinese (zh)
Inventor
闫蒙
王喆
田云龙
何胜利
褚福海
王统帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Smart Technology R&D Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Smart Technology R&D Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Smart Technology R&D Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Smart Technology R&D Co Ltd
Priority to CN202111584548.1A priority Critical patent/CN116340129A/en
Publication of CN116340129A publication Critical patent/CN116340129A/en
Pending legal-status Critical Current

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to the technical field of scene test and discloses a method for the scene test, which is characterized by comprising the steps of configuring a link task associated with equipment to be tested according to scene test requirements, wherein the link task comprises one or more of wake-up test, identification test and execution test; under the condition of receiving a test instruction carrying the link task, acquiring state information of equipment to be tested corresponding to the link task, wherein the state information is acquired and generated by acquisition equipment associated with the equipment to be tested or acquired by terminal equipment associated with the equipment to be tested and sent to a server; and determining the test state of the link task associated with the device to be tested according to the state information of the device to be tested corresponding to the link task. The method can reduce the limit of the number of the equipment to be tested in the scene test. The application also discloses a scene test system, a scene test device, a server and a storage medium.

Description

Method, device, system, server and storage medium for scene test
Technical Field
The present application relates to the field of scene testing technologies, for example, to a method and apparatus for scene testing, a system, a server, and a storage medium.
Background
At present, an automatic voice scene test has the tasks of wake-up test, recognition test, test execution and the like. By performing the scene test, the wake-up condition of the main control equipment, the recognition condition and the execution condition of the controlled equipment can be obtained, so that the debugging of the intelligent voice interaction function of the subsequent product is used as a reference.
The conventional technology of scene test is to wake up the playing of audio for the server. If the wake-up state reported by the equipment end is received, the server end plays the audio to be identified, and the wake-up state is the wake-up state reported to the server end after the equipment end determines that the intelligent equipment to be tested is awakened according to the acquired real-time log output by the intelligent equipment to be tested. The server receives and stores the identification result reported by the equipment end, wherein the identification result is the identification result of the intelligent equipment to be tested aiming at the audio to be identified, which is acquired from the real-time log by the equipment end.
In the above technical scheme, the wake-up state received by the server is determined based on the acquired real-time log output by the intelligent device to be tested by the device. For the equipment end, the test software configured by the equipment end can only read the log data of 1 intelligent equipment to be tested for 1 time and carry out relevant statistics, and cannot read the log data of a plurality of intelligent equipment to be tested for 1 time. When the scene test is performed, the device end can only be in communication connection with one intelligent device to be tested to acquire log data of the intelligent device to be tested, and therefore the scene with a plurality of devices to be tested cannot be tested.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
the existing scene test scheme has the limitation on the number of tests of the intelligent equipment to be tested.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method, a device, a system, a server and a storage medium for scene test, so as to reduce the limit of the number of devices to be tested in the scene test.
In some embodiments, the method comprises: configuring a link task associated with a device under test according to scenario test requirements, the link task including one or more of a wake-up test, an identification test, and an execution test; under the condition of receiving a test instruction carrying the link task, acquiring state information of equipment to be tested corresponding to the link task, wherein the state information is acquired and generated by acquisition equipment associated with the equipment to be tested or acquired by terminal equipment associated with the equipment to be tested and sent to a server; and determining the test state of the link task associated with the device to be tested according to the state information of the device to be tested corresponding to the link task.
In some embodiments, the system comprises: a device under test; the acquisition equipment is in communication connection with the equipment to be detected and is used for acquiring state information of the equipment to be detected; the terminal equipment is configured with an application program and is in communication connection with the equipment to be tested and is used for acquiring the state information of the equipment to be tested; the server is used for configuring a link task associated with the device to be tested according to scene test requirements, the link task comprises one or more of wake-up test, identification test and execution test, under the condition that a test instruction carrying the link task is received, state information of the device to be tested corresponding to the link task is acquired, and the state information is acquired and generated by the acquisition device or acquired by the application program and sent to the server, and the test state of the link task associated with the device to be tested is determined according to the state information of the device to be tested corresponding to the link task.
In some embodiments, the apparatus comprises a processor and a memory storing program instructions, the processor being configured to perform the method for scenario testing as previously described when the program instructions are executed.
In some embodiments, the server includes means for scenario testing as previously described.
In some embodiments, the storage medium stores program instructions that, when executed, perform a method for scenario testing as described above.
The method, the device, the system, the server and the storage medium for scene test provided by the embodiment of the disclosure can realize the following technical effects:
the server acquires the state information of the equipment to be tested through the acquisition equipment associated with the equipment to be tested or the terminal equipment associated with the equipment to be tested. The data related to the state information can be acquired in real time by the acquisition equipment, and the terminal equipment can also acquire the data related to the state information of the equipment to be tested in real time, so that the server can acquire the state information of two or more than two equipment to be tested corresponding to the link task, the number of the equipment to be tested is not limited in number, and the limit on the number of the equipment to be tested in scene test is reduced.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
FIG. 1 is a schematic diagram of a method for scenario testing provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another method for scenario testing provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another method for scenario testing provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another method for scenario testing provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an apparatus for scenario testing provided by an embodiment of the present disclosure;
fig. 6 is a schematic diagram of another apparatus for scenario testing provided by an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
In the embodiment of the disclosure, the intelligent home appliance refers to a home appliance formed after a microprocessor, a sensor technology and a network communication technology are introduced into the home appliance, and has the characteristics of intelligent control, intelligent sensing and intelligent application, the operation process of the intelligent home appliance often depends on the application and processing of modern technologies such as the internet of things, the internet and an electronic chip, for example, the intelligent home appliance can realize remote control and management of a user on the intelligent home appliance by connecting the electronic appliance.
In the disclosed embodiment, the terminal device refers to an electronic device with a wireless connection function, and the terminal device can be in communication connection with the intelligent household electrical appliance through connecting with the internet, or can be in communication connection with the intelligent household electrical appliance through Bluetooth, wifi and other modes. In some embodiments, the terminal device is, for example, a mobile device, a computer, or an in-vehicle device built into a hover vehicle, etc., or any combination thereof. The mobile device may include, for example, a cell phone, smart home device, wearable device, smart mobile device, virtual reality device, etc., or any combination thereof, wherein the wearable device includes, for example: smart watches, smart bracelets, pedometers, etc.
As shown in conjunction with fig. 1, an embodiment of the present disclosure provides a method for scenario testing, including:
s01, the server configures a link task associated with the device to be tested according to scene test requirements, wherein the link task comprises one or more of a wake-up test, an identification test and an execution test.
In this step, the scenario test requirement may be to test one, two or all of the wake test, the identify test and the execute test. Since the tester may only have a need for testing some of the link tasks during the testing phase, the server may configure the link tasks associated with the device under test according to the scenario testing needs. The device to be tested comprises a master control device and a controlled device. The master control device represents an intelligent device that issues control instructions, the master control device corresponding to a wake-up test phase and an identification test phase. The controlled device represents an intelligent device that executes control instructions of the master device, the controlled device corresponding to the execution test phase. Typically, the number of master devices is one, and the number of slave devices is a plurality. In addition, a link task is associated with a master device and one or more slave devices. The master devices associated with different link tasks may be the same or different. The controlled devices associated with different link tasks may be the same or different.
S02, under the condition that the server receives a test instruction carrying a link task, acquiring state information of equipment to be tested corresponding to the link task, wherein the state information is acquired and generated by acquisition equipment associated with the equipment to be tested or acquired by terminal equipment associated with the equipment to be tested and sent to the server.
In this step, the acquisition device may be a camera, an audio device, or a light sensor. By the acquisition device, image data, audio data or light intensity data can be acquired and generated in real time. As an example, the acquisition device is a radio device such as a microphone. The terminal equipment is associated with the equipment to be tested and comprises the communication connection of the terminal equipment and the equipment to be tested. The terminal device is configured with an application. The running data of the equipment to be tested can be obtained in real time through the application program configured by the terminal equipment, and then the state information of the equipment to be tested can be obtained according to the running data.
It should be noted that, because the log data is acquired in real time, the acquisition status information is acquired by the acquisition device, and the status information is acquired by the terminal device, the server may acquire log data of one of the devices to be tested when there are a plurality of devices to be tested.
S03, the server determines the testing state of the link task associated with the device to be tested according to the state information of the device to be tested corresponding to the link task.
By adopting the method for scene test provided by the embodiment of the disclosure, the server acquires the state information of the device to be tested through the acquisition device associated with the device to be tested or the terminal device associated with the device to be tested. The data related to the state information can be acquired in real time by the acquisition equipment, and the terminal equipment can also acquire the data related to the state information of the equipment to be tested in real time, so that the server can acquire the state information of two or more than two equipment to be tested corresponding to the link task, the number of the equipment to be tested is not limited in number, and the limit on the number of the equipment to be tested in scene test is reduced.
As shown in connection with fig. 2, an embodiment of the present disclosure further provides a method for scenario testing, including:
s11, the server configures a link task associated with the device to be tested according to scene test requirements, wherein the link task comprises one or more of a wake-up test, an identification test and an execution test.
S12, under the condition that the server receives a test instruction carrying a link task, acquiring equipment type information of equipment to be tested associated with the link task.
S13, the server determines a monitoring strategy of the state information according to the equipment type information of the equipment to be tested, acquires the state information of the equipment to be tested corresponding to the link task, and acquires the state information by the acquisition equipment associated with the equipment to be tested or by the terminal equipment associated with the equipment to be tested and sends the state information to the server.
S14, the server determines the testing state of the link task associated with the device to be tested according to the state information of the device to be tested corresponding to the link task.
When the method for scene test provided by the embodiment of the disclosure is adopted, the server firstly identifies the equipment type information of the equipment to be tested associated with the link task when receiving the test instruction carrying the link task, and determines the monitoring strategy of the state information according to the equipment type information so as to obtain the state information of the equipment to be tested according to the monitoring strategy. Because the acquired state information is different when the equipment types of the equipment to be tested are different, the server determines the monitoring strategy according to the equipment type information so as to acquire the state information of the equipment to be tested quickly and effectively and improve the efficiency of scene test.
Optionally, referring to fig. 3, determining, according to device type information of a device to be tested, a monitoring policy of status information includes:
s21, the server determines to acquire and generate audio information of the device to be tested through the audio acquisition device under the condition that the device type information indicates that the device to be tested is the audio device, so as to obtain state information according to the audio information.
S22, the server determines that the image data of the device to be tested is acquired and generated through the camera or the light intensity data of the device to be tested is acquired and generated through the light sensor under the condition that the device type information indicates that the device to be tested is the lighting device or the display device, so that the state information is obtained according to the image data or the light intensity data.
In the step, when the equipment to be detected is lighting equipment or display equipment, the server can acquire image data of the equipment to be detected through a camera or acquire light intensity data of the equipment to be detected through a light sensor, and finally state information is obtained.
S23, the server determines that the operation data of the equipment to be tested is acquired through the terminal equipment in communication connection with the equipment to be tested under the condition that the equipment type information indicates that the equipment to be tested is refrigeration equipment, so as to acquire the state information according to the operation data.
Therefore, the data corresponding to the equipment to be tested can be acquired pertinently according to the equipment type information, so that the state information of the equipment to be tested can be acquired according to the data, and the state information of the equipment to be tested can be acquired rapidly and effectively. Meanwhile, if the server acquires the related data of the equipment to be tested of different equipment types, the acquired related data of the equipment to be tested are mutually independent, so that the related data of the equipment to be tested of the different equipment types can be acquired at the same time, and the efficiency of scene test is improved.
As shown in connection with fig. 4, an embodiment of the present disclosure further provides a method for scenario testing, including:
s31, the server configures a link task associated with the device to be tested according to scene test requirements, wherein the link task comprises one or more of a wake-up test, an identification test and an execution test.
S32, under the condition that the server receives a test instruction carrying a link task, acquiring state information of equipment to be tested corresponding to the link task, wherein the state information is acquired and generated by acquisition equipment associated with the equipment to be tested or acquired by terminal equipment associated with the equipment to be tested and sent to the server.
S33, the server determines the testing state of the link task associated with the device to be tested according to the state information of the device to be tested corresponding to the link task.
S34, the server obtains the test state of the first link task associated with the target device to be tested under the condition that a plurality of link tasks are configured and a target device to be tested is associated with the link tasks.
And S35, the server controls the target device to be tested to execute the reset operation under the condition that the test state indicates that the first link test is completed.
S36, the server tests a second link task associated with the target device to be tested.
The test starting time of the second link task is later than that of the first link task.
By adopting the method for testing the scenes, which is provided by the embodiment of the disclosure, when the server is configured with a plurality of link tasks, the server is indicated to test two or more scenes. When a plurality of link tasks are associated with a target device to be tested, the time points when the target device to be tested executes the link tasks are not necessarily equal, namely the time sequences exist when the server performs scene test on the devices to be tested respectively associated with the two link tasks. At this time, the interference to the results of the scene test due to the difference in time execution should be avoided. Based on the consideration, when the first link task test with the early test starting time is completed, the server controls the target device to be tested to execute the reset operation, so that the interference to the result of the scene test caused by the time difference executed by the target device to be tested is avoided, and the accuracy of the scene test is effectively improved.
It can be understood that, when three or more link tasks are configured by the server and a target to-be-tested device is associated with the link tasks, the server sets a priority of the scenario test for the scenario test of the to-be-tested device associated with the link tasks according to the sequence of the test start time, and performs the scenario test for the to-be-tested device associated with each link task according to the priority. And resetting the target device to be tested after the link task corresponding to the high priority finishes the test.
Optionally, the server configures a link task associated with the device under test according to the scenario test requirement, including:
in the case that the server scene test requirement indicates that the link task comprises a wake-up test and an execution test, the link task is configured to be associated with the wake-up test and the execution test so as to perform the scene test on the master control device associated with the wake-up test and perform the scene test on the controlled device associated with the execution test.
Thus, when performing a scene test, the recognition test represents recognition of text information of the played control corpus. For example, the master control device matches the received control corpus with a preset corpus, and when the control corpus is matched with the preset corpus, the master control device is indicated to complete the recognition test and the recognition test is successful. Through experimental statistics, the recognition success rate of the recognition test is higher than the success rate corresponding to the wake-up test and the execution test. Thus, the scenario test requirements may not include an identification test phase. In this way, the server may configure the link tasks including only the wake-up test and the execute test according to the scenario test requirements, thereby testing only the wake-up phase and the execute phase.
The embodiment of the disclosure also provides a scene test system, which comprises equipment to be tested, acquisition equipment, terminal equipment and a server. The acquisition equipment is in communication connection with the equipment to be detected and is used for acquiring state information of the equipment to be detected. The terminal device is configured with an application. The terminal equipment is in communication connection with the equipment to be tested and is used for acquiring the state information of the equipment to be tested. The server is used for configuring a link task according to scene test requirements, the link task comprises one or more of wake-up test, identification test and execution test, under the condition of receiving a test instruction carrying the link task, state information of equipment to be tested associated with the link task is acquired, and the state information is acquired and generated by acquisition equipment or acquired by an application program and sent to the server, and the test state of the equipment to be tested is determined according to the state information of the equipment to be tested.
By adopting the scene test system provided by the embodiment of the disclosure, the server acquires the state information of the device to be tested through the acquisition device associated with the device to be tested or the terminal device associated with the device to be tested. The data related to the state information can be acquired in real time by the acquisition equipment, and the terminal equipment can also acquire the data related to the state information of the equipment to be tested in real time, so that the server can acquire the state information of two or more than two equipment to be tested corresponding to the link task, the number of the equipment to be tested is not limited in number, and the limit on the number of the equipment to be tested in scene test is reduced.
In practical application, the scene test requirement is that after a user wakes up the sound box by voice after coming home, the sound box controls the intelligent lamp and the intelligent television to be started. In the above scenario, the main control device is an audio device speaker. The controlled device is an intelligent lamp of the lighting device and an intelligent television of the display device. The sound box and the intelligent lamp are used as equipment to be tested and are all in communication connection with the server. The time interval between the wake-up phase and the identification phase is preset to 600ms (milliseconds).
The method for scene test specifically performs the following steps:
firstly, a server configures link tasks associated with two devices to be tested according to scene test requirements, wherein the link tasks comprise a wake-up test, an identification test and an execution test.
And secondly, the tester sends a test instruction carrying the link task to the server. Meanwhile, the tester plays the control corpus "small" to the sound box. And under the condition that the server receives the test instruction, acquiring the device type information of three devices to be tested associated with the link task. The master device is confirmed to be an audio device. After the sound box receives the control corpus, the sound box sends out the audio of the 'host, hello'. The server obtains target audio information collected by a microphone configured by the loudspeaker box after 600ms, and matches the target audio information with preset audio information, and then determines that the matching is successful. Thus, the wake-up test and the identification test are determined to be successful. At this time, the sound box sends a first control instruction to the intelligent lamp to control the intelligent lamp to be turned on. The first control command may be "device No. 1, please turn on the light". After the intelligent lamp receives the first control instruction, the intelligent lamp is switched from off to on.
And finally, the server confirms that the intelligent lamp of the controlled device is a lighting device, determines that target image data of the intelligent lamp is acquired and generated through the camera, matches the target image data with preset image data, and determines that the matching is successful. From this, it is determined that the intelligent lamp performed the test successfully.
The embodiment is an embodiment of a single scenario test, when the server actually executes the scenario test, multiple rounds of tests can be performed, test results corresponding to the multiple rounds of tests are recorded, and statistics of wake-up tests, identification tests and execution tests in a link task are determined according to the test results corresponding to the multiple rounds of tests.
As shown in conjunction with fig. 5, an embodiment of the present disclosure provides an apparatus for scenario testing, including an acquisition module 21, a determination module 22, and an execution module 23. The acquisition module 21 is configured to configure link tasks associated with the device under test according to scenario test requirements, the link tasks including one or more of wake-up tests, identification tests, and execution tests; the determining module 22 is configured to acquire state information of the device to be tested corresponding to the link task under the condition of receiving the test instruction carrying the link task, wherein the state information is acquired and generated by the acquisition device associated with the device to be tested or acquired by the terminal device associated with the device to be tested and sent to the server; the execution module 23 is configured to determine a test state of a link task associated with the device under test according to state information of the device under test corresponding to the link task.
By adopting the device for scene test provided by the embodiment of the disclosure, the limit of the number of the devices to be tested in the scene test can be reduced.
As shown in connection with fig. 6, an embodiment of the present disclosure provides an apparatus for scenario testing, including a processor (processor) 100 and a memory (memory) 101. Optionally, the apparatus may further comprise a communication interface (Communication Interface) 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via the bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call logic instructions in the memory 101 to perform the method for scenario testing of the above-described embodiments.
Further, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 101 is a computer readable storage medium that can be used to store a software program, a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by running program instructions/modules stored in the memory 101, i.e. implements the method for scenario testing in the above-described embodiments.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides a server, which comprises the device for scene test.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for scenario testing.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for scenario testing.
The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for scene testing, comprising:
configuring a link task associated with a device under test according to scenario test requirements, the link task including one or more of a wake-up test, an identification test, and an execution test;
under the condition of receiving a test instruction carrying the link task, acquiring state information of equipment to be tested corresponding to the link task, wherein the state information is acquired and generated by acquisition equipment associated with the equipment to be tested or acquired by terminal equipment associated with the equipment to be tested and sent to a server;
and determining the test state of the link task associated with the device to be tested according to the state information of the device to be tested corresponding to the link task.
2. The method of claim 1, wherein prior to obtaining the state information of the device under test corresponding to the link task, further comprising:
acquiring equipment type information of equipment to be tested associated with the link task;
and determining a monitoring strategy of the state information according to the equipment type information of the equipment to be tested.
3. The method according to claim 2, wherein determining the monitoring policy of the status information according to the device type information of the device under test comprises:
under the condition that the equipment type information indicates that the equipment to be detected is audio equipment, determining to acquire and generate audio information of the equipment to be detected through audio acquisition equipment so as to obtain state information according to the audio information;
under the condition that the equipment type information indicates that the equipment to be detected is lighting equipment or display equipment, determining to acquire and generate image data of the equipment to be detected through a camera or acquire and generate light intensity data of the equipment to be detected through a light sensor so as to acquire the state information according to the image data or the light intensity data;
and under the condition that the type newly indicates that the equipment to be tested is refrigeration equipment, determining to acquire the operation data of the equipment to be tested through the terminal equipment in communication connection with the equipment to be tested, so as to acquire the state information according to the operation data.
4. A method according to any one of claims 1 to 3, wherein, in the case where a wake-up test in the link task and the identification test are associated with a device under test, the acquiring the state information of the device under test corresponding to the link task includes:
under the condition that the equipment to be tested executes the wake-up test, configuring the equipment to be tested as a master control equipment to obtain state information corresponding to the master control equipment and the wake-up test;
and under the condition that the equipment to be tested executes the identification test, configuring the equipment to be tested as a controlled equipment so as to obtain state information corresponding to the identification test of the controlled equipment.
5. A method according to any one of claims 1 to 3, wherein in the case where a plurality of link tasks are configured and associated with a target device under test, the method further comprises:
acquiring a test state of a first link task associated with the target device to be tested;
controlling the target equipment to be tested to execute reset operation under the condition that the test state indicates that the first link test is completed;
testing a second link task associated with the target device to be tested;
the test starting time of the second link task is later than that of the first link task.
6. A method according to any one of claims 1 to 3, wherein configuring the link task associated with the device under test according to the scenario test requirements comprises:
and under the condition that the scene test requirement indicates that the link task comprises a wake-up test and an execution test, configuring the link task to be related to the wake-up test and the execution test so as to perform scene test on a main control device related to the wake-up test and perform scene test on a controlled device related to the execution test.
7. A scene test system, comprising:
a device under test;
the acquisition equipment is in communication connection with the equipment to be detected and is used for acquiring state information of the equipment to be detected;
the terminal equipment is configured with an application program and is in communication connection with the equipment to be tested and is used for acquiring the state information of the equipment to be tested;
the server is used for configuring a link task associated with the device to be tested according to scene test requirements, the link task comprises one or more of wake-up test, identification test and execution test, under the condition that a test instruction carrying the link task is received, state information of the device to be tested corresponding to the link task is acquired, and the state information is acquired and generated by the acquisition device or acquired by the application program and sent to the server, and the test state of the link task associated with the device to be tested is determined according to the state information of the device to be tested corresponding to the link task.
8. An apparatus for scenario testing, comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method for scenario testing of any one of claims 1 to 6 when the program instructions are run.
9. A server comprising the apparatus for scenario testing of claim 8.
10. A storage medium storing program instructions which, when executed, perform the method for scenario testing of any one of claims 1 to 6.
CN202111584548.1A 2021-12-22 2021-12-22 Method, device, system, server and storage medium for scene test Pending CN116340129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111584548.1A CN116340129A (en) 2021-12-22 2021-12-22 Method, device, system, server and storage medium for scene test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111584548.1A CN116340129A (en) 2021-12-22 2021-12-22 Method, device, system, server and storage medium for scene test

Publications (1)

Publication Number Publication Date
CN116340129A true CN116340129A (en) 2023-06-27

Family

ID=86889992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111584548.1A Pending CN116340129A (en) 2021-12-22 2021-12-22 Method, device, system, server and storage medium for scene test

Country Status (1)

Country Link
CN (1) CN116340129A (en)

Similar Documents

Publication Publication Date Title
CN108874421B (en) TWS earphone, upgrading method and device thereof, and storage medium
CN105204730A (en) Screen control method and user terminal
CN109783340B (en) SoC test code programming method, IP test method and device
CN108650671B (en) Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection
CN113890773A (en) Cross-device control method, device and system
CN104965676B (en) A kind of access method of random access memory, device and control chip
US20130166958A1 (en) Software burning system and burning control method
CN109618315A (en) A kind of control method of lighting apparatus, device, storage medium and intelligent terminal
CN110597393A (en) Motor vibration control method and device and computer readable storage medium
CN105868047A (en) Repairing method and device of data partition, and terminal
CN107742520B (en) Voice control method, device and system
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN109257652B (en) Configuration information switching method and device, electronic device, system and storage medium
CN114245528B (en) Vehicle lamplight show control method, device, equipment, medium and program product
CN108170211B (en) Camera power-on driving method and electronic terminal
CN112463199A (en) System upgrading method and terminal
CN111128139B (en) Non-invasive voice test method and device
CN116340129A (en) Method, device, system, server and storage medium for scene test
CN110781084B (en) Method and device for determining stuck identification parameter, storage medium and electronic device
CN110701737B (en) Air conditioner temperature compensation setting method, computer device and computer readable storage medium
CN105117254B (en) Wireless communication module and operation method and device thereof
CN114979974B (en) Wireless control method, device and equipment
CN114490074B (en) Arbitration system, arbitration method, electronic device, storage medium and chip
CN112420019B (en) Equipment testing method and device
CN105095072A (en) Application testing method and device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination