예제 #1
0
        void SerializeNewXmlWithFormatPlugin(object PluginNameObject)
        {
            string PluginName = PluginNameObject.ToString();

            try
            {
                Request      Req        = DisplayedRequest.GetClone(true);
                FormatPlugin FP         = FormatPlugin.Get(PluginName);
                Request      NewRequest = FP.ToRequestFromXml(Req, CurrentFormatXml);
                this.DisplayedRequest = NewRequest;
                ShowStatusMsg("");
                this.SetNonFormatPluginRequestFields(NewRequest);
                ShowProgressBar(false);
            }
            catch (ThreadAbortException)
            {
                ShowStatusMsg("");
            }
            catch (Exception Exp)
            {
                IronException.Report(string.Format("Error converting {0} to Request", PluginName), Exp);
                ShowErrorMsg(string.Format("Unable to update edited values in {0}", PluginName));
                ShowProgressBar(false);
            }
        }
예제 #2
0
        internal static void SerializeRequestBody(object BFPObject)
        {
            string PluginName = "";

            try
            {
                BodyFormatParamters BFP     = (BodyFormatParamters)BFPObject;
                Request             Request = BFP.Request;
                FormatPlugin        Plugin  = BFP.Plugin;
                PluginName = Plugin.Name;
                string XML = BFP.XML;

                Request NewRequest = Plugin.ToRequestFromXml(Request, XML);
                IronUI.FillMTRequestWithNewRequestFromFormatXML(NewRequest, PluginName);
            }
            catch (ThreadAbortException)
            {
                //
            }
            catch (Exception Exp)
            {
                IronException.Report("Error Serializing 'Manual Testing' Request using Format Plugin - " + PluginName, Exp.Message, Exp.StackTrace);
                IronUI.ShowMTException("Error Serializing");
            }
        }