/// <summary> /// Raises the Step Progress event /// </summary> /// <param name="e">The event arguments</param> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ ------------------------------------------- // 08/28/09 RCG 2.30.00 Created private void OnStepProgressEvent(TestStepEventArgs e) { if (StepProgressEvent != null) { StepProgressEvent(this, e); } }
internal void Execute(Context ctx) { try { var tsea = new TestStepEventArgs(ctx.CurrentTestStage, ctx.TestName, TypeName); ctx.BizUnitObject.OnTestStepStart(tsea); if (null != _stepConfig) { _testStep.Execute(_stepConfig, ctx); } else { _testStepBuilder.PrepareStepForExecution(ctx); _testStepBuilder.PrepareSubStepsForExecution(ctx); ctx.BizUnitObject.OnTestStepStart(tsea); _testStepBuilder.TestStepOM.Validate(ctx); _testStepBuilder.TestStepOM.Execute(ctx); } ctx.BizUnitObject.OnTestStepStop(tsea); } catch (Exception executionException) { ExecuteException = executionException; throw; } }
internal void OnTestStepStop(TestStepEventArgs e) { if (null != TestStepStopEvent) { EventHandler <TestStepEventArgs> testStepStopEvent = TestStepStopEvent; testStepStopEvent(this, e); } }
public void TestStepFinished(TestStepEventArgs e) { lock (this) { server.TaskProgress(testTask, ""); nestingCount -= 1; stepCount += 1; OutputPendingContents(); TestStepRun run = e.TestStepRun; if (run.Step.IsPrimary) { combinedOutcome = combinedOutcome.CombineWith(run.Result.Outcome); } string banner = String.Format("### Step {0}: {1} ###\n\n", run.Step.Name, run.Result.Outcome.DisplayName); if (stepCount != 1) { Output(FacadeTaskOutputType.StandardOutput, banner); } else { pendingBanner = banner; } foreach (StructuredStream stream in run.TestLog.Streams) { OutputLogStreamContents(stream); CaptureExceptions(stream); } if (nestingCount == 0) { SubmitCombinedResult(); } } }
/// <summary> /// Event handler for the Itron.Metering.Progressable StepProgress event. /// </summary> /// <param name="e">The event arguments</param> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ ------------------------------------------- // 08/28/09 RCG 2.30.00 Created private void StepProgress(ProgressEventArgs e) { TestStepEventArgs TestStepArgs = e as TestStepEventArgs; ProgressBar.PerformStep(); lblStatus.Text = e.Status; if (TestStepArgs != null) { if (TestStepArgs != null) { lblTitle.Text = TestStepArgs.Title; } switch (TestStepArgs.StepResult) { case TestStepResult.Passed: { m_iPassedCount++; break; } case TestStepResult.Failed: { m_iFailedCount++; break; } case TestStepResult.Skipped: { m_iSkippedCount++; break; } } UpdateResultCounts(); } }
public GallioTestStepConverter(TestStepEventArgs eventArgs) { this.eventArgs = eventArgs; Convert(); }
void TestStepStop(object obj, TestStepEventArgs e) { ; }
internal void Execute(Context ctx) { try { var tsea = new TestStepEventArgs(ctx.CurrentTestStage, ctx.TestName, TypeName); ctx.BizUnitObject.OnTestStepStart(tsea); if (null != _stepConfig) { _testStep.Execute(_stepConfig, ctx); } else { _testStepBuilder.PrepareStepForExecution(ctx); _testStepBuilder.PrepareSubStepsForExecution(ctx); ctx.BizUnitObject.OnTestStepStart(tsea); _testStepBuilder.TestStepOM.Validate(ctx); _testStepBuilder.TestStepOM.Execute(ctx); } ctx.BizUnitObject.OnTestStepStop(tsea); } catch (Exception executionException) { _executeException = executionException; throw; } }