The invention discloses a report test method and device,
electronic equipment and a
computer program product. The method comprises the following steps: acquiring data generation configuration information; according to the data generation configuration information, generating report
test data by using a
data generator which is compiled based on data generation rules of a plurality of data sources; acquiring data measurement and calculation configuration information; according to the data measurement and calculation configuration information, a data measurement and calculation
assembly is used for measuring and calculating the report
test data, report measurement and calculation data is generated, and the data measurement and calculation
assembly is obtained through compiling based on a data calculation rule; and obtaining a report operation result of the tested
software, and checking the report measurement and calculation data and the report operation result to obtain a report test result. According to the method, automatic generation of report
test data under multiple data sources is supported, various test scenes can be instantiated, and the data writing efficiency and the test
data consistency are improved; and filtering and
processing of the test data are supported, a report expected result is obtained, and the data measurement and calculation efficiency and accuracy are improved.