+

CN111159050A - Intelligent lock testing method and device and computer readable storage medium - Google Patents

Intelligent lock testing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111159050A
CN111159050A CN201911423128.8A CN201911423128A CN111159050A CN 111159050 A CN111159050 A CN 111159050A CN 201911423128 A CN201911423128 A CN 201911423128A CN 111159050 A CN111159050 A CN 111159050A
Authority
CN
China
Prior art keywords
test
intelligent lock
script
standard
testing
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
CN201911423128.8A
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201911423128.8A priority Critical patent/CN111159050A/en
Publication of CN111159050A publication Critical patent/CN111159050A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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)
  • Debugging And Monitoring (AREA)

Abstract

本发明公开了一种智能锁测试方法,所述智能锁测试方法应用于智能锁测试装置,该智能锁测试方法包括:接收智能锁测试指令;其中,所述智能锁测试指令包括测试标准和智能锁测试项目;根据所述测试标准从测试脚本库调用与所述测试标准对应的测试脚本;根据所述测试脚本对所述智能锁测试项目进行测试得到测试结果。本发明还公开了一种智能锁测试装置和一种计算机可读存储介质。本发明能够提高智能锁测试的效率,提高智能锁测试的准确性,降低智能锁测试的复杂度。

Figure 201911423128

The invention discloses a smart lock testing method. The smart lock testing method is applied to a smart lock testing device. The smart lock testing method comprises: receiving a smart lock testing instruction; wherein the smart lock testing instruction includes a test standard and an intelligent lock test instruction. lock test item; call a test script corresponding to the test standard from the test script library according to the test standard; test the smart lock test item according to the test script to obtain a test result. The invention also discloses an intelligent lock testing device and a computer-readable storage medium. The invention can improve the efficiency of smart lock testing, improve the accuracy of smart lock testing, and reduce the complexity of smart lock testing.

Figure 201911423128

Description

Intelligent lock testing method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an intelligent lock testing method and device and a computer readable storage medium.
Background
With the progress and development of technology, the intelligent lock product is more and more widely applied in daily life, and gradually occupies market share and has more and more varieties; common intelligent locks usually include device modules such as password and internal link gear, because intelligent lock belongs to security protection, security protection facility, so it needs strict test, experiment when leaving the factory to guarantee that every batch intelligent lock can both be used in a stable, reliable way. At present, the intelligent lock testing process is generally that the intelligent lock is tested by corresponding tools manually, the manual testing efficiency is low, and a large amount of time and manpower are consumed; the manual test has poor accuracy and low reliability, and the conditions of missing test and error test are easy to occur; the manual testing standards are not uniform, and different testers may obtain different results when testing.
Disclosure of Invention
The invention mainly aims to provide an intelligent lock testing method, an intelligent lock testing device and a computer readable storage medium, aiming at improving the intelligent lock testing efficiency and the intelligent lock testing accuracy.
In order to achieve the above object, the present invention provides an intelligent lock testing method, which is applied to an intelligent lock testing apparatus, and comprises the following steps:
receiving an intelligent lock test instruction; the intelligent lock test instruction comprises a test standard and an intelligent lock test item;
calling a test script corresponding to the test standard from a test script library according to the test standard;
and testing the intelligent lock test items according to the test script to obtain a test result.
Optionally, the step of calling a test script corresponding to the test standard from a test script library according to the test standard includes:
calling a test case corresponding to the test standard from a test case library according to the test standard;
and calling a test script corresponding to the test case from a test script library according to the test case.
Optionally, the step of calling the test case corresponding to the test standard from the test case library according to the test standard includes:
sending a test case acquisition instruction to a test case library according to the test standard;
and receiving the test case returned by the test case library according to the test case acquisition instruction.
Optionally, the step of calling the test script corresponding to the test case from a test script library according to the test case includes:
sending a test script acquisition instruction to a test script library according to the test case;
and receiving the test script returned by the test script library according to the test script acquisition instruction.
Optionally, before the step of receiving the smart lock test instruction, the method includes:
receiving a newly added test instruction triggered by a user, wherein the newly added test instruction comprises the following steps: newly adding a test case, a newly added test script and a corresponding relation between the newly added test case and the newly added test script;
sending the newly added test cases and the corresponding relation between the newly added test cases and the newly added test scripts to the test case library;
and sending the newly added test script and the corresponding relation between the newly added test case and the newly added test script to the test script library.
Optionally, the step of receiving an intelligent lock test instruction includes:
receiving a test item acquisition instruction triggered by a user, and sending the test item acquisition instruction to a project management system;
receiving an intelligent lock test project returned by the project management system according to the project acquisition instruction;
displaying a test standard selection interface according to the intelligent lock test item;
and receiving the test standard selected by the user on the test standard selection interface.
Optionally, after the step of testing the smart lock test item according to the test script to obtain a test result, the method includes:
sending the test result to a defect management system;
and receiving a test report returned by the defect management system according to the test result.
Optionally, after the step of testing the smart lock test item according to the test script to obtain a test result, the method further includes:
detecting whether the test result meets the corresponding test standard;
and if the test result does not accord with the corresponding test standard, storing the corresponding relation between the test script and the test case corresponding to the test result into a software defect library.
In addition, to achieve the above object, the present invention further provides an intelligent lock testing apparatus, including: the intelligent lock testing system comprises a memory, a processor and an intelligent lock testing program which is stored on the memory and can run on the processor, wherein the steps of the intelligent lock testing method are realized when the intelligent lock testing program is executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having an intelligent lock testing program stored thereon, which when executed by a processor implements the steps of the intelligent lock testing method as described above.
The invention provides an intelligent lock testing method, an intelligent lock testing system and a computer readable storage medium, which are used for receiving an intelligent lock testing instruction; the intelligent lock test instruction comprises a test standard and an intelligent lock test item; calling a test script corresponding to the test standard from a test script library according to the test standard; and testing the intelligent lock test items according to the test script to obtain a test result. Through the mode, the intelligent lock testing efficiency can be improved, the intelligent lock testing accuracy is improved, and the intelligent lock testing complexity is reduced.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a method for testing an intelligent lock according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for testing an intelligent lock according to the present invention;
FIG. 4 is a flowchart illustrating a method for testing an intelligent lock according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of an intelligent lock testing method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: receiving an intelligent lock test instruction; the intelligent lock test instruction comprises a test standard and an intelligent lock test item; calling a test script corresponding to the test standard from a test script library according to the test standard; and testing the intelligent lock test items according to the test script to obtain a test result.
The existing intelligent lock testing process is generally that the intelligent lock is tested by corresponding tools manually, the manual testing efficiency is low, and a large amount of time and manpower are consumed; the manual test has poor accuracy and low reliability, and the conditions of missing test and error test are easy to occur; the manual testing standards are not uniform, and different testers may obtain different results when testing.
The invention aims to improve the efficiency of testing the intelligent lock and improve the accuracy of testing the intelligent lock.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Preferably, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a smart lock test program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be configured to invoke the smart lock test program stored in memory 1005 and perform the following operations:
receiving an intelligent lock test instruction; the intelligent lock test instruction comprises a test standard and an intelligent lock test item;
calling a test script corresponding to the test standard from a test script library according to the test standard;
and testing the intelligent lock test items according to the test script to obtain a test result.
Further, processor 1001 may call the smart lock test program stored in memory 1005, and also perform the following operations:
calling a test case corresponding to the test standard from a test case library according to the test standard;
and calling a test script corresponding to the test case from a test script library according to the test case.
Further, processor 1001 may call the smart lock test program stored in memory 1005, and also perform the following operations:
sending a test case acquisition instruction to a test case library according to the test standard;
and receiving the test case returned by the test case library according to the test case acquisition instruction.
Further, processor 1001 may call the smart lock test program stored in memory 1005, and also perform the following operations:
sending a test script acquisition instruction to a test script library according to the test case;
and receiving the test script returned by the test script library according to the test script acquisition instruction.
Further, processor 1001 may call the smart lock test program stored in memory 1005, and also perform the following operations:
receiving a newly added test instruction triggered by a user, wherein the newly added test instruction comprises the following steps: newly adding a test case, a newly added test script and a corresponding relation between the newly added test case and the newly added test script;
sending the newly added test cases and the corresponding relation between the newly added test cases and the newly added test scripts to the test case library;
and sending the newly added test script and the corresponding relation between the newly added test case and the newly added test script to the test script library.
Further, processor 1001 may call the smart lock test program stored in memory 1005, and also perform the following operations:
receiving a test item acquisition instruction triggered by a user, and sending the test item acquisition instruction to a project management system;
receiving an intelligent lock test project returned by the project management system according to the project acquisition instruction;
displaying a test standard selection interface according to the intelligent lock test item;
and receiving the test standard selected by the user on the test standard selection interface.
Further, processor 1001 may call the smart lock test program stored in memory 1005, and also perform the following operations:
sending the test result to a defect management system;
and receiving a test report returned by the defect management system according to the test result.
Further, processor 1001 may call the smart lock test program stored in memory 1005, and also perform the following operations:
detecting whether the test result meets the corresponding test standard;
and if the test result does not accord with the corresponding test standard, storing the corresponding relation between the test script and the test case corresponding to the test result into a software defect library.
Based on the hardware structure, the embodiment of the intelligent lock testing method is provided.
The invention discloses an intelligent lock testing method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for testing an intelligent lock according to a first embodiment of the present invention.
In the embodiment of the invention, the intelligent lock testing method is applied to an intelligent lock testing device, and comprises the following steps:
step S10, receiving an intelligent lock test instruction; the intelligent lock test instruction comprises a test standard and an intelligent lock test item;
in this embodiment, before a user needs to test an intelligent lock, sending an intelligent lock test item (i.e., intelligent lock test software) of a plurality of intelligent locks to an item management system; when a user needs to test the intelligent lock, the user clicks a button for starting the intelligent lock test displayed by the intelligent lock testing device, the intelligent lock testing device receives an intelligent lock testing instruction for starting the intelligent lock test, and the intelligent lock testing device starts to execute the test of intelligent lock software; the intelligent lock test instruction comprises a test standard and an intelligent lock test item; after a user clicks a button displayed by the intelligent lock testing device for starting the intelligent lock test, the intelligent lock testing device calls the intelligent lock testing item from the item management system for the user to select, and the user selects the intelligent lock testing item as required in an intelligent lock testing interface; after the user selects the intelligent lock test item to be tested in the intelligent lock test interface, the intelligent lock test device calls the test standard from the test standard library according to the selected intelligent lock test item, and the user selects the intelligent lock test interface to obtain the test standard. The intelligent lock testing device can be a device for testing whether intelligent lock software is normal, and the intelligent lock device can be a PC terminal or a mobile terminal. The intelligent lock test item is software running on the intelligent lock.
Before the step S10 receives the smart lock test instruction, the method may include:
step a1, receiving a deletion test instruction triggered by a user, wherein the deletion test instruction comprises: deleting the test cases, deleting the test scripts and deleting the corresponding relation between the test cases and the deleted test scripts;
in this embodiment, before the user performs the test of the intelligent lock, the user clicks a delete test button in an intelligent lock test interface of the intelligent lock testing device, and when the intelligent lock testing device receives the delete test button clicked by the user, the intelligent lock testing device calls a test case from a test case library; the intelligent lock testing device displays the test cases in an intelligent lock test display interface, after the test cases are observed to be displayed, a user clicks the test cases to be deleted, the intelligent lock testing device receives a deletion test instruction triggered by the user, and the deletion test instruction comprises the following steps: deleting the test cases, deleting the test scripts and deleting the corresponding relation between the test cases and the deleted test scripts;
the intelligent lock testing device displays a deletion test display interface for deleting the test cases and the test scripts, and after a user sees the deletion test display interface, the user adds the deletion test cases, the deletion test scripts and the corresponding relation between the deletion test cases and the deletion test scripts in the deletion test display interface; after the user adds the deletion test cases, deletes the test scripts and completes the corresponding relation between the deletion test cases and the deletion test scripts, the user clicks a deletion addition completion button, and the intelligent lock testing device receives a deletion test instruction triggered by the user. The deleting test instruction is triggered by a user on an intelligent lock test interface; the deleted test cases are test cases added to the test case library by a user; the pruned test script is a test script that the user adds to the test script case library.
A2, sending the deleted test case and the corresponding relation between the deleted test case and the deleted test script to the test case library;
in this embodiment, after the intelligent lock testing device receives a deletion test instruction triggered by a user, the intelligent lock testing device sends a deletion test case and an instruction of a correspondence relationship between the deletion test case and a deletion test script to the test case library; and after receiving the instructions of deleting the test cases and the corresponding relations between the deleted test cases and the deleted test scripts, the test case library deletes the test cases and the corresponding relations between the test cases and the test scripts which are stored in the test case library locally.
Step a3, sending the deleted test script and the corresponding relation between the deleted test case and the deleted test script to the test script library.
In this embodiment, after the intelligent lock testing device receives a deletion test instruction triggered by a user, the intelligent lock testing device sends the deletion test script and an instruction of a correspondence relationship between a deletion test case and the deletion test script to a test script library; after receiving the instruction of deleting the test script and the corresponding relation between the test case and the deleted test script, the test script library deletes the test script stored in the test script library locally and the corresponding relation between the test case and the test script.
Step S20, calling a test script corresponding to the test standard from a test script library according to the test standard;
in this embodiment, after the intelligent lock testing device receives the intelligent lock testing instruction, the intelligent lock testing device calls a testing script corresponding to the testing standard from the testing script library according to the testing standard contained in the intelligent lock testing instruction; the test script is a program for testing the intelligent lock test project; the test script library is used for storing test scripts for testing the intelligent lock test items; the test standard and the test script may be in a one-to-one correspondence relationship, or the test standard and the test script may be in a one-to-many correspondence relationship (i.e., one test standard has a plurality of test scripts).
And step S30, testing the intelligent lock test items according to the test script to obtain test results.
In this embodiment, after the intelligent lock testing device obtains the test script from the test script library, the intelligent lock testing device tests the intelligent lock test item through the test script to obtain a test result.
As an implementation manner, in this embodiment, before the intelligent lock testing device tests the intelligent lock test item through the test script, the intelligent lock testing device may receive the test parameters input by the user in the intelligent lock test interface, and the intelligent lock testing device tests the intelligent lock test item according to the test parameters and the test script to obtain a test result; the user can input different test parameters in the intelligent lock test interface, and different test results can be possibly caused by different test parameters; the test to the intelligence lock may need multiple different test parameters, test the intelligent lock test project according to multiple different test parameters and test scripts and just may obtain more comprehensive test results, just can be better assurance the quality of intelligence lock.
After the step S30 tests the smart lock test item according to the test script to obtain a test result, the step S30 may include:
step b1, sending the test result to a defect management system;
step b2, receiving the test report returned by the defect management system according to the test result.
In this embodiment, after the intelligent lock testing device obtains the test result, the intelligent lock testing device sends the test result to the defect management system, the defect management system receives the test result sent by the intelligent lock testing device, and the defect management system generates a test report according to the received test result; after the defect management system generates the test report, the defect management system sends the test report to the intelligent lock testing device, and the intelligent lock testing device receives the test report returned by the defect management system according to the test result.
After the step S30 tests the smart lock test item according to the test script to obtain a test result, the method may further include:
step c1, detecting whether the test result meets the corresponding test standard;
and c2, if the test result does not meet the corresponding test standard, storing the corresponding relation between the test script and the test case corresponding to the test result into a software defect library.
In this embodiment, after the intelligent lock testing device obtains the test result, the intelligent lock testing device detects whether the test result meets the corresponding test standard; if the test result does not accord with the corresponding test standard, the intelligent lock testing device stores the corresponding relation between the test script and the test case corresponding to the test result into a software defect library; the corresponding relation between the test script and the test case is selected when the test result does not accord with the corresponding test standard, and is selected when the test result is defective.
According to the scheme, the intelligent lock test instruction is received; the intelligent lock test instruction comprises a test standard and an intelligent lock test item; calling a test script corresponding to the test standard from a test script library according to the test standard; and testing the intelligent lock test items according to the test script to obtain a test result. Therefore, the efficiency of the intelligent lock test is improved, the accuracy of the intelligent lock test is improved, and the complexity of the intelligent lock test is reduced.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the intelligent lock testing method according to the present invention. Based on the above-mentioned embodiment shown in fig. 2, the step S20 may call a test script corresponding to the test standard from a test script library according to the test standard, where the test script corresponding to the test standard includes:
step S21, calling a test case corresponding to the test standard from the test case library according to the test standard;
in this embodiment, after the intelligent lock testing device receives the intelligent lock testing instruction, the intelligent lock testing device calls a test case corresponding to the testing standard from the test case library according to the testing standard contained in the intelligent lock testing instruction; the test case is used for calling a test script from a test script library according to a test standard; the test case library is used for storing test cases which can call the test scripts from the test script library; the test cases and the test scripts are in one-to-one correspondence; the test standard and the test case may be in a one-to-one correspondence relationship, or the test standard and the test case may be in a one-to-many correspondence relationship (that is, one test standard has a plurality of test cases).
Step S21 is to call a test case corresponding to the test standard from the test case library according to the test standard, and the step may include:
d1, sending a test case acquisition instruction to the test case library according to the test standard;
and d2, receiving the test case returned by the test case library according to the test case acquisition instruction.
In this embodiment, after the intelligent lock testing device receives the intelligent lock testing instruction, the intelligent lock testing device sends a test case obtaining instruction to the test case library according to the intelligent lock testing instruction; after the test case library receives a test case acquisition instruction sent by the intelligent lock testing device, the test case library queries a test case corresponding to the test case acquisition instruction from the database according to the test case acquisition instruction, and after the test case library finds the test case corresponding to the test case acquisition instruction, the test case library sends the test case to the intelligent lock testing device; after the intelligent lock testing device receives the test cases sent by the test case library, the intelligent lock testing device displays the test cases on a display screen of the intelligent lock testing device through a test case display interface so that a user can observe the testing progress;
in this embodiment, after the test case is displayed on the display screen of the intelligent lock testing device through the test case display interface, the intelligent lock testing device may intervene and operate in the test case display interface by a user, change the test case which does not correspond to the test standard, and prevent the intelligent lock testing device from obtaining an erroneous test result; the intelligent lock testing device can also directly call the testing script corresponding to the testing case from the testing script library through the obtained testing case after the testing case is displayed on the display screen of the intelligent lock testing device through the testing case display interface.
And step S22, calling a test script corresponding to the test case from a test script library according to the test case.
In this embodiment, after the intelligent lock testing device calls the test case from the test case library, the intelligent lock testing device calls the test script corresponding to the test case from the test script library according to the test case; the test case is used for calling a test script from a test script library according to a test standard; the test script is a program for testing the intelligent lock test item; the test script library is used for storing test scripts for testing the intelligent lock test items; the test cases and the test scripts are in one-to-one correspondence; the test standard and the test case may be in a one-to-one correspondence relationship, or the test standard and the test case may be in a one-to-many correspondence relationship (that is, one test standard has a plurality of test cases).
Step S22 is to call a test script corresponding to the test case from a test script library according to the test case, and may include:
step e1, sending a test script acquisition instruction to a test script library according to the test case;
and e2, receiving the test script returned by the test script library according to the test script acquisition instruction.
In this embodiment, after the intelligent lock testing device calls a test case from the test case library, the intelligent lock testing device sends a test script acquisition instruction to the test script library according to the test case; after the test script library receives a test script obtaining instruction sent by the intelligent lock testing device, the test script library inquires a test script corresponding to the test script obtaining instruction from a database according to the test script obtaining instruction, and after the test script library finds the test script corresponding to the test script obtaining instruction, the test script library sends the test script to the intelligent lock testing device; after the intelligent lock testing device receives the testing script sent by the testing script library, the intelligent lock testing device displays the testing script on a display screen of the intelligent lock testing device through a testing script display interface so that a user can observe the testing progress;
in this embodiment, after the intelligent lock testing device calls a test case from the test case library, the intelligent lock testing device sends a test script acquisition instruction to the test script library according to the test case and the intervention of a user in a test case display interface; after the test script library receives a test script obtaining instruction sent by the intelligent lock testing device, the test script library inquires a test script corresponding to the test script obtaining instruction from a database according to the test script obtaining instruction, and after the test script library finds the test script corresponding to the test script obtaining instruction, the test script library sends the test script to the intelligent lock testing device; after the intelligent lock testing device receives the testing script sent by the testing script library, the intelligent lock testing device displays the testing script on a display screen of the intelligent lock testing device through a testing script display interface so that a user can observe the testing progress;
according to the scheme, the intelligent lock test instruction is received; the intelligent lock test instruction comprises a test standard and an intelligent lock test item; calling a test case corresponding to the test standard from a test case library according to the test standard; calling a test script corresponding to the test case from a test script library according to the test case; and testing the intelligent lock test items according to the test script to obtain a test result. Therefore, the test case library and the test script library are stored separately, so that the partition management and storage of data are realized, the accurate reference function is realized, the test efficiency of the intelligent lock is improved, the test accuracy of the intelligent lock is improved, and the test complexity of the intelligent lock is reduced.
Further, referring to fig. 4, fig. 4 is a schematic flowchart of a third embodiment of the intelligent lock testing method of the present invention. Based on the above embodiment shown in fig. 2, before the step S10 receives the smart lock test instruction, the method may further include:
step S40, receiving a new test instruction triggered by the user, where the new test instruction includes: newly adding a test case, a newly added test script and a corresponding relation between the newly added test case and the newly added test script;
in this embodiment, before a user performs a test of an intelligent lock, the user clicks a new test button in an intelligent lock test interface of an intelligent lock testing device, when the intelligent lock testing device receives the new test button clicked by the user, the intelligent lock testing device displays an addition test display interface for adding a new test case and a new test script, and after the user sees the addition test display interface, the user adds the new test case, the new test script and a corresponding relationship between the new test case and the new test script in the addition test display interface; after the user adds the new test case, the new test script and the corresponding relationship between the new test case and the new test script is completed, the user clicks the new adding completion button, and the intelligent lock testing device receives a new test instruction triggered by the user. Wherein, the newly added test instruction is triggered by a user on the intelligent lock test interface; the newly added test cases are test cases added to the test case library by the user; the newly added test script is the test script added to the test script case base by the user.
Step S50, sending the new test case and the corresponding relation between the new test case and the new test script to the test case library;
in this embodiment, after the smart lock testing device receives a new test instruction triggered by a user, the smart lock testing device sends a new test case and an instruction of a corresponding relationship between the new test case and a new test script to the test case library; and after receiving the instructions of the newly added test cases and the corresponding relations between the newly added test cases and the newly added test scripts, the test case library stores the newly added test cases and the corresponding relations between the newly added test cases and the newly added test scripts to the local test case library.
And step S60, sending the newly added test script and the corresponding relation between the newly added test case and the newly added test script to the test script library.
In this embodiment, after the smart lock testing device receives a new test instruction triggered by a user, the smart lock testing device sends an instruction of a corresponding relationship between the new test script and the new test case and the new test script to the test script library; and after receiving the instruction of the corresponding relationship between the newly added test script and the newly added test case and the newly added test script, the test script library stores the newly added test script and the corresponding relationship between the newly added test case and the newly added test script to the local test script library.
Through the above scheme, the embodiment receives a newly added test instruction triggered by a user, wherein the newly added test instruction includes: newly adding a test case, a newly added test script and a corresponding relation between the newly added test case and the newly added test script; sending the newly added test cases and the corresponding relation between the newly added test cases and the newly added test scripts to the test case library; sending the newly added test script and the corresponding relation between the newly added test case and the newly added test script to the test script library; receiving an intelligent lock test instruction; the intelligent lock test instruction comprises a test standard and an intelligent lock test item; calling a test script corresponding to the test standard from a test script library according to the test standard; and testing the intelligent lock test items according to the test script to obtain a test result. Therefore, the efficiency of the intelligent lock test is improved, the accuracy of the intelligent lock test is improved, and the complexity of the intelligent lock test is reduced.
Further, referring to fig. 5, fig. 5 is a schematic flow chart of a testing method for an intelligent lock according to a fourth embodiment of the present invention. Based on the above embodiment shown in fig. 2, the step S10 of receiving the smart lock test command may include:
step S11, receiving a test item acquisition instruction triggered by a user, and sending the test item acquisition instruction to the item management system;
in this embodiment, before a user needs to test an intelligent lock, sending an intelligent lock test item (i.e., intelligent lock test software) of a plurality of intelligent locks to an item management system; when a user needs to test the intelligent lock, the user clicks a button for starting the intelligent lock test displayed by the intelligent lock testing device, the intelligent lock testing device receives a test item acquisition instruction triggered by the user, and the intelligent lock testing device sends the test item acquisition instruction to the item management system; the project management system searches for the intelligent lock test project stored in the project management system according to the test project acquisition instruction sent by the intelligent lock test device, and after the project management system searches for the intelligent lock test project, the project management system sends the intelligent lock test project to the intelligent lock test device. The test item acquisition instruction is triggered by a user and is used for acquiring the intelligent lock test item from the item management system.
Step S12, receiving an intelligent lock test project returned by the project management system according to the project acquisition instruction;
in this embodiment, after the project management system sends the smart lock test project to the smart lock testing device, the smart lock testing device receives the smart lock test project returned by the project management system according to the project acquisition instruction.
Step S13, displaying a test standard selection interface according to the intelligent lock test item;
in this embodiment, after the intelligent lock testing device receives an intelligent lock testing item, the intelligent lock testing device sends a testing standard obtaining instruction to the testing standard library according to the intelligent lock testing item, the testing standard library receives the testing standard obtaining instruction sent by the intelligent lock testing device, the testing standard library searches for a testing standard in the database according to the testing standard obtaining instruction, after the testing standard library searches for the testing standard, the testing standard library sends the testing standard to the intelligent lock testing device, and the intelligent lock testing device receives the testing standard returned by the testing standard library according to the testing standard obtaining instruction; after the intelligent lock testing device receives the testing standard, the intelligent lock testing device displays a testing standard selection interface according to the testing standard.
Step S13 is to display a test criterion selection interface according to the smart lock test item, and may include:
step f1, sending a test standard acquisition instruction to a test standard library according to the intelligent lock test item;
step f2, receiving the test standard returned by the test standard library according to the test standard acquisition instruction;
and f3, displaying and generating a test standard selection interface according to the test standard.
In this embodiment, after the intelligent lock testing device receives an intelligent lock testing item, the intelligent lock testing device sends a testing standard obtaining instruction to the testing standard library according to the intelligent lock testing item, the testing standard library receives the testing standard obtaining instruction sent by the intelligent lock testing device, the testing standard library searches for a testing standard in the database according to the testing standard obtaining instruction, after the testing standard library searches for the testing standard, the testing standard library sends the testing standard to the intelligent lock testing device, and the intelligent lock testing device receives the testing standard returned by the testing standard library according to the testing standard obtaining instruction; after the intelligent lock testing device receives the testing standard, the intelligent lock testing device displays a testing standard selection interface according to the testing standard.
And step S14, receiving the test standard selected by the user on the test standard selection interface.
In this embodiment, after the testing standard selection interface is displayed by the intelligent lock testing device, the user selects the testing standard on the intelligent lock testing display interface of the intelligent lock testing device, and the intelligent lock testing device receives the testing standard selected by the user on the testing standard selection interface.
According to the scheme, the test item acquisition instruction triggered by the user is received, and the test item acquisition instruction is sent to the item management system; receiving an intelligent lock test project returned by the project management system according to the project acquisition instruction; displaying a test standard selection interface according to the intelligent lock test item; receiving a test standard selected by a user on the test standard selection interface; calling a test script corresponding to the test standard from a test script library according to the test standard; and testing the intelligent lock test items according to the test script to obtain a test result. Therefore, the efficiency of the intelligent lock test is improved, the accuracy of the intelligent lock test is improved, and the complexity of the intelligent lock test is reduced.
The invention also provides an intelligent lock testing device.
The intelligent lock testing device of the invention comprises: the intelligent lock testing system comprises a memory, a processor and an intelligent lock testing program which is stored on the memory and can run on the processor, wherein the steps of the intelligent lock testing method are realized when the intelligent lock testing program is executed by the processor.
The method implemented when the intelligent lock test program running on the processor is executed may refer to each embodiment of the intelligent lock test method of the present invention, and details are not described here.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon an intelligent lock test program, which when executed by a processor implements the steps of the intelligent lock test method as described above.
The method implemented when the intelligent lock test program running on the processor is executed may refer to each embodiment of the intelligent lock test method of the present invention, and details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1.一种智能锁测试方法,其特征在于,所述智能锁测试方法应用于智能锁测试装置,所述智能锁测试方法包括如下步骤:1. a smart lock testing method, is characterized in that, described smart lock testing method is applied to smart lock testing device, and described smart lock testing method comprises the steps: 接收智能锁测试指令;其中,所述智能锁测试指令包括测试标准和智能锁测试项目;Receive a smart lock test instruction; wherein, the smart lock test instruction includes a test standard and a smart lock test item; 根据所述测试标准从测试脚本库调用与所述测试标准对应的测试脚本;Call the test script corresponding to the test standard from the test script library according to the test standard; 根据所述测试脚本对所述智能锁测试项目进行测试得到测试结果。Test the smart lock test item according to the test script to obtain a test result. 2.如权利要求1所述的智能锁测试方法,其特征在于,所述根据所述测试标准从测试脚本库调用与所述测试标准对应的测试脚本的步骤,包括:2. The method for testing smart locks as claimed in claim 1, wherein the step of calling the test script corresponding to the test standard from the test script library according to the test standard comprises: 根据测试标准从测试用例库中调用与测试标准对应的测试用例;Call the test case corresponding to the test standard from the test case library according to the test standard; 根据所述测试用例从测试脚本库中调用与所述测试用例对应的测试脚本。The test script corresponding to the test case is called from the test script library according to the test case. 3.如权利要求2所述的智能锁测试方法,其特征在于,所述根据测试标准从测试用例库中调用与测试标准对应的测试用例的步骤,包括:3. The method for testing smart locks as claimed in claim 2, wherein the step of calling the test case corresponding to the test standard from the test case library according to the test standard comprises: 根据所述测试标准向测试用例库发送测试用例获取指令;Send a test case acquisition instruction to the test case library according to the test standard; 接收所述测试用例库根据所述测试用例获取指令返回的测试用例。A test case returned by the test case library according to the test case acquisition instruction is received. 4.如权利要求2所述的智能锁测试方法,其特征在于,所述根据所述测试用例从测试脚本库中调用与所述测试用例对应的测试脚本的步骤,包括:4. The method for testing smart locks as claimed in claim 2, wherein the step of calling the test script corresponding to the test case from the test script library according to the test case comprises: 根据所述测试用例向测试脚本库发送测试脚本获取指令;Send a test script acquisition instruction to the test script library according to the test case; 接收所述测试脚本库根据所述测试脚本获取指令返回的测试脚本。A test script returned by the test script library according to the test script acquisition instruction is received. 5.如权利要求2所述的智能锁测试方法,其特征在于,所述接收智能锁测试指令的步骤之前,包括:5. smart lock testing method as claimed in claim 2, is characterized in that, before the described step of receiving smart lock test instruction, comprises: 接收到用户触发的新增测试指令,其中,新增测试指令包括:新增测试用例、新增测试脚本以及新增测试用例与新增测试脚本之间的对应关系;A new test instruction triggered by a user is received, wherein the new test instruction includes: a new test case, a new test script, and the corresponding relationship between the new test case and the new test script; 向所述测试用例库发送所述新增测试用例和所述新增测试用例与所述新增测试脚本之间的对应关系;sending the new test case and the correspondence between the new test case and the new test script to the test case library; 向所述测试脚本库发送所述新增测试脚本和所述新增测试用例与所述新增测试脚本之间的对应关系。Sending the newly added test script and the correspondence between the newly added test case and the newly added test script to the test script library. 6.如权利要求1至5中任一项所述的智能锁测试方法,其特征在于,所述接收智能锁测试指令的步骤,包括:6. The smart lock testing method according to any one of claims 1 to 5, wherein the step of receiving the smart lock test instruction comprises: 接收用户触发的测试项目获取指令,并向项目管理系统发送测试项目获取指令;Receive the test item acquisition instruction triggered by the user, and send the test item acquisition instruction to the project management system; 接收所述项目管理系统根据所述项目获取指令返回的智能锁测试项目;Receive the smart lock test item returned by the item management system according to the item acquisition instruction; 根据所述智能锁测试项目显示测试标准选择界面;Display a test standard selection interface according to the smart lock test item; 接收用户在所述测试标准选择界面选择的测试标准。The test standard selected by the user in the test standard selection interface is received. 7.如权利要求1至5中任一项所述的智能锁测试方法,其特征在于,所述根据所述测试脚本对所述智能锁测试项目进行测试得到测试结果的步骤之后,包括:7. The smart lock testing method according to any one of claims 1 to 5, wherein, after the step of testing the smart lock test item to obtain a test result according to the test script, comprising: 将所述测试结果发送至缺陷管理系统;sending the test results to a defect management system; 接收所述缺陷管理系统根据所述测试结果返回的测试报告。A test report returned by the defect management system according to the test result is received. 8.如权利要求1至5中任一项所述的智能锁测试方法,其特征在于,所述根据所述测试脚本对所述智能锁测试项目进行测试得到测试结果的步骤之后,还包括:8. The smart lock testing method according to any one of claims 1 to 5, wherein after the step of testing the smart lock test item to obtain a test result according to the test script, further comprising: 检测所述测试结果是否符合对应的所述测试标准;Detecting whether the test result meets the corresponding test standard; 若所述测试结果不符合对应的所述测试标准,则将与所述测试结果对应的测试脚本和测试用例之间的对应关系保存至软件缺陷库。If the test result does not meet the corresponding test standard, the corresponding relationship between the test script and the test case corresponding to the test result is saved to the software defect library. 9.一种智能锁测试装置,其特征在于,所述智能锁测试装置包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行的智能锁测试程序,所述智能锁测试程序被所述处理器执行时实现如权利要求1至8中任一项所述的智能锁测试方法的步骤。9. A smart lock testing device, characterized in that the smart lock testing device comprises: a memory, a processor, and a smart lock testing program stored on the memory and running on the processor, the smart lock When the test program is executed by the processor, the steps of the smart lock test method according to any one of claims 1 to 8 are implemented. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有智能锁测试程序,所述智能锁测试程序被处理器执行时实现如权利要求1至8中任一项所述的智能锁测试方法的步骤。10. A computer-readable storage medium, characterized in that, an intelligent lock test program is stored on the computer-readable storage medium, and the intelligent lock test program is implemented as any one of claims 1 to 8 when the intelligent lock test program is executed by the processor The steps of the smart lock test method described in item.
CN201911423128.8A 2019-12-30 2019-12-30 Intelligent lock testing method and device and computer readable storage medium Pending CN111159050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423128.8A CN111159050A (en) 2019-12-30 2019-12-30 Intelligent lock testing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423128.8A CN111159050A (en) 2019-12-30 2019-12-30 Intelligent lock testing method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111159050A true CN111159050A (en) 2020-05-15

Family

ID=70560609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423128.8A Pending CN111159050A (en) 2019-12-30 2019-12-30 Intelligent lock testing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111159050A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235354A (en) * 2020-09-18 2021-01-15 中国电力科学研究院有限公司 A system and method for testing electric power intelligent IoT padlocks
CN112597056A (en) * 2020-12-30 2021-04-02 深圳Tcl新技术有限公司 Testing method, system and device of intelligent door lock and computer readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727389A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Automatic test system and method of distributed integrated service
CN103793326A (en) * 2014-01-28 2014-05-14 福建星网锐捷网络有限公司 Assembly test method and device
KR20160004030A (en) * 2014-07-02 2016-01-12 (주)넥스트위드 Test apparatus of mobile device, system and controlling method
CN105279093A (en) * 2015-11-26 2016-01-27 上海斐讯数据通信技术有限公司 Software test method, device and equipment
CN105760299A (en) * 2016-02-18 2016-07-13 云南电网有限责任公司电力科学研究院 Full-automatic script test method based on intelligent substation
WO2016173192A1 (en) * 2015-04-27 2016-11-03 深圳Tcl数字技术有限公司 Television stability test method and device
CN107766226A (en) * 2016-08-18 2018-03-06 北京金山云网络技术有限公司 A kind of method of testing and device
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test
CN108399126A (en) * 2018-02-09 2018-08-14 深圳市华讯方舟软件信息有限公司 Intelligent environment protection automated testing method, device, computer equipment and storage medium
CN109426605A (en) * 2017-08-23 2019-03-05 龙芯中科技术有限公司 The stability test method and apparatus of computer
CN109522214A (en) * 2018-10-09 2019-03-26 广州神马移动信息科技有限公司 Test method, platform, client and system, computing device and readable medium
CN110309051A (en) * 2019-05-22 2019-10-08 深圳壹账通智能科技有限公司 Method, system, device and storage medium for managing test cases

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727389A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Automatic test system and method of distributed integrated service
CN103793326A (en) * 2014-01-28 2014-05-14 福建星网锐捷网络有限公司 Assembly test method and device
KR20160004030A (en) * 2014-07-02 2016-01-12 (주)넥스트위드 Test apparatus of mobile device, system and controlling method
WO2016173192A1 (en) * 2015-04-27 2016-11-03 深圳Tcl数字技术有限公司 Television stability test method and device
CN105279093A (en) * 2015-11-26 2016-01-27 上海斐讯数据通信技术有限公司 Software test method, device and equipment
CN105760299A (en) * 2016-02-18 2016-07-13 云南电网有限责任公司电力科学研究院 Full-automatic script test method based on intelligent substation
CN107766226A (en) * 2016-08-18 2018-03-06 北京金山云网络技术有限公司 A kind of method of testing and device
CN109426605A (en) * 2017-08-23 2019-03-05 龙芯中科技术有限公司 The stability test method and apparatus of computer
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test
CN108399126A (en) * 2018-02-09 2018-08-14 深圳市华讯方舟软件信息有限公司 Intelligent environment protection automated testing method, device, computer equipment and storage medium
CN109522214A (en) * 2018-10-09 2019-03-26 广州神马移动信息科技有限公司 Test method, platform, client and system, computing device and readable medium
CN110309051A (en) * 2019-05-22 2019-10-08 深圳壹账通智能科技有限公司 Method, system, device and storage medium for managing test cases

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张智文: "射频识别技术理论与实践", 31 January 2008, 北京:中国科学技术出版社 *
李庆义、岳俊梅、王爱乐: "软件测试技术", 30 November 2009, 西安电子科学大学出版社 *
陈明: "软件工程学教程", 31 August 2013, 北京:北京理工大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235354A (en) * 2020-09-18 2021-01-15 中国电力科学研究院有限公司 A system and method for testing electric power intelligent IoT padlocks
CN112597056A (en) * 2020-12-30 2021-04-02 深圳Tcl新技术有限公司 Testing method, system and device of intelligent door lock and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108984388B (en) Method and terminal equipment for generating automatic test case
CN108959067B (en) Method and device for testing search engine and computer readable storage medium
CN111026645A (en) User interface automatic testing method and device, storage medium and electronic equipment
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN112597052A (en) Interface testing method and device and computer readable storage medium
CN107678948B (en) Test case generation method, terminal and storage medium
CN107888978A (en) KEY codes method for burn-recording, device and computer-readable recording medium
US9280452B1 (en) Systems and methods for generating test cases
CN106126414B (en) Application software testing method and system
CN111078567A (en) Report generation method, terminal and storage medium of automatic test platform
CN114064473A (en) Vehicle-machine system testing method, system, vehicle, and computer-readable storage medium
CN108170608A (en) Compatibility test method, test terminal and storage medium
CN112783756A (en) Automatic test method, terminal, system and storage medium
CN108052430B (en) Mobile terminal restart positioning method, mobile terminal and computer readable storage medium
CN105094777A (en) Method and device for realizing application screen shot
CN110502263B (en) Upgrade package manufacturing method, system and computer readable storage medium
CN111159050A (en) Intelligent lock testing method and device and computer readable storage medium
CN108012031B (en) Mobile terminal restart positioning method, mobile terminal and computer readable storage medium
CN110489347A (en) Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT
CN108235101B (en) Smart television initialization method, smart television and computer readable storage medium
CN108089937B (en) Direct memory allocation-based restart positioning method, mobile terminal and storage medium
CN113836045A (en) Logic generation method and device for interface automation assertion and storage medium
CN113138763A (en) Page construction method, device, equipment and computer readable storage medium
CN108076200B (en) Mobile terminal restart positioning method, mobile terminal and computer readable storage medium
CN111078562A (en) Interface testing method, terminal device and computer-readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载