Collection Runner

 Postman Runner  that allow us to run all requests of a collection at once.

When you start /click a collection runner, all requests are run in the order that you see them in Postman UI. So all requests are executed first, by order of the folder, and then any requests in the root of the collection.

 Collection Runner - where we can configure the execution of the requests


Environment- where the execution should happen

Iterations, - number of times the flow should run

Delay - indicates the halting time between each request, and it's not between the iterations


Create Web API from scratch


1. Create new project by selecting Asp.Net web application with Empty template

Add Web API references using NuGet Package Manager. Right Click on the project and click Manage NuGet Packages, and search 'Microsoft ASP.NET Web API' and click on Install
(This package contains everything you need to host ASP.NET Web API on IIS)


2. Create two folders, "Controllers" and "Configuration" by right clicking on the project.

3. Add new class 'DemoWebAPIConfig' in the "configuration" folder

4. Add below code in it

using System.Web.Http
public static class DemoWebAPIConfig
    {
        public static void Register(HttpConfiguration config)
        {
            // Web API routes
            config.MapHttpAttributeRoutes();

            config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }
            );
        }
    }


5. Add global.asax by right clicking on the project 

using System.Web.Http
 protected void Application_Start(object sender, EventArgs e)
    {
        GlobalConfiguration.Configure(DemoWebAPIConfig.Register);
    }

6. Create Web API controller by right clicking on the Controllers folder and select Controller , then choose the scaffold "Web API 2 Controller - Empty'.
   Enter controller name  'DemoController' and click Add.


public class DemoController : ApiController
    {
       
    }

7. Add Action method 'Get' as below

      public string Get()
        {
            return "welcome";
        }

8.compile and run the project and navigate to http://localhost:xxxx/api/demo in the browser (xxxx is the port number). it displays the result. 

Scripts in Postman

 Scripts in Postman

1. Scripts are a piece of code. 

2. It allows to write tests, passing data between request and changing the value for parameters.

3. It can be added into the collection, folder and request


There are two places that we can write scripts. 

1. Pre-requests scripts - it runs before the execution of request 

2. Tests scripts - It will run after receiving the response from the server


The lifecycle for each request is in below 

Pre-request script -> request ->response ->test script

When you start a collection run, all requests are run in the order you see them in Postman. So all requests are executed first, by order of the folder, and then any requests in the root of the collection.

Collection pre-request script ->Folder pre request script->   request pre request script -> Request -> Response -> collection test script -> folder test script -> request test script


you can use variables to pass values from one request to another, or one collection into another. They also have a hierarchy: 

What is Postman

1. Postman is an open source

2. It is a free API debugging tool and it supports wide range of http methods and also it supports to create unique settings for each environments 

3. It allows to share common values across request with environment variables

4 . It has features for organizing requests into collection and folders,

5. Postman console helps to debug for what data has been retrieved. 

6. After running each request, postman provides performance parameters such as status code and time taken for the response.

7. Automation for testing.


Initial values are shared when you share  a collection or environment, for instance , exporting the environment variables,

Current values are local and are not shared. 

Follow By Email in BlogSpot

Follow By email: "The feed does not have subscriptions by email enabled"

If you see the above FeedBurner error,then you need to enable the subscription by email option in your FeedBurner account settings.

 Steps to fix the issue

 1. Login at https://feedburner.google.com/ and select your feed. 
 2. Go to the "Publicize" tab and select 'Email subscriptions' and click on 'Activate''

Work profile already exists error on HUB App

if you get an error  "Work profile already exists error" while configuring the work profile, then clear the cache cache  and data in the Google play store .

Go to 'Manage Apps' from Settings. Tap Google Play Store. Tap Clear Cache then tap Clear Data. Tap OK.