Tuesday, May 31, 2022

How to use Custom Domain from GoDaddy for Blogger?

1. Go to Blogger Settings.

2. Update Custom Domain and Redirect domain. Enable HTTPS availability and HTTPS redirect.

3. In GoDaddy, add the DNS Records.

Saturday, May 28, 2022

How to set Environment Variables from XML Response in Postman?

xml2Json() can be used to convert the API response from XML to JSON. Then, we can retrieve the values from the JSON string.

Sample Code:
let XMLToJSONResponse = xml2Json( responseBody ); 
pm.environment.set( “Id”, XMLToJSONResponse[ “CUSTOMER” ][ “ID” ] ); 
pm.environment.set( “FirstName”, XMLToJSONResponse[ “CUSTOMER” ][ “FIRSTNAME” ] ); 
pm.environment.set( “LastName”, XMLToJSONResponse[ “CUSTOMER” ][ “LASTNAME” ] );

Thursday, May 26, 2022

How to set Environment Variables in Postman?

Setting Environment Variable in Postman avoid manually setting the variable values for subsequent API Calls.
 
1. pm.environment.set() can be used to set Environment Variable in Postman. Code should be used under Tests tab.
 
Sample Code:
let jsonData = JSON.parse( responseBody );
pm.environment.set(“loginId”, jsonData.login);
pm.environment.set(“URL”, jsonData.url);
pm.environment.set(“nodeId”, jsonData.node_id);

2. Once the request is sent. We can check the variable values in the Environment.

Tuesday, May 17, 2022

How to check Azul Zulu version in Windows using Command(cmd) Prompt?

To check Azul Zulu version in cmd, use java –version command.
 
Example: