Release 2502 Testing API and Events

This time we started adding two new features supporting cases.

  • Event Mesh support in the Integration Suite
  • API management Testing

I have been considering adding it for some time but never really wanted to build it. Now, you can start building scenarios with it. We have been reusing our existing recording methods.

There are always many improvements around the main functionality to support some of the customer cases we have received.

Event Mesh 

This support SAP added support for Event Mesh and included it in the license this summer and made it easier to get started exploring events.

On the CPI agent you can now enable Event Mesh and you can add multiply Event Keys for it

Configuration

To use it you need to give the web user you are using access to EventMeshAdmin either in the role admin or in the role mapping if you use Oauth trust

On the agent configuration, you need to generate two JSON subscribers like the following.

You then copy the oa2 for the messaging protocol as selected below. In a future you should just copy the full json for making it a bit easier.

Then you use the parse Public API for both Publisher and Subscriber. They need to be different to work on the same event mesh system.

Event Queue 

One of the challenges is seeing what is in the queue. We have created a browser that shows what events are in the Queue (the first 200). We think this makes it a little easier to explore what events you have pr queue.

And then you can see the first messages

 Event API

To simplify the ability to send messages to the event topic. This will make it easier for you to test events. You can find it via the SwaggerUI in Figaf using the url /swagger-ui/ of you figaf server. You need to create an API key for it.

I hope we will add a similary option inside of the Figaf tool later.

Test Events

The main goal is the ability for you to be testing the of the cases where you had an input event that was processed and created on or more output events. We wanted to make it as easy to create test cases as possible for this case.

We have build the solution so it easy to select messages for this scearios.

  • Input message is sent on a topic and has a correlation ID
  • Ouput message is sent on a topic and is using a correlation ID.

Then you can start recording messages on it like you do when you create iflow test cases.

In the future this could be extended to also support Advance Event Mesh where you probably have some more capabilities for testing.

You will see some improvements in this for the next release.

 API Management testing

We have had support for DevOps and Monitoring of API management for many years and we often get asked if we can support testing.

We wanted to do it the same way as we do run the other types of testing. We record many messages and then can process them.

For the recording to work you need to create  API provider called FigafTestingToolApiProvider that is used for API management to send the messages to Figaf. This can either be via cloud connector or direct to the BTP subaccount where figaf is running.

If you select an API you can decide to the to record messages from it.

Then Figaf will add some polices on the Proxy to enable testing. You can then easily create a test case by select record message. And then all will be handled automatilcy.

Then you just need to send in some messages for it to work. Then they will all be recorded in your figaf test case.

Then create a test case for it.

If you have a policy that is using OAuth token you can add it on the common recording page.  

Once the test case has run you can see the result of the processing and compare the payloads.

This makes it really easy to create and run test cases on the API mgt front. There are a number of limitation that is not consider but could be added if they become requred by customers.

 Migration license on Operation Mapping

We have seen cases where customers are having Figaf tool running with a older SAP PI system like 7.1. We had not have a system to test it on so we could not check if migration still worked. They did not. Now we have added the next best thing, you can now migrate Operation Mappings directly from the systems. This will make it possible to migrate a lot more scenarios.

Simplify your SAP Integration in under 10 minutes with Figaf DevOps Suite on Cloud.

 
No credit card is required. 30 days free trial.

Latest Articles