public static void LogRestResponseInfo(this ExtentTest node, IRestResponse response) { ParameterValidator.ValidateNotNull(node, "Extent Test Node"); node.Info("Response"); node.Info(response.ConvertObjectToJson().MarkupJsonString()); if (response != null) { node.Info("Status Code"); node.Info(response.StatusCode.ConvertObjectToJson().MarkupJsonString()); node.Info("Status Description"); node.Info(response.StatusDescription.ConvertObjectToJson().MarkupJsonString()); node.Info("Content"); node.Info(response.Content.MarkupJsonString()); } }