Postman Collection Adaptor
Introduction
ThisThe adapterPostman Collections Adapter is used to send a postmanPostman collectionCollection to our postmanPostman microservice, and get the desired information and response offrom it.
Configuration
TherePostman is noa informationplatform neededthat when setting upallows the adaptor,creation and use of API's and makes it easier. This tool is very useful for programming because it gives the informationpossibility willto betest neededand when usingcheck the PFs.correct functioning of the projects that web developers do.
Initialization Parameters
NoIt does not require initialization parametersparameters, required.since no information is needed in the initialization process of the Adapter. It will be when we start using the FP's, when we provide all the necessary information.
Functions
-
executePostmanCollection: Executes a file containing a postman collection in a microservice and returns a TastRowValues variable that has information about the result. It requires the local path of the file containing the postman collection, and optionally, the local path of an environment file, and a variable number of Newman parameters that allow you to configure aspects of the execution.
And if you need to use a certificate, with the Ssl-Client-Cert parameter, you add the path to your certificate file, and with Ssl-Client-Key, the path to your Key file. Ssl-Client-Passphrase is the parameter to put the password of the key, in case you need it.
The “Use Corporate Proxy” checkbox causes the microservice to use the proxy https://proxyservidoresdmz.scger.corp:8080 , which you may need to use if the target domain of the request is on an external network.
-
getResponseBody: Allows the user to retrieve the response body received from a specific request, from a collection that has been previously executed with the adapter. To identify the request from which you want to retrieve the response body, this function needs the request name as a parameter.
-
getResponseStatusCode: Allows the user to obtain the HTTP status code, received as a response to a specific request, from a collection previously executed with the adapter. The request name must be specified as a parameter in order to get the status code of that request.