Manual Integration Test: Data Aggregation
DESCRIPTION
Test scrolling and expanding of aggregated data.
PREPARATION
To check console errors open the developer tools before starting the application and check
with each step, that there are no errors and warnings. Ignore initial message bundle errors.
Testing with mock data
Start the Data Aggregation application URL (adjust host and port if necessary):
REALIZE and CHECK
0. Grand Total
Check: The table should have the following content:
1. Expand Germany
(no region)
- Click on the expand button in the row with country
Germany
.
- Check: One new row appears below that row, with country
Germany
and region Saxony
.
- Check: Group Level Count for expanded row changes to
7
.
2. Scroll to the end of the table
- Click on any
Germany
to move the focus to the table.
- Press CTRL-END to scroll to the end of the table.
- Check: The grand total row is still displayed at the top, and the row with
country
Germany
and region Hamburg
is displayed next.
3. Expand the last visible node
- Click on the expand button of the last visible row (with region
Baden-Württemberg
).
- Check: The scrollbar of the table has changed.
- Check: Group Level Count for expanded row changes to
3
.
- Click on any
Germany
to move the focus to the table.
- Press CTRL-END to scroll to the end of the table.
- Check: The grand total row is still displayed at the top, and the row with
country
Germany
and region Baden-Württemberg
is
displayed next.
4. Expand the last visible node
- Click on the expand button of the last visible row with region
Baden-Württemberg
and the segment Small
.
- Check: The scrollbar of the table has changed.
- Check: Group Level Count for expanded row changes to
2
.
- Click on any
Germany
to move the focus to the table.
- Press CTRL-END to scroll to the end of the table.
- Check: The table should have the following content:
5. Collapse Germany
(no region)
- Press CTRL-HOME to scroll to the start of the table.
- Click on the collapse button of the row with country
Germany
and no
region.
- Check: The table should have the same content as initially.
6. Expand Germany
(no region) again
- Click on the expand button in the row with country
Germany
and no
region.
- Click on any
Germany
to move the focus to the table.
- Press CTRL-END to scroll to the end of the table.
- Check: The table should have the same content as described in #4.4.
7. Grand Total at Bottom Only
- Add the URL parameter
&grandTotalAtBottomOnly=true
to the original URL
and repeat the above steps 0 through 6.
- Check: The grand total row (the one with level 0) is now displayed at the
bottom only (instead of the top), but everything else works the same.
8. Grand Total at Top and Bottom
- Add the URL parameters
&grandTotalAtBottomOnly=false&visibleRowCount=6
to the original URL and repeat the above steps 0 through 6.
- Check: The grand total row (the one with level 0) is now displayed both at
the top and bottom, but everything else works the same.
- Check:The grand total row copy at the bottom is shown as a leaf.
9. Subtotals at Bottom Only
- Add the URL parameters
&subtotalsAtBottomOnly=true
to the original URL
and repeat the above steps 0 through 6.
- Check: Whenever a node is expanded, subtotals are not shown in the same row
anymore, but as a separate row after all children. It has the same level, is marked
as a total row, and is a leaf. Everything else works the same.
10. Subtotals at Top and Bottom
- Add the URL parameters
&subtotalsAtBottomOnly=false
to the original URL
and repeat the above steps 0 through 6.
- Check: Whenever a node is expanded, subtotals are still shown in the same row
as before and as a separate row after all children. It has the same level, is marked
as a total row, and is a leaf. Everything else works the same.
- Feel free to test any combination of grand total and subtotals placement.
11. "Download"
- Click the download button in the upper right corner.
- Check: A new browser window or tab opens with the raw data. In theory, you
should be able to save it as a JSON file and import that into Excel.
12. Leaf Count
- Add the URL parameter
&leafCount=true
to the original URL and repeat
the above steps 0 through 6.
- Check: The title is "Sales Amount by Account Responsible (90)" with a proper
leaf count. Everything else works the same.
- Feel free to test any combination with other tests.