Automatic testing method
The invention discloses an automatic testing method, which comprises the following steps: responding to an operation of writing data into a table by a user, and generating a random number, wherein the written data comprises first data types, field values corresponding to the first data types and a s...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an automatic testing method, which comprises the following steps: responding to an operation of writing data into a table by a user, and generating a random number, wherein the written data comprises first data types, field values corresponding to the first data types and a second data type, and the table is corresponding to a tested service; converting the table into a bean object, taking the random number as a field value of the second data type, and writing the first data type, the second data type and respective corresponding field values into the table; according to the bean object, converting each field value into a variable, and writing the variable into a memory; calling the tested service, and testing the target variable in the memory by the tested service; and receiving a test result returned by the tested service. Therefore, when the data are written, the data do not need to be written into the table one by one, the code quantity is reduced, and the efficiency of automatic t |
---|