anchor.diff:  -include_lib("katt/include/blueprint_types.hrl").
   
   %%%_* Defines ==========================================================
  --define(TABLE,             ?MODULE).
   -define(VAR_PREFIX,        "katt_").
   -define(RECALL_BEGIN_TAG,  "{{<").
   -define(RECALL_END_TAG,    "}}").
  
positive.code: run_operations( Scenario
                , [#katt_operation{ description=Description
                                  , request=Req
                                  , response=Rsp
                                  }|T]
                , Params
                , Acc
                ) ->
    Request          = make_request(Req, Params),
    ExpectedResponse = make_response(Rsp),
    ActualResponse   = request(Request),
    ValidationResult = validate(ExpectedResponse, ActualResponse),
    Result = [{Description, Request, ValidationResult}|Acc],
    case ValidationResult of
      pass -> run_operations( Scenario
                            , T
                            , Params
                            , Result
                            );
      _    -> dbg( Scenario
                 , Description
                 , Request
                 , ExpectedResponse
                 , ActualResponse
                 , ValidationResult
                 ),
              Result
    end;
  run_operations(_, [], _, Acc) ->
    Acc.
  
  make_request_url(_, Url = "http://" ++ _)  -> Url;
  make_request_url(_, Url = "https://" ++ _) -> Url;
  make_request_url(Params, Path0) ->
    {Protocol, DefaultPort} = case proplists:get_value(ssl, Params, false) of
                                true  -> {"https:", 443};
                                false -> {"http:", 80}
  
negative.code: %% @private
  run(From, Scenario, ScenarioParams) ->
    {ok, Blueprint} = katt_blueprint_parse:file(Scenario),
    Params0 = make_params(ScenarioParams),
    Params = ordsets:from_list(Params0),
    Result = run_scenario(Scenario, Blueprint, Params),
    From ! {done, Result}.
  
  %%%_* Internal =========================================================
  