Exemplo n.º 1
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");
            }
        }