# Manual Integration Test: Basics

## DESCRIPTION

Test some basic functionality.

## 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.

### Testing with mock data

Start the Sales Orders application URL (adjust host and port if necessary):

- as sample preview in the SDK: http://<host>:<port>/sapui5-sdk-dist/#/sample/sap.ui.core.sample.odata.v4.SalesOrders/preview
- local: http://<host>:<port>/test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.SalesOrders

### Testing with back end

Configure your IDE to be able to execute the Sales Orders application against an ABAP back end system. Start the Sales Orders 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.SalesOrders&realOData=true

## REALIZE and CHECK

### Set a base context for the a property binding

1. After the application is started, click on the button with the check mark icon right of the text `Favorite product ID`
2. Check: The text `HT-1000` appears between `Favorite product ID` and the button you just pressed.

### Sort after filtering (with back end only)

1. Enter '1000' in the field `Filter by gross amount greater than` and press `Enter`.
2. Check: The first sales order in the sales orders has a gross amount greater than 1000.
3. Press the button `Gross Amount` in the header of the respective column of the sales orders table.
4. Check: The filter on gross amount still applies: The first sales order in the sales orders still has a gross amount greater than 1000.

### Sort via API call changeParameters (with back end only)

1. Press the button `Sales Order ID` in the header of the respective column of the sales orders table.
2. Check: The filter on gross amount still applies and the list is sorted ascending in regards to both sales order id and gross amount.

### Read data for relative list bindings

1. Select the first sales order
2. Check: The `Sales Order Line Items` table is not empty. All items displayed in the table have the ID of the selected sales order in the column `Sales Order ID`
3. Select the first sales order item
4. Check: The `Supplier Contact Information` list is not empty.
5. Select the second sales order item
6. Check: The contacts shown in the `Supplier Contact Information` table are different from the ones shown for the first sales order item.

### Filter on relative list binding (with back end only)

Note: Test runs on sales order items table which is non-growing and therefore does not use extended change detection.

1. Select the first sales order
2. In the `Filter by ProductID` field in the header of the `Sales Order Line Items` table, enter the product ID of some line item displayed in the table.
3. Check: The `Sales Order Line Items` table contains exactly one row with the sales order item having the product ID entered as filter.

### Sort on list binding updates or refreshes dependent bindings (with back end only)

1. Select the first sales order
2. Change sort order of sales orders by clicking the `Gross Amount` column header.
3. Check: The Sales Order Details display the details for the sales order selected after sorting: The Sales Order ID is the same.