Method for automatically generating use case and assertion based on API

According to the method for automatically generating the use case and the assertion based on the API, the use case is subjected to templating, an interface file is automatically generated, meanwhile, the test use case template is filled in the file, the assertion device is generated after first-time...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG SHIXIA, ZHAO LEI, LAN YANGBI
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:According to the method for automatically generating the use case and the assertion based on the API, the use case is subjected to templating, an interface file is automatically generated, meanwhile, the test use case template is filled in the file, the assertion device is generated after first-time operation, and follow-up workers only need to maintain data in the assertion device according to different services. Compared with a conventional interface automatic test, the method for automatically generating the test case and the assertion device improves the compiling speed of the test case, automatically generates the catalog and the case according to the module name and the interface name, omits the manual creation of the case, more importantly, generates the assertion device, and improves the test efficiency. According to the method, a large amount of time for manually compiling assertion codes is saved, only the expected value and the assertion mode need to be filled in the assertion device in combination