Пример #1
0
 private static void AddSnapShots(StringBuilder builder, SubFlowStep step)
 {
     foreach (ScreenShot path in step.ScreenShots)
     {
         builder.AppendLine("<a href=\"#\" onclick=\"openScreen('" + path.SnapShotPath.Replace("\\", "/") + "')\"><img height=\"50\" width=\"50\" src=\"" +
                            path.ThumbNailPath.Replace("\\", "/") + "\"></img></a>");
     }
 }
Пример #2
0
 public virtual void Next(Type type)
 {
     currentFlowStepSnapShot = 0;
     var subFlowStep = new SubFlowStep {Label = type.Name};
     subFlowStep.AddScreenShot(TakeScreenShot(type.Name));
     flowSteps.Add(subFlowStep);
     screenCreationTime = DateTime.Now;
 }
Пример #3
0
 public virtual void Act()
 {
     if (!IsEmpty)
     {
         SubFlowStep previousSubFlowStep = flowSteps[flowSteps.Count - 1];
         previousSubFlowStep.AddScreenShot(TakeScreenShot(previousSubFlowStep.Label));
         previousSubFlowStep.TimeSpent = (DateTime.Now - screenCreationTime).Milliseconds;
     }
 }
Пример #4
0
        public virtual void Next(Type type)
        {
            currentFlowStepSnapShot = 0;
            SubFlowStep subFlowStep = new SubFlowStep();

            subFlowStep.Label = type.Name;
            subFlowStep.AddScreenShot(TakeScreenShot(type.Name));
            flowSteps.Add(subFlowStep);
            screenCreationTime = DateTime.Now;
        }
Пример #5
0
 private static void AddTimeStamp(StringBuilder builder, SubFlowStep step)
 {
     builder.AppendLine("<div class=\"direction\">=(" + step.TimeSpent + ")=></div>");
 }