# Manual Integration Test: Data Aggregation With Filter

## DESCRIPTION

Test filtering 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):

- local: http://<host>:<port>/test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.DataAggregation&filter=Region GT M

## REALIZE and CHECK

### 0. Initial content

Check: The table should have the following initial content:

Level | Group Level Count | (Icon's Tooltip) | Country | Region | Segment | Account Responsible | Sales Amount | Local Currency | Sales Number | Is Total
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
0 |  | Collapse |  |  |  |  | 29,709,155 |  |  |
1 |  | Expand | USA |  |  |  | 26,040,410.00 | USD |  |
1 |  | Expand | United Kingdom |  |  |  | 2,507,155.00 | GBP |  |
1 |  | Expand | Germany |  |  |  | 1,161,590 | EUR |  |

### 1. Expand till the end

1. Click on the expand button in the last row.
2. Click on any `Germany` to move the focus to the table.
3. Press CTRL-END to scroll to the end of the table.
4. Repeat until the last row cannot be expanded anymore.
5. Check: The table should have the following content:

   Level | Group Level Count | (Icon's Tooltip) | Country | Region | Segment | Account Responsible | Sales Amount | Local Currency | Sales Number | Is Total
   --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
   0 |  | Collapse |  |  |  |  | 29,709,155 |  |  |
   3 |  | Expand | Germany | Saxony | Large |  | 1,019,044 | EUR |  |
   3 |  | Expand | Germany | Saxony | Mid-Size |  | 116,096 | EUR |  |
   3 | 1 | Expand | Germany | Saxony | Small |  | 26,450 | EUR |  |
   4 |  | Leaf | Germany | Saxony | Small | Michael Meier | 26,450 | EUR | 500 |

### 2. Use the search field

1. Enter "Carol Johnson" in the search field and press ENTER.
2. Click on the expand button of the row with the country `United Kingdom`.
3. Click on the expand button of the row with the region `Wales`.
4. Click on the expand button of the row with the segment `Large`.
5. Check: The table should have the following content:

   Level | Group Level Count | (Icon's Tooltip) | Country | Region | Segment | Account Responsible | Sales Amount | Local Currency | Sales Number | Is Total
   --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
   0 |  | Collapse |  |  |  |  | 815,825.00 | GBP |  |
   1 | 1 | Expand | United Kingdom |  |  |  | 815,825.00 | GBP |  |
   2 | 3 | Expand | United Kingdom | Wales |  |  | 815,825.00 | GBP |  |
   3 | 1 | Expand | United Kingdom | Wales | Large |  | 716,262.00 | GBP |  |
   4 |  | Leaf | United Kingdom | Wales | Large | Carol Johnson | 716,262.00 | GBP | 1,257 |

6. Click on the reset button in the search field.
7. Check: The table should have the initial content again.