The invention discloses a method,
system, medium and equipment for constructing a large amount of
test data based on
Web API, and the method comprises the following steps: S1, designing a demand specification; s2, a
test case; s3, judging whether preset data of the
test case is greater than a preset value or not; s4, if it is judged that the preset data of the
test case text is not larger than the preset value, ending; if it is judged that the preset data of the test case text is larger than the preset value, the
test data size is determined, then the relevant api interface is matched, the test device is switched to run the api interface, and a large amount of needed
test data is obtained through running of the api interface. The method has the advantages that for the test case needing to construct a large amount of test data, the large amount of test data can be rapidly constructed by designing a demand specification and analyzing a service scene, starting from the test case, combining a related api interface and
test equipment, inputting parameters, outputting results and using the
test equipment to run the api interface, the
test efficiency can be effectively improved, and the
test efficiency is improved. And the accuracy of a test result can be further ensured.