Show TOC Start of Content Area

Procedure documentation Testing Your First Application  Locate the document in its SAP Library structure

Use

After you have developed your application, you can test it. The procedure below describes how to create instances of the business object nodes and later test the application service operations.

Prerequisites

...

You have generated, built, and deployed your carpool application on the Application Server Java (AS Java) and the AS Java is up and running.

Procedure

...

       1.      Assign the user you are logging to the system the UME  roles SAP_CAF_DEVELOPER and SAP_CAF_ADMIN, so that you can work with the Service Browser and the Composite Application Framework Authorization Tool. To do that, do the following:

                            a.      Open the SAP NetWeaver Administrator, using the following URL: http://<host>:<port>/nwa.

                            b.      Navigate to Configuration Management Identity Management

                            c.      From the Search Criterion dropdown box, choose Role and enter SAP_CAF_DEVELOPER. Choose Go.

                            d.      Select the row from the table with the results and choose Modify.

                            e.      Open the Assigned Users  tab page and in the Search Criterion field enter the name of the user you are logging onto the SAP NetWeaver Administrator. Choose Go.

                              f.      Choose the user you have searched for from the table with the results and then choose Add.

                            g.      Choose Save.

                            h.      Repeat the same steps to assign the user you are logging on with the role SAP_CAF_ADMIN.

       2.      Open the Composite Application Framework Authorization Tool (CAF Authorization Tool), using the following URL  http://<host>:<port>/nwa and then navigate to Configuration Management Composite Application Framework Authorization Tool.

       3.      Navigate to the carpool application and to the business object nodes  and create a new business rule for each one of them. To do that choose New Rule.

       4.      Open the Access Control List tab page and add the user you are logging to the system to the Access Control List and give fullcontrol to the user for the different business object nodes in  the application.

       5.      Open the Service Browser. To access the testing tool, go to: http://<host>:<port>/caf and then choose Service Browser.

       6.      From the DataSource dropdown box, choose Metadata Repository.

       7.      To create a new instance of the business object node, navigate to the carpool application and select the TravelLocation node. Choose New, enter an id and then choose Save. Do not enter any value is the fields for the default attributes. The system automatically fills in values for them.

       8.      To test the application service operation findById, navigate to and enter a numeric value in the id field.

Result

The result from the execution of the query operation is displayed in the Service Browser.

 

End of Content Area