Manual Integration Test: Multiple Inline Creation Rows Grid
DESCRIPTION
Test of the Multiple Inline Creation Rows Grid application.
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 Multiple Inline Creation Rows Grid application with following URL (adjust host and
port if necessary):
http://<host>:<port>/test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.MultipleInlineCreationRowsGrid
REALIZE and CHECK
Test the app within draft mode and non-draft mode.
To start the app in non-draft mode simply add URL parameter "&updateGroupId=update" to
the above URL
http://<host>:<port>/test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.MultipleInlineCreationRowsGrid&updateGroupId=update
For non-draft mode the app has additional Save
and Cancel
buttons and the test description differs a little.
- Check: A list with two empty rows, followed by three products appears.
- Select the first product with ID "10".
- Check: A table with title "Product 10, 3 Parts" appears. It contains three
product parts, followed by two empty rows.
- Check: The
Delete part
button is active for the persisted parts
and inactive for the empty rows.
- Enter "99" into the
ID
field of the first empty row and press
"Enter" key.
- Check: The
Delete part
button of the row becomes active.
- Check: The table title changes to "Product 10, 4 Parts".
- Check: A new empty row appears.
- Within non-draft mode:
- Check: The product with ID "99" now has the state "Transient".
- Press
Save
.
- Check: The product with ID "99" now has the state "Persisted".
- Within draft mode:
- Check: The product with ID "99" now has the state "Persisted".
- Enter "100" into the
ID
field of the first empty row and press
"Enter" key, within non-draft press Save
.
- Check: An error message "Key exists already" appears.
- Check: The
ID
field has a colored border indicating the error.
- Check: The
Delete part
button of the row becomes active.
- Check: The table title changes to "Product 10, 5 Parts".
- Check: A new empty row appears.
- Within non-draft mode:
- Press
Cancel
.
- Check: The table title changes to "Product 10, 4 Parts".
- Check: The row with
ID
"100" disappears.
- Enter "101" into the
ID
field of the first empty row and press
"Enter" key.
- Check: The
Delete part
button of the row becomes
active.
- Check: The table title changes to "Product 10, 5 Parts".
- Check: A new empty row appears.
- Press
Save
.
- Check: The product with
ID
"101" now has the state
"Persisted".
- Click on The
Delete part
button of the fourth row with the ID
"101".
- Confirm the dialog with clicking on
Ok
.
- Check: The table title changes to "Product 10, 4 Parts".
- Check: The row disappears.
- Select the second product with ID "20".
- Check: The table title changes to "Product 20, 3 Parts".
- Check: You see 3 "Persisted" and 2 "Inactive" parts.
- Enter "222" into the
ID
field of the first empty row and press
"Enter" key
- Check: The product with ID "222" now has the state "Transient".
- Select the first product with ID "10".
- Select the second product with ID "20".
- Check: The product with ID "222" is visible again and has the state
"Transient" and again there are 2 empty rows.
- Within draft mode:
- Enter "101" into the
ID
field of the first empty row and press
"Enter" key.
- Check: The
Delete part
button of the row becomes
active.
- Check: The table title changes to "Product 10, 6 Parts".
- Check: A new empty row appears.
- Click on The
Delete part
button of the fifth row with the ID
"100".
- Confirm the dialog with clicking on
Ok
.
- Check: The table title changes to "Product 10, 5 Parts".
- Check: The row disappears.
- Select the second product with ID "20".
- Check: The table title changes to "Product 20, 3 Parts".
- Select the first product with ID "10".
- Check: The table title changes to "Product 10, 5 Parts".
- Check: You see 5 rows with state "From Server" and 2 empty rows.
- Check: The 5 rows with state "From Server" have now a different
description than before because they are reread again.
- Select the second product with ID "20".
- Check: The table title changes to "Product 20, 3 Parts".
- Check: You see 3 "Persisted" and 2 "Inactive" parts.
- Press
Quantity
button in parts table header.
- Check: The parts table is sorted by quantity ascending and the empty
rows are still at the end.
- Press
Refresh
.
- Check: The parts table did not change.
- Enter "100" into the
ID
field of the last empty row of the
Products list and press Enter
- Check: The list title changes to "4 Products".
- Check: A new empty row appears below.
Test the app with legacy placement of inline creation rows
To start the app with legacy placement add URL parameter "&legacy=true" to the above
URL
http://<host>:<port>/test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.MultipleInlineCreationRowsGrid&legacy=true
- Check: A list with two empty rows, followed by three products appears.
- Select the first product with ID "10".
- Check: A table with title "Product 10, 3 Parts" appears. It contains two
empty rows, followed by three product parts.
- Check: The
Delete part
button is active for the persisted parts
and inactive for the empty rows.
- Enter "99" into the
ID
field of the last empty row and press
"Enter" key.
- Check: The
Delete part
button of the row becomes active.
- Check: The table title changes to "Product 10, 4 Parts".
- Check: A new empty row appears above.
- Check: The product with ID "99" now has the state "Persisted".
- Enter "100" into the
ID
field of the last empty row and press
"Enter" key.
- Check: An error message "Key exists already" appears.
- Check: The
ID
field has a colored border indicating the error.
- Check: The
Delete part
button of the row becomes active.
- Check: The table title changes to "Product 10, 5 Parts".
- Check: A new empty row appears above.
- Enter "101" into the
ID
field of the last empty row and press
"Enter" key.
- Check: The
Delete part
button of the row becomes
active.
- Check: The table title changes to "Product 10, 6 Parts".
- Check: A new empty row appears.
- Click on The
Delete part
button of the fourth row with the ID
"100".
- Confirm the dialog with clicking on
Ok
.
- Check: The table title changes to "Product 10, 5 Parts".
- Check: The row disappears.
- Select the second product with ID "20".
- Check: The table title changes to "Product 20, 3 Parts".
- Select the first product with ID "10".
- Check: The table title changes to "Product 10, 5 Parts".
- Check: You see 5 rows with state "From Server" and 2 empty rows.
- Check: The 5 rows with state "From Server" have now a different
description than before because they are reread again.
- Select the second product with ID "20".
- Check: The table title changes to "Product 20, 3 Parts".
- Check: You see 2 "Inactive" empty rows and 3 "From Server" parts.
- Press
Quantity
button in parts table header.
- Check: The parts table is sorted by quantity ascending and the empty
rows are still at the top.
- Press
Refresh
.
- Check: The parts table did not change.