public void Process(ref IMethodCallMessage msg) { //Console.WriteLine("Method details: " + msg.MethodBase); PrintParameters printParameters = new PrintParameters(); printParameters.PrintValues(msg); }
public void PreMethodExecutionProcess(ref IMethodCallMessage msg) { _stopwatch.Start(); //Console.WriteLine("Method details: " + msg.MethodBase); PrintParameters printParameters = new PrintParameters(); printParameters.PrintValues(msg); }
/// <summary> /// Explores any data structure and display the entire tree of elements and values in the log. Works with Lists, Stacks, Queues, etc., or any combination thereof. /// </summary> /// <param name="arg">The data structure to be explored.</param> /// <param name="comment">Optional string to be displayed in the log.</param> public void Explore(object arg, string comment = "") { SeleniumLog log = SeleniumLog.Instance(); log.SaveIndent("ExploreParams"); PrintParameters printParameters = new PrintParameters(); printParameters.PrintValues(arg, comment); log.RestoreIndent("ExploreParams"); //log.MessageSettings.indentModel.SimulateIndentations(MessageSettings.MessageStr); log.MessageSettings.GetPendingLevel(); }
/// <summary> /// Explores any data structure and display the entire tree of elements and values in the log. Works with Lists, Stacks, Queues, etc., or any combination thereof. /// </summary> /// <param name="arg">The data structure to be explored.</param> /// <param name="comment">Optional string to be displayed in the log.</param> public void Explore(object arg, string comment = "") { SeleniumLog log = SeleniumLog.Instance(); log.SaveIndent("ExploreParams"); PrintParameters printParameters = new PrintParameters(); printParameters.PrintValues(arg, comment); log.RestoreIndent("ExploreParams"); //log.MessageSettings.indentModel.SimulateIndentations(MessageSettings.MessageStr); log.MessageSettings1.GetPendingLevel(); }
public void Process(ref IMethodCallMessage msg) { SeleniumLog log = SeleniumLog.Instance(); try { log.Blue().WriteLine("FUNCTION CALL: " + msg.MethodBase); log.SaveIndent("__SELENIUMLOG_INDENT__"); log.Indent(); PrintParameters printParameters = new PrintParameters(); printParameters.PrintValues(msg); } catch (Exception e) { log.Warning().WriteLine("SeleniumLog Exception: 01-04 - " + e.Message); } }
public void PreMethodExecutionProcess(ref IMethodCallMessage msg) { SeleniumLog log = SeleniumLog.Instance(); try { if (_enabled) { _stopwatch.Start(); log.Blue().WriteLine("FUNCTION CALL: " + msg.MethodBase); log.SaveIndent("__PRE_METHOD_EXECUTION_PROCESS_1_"); log.Indent(); log.SaveIndent("__PRE_METHOD_EXECUTION_PROCESS_2_"); PrintParameters printParameters = new PrintParameters(); printParameters.PrintValues(msg); log.RestoreIndent("__PRE_METHOD_EXECUTION_PROCESS_2_"); } } catch (Exception e) { log.Warning().WriteLine("SeleniumLog Exception: 01-01 - " + e.Message); } }