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); }
internal void DoScriptedSend() { try { Response FinalResponse = ActualSender.ScriptedSend(this.Request).GetClone(); FinalResponse.ID = this.ID; IronDB.LogMTResponse(FinalResponse); IronUI.UpdateMTLogGridWithResponse(FinalResponse); ManualTesting.StoreInGroupList(FinalResponse); } catch (Exception Exp) { IronException.Report("ScriptedSend Failed", Exp.Message, Exp.StackTrace); IronUI.ShowScriptedSendScriptException(Exp.Message); IronUI.ShowMTException("ScriptedSend Failed"); } }
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); } }