Preparing to test

All business object processing originates from the Java component of the connector. This is for all objects and all possible verbs. To unit test, the adapter includes an ABAP program that simulates the connector's action of sending in a business object request.

Specifically, the program simulates the doVerbFor() processing in the Java component of the connector by calling the ABAP function module Y_XR_RFC_DO_VERB_NEXTGEN. Like doVerbFor(), the test program requires a business object as an input to pass to the ABAP function module n. The ABAP test program uses a text file as its input.

All input test files have the same ASCII text format. From this file format, the test program restructures the data to resemble the business object passed to Y_XR_RFC_DO_VERB_NEXTGEN. The following rules apply to business object input files:

The test program provides a Quick Retrieve function to help generate a test input file. For more information, see "Testing an ABAP handler".

Copyright IBM Corp. 1997, 2004