| With the rapid development of electronic commerce and online banking,the problem of user’s identity authentication has gradually been valued by people,and has become the focus of attention of all circles.As a kind of new identity authentication device,the USBKey is widely used for its ease of use and security.In order to guarantee the correctness and security of the USBKey password function,it is necessary to carry out adequacy teston the USBKey.The traditional manual testing methods have many limitations,which are not adapted to the current development of the software industry.Therefore,automatic testing methods can be used in the detection process of USBKey,so as to save more time and hardware resources,then greatly improve the test efficiency.As especially relevant to this paper,following some ideas of the test requirements and industry standards on USBKey,based on the study of the Python unit testing framework,a set of automated testing framework for USBKey is proposed.The framework focuses on the completion of instruction testing and cryptographic algorithm testing on USBKey.In addition,combined with the statistical test method,a novel scheme of time security testing is studied out.Finally,automation test platform for USBKey is designed and implemented.The automated testing framework is developed in Python language,and the visual interface is written for simpler user operations using C++ language.The platform adopts client/server mode,which can not only ensure the confidentiality of test cases,but also realize the automatic execution and distributed execution of testing,and then improve the efficiency and reliability of the test. |