Beispiel #1
0
 internal static void ShowGroup(string Group)
 {
     //TestIDLbl.BackColor = Color.Red;
     //TestIDLbl.Text = "ID: 0";
     //ManualTesting.CurrentGroup = "Red";
     ManualTesting.CurrentGroup = Group;
     IronUI.ResetMTDisplayFields();
     IronUI.UpdateTestGroupLogGrid(ManualTesting.GroupSessions[Group]);
     ManualTesting.ShowSession(ManualTesting.CurrentGroupLogId[Group]);
     //if (ManualTesting.RedGroupID == 0) MTReqResTabs.SelectTab("MTRequestTab");
 }
Beispiel #2
0
        internal static Request GetRedirect()
        {
            Request RedirectRequest = GetRedirectRequestOnly();

            if (RedirectRequest != null)
            {
                IronUI.ResetMTDisplayFields();
                Session RedirectSession = new Session(RedirectRequest);
                IronUI.FillMTFields(RedirectRequest);
            }
            else
            {
                IronUI.ShowMTException("Response does not contain a redirection");
            }
            return(RedirectRequest);
        }
Beispiel #3
0
        internal static void ShowSession(int ID)
        {
            Session IrSe = null;

            foreach (string Group in GroupSessions.Keys)
            {
                if (GroupSessions[Group].ContainsKey(ID))
                {
                    IrSe = GroupSessions[Group][ID];
                    IrSe.Flags["Group"] = Group;
                }
            }
            //if (RedGroupSessions.ContainsKey(ID))
            //{
            //    lock (RedGroupSessions) { IrSe = RedGroupSessions[ID]; IrSe.Flags["Group"] = "Red"; }
            //}
            //else if (BlueGroupSessions.ContainsKey(ID))
            //{
            //    lock (BlueGroupSessions) { IrSe = BlueGroupSessions[ID]; IrSe.Flags["Group"] = "Blue"; }
            //}
            //else if (GreenGroupSessions.ContainsKey(ID))
            //{
            //    lock (GreenGroupSessions) { IrSe = GreenGroupSessions[ID]; IrSe.Flags["Group"] = "Green"; }
            //}
            //else if (GrayGroupSessions.ContainsKey(ID))
            //{
            //    lock (GrayGroupSessions) { IrSe = GrayGroupSessions[ID]; IrSe.Flags["Group"] = "Gray"; }
            //}
            //else if (BrownGroupSessions.ContainsKey(ID))
            //{
            //    lock (BrownGroupSessions) { IrSe = BrownGroupSessions[ID]; IrSe.Flags["Group"] = "Brown"; }
            //}
            if (IrSe != null)
            {
                IronUI.ResetMTDisplayFields();
                IronUI.FillMTFields(IrSe);
                //if (IrSe.Flags.ContainsKey("Reflecton"))
                //    IronUI.FillTestReflection(IrSe.Flags["Reflecton"].ToString());
                //else
                //    IronUI.FillTestReflection("");
            }
        }
Beispiel #4
0
 internal static void UpdateRequestFromCookieStore()
 {
     try
     {
         if (ManualTesting.CurrentRequest == null)
         {
             IronUI.ShowMTException("No valid Request found");
         }
         else
         {
             Request NewRequest = ManualTesting.CurrentRequest.GetClone();
             CookieStore.ReadFromStore(NewRequest);
             IronUI.ResetMTDisplayFields();
             IronUI.FillMTFields(NewRequest);
         }
     }
     catch
     {
         IronUI.ShowMTException("No valid Request found");
     }
 }