private void TriggerInProcDataCollectionMethods(string methodName, InProcDataCollectionArgs methodArg) { try { foreach (var inProcDc in this.InProcDataCollectors.Values) { inProcDc.TriggerInProcDataCollectionMethod(methodName, methodArg); } } catch (Exception ex) { EqtTrace.Error("InProcDataCollectionExtensionManager: Error occured while Triggering the {0} method : {1}", methodName, ex); } }
/// <summary> /// Triggers InProcDataCollection Methods /// </summary> /// <param name="methodName">Name of the method to trigger</param> /// <param name="methodArg">Arguments for the method</param> public void TriggerInProcDataCollectionMethod(string methodName, InProcDataCollectionArgs methodArg) { var methodInfo = GetMethodInfoFromType(this.dataCollectorObject.GetType(), methodName, new[] { methodArg.GetType() }); if (methodName.Equals(Constants.TestSessionStartMethodName)) { var testSessionStartArgs = (TestSessionStartArgs)methodArg; testSessionStartArgs.Configuration = configXml; methodInfo?.Invoke(this.dataCollectorObject, new object[] { testSessionStartArgs }); } else { methodInfo?.Invoke(this.dataCollectorObject, new object[] { methodArg }); } }
public void TriggerInProcDataCollectionMethod(string methodName, InProcDataCollectionArgs methodArg) { switch (methodName) { case Constants.TestSessionStartMethodName: this.TestSessionStartMethodCalled(methodArg as TestSessionStartArgs); break; case Constants.TestSessionEndMethodName: TestSessionEndCalled++; break; case Constants.TestCaseStartMethodName: TestCaseStartCalled++; break; case Constants.TestCaseEndMethodName: TestCaseEndCalled++; break; default: break; } }
public void TriggerInProcDataCollectionMethod(string methodName, InProcDataCollectionArgs methodArg) { }