Example #1
0
        private void stepFailedEventHandler(object sender, StepFailedEventArgs e)
        {
            //skip remaining steps. -- need to figure out how to do this
            DataGridViewRow row   = e.Argument as DataGridViewRow;
            Step            fStep = row.DataBoundItem as Step;

            foreach (Step thisStep in stepList)
            {
                if (thisStep != fStep && thisStep.Status == eStatus.READY && thisStep.IsSkippable == true)
                {
                    thisStep.Status = eStatus.SKIPPED;
                }
            }

            this.failedStep = fStep;
        }
Example #2
0
        protected void OnStepFailed(StepFailedEventArgs e)
        {
            this.Status = eStatus.FAILED;
            if (e.IsException)
            {
                log.Error("Exception", e.Xception);
            }
            else
            {
                log.Error(e.ErrorString);
            }

            log.Error(this.Name + ": Failed");

            if (StepFailed != null)
            {
                StepFailed(this, e);
            }
        }