Interface testing method and device

The embodiment of the invention provides an interface testing method and device. The interface testing method comprises the steps: acquiring all to-be-tested interfaces and request parameters corresponding to the to-be-tested interfaces; in a pre-deployed first test environment and a second test env...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHOU YONG, ZHANG PEI, YAO ZHIQIN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides an interface testing method and device. The interface testing method comprises the steps: acquiring all to-be-tested interfaces and request parameters corresponding to the to-be-tested interfaces; in a pre-deployed first test environment and a second test environment the same as the first test environment, performing return value verification on the to-be-tested interface according to the request parameter to obtain a verification result; when the verification result is consistent, obtaining first return information for the to-be-tested interface in thefirst test environment and second return information for the to-be-tested interface in the second test environment; and performing comparison operation on the first return information and the secondreturn information, and obtaining a test result according to a comparison result. Whether the to-be-tested interface is a read interface or a write interface, database log level comparison is performed on the to-be-tested inte