The invention relates to the technical field of interface
automatic testing, and provides a universal API interface
automatic testing method which comprises the following steps: S1, constructing a self-research framework which supports an automatic
system framework of
continuous integration and data driving; s2, designing use cases according to a function test thought, developing a method for reading a function, supporting to read each use case file according to rows, and realizing data driving execution; s3, constructing a configuration file, and performing
configuration management on parameters including a test environment, an execution mode and a retry strategy; s4, compiling an
algorithm, and supporting flexible configuration of a to-be-executed use case and a concurrent use case group through a file; s5, executing the use case, embedding an automatic retry and result merging
algorithm, automatically merging multiple test results, and displaying the results through an Allure report platform; and S6, a table
test report is generated, and interactive cooperation functions including module-level and
system-level
execution time statistical analysis, screening and sorting are supported. And the adaptability, the execution efficiency, the
maintainability and the team cooperation efficiency of the
test scene are remarkably improved.