Manual Integration Test: Message Handling
DESCRIPTION
Test message handling 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):
REALIZE and CHECK
Bound messages in Sales Orders application
- Check: On the
Show messages button the number of messages is
2.
- Check: The
Note field of the sales order with the ID
0500000001 has a colored border indicating a warning.
- Check: The row of the sales order with the ID
0500000001 is
highlighted as a warning.
- Check: When clicking into the
Note field of the sales order with
the ID 0500000001 the warning "Enter customer reference if available"
is displayed.
- Enter the value "HEADER_MESSAGE" in the
Note input field for the
sales order with the ID 0500000000.
- Press the
Save sales orders button in the New Sales Orders
- Check: The
Note field is highlighted as a success.
- Click on the
Show Messages button.
- Check: A popover is displayed containing 4 messages: an information message
with the text "Example for an unbound message", a warning message with the text
"Enter customer reference if available", an error message with the text
"Minimum order quantity is 2", and a success message with the text
"This is your requested bound header message".
- Check:A message strip is displayed above the table indicating that there are
warnings for the table.
- Click on the message "Example for an unbound message" to get to the message details.
- Check: There is a link with text "Technical Details".
- Click the link.
- Check: A popover opens with the technical details as JSON.
- Close the technical details popover.
- Check: The content of the message details is "Details for "Enter customer
reference if available" (relative longtext URL).".
- Go back to the messages overview.
- Click on the message "Enter customer reference if available" to get to the message
details.
- Check: The content of the message details is:
Details for "Enter
customer reference if available" (relative longtext URL).
- Check: There is a link with text "Technical Details".
- Click the link.
- Check: A popover opens with the technical details as JSON.
- Close the technical details popover.
- Go back to the messages overview.
- Click on the message title "Enter customer reference if available"
- Check: The
Note field of the sales order with the ID
0500000001 gets focused and the same message is highlighted
below/beside the input field.
- Close the message popover.
- Check: On the
Show messages button, the number of messages is
now 1. When clicking into the Note field of the sales
order with the ID 0500000001, the "Enter customer reference if
available" warning is still displayed.
- Check: The
Note field of the sales order with the ID
0500000001 still has a colored border.
- Click on the
Show Messages button.
- Check: A popover is diplayed containing 1 messages.
- Close the message popover.
- In the
New Sales Orders table select the sales order with the ID
0500000001.
- Check: On the
Show messages button the number of messages is
2.
- Check: The
Note field of the sales order with the ID
0500000001 has a colored border indicating a warning.
- Check: When clicking into the
Note field of the sales order with
the ID 0500000001 the warning "Enter customer reference if available"
is displayed.
- Check: The
Note field in the Sales Order Details
section has a colored border indicating a warning.
- Check: When clicking into the
Note field in the
Sales Order Details section the warning "Enter customer reference if
available" is displayed.
- Check: The
Quantity field of the sales order line item with the
item position 0000000020 has a colored border indicating an error.
- Check: When clicking into the
Quantity field of the sales order
line item with the item position 0000000020 the error "Minimum order
quantity is 2" is displayed.
- Click on the
Show Messages button.
- Check: A popover is displayed containing 2 messages: a warning message with
the text "Enter customer reference if available" and an error message with the text
"Minimum order quantity is 2".
- Check:A message strip is displayed above the table indicating that there are
issues for the table.
- Check: The row of the sales order with the ID
0500000001 is
highlighted as an error.
- Click on the message "Minimum order quantity is 2" to get to the message details.
- Check: The content of the message details is:
Details for "Minimum
order quantity is 2" (absolute longtext URL).
- Go back to the messages overview.
- Close the message popover.
- Check: On the
Show messages button the number of messages is
2.
- Check: The
Note field of the sales order with the ID
0500000001 still has a colored border.
- Check: The
Note field in the Sales Order Details
section still has a colored border.
- Check: The
Quantity field of the sales order line item with the
item position 0000000020 still has a colored border indicating an
error.
- In the
New Sales Orders table select the sales order with the ID
0500000000.
- Check: There is no input field with a colored border in the
Sales Order
Line Items table.
- Check: On the
Show messages button the number of messages is
still 2.
- In the
New Sales Orders table select again the sales order with the ID
0500000001.
- Check: The
Quantity field of the sales order line item with the
item position 0000000020 again has a colored border indicating an
error.
- Check: On the
Show messages button the number of messages is
2.
- Click on the
Show Messages button.
- Check: A popover is diplayed containing 2 messages: a warning message with
the text "Enter customer reference if available" and an error message with the text
"Minimum order quantity is 2".
- Close the message popover.
Error messages in Sales Orders application
PATCH scenario
- In the
New Sales Orders table, in the row for sales order ID
0500000003, enter the value modified Note in the
Note input field.
- In the row for sales order ID
0500000004, enter the value
RAISE_ERROR in the Note input field.
- Press the
Save sales orders button in the New Sales Orders
table
- Check: The message popover is opened and you got an error regarding the
invalid
Note value.
- Click on the message "Property `Note` value `RAISE_ERROR` not allowed!" to get to
the message details.
- Check: There is a link with text "Technical Details".
- Click the link.
- Check: A popover opens with the technical details as JSON.
- Close the technical details popover.
- Check: The
Note field of the sales order with the ID
0500000004 has a colored border indicating the error.
- Check: When clicking into the
Note field of the sales order with
the ID 0500000004 the same error is highlighted below/beside the input
field.
- Close the message popover.
- Check: The
Note error state indicator is gone.
- Enter a different value in the
Note input field for sales order ID
0500000004.
- Press the
Save sales orders button in the New Sales Orders
- Check: The error is no longer raised.
POST scenario
- Select sales order with number "0500000004".
- Press the
Create sales order line item button in the
Sales Order Line Items table.
- Check: The new sales order line item is at the end of the list.
- In the
Quantity input field for the newly created sales order line
item enter value 0.000.
- Press the
Save sales order button in the
Sales Order Details section.
- Check: The message popover is opened and you get an error regarding
invalid
Quantity value.
- Check: The
Quantity field of the new sales order line item
has a colored border indicating an error.
- Check: When clicking into the
Quantity the same error is
highlighted below/beside the input field.
- Close the message popover.
- Check: The
Note error state indicator is gone.
- Enter a value greater then 0 in the
Quantity input field.
- Press the
Save sales order button in the
Sales Order Details section.
- Confirm the success popup.
- Check: No error is shown (and the items gets again it's initial values,
because of the refreshSingle() triggered by the
Save sales order in the
Sales Order Details section).
Function scenario
- Select sales order with number "0500000002".
- Press the
Simulate discount for selected sales order button in the
New Sales Orders table.
- Check: A
Simulate Discount dialog is opened.
- Check: The content for the
Sales Order: text field is
"0500000002".
- Check: The content for the
Gross Amount: text field is "250.73".
- Check: The
Calculated Gross Amount: text field is empty.
- Enter a discount of "25" into the
Reduction in %: step input control.
- Press the
Execute discount simulation button in the dialog.
- Check: The
Calculated Gross Amount: text field is "188.05".
- Enter a discount of "75" into the
Reduction in %: step input control.
- Press the
Execute discount simulation button in the dialog.
- Check: The error messages popover has opened and you got an error
"User John Doe is not authorized to approve more than 50% discount w/o approver".
- Check: The step input control has a red border. If you click into the step
input control you see the same error "User John Doe is not authorized to approve
more than 50% discount w/o approver" beside the step input control.
- Check: The approver input control has a red border. If you click into the
approver input control you see the same error "User John Doe is not authorized to
approve more than 50% discount w/o approver" beside the input control.
- Close the message popover.
MessageStrip, highlight and filter entities by messages scenario
- Check: On the
Show messages button the number of messages is
2.
- Check: A message strip is displayed above the
New Sales Orders
table indicating that there are issues for the table.
- Check: The row of the sales order with the ID
0500000001 is
highlighted as an error.
- Press the 'More' button of the
New Sales Orders table.
- Check: On the
Show messages button the number of messages now is
4.
- Check: The row of the sales order with the ID
0500000006 is
highlighted as an error.
- Click on the
Show Messages button.
- Check: A popover is displayed containing 4 messages:
- a warning message with the text "Enter customer reference if available"
- an error message with the text "Minimum order quantity is 2"
- a warning "Enter a Note" and
- another error message with the text "Minimum order quantity is 2".
- Close the message popover.
- In the
New Sales Orders table select the sales order with the ID
0500000006.
- Check: On the
Show messages button the number of messages is
still 4.
- In the
New Sales Orders table select the sales order with the ID
0500000006.
- Check: A message strip is displayed above the
Sales Order Line Items table indicating that there are issues.
- In the
New Sales Orders table select the sales order with the ID
0500000005 which has no issues.
- Check: The
Sales Order Line Items table shows no issues: There
is no message strip above the table.
- In the
New Sales Orders table select the sales order with the ID
0500000006 again.
- Check: A message strip is displayed above the
Sales Order Line Items table indicating that there are issues.
- Check: There are 8 line items, one is highlighted as an error and has a
quantity field with value state error "Enter a minimum value of 2"
- Press the
Create sales order line item button in the
Sales Order Line Items table.
- Check: The new sales order line item is at the end of the list.
- Change the
Filter value in the Sales Order Line Items
table from Show All to With Error Messages.
Check: Only the item with the error and the new item at the end are
displayed.
- Check: On the
Show messages button the number of messages is
still 4.
- Change the
Filter value in the Sales Order Line Items
table from With Error Messages to Show All.
Check: All 9 line items are displayed and the new sales order line item is
still at the end of the list.
- Check: On the
Show messages button the number of messages is
still 4.
- Click on
Cancel sales order changes button in the
Sales Orders Details.
- Check: The new sales order item is gone.
- Click on the
Delete button in the Sales Orders table.
- Check: On the
Show messages button the number of messages is
2.
- Click on the
Cancel sales order list changes button in the
Sales Orders table.
- Check: On the
Show messages button the number of messages is
4.
- In the
New Sales Orders table select the sales order with the ID
0500000006 again.
- Enter any text in the note input field of the first sales order item.
- Enter a quantity higher than 1 in the quantity input field of the second sales order
item.
- Press the
Save sales order button in the
Sales Order Details section.
- Check: The row of the sales order with the ID
0500000006 is
no longer highlighted.
- Check: On the
Show messages button the number of messages is
2.
- Click on the
Show Messages button.
- Check: The warning "Enter a Note" and one error "Minimum order quantity is 2"
now are gone.
- Close the message popover.
Strict handling scenario
- In the
New Sales Orders table select the sales order with the ID
0500000000.
- Click on
Confirm selected sales order in the New Sales Orders
table.
- Check: That you got a dialog showing a warning and an error and asking
you whether to continue or not.
- 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 again a dialog showing a warning and an error and asking
you whether to continue or not.
- Click on
Yes
- Check: The sales order is confirmed and is filtered out from the
New Sales Orders table.