Search

CN-122018478-A - Automatic test method and device, storage medium and electronic device

CN122018478ACN 122018478 ACN122018478 ACN 122018478ACN-122018478-A

Abstract

The application discloses an automatic test method, an automatic test device, a storage medium and an electronic device, which relate to the technical field of intelligent home/intelligent families, wherein the automatic test method comprises the steps of obtaining a functional test instruction and a functional logic mutual exclusion rule of intelligent equipment; determining whether the functional test instruction hits the functional logic mutual exclusion rule according to the functional test instruction, the current functional mode of the intelligent device and the functional logic mutual exclusion rule, adjusting the functional mode of the intelligent device under the condition that the functional logic mutual exclusion rule is hit so that the functional test instruction to be tested does not meet the functional logic mutual exclusion rule, and issuing the functional test instruction to the intelligent device. The method solves the problems that in the process of automatically testing the functions of the intelligent household appliances, the functional logic mutual exclusion rule blocks the process of automatically testing the functions of the intelligent household appliances, the issuing of the test instruction fails and the automatic testing process is suspended, and improves the automatic testing efficiency and quality.

Inventors

  • ZHANG JUN

Assignees

  • 海尔优家智能科技(北京)有限公司
  • 青岛海尔科技有限公司
  • 海尔智家股份有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (10)

  1. 1. An automated testing method, comprising: Acquiring a functional test instruction and a functional logic mutual exclusion rule of the intelligent equipment; determining whether the functional test instruction hits a functional logic mutual exclusion rule according to the functional test instruction, the current functional mode of the intelligent equipment and the functional logic mutual exclusion rule; Under the condition of hitting a functional logic mutual exclusion rule, adjusting the functional mode of the intelligent equipment so that the functional to-be-tested instruction does not meet the functional logic mutual exclusion rule; and issuing the function test instruction to the intelligent equipment so that the intelligent equipment can execute the function test according to the function test instruction.
  2. 2. The method of claim 1, wherein determining whether the functional test instruction hits a functional logic exclusion rule based on the functional test instruction, a current functional mode of the smart device, and a functional logic exclusion rule comprises: acquiring a mutually exclusive element set of the functional logic mutually exclusive rule, wherein the mutually exclusive element set comprises a condition attribute and an influence attribute; Determining whether the functional test instruction hits a functional logic mutual exclusion rule according to the functional test instruction, the current functional mode of the intelligent equipment and the mutual exclusion element set; And if the functional test instruction and the current functional mode of the intelligent device respectively accord with the condition attribute and the influence attribute in the mutual exclusion element set, determining that the functional test instruction hits a functional logic mutual exclusion rule.
  3. 3. The method of claim 2, wherein the adjusting the functional mode of the smart device comprises: determining the mutual exclusion condition of the functional test instruction and a first functional logic mutual exclusion rule, wherein the first functional logic mutual exclusion rule is a functional logic mutual exclusion rule hit by the functional test instruction and the current functional mode of the intelligent equipment; determining a target function mode of the intelligent equipment according to the mutual exclusion condition; And adjusting the functional mode of the intelligent equipment to the target functional mode.
  4. 4. The method of claim 3, wherein determining the mutual exclusion of the functional test instruction with a first functional logic mutual exclusion rule comprises: Determining a first condition attribute and a first influence attribute corresponding to the first functional logic mutual exclusion rule according to the first functional logic mutual exclusion rule, wherein the first condition attribute and the first influence attribute can be combined to form the first functional logic mutual exclusion rule; Determining a second condition attribute according to the first condition attribute, wherein the second condition attribute is the same as the first condition attribute in the same functional mode; Judging whether the second condition attribute and the current functional mode of the intelligent equipment hit a functional logic mutual exclusion rule or not; If not, determining that the mutual exclusion condition is single-layer logic mutual exclusion; if yes, determining that the mutual exclusion condition is multi-layer logic mutual exclusion.
  5. 5. The method of claim 4, wherein determining the target functional mode of the smart device based on the mutual exclusion condition comprises: And when the mutual exclusion condition is single-layer logic mutual exclusion, determining a functional mode corresponding to the second condition attribute, wherein the functional mode is a target functional mode.
  6. 6. The method of claim 4, wherein determining the target functional mode of the smart device based on the mutual exclusion condition comprises: When the mutual exclusion condition is multi-layer logic mutual exclusion, determining an adjusting instruction of the second condition attribute, wherein the adjusting instruction is used for enabling the second condition attribute and the current functional mode of the intelligent equipment not to meet a functional logic mutual exclusion rule; Sequentially issuing the adjustment instructions according to a preset sequence; After the adjustment instruction is successfully executed, determining a functional mode corresponding to the second condition attribute, wherein the functional mode is a target functional mode.
  7. 7. The method of claim 6, wherein the determining the adjustment instruction for the second condition attribute comprises: Determining a second functional logic mutual exclusion rule hit by an Nth conditional attribute and a current functional mode of the intelligent equipment, wherein N is a positive integer which is more than 1 and less than a preset recursion number; Judging whether the Nth condition attribute has an adjustment instruction or not, wherein the adjustment instruction is used for modifying the Nth condition attribute, and the modified Nth condition attribute and the current functional mode of the intelligent equipment do not meet a functional logic mutual exclusion rule; if yes, determining an adjustment instruction of the Nth condition attribute; If not, determining a third functional logic mutual exclusion rule hit by the (N+1) th conditional attribute and the current functional mode of the intelligent equipment until the (N+1) th conditional attribute has an adjustment instruction or the (N+1) th conditional attribute is equal to the maximum recursion number, wherein the (N+1) th conditional attribute and the (N) th conditional attribute are the same class of conditional modes.
  8. 8. An automated test equipment, the equipment comprising: The acquisition module is used for acquiring a functional test instruction and a functional logic mutual exclusion rule of the intelligent equipment; The determining module is used for determining whether the functional test instruction hits the functional logic mutual exclusion rule according to the functional test instruction, the current functional mode of the intelligent equipment and the functional logic mutual exclusion rule; the adjusting module is used for adjusting the functional mode of the intelligent equipment under the condition of hitting the functional logic mutual exclusion rule so that the functional to-be-tested instruction does not meet the functional logic mutual exclusion rule; And the issuing module is used for issuing the function test instruction to the intelligent equipment so that the intelligent equipment can execute the function test according to the function test instruction.
  9. 9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
  10. 10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.

Description

Automatic test method and device, storage medium and electronic device Technical Field The application relates to the technical field of intelligent home/intelligent families, in particular to an automatic testing method, an automatic testing device, a storage medium and an electronic device. Background Along with the proliferation of intelligent household electrical appliance user population and the diversification of user demands, the functions of intelligent household electrical appliances are also in time introduced into various functions and function sets, and in order to ensure the stability, safety and usability of intelligent household electrical appliances, automatic testing becomes an indispensable one. The automatic test can simulate various use scenes to find potential problems and defects, so that the product is repaired before being released, and the product quality and the user experience are improved. When the intelligent household appliances are in a static state or an operation state, more or less conflicts or constraints exist between the functions, so that the product needs to clearly inform a user of some functional conflicts or constraints, namely functional logic mutual exclusion rules, when the functions are defined. In the process of automatically testing the functions of the intelligent household appliances, the functional logic mutual exclusion rule can block the process of automatically testing the functions of the intelligent household appliances, the problem that the automatic testing process is suspended due to failure in issuing test instructions is solved, and therefore the automatic testing process cannot be advanced, and the functional testing efficiency and quality of the intelligent household appliances are reduced. Disclosure of Invention The application provides an automatic test method, an automatic test device, a storage medium and an electronic device, which are used for solving the problems that in the process of automatically testing the functions of intelligent household appliances, the functional logic mutual exclusion rule blocks the process of the automatic test, the issuing of a test instruction fails and the automatic test process is suspended. In a first aspect, the present application provides an automated test method comprising: Acquiring a functional test instruction and a functional logic mutual exclusion rule of the intelligent equipment; determining whether the functional test instruction hits a functional logic mutual exclusion rule according to the functional test instruction, the current functional mode of the intelligent equipment and the functional logic mutual exclusion rule; Under the condition of hitting a functional logic mutual exclusion rule, adjusting the functional mode of the intelligent equipment so that the functional to-be-tested instruction does not meet the functional logic mutual exclusion rule; and issuing the function test instruction to the intelligent equipment. Optionally, the determining whether the functional test instruction hits the functional logic mutual exclusion rule according to the functional test instruction, the current functional mode of the intelligent device and the functional logic mutual exclusion rule includes: acquiring a mutually exclusive element set of the functional logic mutually exclusive rule, wherein the mutually exclusive element set comprises a condition attribute and an influence attribute; Determining whether the functional test instruction hits a functional logic mutual exclusion rule according to the functional test instruction, the current functional mode of the intelligent equipment and the mutual exclusion element set; And if the functional test instruction and the current functional mode of the intelligent device respectively accord with the condition attribute and the influence attribute in the mutual exclusion element set, determining that the functional test instruction hits a functional logic mutual exclusion rule. Optionally, the adjusting the functional mode of the smart device includes: determining the mutual exclusion condition of the functional test instruction and a first functional logic mutual exclusion rule, wherein the first functional logic mutual exclusion rule is a functional logic mutual exclusion rule hit by the functional test instruction and the current functional mode of the intelligent equipment; determining a target function mode of the intelligent equipment according to the mutual exclusion condition; And adjusting the functional mode of the intelligent equipment to the target functional mode. Optionally, the determining the mutual exclusion condition of the functional test instruction and the first functional logic mutual exclusion rule includes: Determining a first condition attribute and a first influence attribute corresponding to the first functional logic mutual exclusion rule according to the first functional logic mutual exclusion rule, wherein the first con