For this, a specific configuration needs to be activated first in the tested flow that will call a Process Direct flow that includes the logic required to auto create the test case in Postman. One important feature is the option of calling the create request API directly from the running flow and generating the test case automatically. This gives the flexibility of consuming the API in a secure way from any other system. Test cases are generated by calling an API created on the web tool backend component.
#HOW TO USE POSTMAN TOOL FOR TESTING UPDATE#
Persist Mode – using dedicated steps inside the flowsĪPI to update Postman collection – called by the web app but also from SAP CPI directly in the auto mode.Trace Mode – using the standard SAP CPI trace data feature – in this case no special steps are required in the flow definition.
Extracting the data from old runs can be done in two modes, depending on scenario definition: Test cases in cleanCPI are created based on prior completed runs. Extract CPI flows executions data in two main modes: Trace or Persist For each tenant defined in cleanCPI an environment can be created and sync with Postman. This option is included in the tenant detailed view. Test cases created from one tenant source can be executed on any other tenant just by switching the environment in Postman (and of course having the CPI testing package configured in advance for that tenant). Create and synchronize Postman environments for each tenant For now only admin and non-admin users are handled. User management built inįor user authentication and authorization we are using the passport and passport-local node modules and a User collection in MongoDB where the user data is stored. Testing Scenarios are created for each CPI flows that will to be tested and include all the attributes required to read the CPI payloads and to generate the Postman requests. All sensitive data including passwords are encrypted in the database collection. Data used by the tool is stored inside the MongoDB collections:Ī project can be a new CPI implementation, a migration from PI/PO to CPI or just an internal integration project. Postman API key is one important attribute maintained at the project level as this should be available for all the tenants inside the project.ĬPI tenants are represented inside the Tenant collection and consist of attributes like tenant URL, test dispatcher flow URL, connectivity details.