Statistical Report testing methods and key points

Source: Internet
Author: User

This article from: http://bbs.51testing.com/viewthread.php? Tid = 83458

Report testing mainly includes report interface testing, report security, report accuracy, and report display speed (that is, performance ).

If you do not want to adjust your appetite, data accuracy testing includes two types of systems with report testing: Business Systems with statistical analysis modules, which contain analysis reports, the main body of the system is the business system, and the reports provide help for business handling. For example, the annual inspection statistical report and the statistical report of vehicles with fines should be submitted in a month. If such report data is accurate or not, you can add, delete, or modify the parameters of related services or related services, view statistical report data changes and check data accuracy. The other type is that the system only has the statistical function, that is, the Data Warehouse display class, which is separated from the business system and processed at multiple layers, such as the data in the data warehouse, extracted and cleaned, data is mined and processed before presentation. Some fields are not rooted in the original data table. Such data accuracy tests are complex. Of course, it is not easy to modify and locate data errors.

From the perspective of project cost saving, layer-by-layer testing is the best. The full modification rate is also the highest. First, we should establish a test data model, simulate all application tables, and create simple and easy-to-trace data cases. The underlying data tables are tested and tested in a primitive way. Hey hey, through SQL statements and manual computation, compare the data. The method for testing the accuracy of report data in the system is more flexible. ① compare the overlapping reports in the system ② compare the subreport summary with the parent report, that is, compare the monthly report summary with the annual report, comparison between daily report summary and monthly report is only one aspect. You can compare the summary by dimension, region, administrative level, time, and individual, ③ if this method is extended, the Business logical relationship between reports can be used as the basis for comparison. Well, it depends on the needs of testers to understand their individual abilities. If I do not want to do a few words, I will always be happy when I do the test work. One of my colleagues said that no one in the company has always liked to do the test work. This job is too boring. Hey, I said that I have never felt bored after so many years of testing. Repetitive work doesn't mean boring, but programming is actually not repetitive. Who does not repeat yesterday's things every day? eat and eat this action and repeat it for a lifetime? J. Then, ④ use SQL to compare with manual computing. The above is the error method. Next, let's look at what is wrong? Error-prone locations

Original table usage error: because there are many tables and there is no unified data relationship corresponding to the table, it is easy to use the table error. Of course, this should be an error detected by the unit test.

Ø data processing logic error: This is easily caused by a dispute between the tester and the developer regarding the deviation in understanding the requirements. Therefore, during the demand review, the data processing rules should be clearly expressed using expressions or pseudo code. There is also a programmer's mistake, the logic writing is biased, and the boundary value and special circumstances are not properly handled.

Ø data permissions: different users have different viewing permissions on data. This is related to data security.

Ø data error: the number of reserved digits of the Data. Whether the data is processed or not is used for the last calculation.

Ø data errors caused by dictionary tables and data errors, such as the number of purchases based on gender statistics, the table's male/male inversion, or the absence of missing gender items, if else, in this way, the content missing from the table is calculated as the else condition. Or the user status should be considered in the logic. Fields with similar data status are easy to ignore and the test should be considered.

Ø In the last item, when the data volume is large, statistics should be taken into account. The cutting speed, that is, the data integrity, results in incomplete data due to the lag of Data cutting, the statistical results are incomplete. For example, the sales statistics for yesterday are counted, and the data for yesterday is not completely from the business system data to the data pool. Furthermore, the data for the end of the month is, the number of statistics in April is inaccurate due to incomplete data cutting on the last day.

All I think of now is this (to be supplemented)

Report interface and input/output test

The interface consists of an input interface and an output interface. unified interface requirements: Beautiful, unified, and easy to operate. Requirements on the input page: ① the length of the input field cannot exceed the length of the field; ② If the input does not meet the requirements of the field, the query is not allowed. For example, for the money type, you cannot enter Chinese characters, letters, or special characters. ③ Input beyond the user permission range cannot be queried. If a user does not enter a customer number within the permitted range, the user cannot query the number and has a friendly operation prompt.

④ For options, options other than user permissions that can be selected should not appear. ⑤ For fuzzy query of Chinese characters, uncommon words are considered. For example, "��" means that the storage of Chinese characters is garbled due to decoding problems.

Output interface requirements: ① as a report, it should have printing, print preview, report export, and other functions. The data cannot be lost due to report export. The report table box cannot be printed. ② The report arrangement method can be adjusted. Users can sort the data in ascending or descending order of any column. Or, sort by certain rules of a key column. ③ The report title is clear and cannot be vague. ④ items in the report that can be queried by association should be displayed in special cases. If the mouse has an arrow and becomes the palm of your hand, the subreport format is consistent with the parent report format, and the data is consistent.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.