Show TOC

Testing CRUD Operations in the BOPF Test Shell Locate this document in the navigation structure

Starting from your ABAP Development Tools (ADT) client, you can test the generated business object in the integrated BOPF test environment. Using the BOPF test environment, you can test the core services such as creating, updating, or deleting business object instances without writing any test code.

Procedure

Launching the BOPF Test Environment in ABAP Development Tools

To launch the BOPF test environment, select the node of the generated business object in the Project Explorer tree, open the context menu, and choose Start of the navigation path Run As  Next navigation step Test Environment End of the navigation path.

Launching the BOPF test environment
Figure 1: Launching the BOPF test environment

The BOPF test shell appears in the SAP GUI window and opens the test session.

Creating a Node Instance

Creating a node instance in the BOPF test shell
Figure 2: Creating a node instance in the BOPF test shell

To create a new node instance, select the corresponding node in the Node Instances navigation pane and click the (Add Node Instance) push button from the toolbar of the editor pane – as depicted in the figure below.

Entering field values of the new node instances
Figure 3: Entering field values of the new node instances

Finally you have the option to save your Sales Order data by choosing Save from the toolbar. The data is saved in the database table that is assigned to the node of the Sales Order business object.

Results

You can either save the changes you have made or discard them. To finish a test session, close the test environment.

Within a few minutes you have verified that the generated sales order business object works correctly, without writing any test code