The embodiment of the invention discloses an interface test method and device, an electronic device and a readable storage medium. The interface test method comprises the steps of obtaining a
source code of to-be-tested
software through at least one processor, and analyzing the
source code to obtain an interface parameter and a
parameter type of an interface; presenting interface parameters and parameter types of the interface; in response to setting for the interface parameters of the presented interface, generating a
test case through at least one processor, and storing the generated
test case; in response to selection of the stored test cases, generating a
test case set through at least one processor, and storing the generated test case set; the test case set is executed through the atleast one processor, so that automatic implementation from
source code acquisition to generation, storage and execution of the test case set can be realized, the interface test is simplified, and theinterface
test efficiency is ensured. In addition, the automatic test case can be generated without understanding
programming by a tester, so that the test case generation is simplified.