Automatic testing method and device for interface
The application discloses an automatic testing method and device for an interface. The automatic testing method comprises the following steps: by adoption of testing equipment, in the program of the interface to be tested, determining a code segment without influencing a return value of the interfac...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The application discloses an automatic testing method and device for an interface. The automatic testing method comprises the following steps: by adoption of testing equipment, in the program of the interface to be tested, determining a code segment without influencing a return value of the interface, generating a testing script for the code segment, and then executing the testing script to acquire the return value of the interface to be tested and a log corresponding to the code segment; then judging whether the acquired return value and the log conform to preset results, if so, determining that the working of the interface to be tested is normal, and if not, determining that the working of the interface to be tested is abnormal. The automatic testing method and device disclosed by the application have the advantages that since the testing equipment not only checks whether the return value is correct, but also checks whether the working of the code segment without influencing on the return value of the interface is normal in the program of the interface to be tested by the log, so that the interface to be tested can be accurately tested by the testing equipment. |
---|