Skip to Content
Author's profile photo Andre Fischer

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

  1. 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 …
  2. 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:

  1. Start the Gateway client using transaction /IWFND/GW_CLIENT
  2. Choose Select as if you were to select an existing test case from the database, choose Select
    01_select_DB.png
  3. From the menu choose Gateway Client (1) and then Create Core Samples (2)
    03_Select Create Core Samples.png
  4. This will create a list of currently 75 test cases:
    04_List_of_testcases.PNG
  5. By selecting one of the entries you open the Gateway Client like shown in the following with a $batch request.

    05_Sample_Batch_Request.PNG

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo John Patterson
      John Patterson

      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

      Author's profile photo Paul Abrahamson
      Paul Abrahamson

      Watch this space is all I can say...

      Author's profile photo Siva rama Krishna Pabbraju
      Siva rama Krishna Pabbraju

      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