25-04-2023 дата публикации
Номер: CN116010274A
Принадлежит:
The invention discloses a data test method and system, and the method comprises the steps: obtaining test support data according with a preset test scene, storing the test support data in a database, obtaining a test case data file, loading the test support file and the test case data file in the database to execute a generated unit test code, obtaining an execution result, and storing the execution result in the database. And asserting the execution result and an expected result in the test case data file to obtain an assertion result, and if the assertion result represents that the execution result is consistent with the expected result in the test case data file, determining that the test case is successfully executed. According to the scheme, all the test codes are generated by the customized code generator, so that the time for compiling the test case codes is shortened, the development cost and the development difficulty are reduced, a developer only needs to compile the test case ...
Подробнее