Manual Integration Test: Create Sales Order Line Items (create on relative binding)
DESCRIPTION
Test entity creation on relative bindings 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):
Testing with back end
Configure your IDE to be able to run 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
Preparation: create a new sales order
- After the application is started, click on
Create
in the Sales
Orders
table.
- Modify the content of the
Note
input field of the
Create Sales Order
dialog.
- Click on
OK
in the Create Sales Order
dialog.
- Click on
Save
in the New Sales Orders
table.
- Click on
OK
in the Success
dialog.
- Check: That
Company Name
in the Sales Order
table
is updated with "SAP".
- Select the newly created sales order.
- Check: The
Sales Order Line Items
table does not have any data.
Create a new sales order item; no refresh allowed; cancel created item
- Click on
Create
in the Sales Order Line Items
table.
- Check: The
Sales Order Line Items
table contains 1 entry.
- Check: The
Sales Order Line Items
table header shows 1
Sales Order Line Items
.
- Click on
Refresh
in the New Sales Orders
table.
- Check: You get a warning about pending changes.
- Click on
Cancel
.
- Click on
Cancel sales order list changes
in the New Sales Orders
table.
- Check: The
Sales Order Line Items
table contains still 1 entry,
because the cancellation has been done for another group ID.
- Click on
Cancel sales order changes
in the Sales Order Details
section.
- Check: The
Sales Order Line Items
table contains 0 entries.
- Check: The
Sales Order Line Items
table header shows
0 Sales Order Line Items
.
Delete transient sales order item
- Click on
Create
in the Sales Order Line Items
table.
- Select the newly created sales order line item.
- Click on
Delete
in the Sales Order Line Items
table.
- Check: The
Sales Order Line Items
table contains 0 entries.
- Click on the
Save
button in the Sales Orders
table.
Create a sales order line item; save, update and delete it
- Click on
Create
in the Sales Order Line Items
table.
- Select the newly created sales order line item.
- Click on
Save
in the Sales Order Details
section.
- Click on
OK
in the Success
dialog.
- Check: The
Sales Order Line Items
table header shows 1
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.
- Within realOData Mode:
- Update the
Note
of the newly created sales order line item.
- Click on
Save
in the Sales Order Details
section.
- Update the
Note
of the just saved sales order line item.
- Update the
Quantity
to an invalid value of "0.0"
(invalid on server side).
- Click on
Save
in the Sales Order Details
section.
- Check: You got an error message about the invalid
Quantity
"0.0".
- Correct the
Quantity
to something greater than "0.0".
- Click on
Save
in the Sales Order Details
section.
- Check: The
Sales Order Line Items
regarding Note
and Quantity
is as expected.
- Change the
Note
for the parent sales order in the
New Sales Orders
table.
- Click on
Save
in the New Sales Orders
table.
- Now change the context by selecting a different sales order in the
New Sales Orders
table.
- Check: That the dependent bindings for the current sales order looks as
expected.
- Select again the sales order selected before.
- Check: That the dependent bindings for the current sales order looks as
expected.
- Change the
Note
in the Sales Order Details
object page
and click on Save
for the Sales Order Details
.
- Now change the
Note
in the New Sales Orders
table and
click on Save
for the New Sales Orders
table.
- Now change again the
Note
in the Sales Order Details
object page and click on Save
for the Sales Order
Details
.
- Check: That you got an error popup regarding outdated Etag.
- Confirm the error popup.
- Reset changes for the
Sales Order Details
.
- Click on
Refresh selected sales order
in the New Sales Orders
table.
- Now change again the
Note
in the Sales Order Details
object page and click on Save
for the
Sales Order Details
.
- Check: That the
Note
in the New Sales Orders
table is updated as expected.
- Delete the created line item in the
Sales Order Line Item
table and
check that the table is updated as expected.
Confirmation of new created sales order
- Again create a new sales order line item for the new sales order.
- Select HT-1000 as Product ID and enter a space in the
Note
field.
- Click on
Save
in the Sales Order Details
section.
- Click on
Confirm selected sales order
in the New Sales Orders
table.
- Check: That you got a dialog telling that one warning exists and asking
if you want to continue.
- Click on
No
/li>
- Check: The dialog was closed and the Sales Order is not yet confirmed.
- Click again on
Confirm selected sales order
in the New Sales
Orders
table.
- Check: That you got a dialog telling that one warning exists and asking
if you want to continue.
- Click on
Yes
- Check: The sales order is confirmed and is filtered out from the
New Sales Orders
table.
Test refresh single row
- Refresh the
Sales Order
table.
- Click on
Create
in the New Sales Orders
table.
- Click on
OK
in the Create Sales Order
dialog.
- Click on
Save
in the New Sales Orders
table.
- Click on
OK
in the Success
dialog.
- Select the newly created sales order.
- Click on
Refresh selected sales order
.
- Click on
Create
in the Sales Order Line Items
table.
- Click on
Save
in the Sales Order Details
section.
- Click on
OK
in the Success
dialog.
- Check: That the
Sales Order Line Items
table contains 1
entry.
- Click on
Refresh selected sales order
.
- Check: That the
Sales Order Line Items
table contains 1
entry.
Test changing the Product ID manually and via value help.
- Click on
Create
in the Sales Order Line Items
table.
- Select the newly created sales order line item.
- Change the
Product ID
of the newly created sales order line item by
entering a different Product ID
.
- Click on
Save
in the Sales Order Details
section.
- Click on
OK
in the Success
dialog.
- Check: That
Product, Category and Type Code
is updated
correctly.
- Now change the
Product ID
again using the value help.
- Click on
Save
in the Sales Order Details
section.
- Check: That
Product, Category and Type Code
are updated
correctly.
- Select another sales order in the
New Sales Orders
table.
- Check: The
Sales Order Line Items
are related to the current
sales order.
- Select again the sales order where the new sales order line items was created within
the
New Sales Orders
table.
- Select again the before created sales order line item in the
Sales Order Line
Item
table.
- Click
Delete
in the Sales Order Line Items
table.
- Check: The
Sales Order Line Items
table contains 0 entries.
- Click on the
Save
button in the Sales Order Details
section.