Example #1
0
        internal static void CreateNewGroupWithRequest(Request Req, string Group, bool SwitchToMTSection)
        {
            int TestID = Interlocked.Increment(ref Config.TestRequestsCount);

            Req.ID = TestID;
            IronDB.LogMTRequest(Req);
            //IronDB.ClearGroup(Group);
            ManualTesting.CurrentRequestID = TestID;
            ManualTesting.CurrentGroup     = Group;
            ManualTesting.ClearGroup(Group, TestID);
            ManualTesting.StoreInGroupList(Req);
            IronUI.SetNewTestRequest(Req, Group, SwitchToMTSection);
        }
Example #2
0
        static void MarkForTesting(object Details)
        {
            try
            {
                object[]      DetailsArray = (object[])Details;
                RequestSource Source       = (RequestSource)DetailsArray[0];
                int           ID           = (int)DetailsArray[1];
                string        Group        = DetailsArray[2].ToString();

                Session IrSe = GetLog(Source, ID);
                if (IrSe == null)
                {
                    IronUI.ShowLogStatus("Unable to read Request from log", true);
                    return;
                }
                if (IrSe.Request == null)
                {
                    IronUI.ShowLogStatus("Unable to read Request from log", true);
                    return;
                }
                int TestID = Interlocked.Increment(ref Config.TestRequestsCount);
                IrSe.Request.ID = TestID;
                IronDB.LogMTRequest(IrSe.Request);
                IronDB.ClearGroup(Group);
                ManualTesting.CurrentRequestID = TestID;
                ManualTesting.CurrentGroup     = Group;
                ManualTesting.ClearGroup(Group, TestID);
                ManualTesting.StoreInGroupList(IrSe.Request);
                IronUI.SetNewTestRequest(IrSe.Request, Group);
            }
            catch (Exception Exp)
            {
                IronUI.ShowLogStatus("Unable to read Request from Log", true);
                IronException.Report("Error reading from log", Exp.Message, Exp.StackTrace);
            }
        }