The invention provides an interface testing method and device. The interface testing device comprises an interface scanning unit, a data defining unit, a
test case packaging unit, a case executing unit and a report
generating unit, wherein the interface scanning unit is used for scanning an object to be tested according to an interface parameter appointed by a user; the data defining unit is used for analyzing a scanning unit of the interface scanning unit to the object to be tested, showing the structure of an interface
parameter type and obtaining configuration information of the basic
object type appointed by the user, wherein the interface
parameter type comprises basic object types; the
test case packaging unit is used for obtaining a case element selected by the user, obtaining
test data corresponding to the basic object types by using the configuration information of the basic object types in the case element obtained by the data defining unit, and packaging a
test case by using the case element and the
test data corresponding to the basic object types; the cast executing unit is used for running the test case; and the report
generating unit is used for generating a test case according to the run result of the test case. By using the technical scheme provided by the embodiment of the invention, the testing efficiency can be increased.