Manual Integration Test: Create Multiple Sales Orders
DESCRIPTION
Test creation of multiple entities with the Sales Orders 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 Sales Orders application with following URL (adjust host and port if necessary):
New sales orders can be created only, if the Note
property has one of the
following values: "new 1"
, "new 2"
, "new 3"
, or
"new 4"
(without quotation marks).
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 with the URL (adjust host and port if necessary):
REALIZE and CHECK
Multiple create, delete and reset changes
- Click on the
Create
button in the Sales Orders
table.
- Check: The table below the
Create New Sales Order
dialog gets a
new first row with an empty Sales Order ID
and the Note
as
displayed in the Create New Sales Order
dialog.
- Modify the content of the
Note
input field of the
Create New Sales Order
dialog for example to: "new 1".
- Check: The
Note
of the first sales order (table below the
dialog) is updated automatically after leaving the input field of the dialog.
- Click on
OK
in the Create New Sales Order
dialog.
- Click on
Save
button in the Sales Orders
table.
- Check: You get a success message for creating the sales order.
- Click on
OK
in the Success
dialog.
- Check: The content of the new sales order is updated (for example
Sales Order ID
).
- Create a second sales order: Repeat steps 1 - 9 for example with the
Note
: "new 2".
- Create a third sales order: Repeat steps 1 - 5 (do not save!) for example
with the
Note
: "new 3".
- Create a fourth sales order: Repeat steps 1 - 5 (do not save!) for example
with the
Note
: "new 4".
- Select the sales order created in step 11 (with
Note
"new 3").
- Click on
Delete
button in the Sales Orders
table.
- Click on the
OK
button in the Sales Order Deletion
dialog.
- Check:You get a success message for the deleted sales order.
- Click on
OK
in the Success
dialog.
- Check: The selected sales order is removed from the
Sales Orders
table.
- Click on
Cancel sales order list changes
button in the
Sales Orders
table.
- Check: The not yet saved new sales order created in step 12 is gone.
Multiple create, POST with back-end error, restart after fix works fine
- Create 2 new sales orders by repeating steps 11 and 12.
- Change the
Note
of a not yet saved new sales order (for example with
the Note
"new 4") to "RAISE_ERROR" (without quotation marks).
- Click on
Save
button in the Sales Orders
table.
- Check: The message pop-over opens and you got an error that the value
"RAISE_ERROR" for the
Note
property is not allowed.
- Close the message pop-over.
- Check: Both sales orders created in step 21 don't have a sales order ID.
- Change the invalid
Note
from "RAISE_ERROR" to for example "new 4"
(without quotation marks).
- Click on
Save
button in the Sales Orders
table.
- Check: You get a success message for creating both sales orders. Confirm each
success dialog with
OK
.
- Check: The content of the two new sales order is updated (for example
Sales Order ID
).
Multiple create, relative
- Create a new sales order: Repeat steps 1 - 9 for example with the
Note
: "new 3".
- Click on the
Create
button in the Sales Order Line Items
table.
- Check: You can't select a different sales order in the
Sales Orders
table.
- Update the
Note
of the newly created sales order line item to "new 10".
- Create a second sales order line item by clicking on the
Create
button
in the Sales Order Line Items
table.
- Check: The secondly created sales order line item is inserted after the
formerly created one.
- Update the
Note
of the last created sales order line item to "new 20".
- Click on the
Save
button in the Sales Order Details
section.
- Click on
OK
in the Success
dialog two times.
- Check: The
Sales Order Line Items
table header shows 2
Sales Order Line Items
in realOData mode and 0 in mock data mode.
Remark: With mock data the table gets empty because of a restriction in
the mock server implementation.
- If
realOData=true
- Open the Sales Order Schedules dialog.
- Check: The table contains two schedules.
- Click on
Select all
.
- Click on
Delete selected schedules
.
- Check: The
Sales Order Schedules
table is empty.
- Close the Sales Orders Schedules dialog.
- Check: The
Sales Order Line Items
table is empty.
- Check: You now can select a different sales order in the
Sales Orders
table.