Demo test cases
A new feature in SP6 that most of you are probably not aware of is a set of test cases that are shipped with SAP NetWeaver Gateway.
More information can be found in the SAP Online Help.
Please be sure that
- you have generated the flight sample data using the report SAPBC_DATA_GENERATOR as described in Setting Up the Flight Data Application (SAP Library – Flight Data Application – Demo Example for …
- you have activated the services RMTSAMPLEFLIGHT and TEA_TEST_APPLICATION using transaction /IWFND/MAINT_SERVICE
These test cases can be created in the the test group CORE_SAMPLES from within the Gateway client.
The currently 75 test cases span from showing how to use $batch, $filter and other query parameters such as $skip, $top and so on.
Of special interest might be that several request are contained that show how to call services using $batch which requires the consumer to carefully build an http request that fits to the OData standard.
You can generate the test cases as follows:
- Start the Gateway client using transaction /IWFND/GW_CLIENT
- Choose Select as if you were to select an existing test case from the database, choose Select
- From the menu choose Gateway Client (1) and then Create Core Samples (2)
- This will create a list of currently 75 test cases:
- By selecting one of the entries you open the Gateway Client like shown in the following with a $batch request.
Hi Andre
Very good feature.
Will partners be able to include tests with the services they build?
I can see you can import export via XML, the ability to add tests to a package or transport would be very useful.
Cheers
John P
Watch this space is all I can say...
HI,
Unable to get to as shown in screen shot 4. I have selected created 'Z' service name and clicked on create core examples and I am lost. Nothing is happening. Help me.
Regards,
Siva