Manual Integration Test: ODataListBinding#create in Sales Orders Application (V2)

DESCRIPTION

Test ODataListBinding#create in the OData V2 Model with the Sales Orders application.

PREPARATION

To check console errors open the developer tools before starting the application and check for each step that there are no errors and warnings.

Testing with back end

Configure your IDE to be able to execute the Sales Orders application against an ABAP back-end system.
Depending on your installation, you might have to replace Port 8080 in all following links with the port of your local server hosting the Sales Orders application.
It might be necessary to add a URL segment /testsuite directly after the port to the following URLs depending on your development setup.

Start the Sales Orders V2 application with the English locale:

Testing with mock data

Configure your IDE to be able to execute the Sales Orders application locally or use a centrally deployed version of the Sales Orders application as provided by the test coordinator.
Depending on your installation, you might have to replace Port 8080 in all following links with the port of your local server hosting the Sales Orders application.
It might be necessary to add a URL segment /testsuite directly after the port to the following URLs depending on your development setup.

Start the Sales Orders V2 application with the English locale:

REALIZE and CHECK

(I) Create new sales orders inline

Create two sales orders without saving them

  1. Click the Use Table button on the top right side to display the Sales Orders table.
  2. Remember the number of sales orders for further testing. The number can be found in the header line of the Sales Orders table.
  3. Click on the Create sales order button in the Sales Orders table.
    Check: An empty table row for the new sales order is displayed at the top of the table at position one.
    Check: The empty table row is marked as transient in the first column. Hover over the icon to see the status text.
    Check: The count has been increased by one.
  4. Enter 1 in the Note input field of the newly created sales order
  5. Repeat step 3 and use 2 as the value for the Note in step 4.
    Check: The newly created sales order is displayed at position two in the table.

Sort the Sales Orders table

  1. Use the Sort select box to sort the table in Ascending order.
    Check: The two transient sales orders keep their positions.
    Check: The persisted sales orders are in ascending order regarding the sales order ID.
    Check: The count has not changed.
  2. Use the Sort select box to sort the table in Descending order.
    Check: The two transient sales orders keep their positions.
    Check: The persisted sales orders are in descending order regarding the sales order ID.
    Check: The count has not changed.

Filter the Sales Orders table by Customer Name

  1. Remember the number of sales orders.
  2. Enter SAP in the filter input field of the Sales Orders table and press Go.
    Check: The two transient sales orders keep their positions.
    Check: All other sales orders have SAP as customer name.
    Check: The count has been decreased to the number of sales orders with customer name SAP plus the two transient sales orders.
  3. Clear the filter input field of the Sales Orders table and press Go.
    Check: The two transient sales orders keep their positions.
    Check: The table contains sales orders for different customer names.
    Check: The count has been increased to the same number as before filtering.

Refresh the Sales Orders table

  1. Create and check two more sales orders as described in steps 2-4 in section 'Create two sales orders without saving them' with the values 3 and 4 for the Note.
    Check: The newly created sales orders are displayed at position three and four in the table.
  2. Remember the number of sales orders.
  3. Press the Refresh sales orders table button.
    Check: The four transient sales orders keep their positions.
    Check: The count has not changed.

Delete a transient sales order

  1. Remember the number of sales orders.
  2. Select the newly created entry with the Note 3 and press the Delete selected sales order button.
  3. Confirm the dialog box by choosing OK.
    Check: The selected sales order was deleted.
    Check: The count has been decreased by one.
    Check: The three remaining transient sales orders keep their positions.

Filter and save the transient sales orders

  1. Enter Talpa in the filter input field and press Go.
    Check: Only the three transient sales orders and sales orders with the customer name Talpa are shown.
  2. Remember the number of sales orders.
  3. Press the Save button at the bottom of the page.
    Check: The count has not been changed.
    Check: The three sales orders have the status Persisted and all three sales orders have a sales order ID.
    Check: The three sales orders keep their positions even if the filter does not match.

Delete the saved sales order with the Note 4

  1. Remember the number of sales orders.
  2. Select the sales order with the Note 4 and press the Delete selected sales order button.
  3. Confirm the dialog box by choosing OK.
    Check: The selected sales order was deleted.
    Check: The count has been decreased by one.
    Check: The two formerly saved sales orders keep their positions.

Sort and page through the Sales Orders table

  1. Remove Talpa in the filter input field and press Go.
    Check: The sales orders are displayed in descending order.
    Check: The status of the two formerly saved sales orders has changed to From Server.
  2. Use the Sort select box to sort the table in Ascending order.
  3. Press the More button of the Sales Orders table until this button is not displayed anymore.
    Check: All sales orders are shown in the correct sequence.
    Check: No duplicate sales order is displayed.
    Check: The two formerly saved sales orders are at the bottom of the table.

(II) Create new sales order items inline

Search for a sales order with two sales order items. In case of mock data: Use sales order 230.

Create two sales order items without saving them

  1. Enter that sales order ID into the Sales Order input field and press Enter or click the Show Sales Order button.
    Check: The sales order and the sales order items are loaded and displayed in the Sales Order Details section.
  2. Remember the number of sales order items for further testing. The number can be found in the header line of the Sales Order Items table.
  3. In the Sales Order Items table click on the Create a sales order item button.
    Check: A Create a New Sales Order Item dialog opens.
  4. In the Create a New Sales Order Item dialog enter:
  5. In the Create a New Sales Order Item dialog press the Close button.
    Check: A new row for the new sales order item is displayed at the end of the table.
    Check: The new row is marked as transient in the first column. Hover over the icon to see the status text.
    Check: The Sales Order ID is 230.
    Check: The Product ID is HT-1010.
    Check: The Quantity is 1.
    Check: The Unit is EA.
    Check: The Note is 1.
    Check: The Item Position, Gross Amount and Currency fields are empty.
    Check: The count has been increased by one.
  6. Repeat steps 3 to 5; use HT-1060 for the Product ID and 2 for the Note in steps 4 and 5.

Sort the Sales Order Items table

  1. Click on the Item Position column and sort the table in Descending order.
    Check: The two transient sales order items keep their positions.
    Check: The persisted sales order items are in descending order regarding the sales order item position.
    Check: The sales order items count has not changed.
  2. Click on the Item Position column and sort the table in Ascending order.
    Check: The two transient sales order items keep their positions.
    Check: The persisted sales order items are in ascending order regarding the sales order item position.
    Check: The sales order items count has not changed.

Filter the Sales Order Items table by Gross Amount

  1. Remember the number of sales order items.
  2. Click on the Gross Amount column, enter <1000 into the filter input field and press enter.
    Check: The two transient sales order items keep their positions relative to the persisted sales order items.
    Check: All other sales order items have smaller gross amount than 1000.
    Check: The count has been decreased to the number of sales orders with smaller gross amount than 1000 plus the two transient sales order items.
  3. Click on the Gross Amount column, clear the filter input field and press enter.
    Check: The two transient sales order items keep their positions relative to the persisted sales order items.
    Check: The table contains all sales order items as before filtering.
    Check: The count has been increased to the same number as before filtering.

Refresh the Sales Order Items table

  1. Create and check two more sales order items as described in steps 2-5 in section 'Create two sales order items without saving them' with HT-1042 for the Product ID and 3 for the Note and with HT-9996 for the Product ID and 4 for the Note and scroll after each sales order item creation to the end of the table.
  2. Remember the number of sales order items.
  3. Press the Refresh sales order items table button.
    Check: The four transient sales order items keep their positions.
    Check: The count has not changed.

Delete a transient sales order item

  1. Remember the number of sales order items.
  2. Select the newly created entry with the Note value 3 and press the Delete selected sales order item button.
  3. Confirm the dialog box by choosing OK.
    Check: The selected sales order item was deleted.
    Check: The count has been decreased by one.
    Check: The three remaining transient sales orders keep their positions relative to the persisted sales order items.

Context switch

  1. Switch to another sales order by entering another sales order ID, in case of mock data 230.1, into the Sales Order input field and press Enter or click the Show Sales Order button.
    Check: The sales order and the sales order items are loaded and displayed in the Sales Order Details section.
    Check: There are no transient sales order items in the Sales Order Items table.
  2. Switch back to the sales order for which you created new entries by entering that sales order ID, in case of mock data 230, into the Sales Order input field and press Enter or click the Show Sales Order button.
    Check: The sales order and the sales order items are loaded and displayed in the Sales Order Details section.
  3. Scroll to the end of the table.
    Check: The three transient sales order items in the Sales Order Items table are restored in the same order as before the context switch.

Save the sales order

  1. Use the Sort select box to sort the table in Descending order.
    Check: The two transient sales orders keep their positions relative to the persisted ones.
    Check: The persisted sales orders are in descending order regarding the sales order ID.
    Check: The count has not changed.
  2. Remember the number of sales order items.
  3. Scroll to the end of the table.
    Check: The three transient sales order items in the Sales Order Items table and one persisted sales order item are displayed.
  4. Press the Save button at the bottom of the page.
  5. Confirm the successful creation for the three new items.
    Check: The count has not been changed.
    Check: The three sales order items have the status Persisted and all three sales order items have an item position.
    Check: The three sales order items keep their positions.

Delete the saved sales order item with the Note 4

  1. Remember the number of sales order items.
  2. Select the sales order item with the Note 4 and press the Delete the selected sales order item button.
  3. Confirm the dialog box by choosing OK.
    Check: The selected sales order was deleted.
    Check: The count has been decreased by one.
    Check: The two formerly saved sales order items keep their positions.

Switch context again

  1. Switch again to another sales order by entering another sales order ID, in case of mock data 230.1, into the Sales Order input field and press Enter or click the Show Sales Order button.
    Check: The sales order and the sales order items are loaded and displayed in the Sales Order Details section.
    Check: There are no transient sales order items in the Sales Order Items table.
  2. Switch back to the sales order for which you created new entries by entering that sales order ID, in case of mock data 230, into the Sales Order input field and press Enter or click the Show Sales Order button.
    Check: The sales order and the sales order items are loaded and displayed in the Sales Order Details section.
    Check: The newly created and persisted sales order items in the Sales Order Items table are now inserted at the right position based on the given (descending) sort order.
    Check: The status of the two newly created and persisted sales order items has changed to From Server.

(III) Create new sales order with inline creation rows

Start the sales orders application with 1 inline creation row

  1. Start the application with the URL parameter &inlineCreationRows=1
  2. Click the Use Table button on the top right side to display the Sales Orders table.
    Check: An empty table row for a new sales order is displayed at the top of the table at position one.
    Check: The empty table row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The inactive row is not considered in the sales orders count at the top of the Sales Orders table.
  3. Remember the number of sales orders for further testing. The number can be found in the header line of the Sales Orders table.
    Check: The number of rows in the table is 1 greater than the number of sales orders (e.g. see text of the More button). The inactive row is not counted.

Edit inactive rows

  1. Enter A in the Note input field of the inactive row.
    Check: The modified table row is now marked as transient in the first column. Hover over the icon to see the status text.
    Check: An empty table row for a new sales order is displayed as the second row.
    Check: The second row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales orders count (and also the table row count) has been increased by one.
    Check: The inactive row is not considered in the sales orders count at the top of the Sales Orders table.
  2. Enter B in the Note input field of the inactive row.
    Check: The modified table row is now marked as transient in the first column. Hover over the icon to see the status text.
    Check: An empty table row for a new sales order is displayed as the third row.
    Check: The third row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales orders count (and also the table row count) has been increased by one.
    Check: The inactive row is not considered in the sales orders count at the top of the Sales Orders table.

Reset Changes removes only transient entries

  1. Press the Reset Changes button.
    Check: The the first and second transient rows have been removed.
    Check: The empty table row for a new sales order is displayed as the first row.
    Check: The first row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales orders count (and also the table row count) has been decreased by two.
    Check: The inactive row is not considered in the sales orders count at the top of the Sales Orders table.

Modify inactive entry in the object page

  1. Select the inactive sales order.
    Check: The Sales Order Items table is empty.
  2. Enter C in the Note input field in the Sales Order Details section.
    Check: The first row in the Sales Orders table is now marked as transient in the first column. Hover over the icon to see the status text.
    Check: The Note field of the first sales orders has the value C.
    Check: An empty table row for a new sales order is displayed as the second row.
    Check: The second row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The count of the Sales Orders table has been increased by one.
    Check: The inactive row is not considered in the sales orders count at the top of the Sales Orders table.
  3. Select the inactive sales order at Row 2.
    Check: The Sales Order Items table is empty.
  4. Press the Save button at the bottom of the page.
    Check: The first row in the Sales Orders table is now marked as persisted in the first column. Hover over the icon to see the status text.
  5. Enter D in the Note input field of the inactive row.
    Check: The modified table row is now marked as transient in the first column. Hover over the icon to see the status text.
    Check: An empty table row for a new sales order is displayed as the third row.
    Check: The third row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales orders count (and also the table row count) has been increased by one.
    Check: The inactive row is not considered in the sales orders count at the top of the Sales Orders table.

Empty Sales Order Items table for inactive and transient sales orders

  1. Select the inactive sales order in the third row.
    Check: The Sales Order Items table is empty.
  2. Select the transient sales order in second row.
    Check: The Sales Order Items table is empty.
  3. Select the 4th sales order which has been read from server.
    Check: The Sales Order Items table contains items.
    Check: The last item in the Sales Order Items table is an inactive entry.
  4. Select the first sales order which has been created on the client and which has been persisted.
    Check: The Sales Order Items table contains a single inactive row.

(IV) Create new sales order item with inline creation rows

Search for a sales order with one sale order item. In case of mock data: Use sales order 245.

Start the sales orders application with 1 inline creation row

  1. Start the application with the URL parameter &inlineCreationRows=1
  2. Enter that sales order ID into the Sales Order input field and press Enter or click the Show Sales Order button.
    Check: The sales order and the sales order items are loaded and displayed in the Sales Order Details section.
    Check: An empty table row for a new sales order item is displayed as the last entry in the Sales Order Items table.
    Check: The empty table row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The inactive row is not considered in the sales order items count at the top of the Sales Order Items table.
  3. Remember the number of sales order items for further testing. The number can be found in the header line of the Sales Order Items table.
    Check: The number of rows in the table is 1 greater than the number of sales order items. The inactive row is not counted.

Edit inactive rows

  1. Enter E in the Note input field of the inactive row.
    Check: The modified table row is now marked as transient in the first column. Hover over the icon to see the status text.
    Check: An empty table row for a new sales order item is displayed at the end of the table (third row).
    Check: The third row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales order items count (and also the table row count) has been increased by one.
    Check: The inactive row is not considered in the sales order itmes count at the top of the Sales Order Items table.
  2. Enter F in the Note input field of the inactive row.
    Check: The modified table row is now marked as transient in the first column. Hover over the icon to see the status text.
    Check: An empty table row for a new sales order item is displayed at the end of the table (4th row).
    Check: The 4th row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales order items count (and also the table row count) has been increased by one.
    Check: The inactive row is not considered in the sales order itmes count at the top of the Sales Order Items table.

Reset Changes removes only transient entries

  1. Press the Reset Changes button.
    Check: The two transient items in the second and third row have been removed.
    Check: The empty table row for a new sales order item is displayed as the last item in the second row.
    Check: The second row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales order items count (and also the table row count) has been decreased by two.
    Check: The inactive row is not considered in the sales order items count at the top of the Sales Order Items table.

Inactive rows are not sent to the server

  1. Enter G in the Note input field of the inactive row.
    Check: The modified table row is now marked as transient in the first column. Hover over the icon to see the status text.
    Check: An empty table row for a new sales order item is displayed at the end of the table (third row).
    Check: The third row is marked as inactive in the first column. Hover over the icon to see the status text.
    Check: The sales order items count (and also the table row count) has been increased by one.
    Check: The inactive row is not considered in the sales order itmes count at the top of the Sales Order Items table.
  2. Enter following values in the corresponding input fields of the sales order item with the Note G: Product ID HT-1020, Quantity 1 and Unit EA.
    Check: There is still only on inactive row at the end of the Sales Order Items table.
  3. Press the Save button at the bottom of the page.
    Check: The second row in the Sales Order Items table is now marked as persisted in the first column. Hover over the icon to see the status text.
    Check: The properties Item Position, Gross Amount and Currency are filled from the server.