Posts

Showing posts with the label POSTMAN

Visualize the export of test Results in Postman

Image
 We use Postman to test various APIs. To ease our lives, we create collections and save those collections along with various test cases which further can be integrated with DevOps or automation testing frameworks. Let us assume, we did some changes in API and that API should be backward compatible. In such cases, these collections can be used to test the old functionality is not broken. The results output from testing plays an important role in Software Development Lifecycle (SDLC). While using the Postman GUI, we can run the collections and it will give the response in the GUI layout. After selecting a collection to run, it will give various parameters to select. We can select as per our need. Once we click on Run <Collection Name> ( Run Postman Echo ) Once we run the Postman Collection, it will give us the output in a beautiful GUI layout. Now to save results, we have only one option i.e. to Export Results as highlighted in the abo...

Using REST APIs to manage Connections in OIC

Image
In cases, when we have many connections created on the OIC instance, it becomes hard to manage connections using the OIC console. Also, to achieve automation, manually going and updating each and every connection is never a feasible task. OIC provides various REST APIs to fetch connection details, update connection properties and delete connections. With the help of these APIs, we can overcome such scenarios. In this blog, we will be discussing how to use various OIC connections REST APIs. A postman collection in the public workspace, which contains some of the use cases for this and can be forked, updated, and used accordingly. Below are various REST APIs, that are covered in this blog. Retrieve Connections Retrieve a Connection Update a Connection Test a Connection Refresh Metadata for a Connection Delete a Connection In this blog, we will be using Postman to test and run various APIs. Below is the link to the Postman collection, w...

Handling XML response with or without namespace in Postman

Image
 While testing an XML response in postman, we need to convert XML data to JSON in order to traverse child nodes of an XML document. XML documents can be with/without namespaces. If XML documents have namespaces, then those are declared as attributes to the XML tag. There may or may not be prefixes associated with XML tags containing namespaces. There are different methods or ways to convert XML to JSON, a few of which are described in this blog. XML to JSON without namespaces -- using xml2Json XML to JSON with namespaces  -- using xml2js Postman version : 8.0.7 Libraries : xml2Json, xml2js XML to JSON without namespaces Let's assume we are getting the below XML response from Webservice. <ROOT> <Account> <name>Name1</name> <id>123123</id> <addres...

Popular posts from this blog

DateTime formatting using xp20:format-dateTime ()

Create Delimited String from XML Nodes and Vice Versa in SOA 12c

Import and Export MDS artifacts in SOA 12c