Exemplo n.º 1
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity12 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity12");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach);
            _flow.DataExporterActivity14      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity14");
            _flow.DataExporterCloseActivity15 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity15");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity13   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity13");
            this.DataCursorActivity16        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity16");
            this.DataCursorActivity16_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence11             = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence11");
            _flow.StServiceCallActivity4 = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.IfElse6 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElse <IfElse6Input>(_context, "IfElse6");
            _flow.StServiceCallActivity5             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.IfElseBranch7                      = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElseBranch(_context, "IfElseBranch7");
            _flow.IfElseBranch8                      = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElseBranch(_context, "IfElseBranch8");
            _flow.Continue10                         = new HP.ST.Fwk.RunTimeFWK.Continue(_context, "Continue10");
            _flow.DataFetchActivity12.Comment        = @"";
            _flow.DataFetchActivity12.IconPath       = @"";
            _flow.DataFetchActivity12.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity12.QueryClassName = @"HP.ST.Ext.CustomDataProviders.LocalDataQuery";
            XmlDocument DataFetchActivity12_QueryParameters_Document = new XmlDocument();

            DataFetchActivity12_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity12Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>673e4126-d5db-42f5-85ad-f18ffcfce164</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>customers</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value></Value></QueryParameter><QueryParameter><Name>TableStructure</Name><Value>initial,String,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>axaxax^b^e^xxxx</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity12_QueryParameters_Document.LoadXml(xmlDataFetchActivity12Params);
            _flow.DataFetchActivity12.QueryParameters = DataFetchActivity12_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("customers", _flow.DataFetchActivity12);
            this.Activities.Add(_flow.DataFetchActivity12);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.JMSClientID           = @"";
            _flow.StartActivity1.JMS.SSLPassword           = @"";
            _flow.StartActivity1.JMS.SSLTrustedCertificate = @"";
            _flow.StartActivity1.JMS.SSLIdentity           = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"For each item in {DataSource.customers}";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Condition         += delegate(object sender, STActivityBaseEventArgs e)
            {
                return(!DataCursorActivity16.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity16);
            _flow.Loop2.Activities.Add(_flow.Sequence11);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity14.Comment  = @"";
            _flow.DataExporterActivity14.IconPath = @"";
            VTDPropertyInfoBase pi74             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter39 = new VTDObjectGetter(pi74);
            VTDPropertyInfoBase pi75             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter36 = new VTDObjectSetter(pi75);

            binding_setter36 = new StringFormaterDecorator(binding_setter36, "{Step.DataFetchActivity12.OutTable}");
            bind_dir36       = new BindDirection(_flow.DataFetchActivity12, binding_getter39, binding_setter36, BindTargetType.ToInProperty);
            _flow.DataExporterActivity14.InDirections.Add(bind_dir36);
            this.Activities.Add(_flow.DataExporterActivity14);
            _flow.DataExporterCloseActivity15.Comment  = @"";
            _flow.DataExporterCloseActivity15.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity15);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity13.Comment  = @"";
            _flow.DataDisconnectActivity13.IconPath = @"";
            VTDPropertyInfoBase pi76             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter40 = new VTDObjectGetter(pi76);
            VTDPropertyInfoBase pi77             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter37 = new VTDObjectSetter(pi77);

            binding_setter37 = new StringFormaterDecorator(binding_setter37, "{Step.DataFetchActivity12.OutTable}");
            bind_dir37       = new BindDirection(_flow.DataFetchActivity12, binding_getter40, binding_setter37, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity13.InDirections.Add(bind_dir37);
            this.Activities.Add(_flow.DataDisconnectActivity13);
            this.DataCursorActivity16.Comment  = @"";
            this.DataCursorActivity16.IconPath = @"";
            VTDPropertyInfoBase pi78             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter41 = new VTDObjectGetter(pi78);
            VTDPropertyInfoBase pi79             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter38 = new VTDObjectSetter(pi79);

            binding_setter38 = new StringFormaterDecorator(binding_setter38, "{Step.DataFetchActivity12.OutTable}");
            bind_dir38       = new BindDirection(_flow.DataFetchActivity12, binding_getter41, binding_setter38, BindTargetType.ToInProperty);
            this.DataCursorActivity16.InDirections.Add(bind_dir38);
            this.DataCursorActivity16_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity16_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity16_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity16_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity16_Policy.StartCondition.Value      = "";
            this.DataCursorActivity16_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity16_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity16_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity16_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity16_Policy.EndCondition.Value      = "";
            this.DataCursorActivity16_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity16_Policy.StepSize = 1;
            this.DataCursorActivity16_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity16.Policy         = this.DataCursorActivity16_Policy;
            this.DataCursorActivity16.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity16.ResetCursor;
            _flow.Sequence11.Comment  = @"";
            _flow.Sequence11.IconPath = @"";
            _flow.Sequence11.Name     = @"Sequence11";
            _flow.Sequence11.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence11.Activities.Add(_flow.IfElse6);
            _flow.Sequence11.Activities.Add(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightOrders xmlns=""HP.SOAQ.SampleApp""><FlightsDetails><CustomerName>{DataSource.customers.initial}</CustomerName></FlightsDetails></GetFlightOrders></Body></Envelope>");
            _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document;
            _flow.StServiceCallActivity4.Comment       = @"";
            _flow.StServiceCallActivity4.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity4.Name          = @"GetFlightOrders";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlightOrders";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity4.Service              = @"Flights_Service";
            _flow.StServiceCallActivity4.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity4.Operation            = @"GetFlightOrders";
            _flow.StServiceCallActivity4.IsOneWay             = false;
            _flow.StServiceCallActivity4.SendRequestToService = true;
            _flow.StServiceCallActivity4.FaultExpected        = false;
            _flow.StServiceCallActivity4.IsAsync              = false;
            _flow.StServiceCallActivity4.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity4.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi80             = new VTDPropertyInfoBase("initial");
            VTDBaseGetter       binding_getter42 = new VTDObjectGetter(pi80);
            VTDPropertyInfoBase pi81             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrders'][1]/*[local-name(.)='FlightsDetails'][1]/*[local-name(.)='CustomerName'][1]");
            VTDBaseSetter       binding_setter39 = new VTDXPathSetter(pi81, XmlTypeCode.String);

            binding_setter39 = new StringFormaterDecorator(binding_setter39, "{DataSource.customers.initial}");
            bind_dir39       = new BindDirection(this.DataCursorActivity16, binding_getter42, binding_setter39, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir39);
            XmlDocument StServiceCallActivity4_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity4.ExpectedOutputAttachments = StServiceCallActivity4_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity4_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity4.ExpectedFaultProperties = StServiceCallActivity4_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightOrdersResponse xmlns=""HP.SOAQ.SampleApp""><GetFlightOrdersResult><FlightOrder><CustomerName p1:nil=""true"" /><OrderNumber /></FlightOrder></GetFlightOrdersResult></GetFlightOrdersResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
            _flow.IfElse6.ConditionAsString = @"{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightOrdersResponse.GetFlightOrdersResult.FlightOrder.Count} GreaterThan 0";
            _flow.IfElse6.Comment           = @"";
            _flow.IfElse6.IconPath          = @"AddIns\ServiceTest\BasicActivities\toolbox_if_else.png";
            _flow.IfElse6.Name = @"Condition6";
            _flow.IfElse6.Activities.Add(_flow.IfElseBranch7);
            _flow.IfElse6.Activities.Add(_flow.IfElseBranch8);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrder xmlns=""HP.SOAQ.SampleApp""><OrderNumber>{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightOrdersResponse.GetFlightOrdersResult.FlightOrder[1].OrderNumber}</OrderNumber></DeleteFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"DeleteFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/DeleteFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"Flights_Service";
            _flow.StServiceCallActivity5.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity5.Operation            = @"DeleteFlightOrder";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi82             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrdersResponse'][1]/*[local-name(.)='GetFlightOrdersResult'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseGetter       binding_getter43 = new VTDXPathGetter(pi82, XmlTypeCode.Int);

            binding_getter43 = new XPathGetterDecorator(binding_getter43, "{Array0}", 1);
            VTDPropertyInfoBase pi83             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='DeleteFlightOrder'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter40 = new VTDXPathSetter(pi83, XmlTypeCode.Int);

            bind_dir40 = new BindDirection(_flow.StServiceCallActivity4, binding_getter43, binding_setter40, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir40);
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrderResponse xmlns=""HP.SOAQ.SampleApp""><DeleteFlightOrderResult>true</DeleteFlightOrderResult></DeleteFlightOrderResponse></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
            _flow.IfElseBranch7.Condition += delegate(object sender, EventArgs e)
            {
                try
                {
                    VTDPropertyInfoBase pi84             = new VTDPropertyInfoBase("OutputEnvelope", "count(/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrdersResponse'][1]/*[local-name(.)='GetFlightOrdersResult'][1]/*[local-name(.)='FlightOrder'])");
                    VTDBaseGetter       binding_getter44 = new VTDXPathGetter(pi84);
                    System.Int32        expr00           = (System.Int32)HP.ST.Fwk.RunTimeFWK.Utilities.Utils.ConvertValue(_flow.StServiceCallActivity4.GetParam(binding_getter44), typeof(System.Int32));
                    var          result0 = expr00;
                    System.Int32 result1 = (System.Int32)(0);
                    return(result0 > result1);
                }
                catch (Exception exp)
                {
                    if (exp is System.InvalidCastException)
                    {
                        throw;
                    }
                    else
                    {
                        return(false);
                    }
                };
            };
            _flow.IfElseBranch7.Comment    = @"";
            _flow.IfElseBranch7.IconPath   = @"";
            _flow.IfElseBranch7.Name       = @"Yes";
            _flow.IfElseBranch8.Condition += delegate(object sender, EventArgs e)
            {
                return(true);
            };
            _flow.IfElseBranch8.Comment  = @"";
            _flow.IfElseBranch8.IconPath = @"";
            _flow.IfElseBranch8.Name     = @"No";
            _flow.IfElseBranch8.Activities.Add(_flow.Continue10);
            _flow.Continue10.Comment  = @"";
            _flow.Continue10.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_continue_loop.png";
            _flow.Continue10.Name     = @"Continue10";
        }
Exemplo n.º 2
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity7 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity7");
            _flow.StartActivity1     = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.For);
            _flow.DataExporterActivity9       = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity9");
            _flow.DataExporterCloseActivity10 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity10");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity8    = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity8");
            this.DataCursorActivity11        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity11");
            this.DataCursorActivity11_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence6 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6");
            _flow.StServiceCallActivity4            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.StServiceCallActivity5            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.DataFetchActivity7.Comment        = @"";
            _flow.DataFetchActivity7.IconPath       = @"";
            _flow.DataFetchActivity7.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity7.QueryClassName = @"HP.ST.Ext.CustomDataProviders.LocalDataQuery";
            XmlDocument DataFetchActivity7_QueryParameters_Document = new XmlDocument();

            DataFetchActivity7_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity7Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>2b99c2e5-ba5a-4bd4-beb6-a3e24a607192</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Flight_API_Data</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value></Value></QueryParameter><QueryParameter><Name>TableStructure</Name><Value>FlyFrom,String,|FlyTo,String,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>London|Paris^Denver|Paris^Sydney|London</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity7_QueryParameters_Document.LoadXml(xmlDataFetchActivity7Params);
            _flow.DataFetchActivity7.QueryParameters = DataFetchActivity7_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Flight_API_Data", _flow.DataFetchActivity7);
            this.Activities.Add(_flow.DataFetchActivity7);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"Run for 1 iteration";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Comment            = @"";
            _flow.Loop2.IconPath           = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity11);
            _flow.Loop2.Activities.Add(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity9.Comment  = @"";
            _flow.DataExporterActivity9.IconPath = @"";
            VTDPropertyInfoBase pi15            = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter8 = new VTDObjectGetter(pi15);
            VTDPropertyInfoBase pi16            = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter8 = new VTDObjectSetter(pi16);

            binding_setter8 = new StringFormaterDecorator(binding_setter8, "{Step.DataFetchActivity7.OutTable}");
            bind_dir8       = new BindDirection(_flow.DataFetchActivity7, binding_getter8, binding_setter8, BindTargetType.ToInProperty);
            _flow.DataExporterActivity9.InDirections.Add(bind_dir8);
            this.Activities.Add(_flow.DataExporterActivity9);
            _flow.DataExporterCloseActivity10.Comment  = @"";
            _flow.DataExporterCloseActivity10.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity10);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity8.Comment  = @"";
            _flow.DataDisconnectActivity8.IconPath = @"";
            VTDPropertyInfoBase pi17            = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter9 = new VTDObjectGetter(pi17);
            VTDPropertyInfoBase pi18            = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter9 = new VTDObjectSetter(pi18);

            binding_setter9 = new StringFormaterDecorator(binding_setter9, "{Step.DataFetchActivity7.OutTable}");
            bind_dir9       = new BindDirection(_flow.DataFetchActivity7, binding_getter9, binding_setter9, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity8.InDirections.Add(bind_dir9);
            this.Activities.Add(_flow.DataDisconnectActivity8);
            this.DataCursorActivity11.Comment  = @"";
            this.DataCursorActivity11.IconPath = @"";
            VTDPropertyInfoBase pi19             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter10 = new VTDObjectGetter(pi19);
            VTDPropertyInfoBase pi20             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter10 = new VTDObjectSetter(pi20);

            binding_setter10 = new StringFormaterDecorator(binding_setter10, "{Step.DataFetchActivity7.OutTable}");
            bind_dir10       = new BindDirection(_flow.DataFetchActivity7, binding_getter10, binding_setter10, BindTargetType.ToInProperty);
            this.DataCursorActivity11.InDirections.Add(bind_dir10);
            this.DataCursorActivity11_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity11_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity11_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity11_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity11_Policy.StartCondition.Value      = "";
            this.DataCursorActivity11_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity11_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity11_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity11_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity11_Policy.EndCondition.Value      = "";
            this.DataCursorActivity11_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity11_Policy.StepSize = 1;
            this.DataCursorActivity11_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity11.Policy         = this.DataCursorActivity11_Policy;
            this.DataCursorActivity11.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity11.ResetCursor;
            _flow.Sequence6.Comment  = @"";
            _flow.Sequence6.IconPath = @"";
            _flow.Sequence6.Name     = @"Sequence6";
            _flow.Sequence6.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence6.Activities.Add(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<?xml version=""1.0"" encoding=""utf-8""?>
<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"">
  <Body>
    <GetFlights xmlns=""HP.SOAQ.SampleApp"">
      <DepartureCity>{DataSource.Flight_API_Data.FlyFrom}</DepartureCity>
      <ArrivalCity>{DataSource.Flight_API_Data.FlyTo}</ArrivalCity>
    </GetFlights>
  </Body>
</Envelope>");
            _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document;
            _flow.StServiceCallActivity4.Comment       = @"";
            _flow.StServiceCallActivity4.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity4.Name          = @"GetFlights";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlights";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity4.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity4.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity4.Operation            = @"GetFlights";
            _flow.StServiceCallActivity4.IsOneWay             = false;
            _flow.StServiceCallActivity4.SendRequestToService = true;
            _flow.StServiceCallActivity4.FaultExpected        = false;
            _flow.StServiceCallActivity4.IsAsync              = false;
            _flow.StServiceCallActivity4.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity4.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi21             = new VTDPropertyInfoBase("FlyFrom");
            VTDBaseGetter       binding_getter11 = new VTDObjectGetter(pi21);
            VTDPropertyInfoBase pi22             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='DepartureCity'][1]");
            VTDBaseSetter       binding_setter11 = new VTDXPathSetter(pi22, XmlTypeCode.String);

            binding_setter11 = new StringFormaterDecorator(binding_setter11, "{DataSource.Flight_API_Data.FlyFrom}");
            bind_dir11       = new BindDirection(this.DataCursorActivity11, binding_getter11, binding_setter11, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir11);
            VTDPropertyInfoBase pi23             = new VTDPropertyInfoBase("FlyTo");
            VTDBaseGetter       binding_getter12 = new VTDObjectGetter(pi23);
            VTDPropertyInfoBase pi24             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='ArrivalCity'][1]");
            VTDBaseSetter       binding_setter12 = new VTDXPathSetter(pi24, XmlTypeCode.String);

            binding_setter12 = new StringFormaterDecorator(binding_setter12, "{DataSource.Flight_API_Data.FlyTo}");
            bind_dir12       = new BindDirection(this.DataCursorActivity11, binding_getter12, binding_setter12, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir12);
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightsResponse xmlns=""HP.SOAQ.SampleApp""><GetFlightsResult></GetFlightsResult></GetFlightsResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity4.ExpectedFaultProperties = StServiceCallActivity4_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity4.ExpectedOutputAttachments = StServiceCallActivity4_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><CreateFlightOrder xmlns=""HP.SOAQ.SampleApp""><FlightOrder><Class>First</Class><CustomerName>Abhi_API</CustomerName><DepartureDate>2018-06-14T00:00:00+05:30</DepartureDate><FlightNumber>{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightsResponse.GetFlightsResult.Flight.Count}</FlightNumber><NumberOfTickets>1</NumberOfTickets></FlightOrder></CreateFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"CreateFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/CreateFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity5.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity5.Operation            = @"CreateFlightOrder";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi25             = new VTDPropertyInfoBase("OutputEnvelope", "count(/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightsResponse'][1]/*[local-name(.)='GetFlightsResult'][1]/*[local-name(.)='Flight'])");
            VTDBaseGetter       binding_getter13 = new VTDXPathGetter(pi25);
            VTDPropertyInfoBase pi26             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseSetter       binding_setter13 = new VTDXPathSetter(pi26, XmlTypeCode.Int);

            bind_dir13 = new BindDirection(_flow.StServiceCallActivity4, binding_getter13, binding_setter13, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir13);
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><CreateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
        }
Exemplo n.º 3
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity7 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity7");
            _flow.StartActivity1     = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.For);
            _flow.DataExporterActivity9       = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity9");
            _flow.DataExporterCloseActivity10 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity10");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity8    = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity8");
            this.DataCursorActivity11        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity11");
            this.DataCursorActivity11_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence6 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6");
            _flow.StServiceCallActivity4            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.StServiceCallActivity5            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.DataFetchActivity7.Comment        = @"";
            _flow.DataFetchActivity7.IconPath       = @"";
            _flow.DataFetchActivity7.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity7.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity7_QueryParameters_Document = new XmlDocument();

            DataFetchActivity7_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity7Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>d254ae66-c938-460b-a494-5180a0bc8aa2</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>citypairs!Input</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>citypairs</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{citypairs!Input.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Input$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity7_QueryParameters_Document.LoadXml(xmlDataFetchActivity7Params);
            _flow.DataFetchActivity7.QueryParameters = DataFetchActivity7_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("citypairs!Input", _flow.DataFetchActivity7);
            this.Activities.Add(_flow.DataFetchActivity7);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"Run for 3 iterations";
            _flow.Loop2.NumberOfIterations = (int)3;
            _flow.Loop2.Comment            = @"";
            _flow.Loop2.IconPath           = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity11);
            _flow.Loop2.Activities.Add(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity9.Comment  = @"";
            _flow.DataExporterActivity9.IconPath = @"";
            VTDPropertyInfoBase pi37             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter19 = new VTDObjectGetter(pi37);
            VTDPropertyInfoBase pi38             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter19 = new VTDObjectSetter(pi38);

            binding_setter19 = new StringFormaterDecorator(binding_setter19, "{Step.DataFetchActivity7.OutTable}");
            bind_dir19       = new BindDirection(_flow.DataFetchActivity7, binding_getter19, binding_setter19, BindTargetType.ToInProperty);
            _flow.DataExporterActivity9.InDirections.Add(bind_dir19);
            this.Activities.Add(_flow.DataExporterActivity9);
            _flow.DataExporterCloseActivity10.Comment  = @"";
            _flow.DataExporterCloseActivity10.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity10);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity8.Comment  = @"";
            _flow.DataDisconnectActivity8.IconPath = @"";
            VTDPropertyInfoBase pi39             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter20 = new VTDObjectGetter(pi39);
            VTDPropertyInfoBase pi40             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter20 = new VTDObjectSetter(pi40);

            binding_setter20 = new StringFormaterDecorator(binding_setter20, "{Step.DataFetchActivity7.OutTable}");
            bind_dir20       = new BindDirection(_flow.DataFetchActivity7, binding_getter20, binding_setter20, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity8.InDirections.Add(bind_dir20);
            this.Activities.Add(_flow.DataDisconnectActivity8);
            this.DataCursorActivity11.Comment  = @"";
            this.DataCursorActivity11.IconPath = @"";
            VTDPropertyInfoBase pi41             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter21 = new VTDObjectGetter(pi41);
            VTDPropertyInfoBase pi42             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter21 = new VTDObjectSetter(pi42);

            binding_setter21 = new StringFormaterDecorator(binding_setter21, "{Step.DataFetchActivity7.OutTable}");
            bind_dir21       = new BindDirection(_flow.DataFetchActivity7, binding_getter21, binding_setter21, BindTargetType.ToInProperty);
            this.DataCursorActivity11.InDirections.Add(bind_dir21);
            this.DataCursorActivity11_Policy.StartPosition         = CursorStartPosition.UserSpecificRecord;
            this.DataCursorActivity11_Policy.StartAtSpecificRow    = 2;
            this.DataCursorActivity11_Policy.EndPosition           = CursorEndPosition.LastRecord;
            this.DataCursorActivity11_Policy.EndAtSpecificRow      = 8;
            this.DataCursorActivity11_Policy.StepType              = CursorStepType.Forward;
            this.DataCursorActivity11_Policy.StepSize              = 1;
            this.DataCursorActivity11_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Stay;
            this.DataCursorActivity11.Policy         = this.DataCursorActivity11_Policy;
            this.DataCursorActivity11.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity11.ResetCursor;
            _flow.Sequence6.Comment  = @"";
            _flow.Sequence6.IconPath = @"";
            _flow.Sequence6.Name     = @"Sequence6";
            _flow.Sequence6.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence6.Activities.Add(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<?xml version=""1.0"" encoding=""utf-8""?>
<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"">
  <Body>
    <GetFlights xmlns=""HP.SOAQ.SampleApp"">
      <DepartureCity>{DataSource.citypairs!Input.DepartureCity}</DepartureCity>
      <ArrivalCity>{DataSource.citypairs!Input.ArrivalCity}</ArrivalCity>
      <FlightDate>2020-09-02T00:00:00-06:00</FlightDate>
    </GetFlights>
  </Body>
</Envelope>");
            _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document;
            _flow.StServiceCallActivity4.Comment       = @"";
            _flow.StServiceCallActivity4.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity4.Name          = @"GetFlights";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlights";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity4.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity4.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity4.Operation            = @"GetFlights";
            _flow.StServiceCallActivity4.IsOneWay             = false;
            _flow.StServiceCallActivity4.SendRequestToService = true;
            _flow.StServiceCallActivity4.FaultExpected        = false;
            _flow.StServiceCallActivity4.IsAsync              = false;
            _flow.StServiceCallActivity4.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity4.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi43             = new VTDPropertyInfoBase("DepartureCity");
            VTDBaseGetter       binding_getter22 = new VTDObjectGetter(pi43);
            VTDPropertyInfoBase pi44             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='DepartureCity'][1]");
            VTDBaseSetter       binding_setter22 = new VTDXPathSetter(pi44, XmlTypeCode.String);

            binding_setter22 = new StringFormaterDecorator(binding_setter22, "{DataSource.citypairs!Input.DepartureCity}");
            bind_dir22       = new BindDirection(this.DataCursorActivity11, binding_getter22, binding_setter22, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir22);
            VTDPropertyInfoBase pi45             = new VTDPropertyInfoBase("ArrivalCity");
            VTDBaseGetter       binding_getter23 = new VTDObjectGetter(pi45);
            VTDPropertyInfoBase pi46             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='ArrivalCity'][1]");
            VTDBaseSetter       binding_setter23 = new VTDXPathSetter(pi46, XmlTypeCode.String);

            binding_setter23 = new StringFormaterDecorator(binding_setter23, "{DataSource.citypairs!Input.ArrivalCity}");
            bind_dir23       = new BindDirection(this.DataCursorActivity11, binding_getter23, binding_setter23, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir23);
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightsResponse xmlns=""HP.SOAQ.SampleApp""><GetFlightsResult><Flight><Airline p1:nil=""true"" /><ArrivalCity p1:nil=""true"" /><ArrivalTime p1:nil=""true"" /><DepartureCity p1:nil=""true"" /><DepartureTime p1:nil=""true"" /><FlightNumber /></Flight></GetFlightsResult></GetFlightsResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity4.ExpectedFaultProperties = StServiceCallActivity4_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity4.ExpectedOutputAttachments = StServiceCallActivity4_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><CreateFlightOrder xmlns=""HP.SOAQ.SampleApp""><FlightOrder><Class>Business</Class><CustomerName>Tim Leach</CustomerName><DepartureDate>{Step.InputProperties.StServiceCallActivity4.Body.GetFlights.FlightDate}</DepartureDate><FlightNumber>{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightsResponse.GetFlightsResult.Flight[1].FlightNumber}</FlightNumber><NumberOfTickets>2</NumberOfTickets></FlightOrder></CreateFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"CreateFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/CreateFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity5.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity5.Operation            = @"CreateFlightOrder";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi47             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightsResponse'][1]/*[local-name(.)='GetFlightsResult'][1]/*[local-name(.)='Flight'][{Array0}]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseGetter       binding_getter24 = new VTDXPathGetter(pi47, XmlTypeCode.Int);

            binding_getter24 = new XPathGetterDecorator(binding_getter24, "{Array0}", 1);
            VTDPropertyInfoBase pi48             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseSetter       binding_setter24 = new VTDXPathSetter(pi48, XmlTypeCode.Int);

            bind_dir24 = new BindDirection(_flow.StServiceCallActivity4, binding_getter24, binding_setter24, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir24);
            VTDPropertyInfoBase pi49             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='FlightDate'][1]");
            VTDBaseGetter       binding_getter25 = new VTDXPathGetter(pi49, XmlTypeCode.DateTime);
            VTDPropertyInfoBase pi50             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='DepartureDate'][1]");
            VTDBaseSetter       binding_setter25 = new VTDXPathSetter(pi50, XmlTypeCode.DateTime);

            bind_dir25 = new BindDirection(_flow.StServiceCallActivity4, binding_getter25, binding_setter25, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir25);
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><CreateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp""><CreateFlightOrderResult><OrderNumber>90</OrderNumber><TotalPrice>1500</TotalPrice></CreateFlightOrderResult></CreateFlightOrderResponse></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
        }
Exemplo n.º 4
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity13 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity13");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.For);
            _flow.DataExporterActivity15      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity15");
            _flow.DataExporterCloseActivity16 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity16");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity14   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity14");
            this.DataCursorActivity17        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity17");
            this.DataCursorActivity17_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence12                         = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence12");
            _flow.StServiceCallActivity7             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity7");
            _flow.StServiceCallActivity6             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity6");
            _flow.StServiceCallActivity5             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.DataFetchActivity13.Comment        = @"";
            _flow.DataFetchActivity13.IconPath       = @"";
            _flow.DataFetchActivity13.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity13.QueryClassName = @"HP.ST.Ext.CustomDataProviders.LocalDataQuery";
            XmlDocument DataFetchActivity13_QueryParameters_Document = new XmlDocument();

            DataFetchActivity13_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity13Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>0050e89f-6653-4cec-ab78-e64a5b6f1e81</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Members</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value></Value></QueryParameter><QueryParameter><Name>TableStructure</Name><Value>FirstName,String,|LastName,String,|SSN,String,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>Hercule|Poirot|554-98-0001^Sherlock|Holmes|332-10-0002</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity13_QueryParameters_Document.LoadXml(xmlDataFetchActivity13Params);
            _flow.DataFetchActivity13.QueryParameters = DataFetchActivity13_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Members", _flow.DataFetchActivity13);
            this.Activities.Add(_flow.DataFetchActivity13);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"Run for 2 iterations";
            _flow.Loop2.NumberOfIterations = (int)2;
            _flow.Loop2.Comment            = @"";
            _flow.Loop2.IconPath           = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity17);
            _flow.Loop2.Activities.Add(_flow.Sequence12);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity15.Comment  = @"";
            _flow.DataExporterActivity15.IconPath = @"";
            VTDPropertyInfoBase pi57             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter29 = new VTDObjectGetter(pi57);
            VTDPropertyInfoBase pi58             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter29 = new VTDObjectSetter(pi58);

            binding_setter29 = new StringFormaterDecorator(binding_setter29, "{Step.DataFetchActivity13.OutTable}");
            bind_dir29       = new BindDirection(_flow.DataFetchActivity13, binding_getter29, binding_setter29, BindTargetType.ToInProperty);
            _flow.DataExporterActivity15.InDirections.Add(bind_dir29);
            this.Activities.Add(_flow.DataExporterActivity15);
            _flow.DataExporterCloseActivity16.Comment  = @"";
            _flow.DataExporterCloseActivity16.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity16);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity14.Comment  = @"";
            _flow.DataDisconnectActivity14.IconPath = @"";
            VTDPropertyInfoBase pi59             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter30 = new VTDObjectGetter(pi59);
            VTDPropertyInfoBase pi60             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter30 = new VTDObjectSetter(pi60);

            binding_setter30 = new StringFormaterDecorator(binding_setter30, "{Step.DataFetchActivity13.OutTable}");
            bind_dir30       = new BindDirection(_flow.DataFetchActivity13, binding_getter30, binding_setter30, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity14.InDirections.Add(bind_dir30);
            this.Activities.Add(_flow.DataDisconnectActivity14);
            this.DataCursorActivity17.Comment  = @"";
            this.DataCursorActivity17.IconPath = @"";
            VTDPropertyInfoBase pi61             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter31 = new VTDObjectGetter(pi61);
            VTDPropertyInfoBase pi62             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter31 = new VTDObjectSetter(pi62);

            binding_setter31 = new StringFormaterDecorator(binding_setter31, "{Step.DataFetchActivity13.OutTable}");
            bind_dir31       = new BindDirection(_flow.DataFetchActivity13, binding_getter31, binding_setter31, BindTargetType.ToInProperty);
            this.DataCursorActivity17.InDirections.Add(bind_dir31);
            this.DataCursorActivity17_Policy.StartPosition         = CursorStartPosition.FirstRecord;
            this.DataCursorActivity17_Policy.StartAtSpecificRow    = 1;
            this.DataCursorActivity17_Policy.EndPosition           = CursorEndPosition.LastRecord;
            this.DataCursorActivity17_Policy.EndAtSpecificRow      = 2;
            this.DataCursorActivity17_Policy.StepType              = CursorStepType.Forward;
            this.DataCursorActivity17_Policy.StepSize              = 1;
            this.DataCursorActivity17_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity17.Policy         = this.DataCursorActivity17_Policy;
            this.DataCursorActivity17.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity17.ResetCursor;
            _flow.Sequence12.Comment  = @"";
            _flow.Sequence12.IconPath = @"";
            _flow.Sequence12.Name     = @"Sequence12";
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity7);
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity6);
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity7_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity7_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity7_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><memberSearch xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01""><name><firstName xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.Members.FirstName}</firstName><lastName xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.Members.LastName}</lastName></name><socialSecurityNumber>{DataSource.Members.SSN}</socialSecurityNumber></memberSearch></Body></Envelope>");
            _flow.StServiceCallActivity7.InputEnvelope = StServiceCallActivity7_InputEnvelope_Document;
            _flow.StServiceCallActivity7.Comment       = @"";
            _flow.StServiceCallActivity7.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity7.Name          = @"memberSearch";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity7.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity7.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.SoapAction      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01/IMemberAccounts/memberSearch";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity7.Service              = @"MemberAccounts";
            _flow.StServiceCallActivity7.Port                 = @"BasicHttpBinding_IMemberAccounts";
            _flow.StServiceCallActivity7.Operation            = @"memberSearch";
            _flow.StServiceCallActivity7.IsOneWay             = false;
            _flow.StServiceCallActivity7.SendRequestToService = true;
            _flow.StServiceCallActivity7.FaultExpected        = false;
            _flow.StServiceCallActivity7.IsAsync              = false;
            _flow.StServiceCallActivity7.TargetNamespace      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01";
            _flow.StServiceCallActivity7.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi63             = new VTDPropertyInfoBase("SSN");
            VTDBaseGetter       binding_getter32 = new VTDObjectGetter(pi63);
            VTDPropertyInfoBase pi64             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='memberSearch'][1]/*[local-name(.)='socialSecurityNumber'][1]");
            VTDBaseSetter       binding_setter32 = new VTDXPathSetter(pi64, XmlTypeCode.String);

            binding_setter32 = new StringFormaterDecorator(binding_setter32, "{DataSource.Members.SSN}");
            bind_dir32       = new BindDirection(this.DataCursorActivity17, binding_getter32, binding_setter32, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir32);
            VTDPropertyInfoBase pi65             = new VTDPropertyInfoBase("LastName");
            VTDBaseGetter       binding_getter33 = new VTDObjectGetter(pi65);
            VTDPropertyInfoBase pi66             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='memberSearch'][1]/*[local-name(.)='name'][1]/*[local-name(.)='lastName'][1]");
            VTDBaseSetter       binding_setter33 = new VTDXPathSetter(pi66, XmlTypeCode.String);

            binding_setter33 = new StringFormaterDecorator(binding_setter33, "{DataSource.Members.LastName}");
            bind_dir33       = new BindDirection(this.DataCursorActivity17, binding_getter33, binding_setter33, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir33);
            VTDPropertyInfoBase pi67             = new VTDPropertyInfoBase("FirstName");
            VTDBaseGetter       binding_getter34 = new VTDObjectGetter(pi67);
            VTDPropertyInfoBase pi68             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='memberSearch'][1]/*[local-name(.)='name'][1]/*[local-name(.)='firstName'][1]");
            VTDBaseSetter       binding_setter34 = new VTDXPathSetter(pi68, XmlTypeCode.String);

            binding_setter34 = new StringFormaterDecorator(binding_setter34, "{DataSource.Members.FirstName}");
            bind_dir34       = new BindDirection(this.DataCursorActivity17, binding_getter34, binding_setter34, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir34);
            XmlDocument StServiceCallActivity7_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><memberSearchResponse xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01""><memberSearchResult><Member xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo""><memberId /><socialSecurityNumber p1:nil=""true"" /></Member></memberSearchResult></memberSearchResponse></Body></Envelope>");
            _flow.StServiceCallActivity7.ExpectedOutputProperties = StServiceCallActivity7_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity7_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity7.ExpectedFaultProperties = StServiceCallActivity7_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity7_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity7.ExpectedOutputAttachments = StServiceCallActivity7_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity7_checkpoints(_flow.StServiceCallActivity7);
            XmlDocument StServiceCallActivity6_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity6_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity6_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><getMemberPlan xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01""><memberId>{Step.OutputProperties.StServiceCallActivity7.Body.memberSearchResponse.memberSearchResult.Member[1].memberId}</memberId></getMemberPlan></Body></Envelope>");
            _flow.StServiceCallActivity6.InputEnvelope = StServiceCallActivity6_InputEnvelope_Document;
            _flow.StServiceCallActivity6.Comment       = @"";
            _flow.StServiceCallActivity6.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity6.Name          = @"getMemberPlan";
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity6.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity6.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.SoapAction      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01/IMemberAccounts/getMemberPlan";
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity6.Service              = @"MemberAccounts";
            _flow.StServiceCallActivity6.Port                 = @"BasicHttpBinding_IMemberAccounts";
            _flow.StServiceCallActivity6.Operation            = @"getMemberPlan";
            _flow.StServiceCallActivity6.IsOneWay             = false;
            _flow.StServiceCallActivity6.SendRequestToService = true;
            _flow.StServiceCallActivity6.FaultExpected        = false;
            _flow.StServiceCallActivity6.IsAsync              = false;
            _flow.StServiceCallActivity6.TargetNamespace      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01";
            _flow.StServiceCallActivity6.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi69             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='memberSearchResponse'][1]/*[local-name(.)='memberSearchResult'][1]/*[local-name(.)='Member'][{Array0}]/*[local-name(.)='memberId'][1]");
            VTDBaseGetter       binding_getter35 = new VTDXPathGetter(pi69, XmlTypeCode.Long);

            binding_getter35 = new XPathGetterDecorator(binding_getter35, "{Array0}", 1);
            VTDPropertyInfoBase pi70             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='getMemberPlan'][1]/*[local-name(.)='memberId'][1]");
            VTDBaseSetter       binding_setter35 = new VTDXPathSetter(pi70, XmlTypeCode.Long);

            bind_dir35 = new BindDirection(_flow.StServiceCallActivity7, binding_getter35, binding_setter35, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity6.InDirections.Add(bind_dir35);
            XmlDocument StServiceCallActivity6_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity6_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity6_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><getMemberPlanResponse xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01"" /></Body></Envelope>");
            _flow.StServiceCallActivity6.ExpectedOutputProperties = StServiceCallActivity6_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity6_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity6_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity6_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity6.ExpectedFaultProperties = StServiceCallActivity6_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity6_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity6_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity6_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity6.ExpectedOutputAttachments = StServiceCallActivity6_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity6_checkpoints(_flow.StServiceCallActivity6);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><getMemberDetail xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01""><memberId>{Step.OutputProperties.StServiceCallActivity7.Body.memberSearchResponse.memberSearchResult.Member[1].memberId}</memberId></getMemberDetail></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"getMemberDetail";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01/IMemberAccounts/getMemberDetail";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"MemberAccounts";
            _flow.StServiceCallActivity5.Port                 = @"BasicHttpBinding_IMemberAccounts";
            _flow.StServiceCallActivity5.Operation            = @"getMemberDetail";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi71             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='memberSearchResponse'][1]/*[local-name(.)='memberSearchResult'][1]/*[local-name(.)='Member'][{Array0}]/*[local-name(.)='memberId'][1]");
            VTDBaseGetter       binding_getter36 = new VTDXPathGetter(pi71, XmlTypeCode.Long);

            binding_getter36 = new XPathGetterDecorator(binding_getter36, "{Array0}", 1);
            VTDPropertyInfoBase pi72             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='getMemberDetail'][1]/*[local-name(.)='memberId'][1]");
            VTDBaseSetter       binding_setter36 = new VTDXPathSetter(pi72, XmlTypeCode.Long);

            bind_dir36 = new BindDirection(_flow.StServiceCallActivity7, binding_getter36, binding_setter36, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir36);
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><getMemberDetailResponse xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01"" /></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
        }
Exemplo n.º 5
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity10 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity10");
            _flow.DataFetchActivity7  = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity7");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach);
            _flow.DataExporterActivity9       = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity9");
            _flow.DataExporterActivity12      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity12");
            _flow.DataExporterCloseActivity13 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity13");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity8    = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity8");
            _flow.DataDisconnectActivity11   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity11");
            this.DataCursorActivity14        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity14");
            this.DataCursorActivity14_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.RelatedDataFetchActivity15 = new HP.ST.Ext.BasicActivities.RelatedDataFetchActivity(_context, "RelatedDataFetchActivity15");
            _flow.Sequence6 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6");
            _flow.ReplaceStringActivity4             = new HP.ST.Ext.BasicActivities.ReplaceStringActivity(_context, "ReplaceStringActivity4");
            _flow.ConcatenateStringsActivity5        = new HP.ST.Ext.BasicActivities.ConcatenateStringsActivity(_context, "ConcatenateStringsActivity5");
            _flow.DataFetchActivity10.Comment        = @"";
            _flow.DataFetchActivity10.IconPath       = @"";
            _flow.DataFetchActivity10.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity10.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity10_QueryParameters_Document = new XmlDocument();

            DataFetchActivity10_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity10Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>33f9fef4-2191-4419-a8fe-47c2a6aa8713</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>SearchReplaceString$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity10_QueryParameters_Document.LoadXml(xmlDataFetchActivity10Params);
            _flow.DataFetchActivity10.QueryParameters = DataFetchActivity10_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString", _flow.DataFetchActivity10);
            this.Activities.Add(_flow.DataFetchActivity10);
            _flow.DataFetchActivity7.Comment        = @"";
            _flow.DataFetchActivity7.IconPath       = @"";
            _flow.DataFetchActivity7.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity7.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity7_QueryParameters_Document = new XmlDocument();

            DataFetchActivity7_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity7Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>025b403c-788c-49e8-9b72-fa7da23c772d</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>MainDetails$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity7_QueryParameters_Document.LoadXml(xmlDataFetchActivity7Params);
            _flow.DataFetchActivity7.QueryParameters = DataFetchActivity7_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails", _flow.DataFetchActivity7);
            this.Activities.Add(_flow.DataFetchActivity7);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"For each item in {DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails}";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Condition         += delegate(object sender, STActivityBaseEventArgs e)
            {
                return(!DataCursorActivity14.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity14);
            _flow.Loop2.Activities.Add(_flow.RelatedDataFetchActivity15);
            _flow.Loop2.Activities.Add(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity9.Comment  = @"";
            _flow.DataExporterActivity9.IconPath = @"";
            VTDPropertyInfoBase pi3             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter2 = new VTDObjectGetter(pi3);
            VTDPropertyInfoBase pi4             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter2 = new VTDObjectSetter(pi4);

            binding_setter2 = new StringFormaterDecorator(binding_setter2, "{Step.DataFetchActivity7.OutTable}");
            bind_dir2       = new BindDirection(_flow.DataFetchActivity7, binding_getter2, binding_setter2, BindTargetType.ToInProperty);
            _flow.DataExporterActivity9.InDirections.Add(bind_dir2);
            this.Activities.Add(_flow.DataExporterActivity9);
            _flow.DataExporterActivity12.Comment  = @"";
            _flow.DataExporterActivity12.IconPath = @"";
            VTDPropertyInfoBase pi5             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter3 = new VTDObjectGetter(pi5);
            VTDPropertyInfoBase pi6             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter3 = new VTDObjectSetter(pi6);

            binding_setter3 = new StringFormaterDecorator(binding_setter3, "{Step.DataFetchActivity10.OutTable}");
            bind_dir3       = new BindDirection(_flow.DataFetchActivity10, binding_getter3, binding_setter3, BindTargetType.ToInProperty);
            _flow.DataExporterActivity12.InDirections.Add(bind_dir3);
            this.Activities.Add(_flow.DataExporterActivity12);
            _flow.DataExporterCloseActivity13.Comment  = @"";
            _flow.DataExporterCloseActivity13.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity13);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity8.Comment  = @"";
            _flow.DataDisconnectActivity8.IconPath = @"";
            VTDPropertyInfoBase pi7             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter4 = new VTDObjectGetter(pi7);
            VTDPropertyInfoBase pi8             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter4 = new VTDObjectSetter(pi8);

            binding_setter4 = new StringFormaterDecorator(binding_setter4, "{Step.DataFetchActivity7.OutTable}");
            bind_dir4       = new BindDirection(_flow.DataFetchActivity7, binding_getter4, binding_setter4, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity8.InDirections.Add(bind_dir4);
            this.Activities.Add(_flow.DataDisconnectActivity8);
            _flow.DataDisconnectActivity11.Comment  = @"";
            _flow.DataDisconnectActivity11.IconPath = @"";
            VTDPropertyInfoBase pi9             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter5 = new VTDObjectGetter(pi9);
            VTDPropertyInfoBase pi10            = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter5 = new VTDObjectSetter(pi10);

            binding_setter5 = new StringFormaterDecorator(binding_setter5, "{Step.DataFetchActivity10.OutTable}");
            bind_dir5       = new BindDirection(_flow.DataFetchActivity10, binding_getter5, binding_setter5, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity11.InDirections.Add(bind_dir5);
            this.Activities.Add(_flow.DataDisconnectActivity11);
            this.DataCursorActivity14.Comment  = @"";
            this.DataCursorActivity14.IconPath = @"";
            VTDPropertyInfoBase pi11            = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter6 = new VTDObjectGetter(pi11);
            VTDPropertyInfoBase pi12            = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter6 = new VTDObjectSetter(pi12);

            binding_setter6 = new StringFormaterDecorator(binding_setter6, "{Step.DataFetchActivity7.OutTable}");
            bind_dir6       = new BindDirection(_flow.DataFetchActivity7, binding_getter6, binding_setter6, BindTargetType.ToInProperty);
            this.DataCursorActivity14.InDirections.Add(bind_dir6);
            this.DataCursorActivity14_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity14_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity14_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity14_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity14_Policy.StartCondition.Value      = "";
            this.DataCursorActivity14_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity14_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity14_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity14_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity14_Policy.EndCondition.Value      = "";
            this.DataCursorActivity14_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity14_Policy.StepSize = 1;
            this.DataCursorActivity14_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity14.Policy         = this.DataCursorActivity14_Policy;
            this.DataCursorActivity14.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity14.ResetCursor;
            XmlDocument RelatedDataFetchActivity15_Relations_Document = new XmlDocument();

            RelatedDataFetchActivity15_Relations_Document.PreserveWhitespace = true;
            RelatedDataFetchActivity15_Relations_Document.LoadXml(
                @"<RelationsContainer><Relation><PrimaryQuery>025b403c-788c-49e8-9b72-fa7da23c772d</PrimaryQuery><RelatedQuery>33f9fef4-2191-4419-a8fe-47c2a6aa8713</RelatedQuery><PrimaryKey>MainDetailsKey</PrimaryKey><ForeignKey>MainDetailsKey</ForeignKey></Relation></RelationsContainer>");
            _flow.RelatedDataFetchActivity15.Relations = RelatedDataFetchActivity15_Relations_Document;
            string      xmlRelatedDataFetchActivity15Params         = @"<QueriesContainer><Query><AssemblyPath>C:\Program Files (x86)\HPE\Unified Functional Testing\AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll</AssemblyPath><QueryClassName>HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery</QueryClassName><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>025b403c-788c-49e8-9b72-fa7da23c772d</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.TablePath}") + @"</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>MainDetails$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Query><Query><AssemblyPath>C:\Program Files (x86)\HPE\Unified Functional Testing\AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll</AssemblyPath><QueryClassName>HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery</QueryClassName><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>33f9fef4-2191-4419-a8fe-47c2a6aa8713</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.TablePath}") + @"</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>SearchReplaceString$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Query></QueriesContainer>";
            XmlDocument RelatedDataFetchActivity15_Queries_Document = new XmlDocument();

            RelatedDataFetchActivity15_Queries_Document.PreserveWhitespace = true;
            RelatedDataFetchActivity15_Queries_Document.LoadXml(xmlRelatedDataFetchActivity15Params);
            _flow.RelatedDataFetchActivity15.Queries = RelatedDataFetchActivity15_Queries_Document;
            VTDPropertyInfoBase pi13            = new VTDPropertyInfoBase("MainDetailsKey");
            VTDBaseGetter       binding_getter7 = new VTDObjectGetter(pi13);
            VTDPropertyInfoBase pi14            = new VTDPropertyInfoBase("025b403c-788c-49e8-9b72-fa7da23c772d_MainDetailsKey");
            VTDBaseSetter       binding_setter7 = new VTDObjectSetter(pi14);

            bind_dir7 = new BindDirection(this.DataCursorActivity14, binding_getter7, binding_setter7, BindTargetType.ToInProperty);
            _flow.RelatedDataFetchActivity15.InDirections.Add(bind_dir7);
            _flow.Sequence6.Comment  = @"";
            _flow.Sequence6.IconPath = @"";
            _flow.Sequence6.Name     = @"Sequence6";
            _flow.Sequence6.Activities.Add(_flow.ReplaceStringActivity4);
            _flow.Sequence6.Activities.Add(_flow.ConcatenateStringsActivity5);
            _flow.ReplaceStringActivity4.SourceString                 = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}";
            _flow.ReplaceStringActivity4.SearchReplaceString          = new Pair <string, string> [1];
            _flow.ReplaceStringActivity4.SearchReplaceString[0]       = new Pair <string, string>();
            _flow.ReplaceStringActivity4.SearchReplaceString[0].Key   = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.Key}";
            _flow.ReplaceStringActivity4.SearchReplaceString[0].Value = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.Value}";
            _flow.ReplaceStringActivity4.CaseSensitive                = false;
            _flow.ReplaceStringActivity4.Comment  = @"";
            _flow.ReplaceStringActivity4.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_replace_string.png";
            _flow.ReplaceStringActivity4.Name     = @"Cambiar Texto";
            VTDPropertyInfoBase pi15            = new VTDPropertyInfoBase("SourceString");
            VTDBaseGetter       binding_getter8 = new VTDObjectGetter(pi15);
            VTDPropertyInfoBase pi16            = new VTDPropertyInfoBase("SourceString");
            VTDBaseSetter       binding_setter8 = new VTDObjectSetter(pi16);

            binding_setter8 = new StringFormaterDecorator(binding_setter8, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}");
            bind_dir8       = new BindDirection(this.DataCursorActivity14, binding_getter8, binding_setter8, BindTargetType.ToInProperty);
            _flow.ReplaceStringActivity4.InDirections.Add(bind_dir8);
            VTDPropertyInfoBase pi17            = new VTDPropertyInfoBase("CaseSensitive");
            VTDBaseGetter       binding_getter9 = new VTDObjectGetter(pi17);
            VTDPropertyInfoBase pi18            = new VTDPropertyInfoBase("CaseSensitive");
            VTDBaseSetter       binding_setter9 = new VTDObjectSetter(pi18);

            bind_dir9 = new BindDirection(this.DataCursorActivity14, binding_getter9, binding_setter9, BindTargetType.ToInProperty);
            _flow.ReplaceStringActivity4.InDirections.Add(bind_dir9);
            List <DataLink> ReplaceStringActivity4_InputProperties_relatedDataLinks = new List <DataLink>();

            ReplaceStringActivity4_InputProperties_relatedDataLinks.Add(new DataLink("33f9fef4-2191-4419-a8fe-47c2a6aa8713", "Value", "/Arguments[1]/SearchReplaceString[1]/SearchReplaceString[1][1]/Value[1]"));
            ReplaceStringActivity4_InputProperties_relatedDataLinks.Add(new DataLink("33f9fef4-2191-4419-a8fe-47c2a6aa8713", "Key", "/Arguments[1]/SearchReplaceString[1]/SearchReplaceString[1][1]/Key[1]"));
            string ReplaceStringActivity4_InputProperties_schema = @"<?xml version=""1.0"" encoding=""utf-16""?>
            <xs:schema xmlns:types=""http://hp.vtd.schemas/types/v1.0"" xmlns:xs=""http://www.w3.org/2001/XMLSchema"">
              <xs:import schemaLocation=""../../../dat/schemas/Types.xsd"" namespace=""http://hp.vtd.schemas/types/v1.0"" />
              <xs:element types:displayName=""Properties"" name=""Arguments"">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element types:displayName=""Source string"" name=""SourceString"" type=""xs:string"" />
                    <xs:element types:displayCollectionName=""Search and Replace"" types:displayName=""Search and Replace Strings"" types:serialize=""none"" types:visible=""true"" types:argType=""xml"" minOccurs=""1"" maxOccurs=""unbounded"" name=""SearchReplaceString"">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element types:displayName=""Search string"" name=""Key"" type=""xs:string"" />
                          <xs:element types:displayName=""Replace string"" name=""Value"" type=""xs:string"" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element types:displayName=""Case-sensitive"" default=""true"" name=""CaseSensitive"" type=""xs:boolean"">
                      <xs:annotation>
                        <xs:documentation>An indicator denoting if the search string is case-sensitive</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:schema>";
            VTDPropertyInfoBase pi19             = new VTDPropertyInfoBase("Value");
            VTDPropertyInfoBase pi20             = new VTDPropertyInfoBase("SearchReplaceString[0].Value");
            VTDBaseGetter       binding_getter10 = new VTDObjectGetter(pi19);
            VTDBaseSetter       binding_setter10 = new VTDDataSourceObjectSetter(pi20, ReplaceStringActivity4_InputProperties_schema, Path.Combine(_context.ScriptPath, @"Schemas"), ReplaceStringActivity4_InputProperties_relatedDataLinks);

            bind_dir10 = new BindDirection(_flow.RelatedDataFetchActivity15, binding_getter10, binding_setter10, BindTargetType.ToInProperty);
            _flow.ReplaceStringActivity4.InDirections.Add(bind_dir10);
            VTDPropertyInfoBase pi21             = new VTDPropertyInfoBase("Result");
            VTDBaseGetter       binding_getter11 = new VTDObjectGetter(pi21);
            VTDPropertyInfoBase pi22             = new VTDPropertyInfoBase("Result");
            VTDBaseSetter       binding_setter11 = new VTDCheckpointSetter(XmlTypeCode.String);

            binding_setter11 = new StringFormaterDecorator(binding_setter11, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}");
            bind_dir11       = new BindDirection(this.DataCursorActivity14, binding_getter11, binding_setter11, BindTargetType.ToInProperty);
            set_ReplaceStringActivity4_checkpoints(_flow.ReplaceStringActivity4);
            _flow.ConcatenateStringsActivity5.Prefix   = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}";
            _flow.ConcatenateStringsActivity5.Suffix   = @" was replaced with {DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}";
            _flow.ConcatenateStringsActivity5.Comment  = @"";
            _flow.ConcatenateStringsActivity5.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_concat.png";
            _flow.ConcatenateStringsActivity5.Name     = @"Concatenar Texto";
            VTDPropertyInfoBase pi23             = new VTDPropertyInfoBase("Result");
            VTDBaseGetter       binding_getter12 = new VTDObjectGetter(pi23);
            VTDPropertyInfoBase pi24             = new VTDPropertyInfoBase("Suffix");
            VTDBaseSetter       binding_setter12 = new VTDObjectSetter(pi24);

            binding_setter12 = new StringFormaterDecorator(binding_setter12, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}");
            bind_dir12       = new BindDirection(this.DataCursorActivity14, binding_getter12, binding_setter12, BindTargetType.ToInProperty);
            _flow.ConcatenateStringsActivity5.InDirections.Add(bind_dir12);
            VTDPropertyInfoBase pi25             = new VTDPropertyInfoBase("SourceString");
            VTDBaseGetter       binding_getter13 = new VTDObjectGetter(pi25);
            VTDPropertyInfoBase pi26             = new VTDPropertyInfoBase("Prefix");
            VTDBaseSetter       binding_setter13 = new VTDObjectSetter(pi26);

            binding_setter13 = new StringFormaterDecorator(binding_setter13, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}");
            bind_dir13       = new BindDirection(this.DataCursorActivity14, binding_getter13, binding_setter13, BindTargetType.ToInProperty);
            _flow.ConcatenateStringsActivity5.InDirections.Add(bind_dir13);
            VTDPropertyInfoBase pi27             = new VTDPropertyInfoBase("SourceString");
            VTDBaseGetter       binding_getter14 = new VTDObjectGetter(pi27);
            VTDPropertyInfoBase pi28             = new VTDPropertyInfoBase("Result");
            VTDBaseSetter       binding_setter14 = new VTDCheckpointSetter(XmlTypeCode.String);

            binding_setter14 = new StringFormaterDecorator(binding_setter14, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}");
            bind_dir14       = new BindDirection(this.DataCursorActivity14, binding_getter14, binding_setter14, BindTargetType.ToInProperty);
            VTDPropertyInfoBase pi29             = new VTDPropertyInfoBase("Result");
            VTDBaseGetter       binding_getter15 = new VTDObjectGetter(pi29);
            VTDPropertyInfoBase pi30             = new VTDPropertyInfoBase("Result");
            VTDBaseSetter       binding_setter15 = new VTDCheckpointSetter(XmlTypeCode.String);

            binding_setter15 = new StringFormaterDecorator(binding_setter15, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}");
            bind_dir15       = new BindDirection(this.DataCursorActivity14, binding_getter15, binding_setter15, BindTargetType.ToInProperty);
            set_ConcatenateStringsActivity5_checkpoints(_flow.ConcatenateStringsActivity5);
        }
Exemplo n.º 6
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity14 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity14");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach);
            _flow.DataExporterActivity16      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity16");
            _flow.DataExporterCloseActivity17 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity17");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity15   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity15");
            this.DataCursorActivity18        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity18");
            this.DataCursorActivity18_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence13                         = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence13");
            _flow.StServiceCallActivity4             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.StServiceCallActivity5             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.DataFetchActivity14.Comment        = @"";
            _flow.DataFetchActivity14.IconPath       = @"";
            _flow.DataFetchActivity14.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity14.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity14_QueryParameters_Document = new XmlDocument();

            DataFetchActivity14_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity14Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>3def751e-23e2-4763-ac5f-818c714e4ed3</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>TestClaims!Sheet1</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>False</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>TestClaims</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{TestClaims!Sheet1.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Sheet1$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity14_QueryParameters_Document.LoadXml(xmlDataFetchActivity14Params);
            _flow.DataFetchActivity14.QueryParameters = DataFetchActivity14_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("TestClaims!Sheet1", _flow.DataFetchActivity14);
            this.Activities.Add(_flow.DataFetchActivity14);
            XmlDocument StartActivity1_ExecutionInputParameters_Document = new XmlDocument();

            StartActivity1_ExecutionInputParameters_Document.PreserveWhitespace = true;
            StartActivity1_ExecutionInputParameters_Document.LoadXml(
                @"<Arguments><ServiceEndpoint>http://localhost:8102/ServiceSimulation/Demo/ClaimProcessingService/ClaimProcessingService</ServiceEndpoint></Arguments>");
            _flow.StartActivity1.ExecutionInputParameters = StartActivity1_ExecutionInputParameters_Document;
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"For each item in {DataSource.TestClaims!Sheet1}";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Condition         += delegate(object sender, STActivityBaseEventArgs e)
            {
                return(!DataCursorActivity18.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity18);
            _flow.Loop2.Activities.Add(_flow.Sequence13);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity16.Comment  = @"";
            _flow.DataExporterActivity16.IconPath = @"";
            VTDPropertyInfoBase pi241             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter121 = new VTDObjectGetter(pi241);
            VTDPropertyInfoBase pi242             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter121 = new VTDObjectSetter(pi242);

            binding_setter121 = new StringFormaterDecorator(binding_setter121, "{Step.DataFetchActivity14.OutTable}");
            bind_dir121       = new BindDirection(_flow.DataFetchActivity14, binding_getter121, binding_setter121, BindTargetType.ToInProperty);
            _flow.DataExporterActivity16.InDirections.Add(bind_dir121);
            this.Activities.Add(_flow.DataExporterActivity16);
            _flow.DataExporterCloseActivity17.Comment  = @"";
            _flow.DataExporterCloseActivity17.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity17);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity15.Comment  = @"";
            _flow.DataDisconnectActivity15.IconPath = @"";
            VTDPropertyInfoBase pi243             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter122 = new VTDObjectGetter(pi243);
            VTDPropertyInfoBase pi244             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter122 = new VTDObjectSetter(pi244);

            binding_setter122 = new StringFormaterDecorator(binding_setter122, "{Step.DataFetchActivity14.OutTable}");
            bind_dir122       = new BindDirection(_flow.DataFetchActivity14, binding_getter122, binding_setter122, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity15.InDirections.Add(bind_dir122);
            this.Activities.Add(_flow.DataDisconnectActivity15);
            this.DataCursorActivity18.Comment  = @"";
            this.DataCursorActivity18.IconPath = @"";
            VTDPropertyInfoBase pi245             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter123 = new VTDObjectGetter(pi245);
            VTDPropertyInfoBase pi246             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter123 = new VTDObjectSetter(pi246);

            binding_setter123 = new StringFormaterDecorator(binding_setter123, "{Step.DataFetchActivity14.OutTable}");
            bind_dir123       = new BindDirection(_flow.DataFetchActivity14, binding_getter123, binding_setter123, BindTargetType.ToInProperty);
            this.DataCursorActivity18.InDirections.Add(bind_dir123);
            this.DataCursorActivity18_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity18_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity18_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity18_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity18_Policy.StartCondition.Value      = "";
            this.DataCursorActivity18_Policy.EndPosition             = CursorEndPosition.UserSpecificRecord;
            this.DataCursorActivity18_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity18_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity18_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity18_Policy.EndCondition.Value      = "";
            this.DataCursorActivity18_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity18_Policy.StepSize = 1;
            this.DataCursorActivity18_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity18.Policy         = this.DataCursorActivity18_Policy;
            this.DataCursorActivity18.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity18.ResetCursor;
            _flow.Sequence13.Comment  = @"";
            _flow.Sequence13.IconPath = @"";
            _flow.Sequence13.Name     = @"Sequence13";
            _flow.Sequence13.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence13.Activities.Add(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><enterClaim xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01""><claim><claimedAmount xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.TestClaims!Sheet1.ClaimAount}</claimedAmount><date xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.TestClaims!Sheet1.Date}</date><description xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.TestClaims!Sheet1.ClaimDesc}</description><firstName xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.TestClaims!Sheet1.FirstName}</firstName><lastName xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.TestClaims!Sheet1.LastName}</lastName><socialSecurityNumber xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{DataSource.TestClaims!Sheet1.SSN}</socialSecurityNumber></claim></enterClaim></Body></Envelope>");
            _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document;
            _flow.StServiceCallActivity4.Comment       = @"";
            _flow.StServiceCallActivity4.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity4.Name          = @"enterClaim";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"{Step.OutputProperties.StartActivity1.ServiceEndpoint}" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01/IClaimProcessing/enterClaim";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity4.Service              = @"ClaimProcessing";
            _flow.StServiceCallActivity4.Port                 = @"BasicHttpBinding_IClaimProcessing";
            _flow.StServiceCallActivity4.Operation            = @"enterClaim";
            _flow.StServiceCallActivity4.IsOneWay             = false;
            _flow.StServiceCallActivity4.SendRequestToService = true;
            _flow.StServiceCallActivity4.FaultExpected        = false;
            _flow.StServiceCallActivity4.IsAsync              = false;
            _flow.StServiceCallActivity4.TargetNamespace      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01";
            _flow.StServiceCallActivity4.ListenOnPort         = (int)0;
            XmlDocument StServiceCallActivity4_ChannelBindingXml = new XmlDocument();

            StServiceCallActivity4_ChannelBindingXml.PreserveWhitespace = true;
            StServiceCallActivity4_ChannelBindingXml.LoadXml(@"<?xml version=""1.0""?>
            <ArrayOfChannelBindingBase xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"">
              <ChannelBindingBase xsi:type=""HttpChannelBinding"">
                <IsKeepAlive>false</IsKeepAlive>
                <IsPreemptiveAuthentication>false</IsPreemptiveAuthentication>
                <ConnectionTimeout>0</ConnectionTimeout>
              </ChannelBindingBase>
            </ArrayOfChannelBindingBase>");
            _flow.StServiceCallActivity4.ChannelBindingXml = StServiceCallActivity4_ChannelBindingXml;
            VTDPropertyInfoBase pi247             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='ServiceEndpoint'][1]");
            VTDBaseGetter       binding_getter124 = new VTDXPathGetter(pi247, XmlTypeCode.String);
            VTDPropertyInfoBase pi248             = new VTDPropertyInfoBase("TransportProtocol.SOAPProperties.EndpointAddress");
            VTDBaseSetter       binding_setter124 = new VTDObjectSetter(pi248);

            binding_setter124 = new StringFormaterDecorator(binding_setter124, "{Step.OutputProperties.StartActivity1.ServiceEndpoint}");
            bind_dir124       = new BindDirection(_flow.StartActivity1, binding_getter124, binding_setter124, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir124);
            VTDPropertyInfoBase pi249             = new VTDPropertyInfoBase("SSN");
            VTDBaseGetter       binding_getter125 = new VTDObjectGetter(pi249);
            VTDPropertyInfoBase pi250             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='enterClaim'][1]/*[local-name(.)='claim'][1]/*[local-name(.)='socialSecurityNumber'][1]");
            VTDBaseSetter       binding_setter125 = new VTDXPathSetter(pi250, XmlTypeCode.String);

            binding_setter125 = new StringFormaterDecorator(binding_setter125, "{DataSource.TestClaims!Sheet1.SSN}");
            bind_dir125       = new BindDirection(this.DataCursorActivity18, binding_getter125, binding_setter125, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir125);
            VTDPropertyInfoBase pi251             = new VTDPropertyInfoBase("LastName");
            VTDBaseGetter       binding_getter126 = new VTDObjectGetter(pi251);
            VTDPropertyInfoBase pi252             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='enterClaim'][1]/*[local-name(.)='claim'][1]/*[local-name(.)='lastName'][1]");
            VTDBaseSetter       binding_setter126 = new VTDXPathSetter(pi252, XmlTypeCode.String);

            binding_setter126 = new StringFormaterDecorator(binding_setter126, "{DataSource.TestClaims!Sheet1.LastName}");
            bind_dir126       = new BindDirection(this.DataCursorActivity18, binding_getter126, binding_setter126, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir126);
            VTDPropertyInfoBase pi253             = new VTDPropertyInfoBase("FirstName");
            VTDBaseGetter       binding_getter127 = new VTDObjectGetter(pi253);
            VTDPropertyInfoBase pi254             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='enterClaim'][1]/*[local-name(.)='claim'][1]/*[local-name(.)='firstName'][1]");
            VTDBaseSetter       binding_setter127 = new VTDXPathSetter(pi254, XmlTypeCode.String);

            binding_setter127 = new StringFormaterDecorator(binding_setter127, "{DataSource.TestClaims!Sheet1.FirstName}");
            bind_dir127       = new BindDirection(this.DataCursorActivity18, binding_getter127, binding_setter127, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir127);
            VTDPropertyInfoBase pi255             = new VTDPropertyInfoBase("ClaimDesc");
            VTDBaseGetter       binding_getter128 = new VTDObjectGetter(pi255);
            VTDPropertyInfoBase pi256             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='enterClaim'][1]/*[local-name(.)='claim'][1]/*[local-name(.)='description'][1]");
            VTDBaseSetter       binding_setter128 = new VTDXPathSetter(pi256, XmlTypeCode.String);

            binding_setter128 = new StringFormaterDecorator(binding_setter128, "{DataSource.TestClaims!Sheet1.ClaimDesc}");
            bind_dir128       = new BindDirection(this.DataCursorActivity18, binding_getter128, binding_setter128, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir128);
            VTDPropertyInfoBase pi257             = new VTDPropertyInfoBase("Date");
            VTDBaseGetter       binding_getter129 = new VTDObjectGetter(pi257);
            VTDPropertyInfoBase pi258             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='enterClaim'][1]/*[local-name(.)='claim'][1]/*[local-name(.)='date'][1]");
            VTDBaseSetter       binding_setter129 = new VTDXPathSetter(pi258, XmlTypeCode.DateTime);

            bind_dir129 = new BindDirection(this.DataCursorActivity18, binding_getter129, binding_setter129, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir129);
            VTDPropertyInfoBase pi259             = new VTDPropertyInfoBase("ClaimAount");
            VTDBaseGetter       binding_getter130 = new VTDObjectGetter(pi259);
            VTDPropertyInfoBase pi260             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='enterClaim'][1]/*[local-name(.)='claim'][1]/*[local-name(.)='claimedAmount'][1]");
            VTDBaseSetter       binding_setter130 = new VTDXPathSetter(pi260, XmlTypeCode.Float);

            bind_dir130 = new BindDirection(this.DataCursorActivity18, binding_getter130, binding_setter130, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir130);
            XmlDocument StServiceCallActivity4_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity4.ExpectedOutputAttachments = StServiceCallActivity4_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity4_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity4.ExpectedFaultProperties = StServiceCallActivity4_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><enterClaimResponse xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01""><enterClaimResult><id xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"" /></enterClaimResult></enterClaimResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><getClaim xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01""><claimId><id xmlns=""http://schemas.datacontract.org/2004/07/HP.SOAQ.ServiceSimulation.Demo"">{Step.OutputProperties.StServiceCallActivity4.Body.enterClaimResponse.enterClaimResult.id}</id></claimId></getClaim></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"getClaim";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"{Step.OutputProperties.StartActivity1.ServiceEndpoint}" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01/IClaimProcessing/getClaim";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"ClaimProcessing";
            _flow.StServiceCallActivity5.Port                 = @"BasicHttpBinding_IClaimProcessing";
            _flow.StServiceCallActivity5.Operation            = @"getClaim";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            XmlDocument StServiceCallActivity5_ChannelBindingXml = new XmlDocument();

            StServiceCallActivity5_ChannelBindingXml.PreserveWhitespace = true;
            StServiceCallActivity5_ChannelBindingXml.LoadXml(@"<?xml version=""1.0""?>
            <ArrayOfChannelBindingBase xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"">
              <ChannelBindingBase xsi:type=""HttpChannelBinding"">
                <IsKeepAlive>false</IsKeepAlive>
                <IsPreemptiveAuthentication>false</IsPreemptiveAuthentication>
                <ConnectionTimeout>0</ConnectionTimeout>
              </ChannelBindingBase>
            </ArrayOfChannelBindingBase>");
            _flow.StServiceCallActivity5.ChannelBindingXml = StServiceCallActivity5_ChannelBindingXml;
            VTDPropertyInfoBase pi261             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='ServiceEndpoint'][1]");
            VTDBaseGetter       binding_getter131 = new VTDXPathGetter(pi261, XmlTypeCode.String);
            VTDPropertyInfoBase pi262             = new VTDPropertyInfoBase("TransportProtocol.SOAPProperties.EndpointAddress");
            VTDBaseSetter       binding_setter131 = new VTDObjectSetter(pi262);

            binding_setter131 = new StringFormaterDecorator(binding_setter131, "{Step.OutputProperties.StartActivity1.ServiceEndpoint}");
            bind_dir131       = new BindDirection(_flow.StartActivity1, binding_getter131, binding_setter131, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir131);
            VTDPropertyInfoBase pi263             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='enterClaimResponse'][1]/*[local-name(.)='enterClaimResult'][1]/*[local-name(.)='id'][1]");
            VTDBaseGetter       binding_getter132 = new VTDXPathGetter(pi263, XmlTypeCode.Long);
            VTDPropertyInfoBase pi264             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='getClaim'][1]/*[local-name(.)='claimId'][1]/*[local-name(.)='id'][1]");
            VTDBaseSetter       binding_setter132 = new VTDXPathSetter(pi264, XmlTypeCode.Long);

            bind_dir132 = new BindDirection(_flow.StServiceCallActivity4, binding_getter132, binding_setter132, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir132);
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><getClaimResponse xmlns=""http://hp.com/SOAQ/ServiceSimulation/2010/demo/01"" /></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
        }
Exemplo n.º 7
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity10 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity10");
            _flow.DataFetchActivity7  = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity7");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach);
            _flow.DataExporterActivity9       = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity9");
            _flow.DataExporterActivity12      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity12");
            _flow.DataExporterCloseActivity13 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity13");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity8    = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity8");
            _flow.DataDisconnectActivity11   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity11");
            this.DataCursorActivity14        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity14");
            this.DataCursorActivity14_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            this.DataCursorActivity15        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity15");
            this.DataCursorActivity15_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence6                          = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6");
            _flow.SubtractActivity5                  = new HP.ST.Ext.BasicActivities.SubtractActivity(_context, "SubtractActivity5");
            _flow.AddActivity4                       = new HP.ST.Ext.BasicActivities.AddActivity(_context, "AddActivity4");
            _flow.DataFetchActivity10.Comment        = @"";
            _flow.DataFetchActivity10.IconPath       = @"";
            _flow.DataFetchActivity10.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity10.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity10_QueryParameters_Document = new XmlDocument();

            DataFetchActivity10_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity10Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>84c6b46e-5d46-4af9-ab19-b30f068a7cb1</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Add4_Checkpoints_1!MainDetails</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Add4_Checkpoints_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Add4_Checkpoints_1!MainDetails.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>MainDetails$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity10_QueryParameters_Document.LoadXml(xmlDataFetchActivity10Params);
            _flow.DataFetchActivity10.QueryParameters = DataFetchActivity10_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Add4_Checkpoints_1!MainDetails", _flow.DataFetchActivity10);
            this.Activities.Add(_flow.DataFetchActivity10);
            _flow.DataFetchActivity7.Comment        = @"";
            _flow.DataFetchActivity7.IconPath       = @"";
            _flow.DataFetchActivity7.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity7.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity7_QueryParameters_Document = new XmlDocument();

            DataFetchActivity7_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity7Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>ad436312-f9b6-4e7c-bedf-775f6f25647c</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Add4_Input_1!MainDetails</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Add4_Input_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Add4_Input_1!MainDetails.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>MainDetails$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity7_QueryParameters_Document.LoadXml(xmlDataFetchActivity7Params);
            _flow.DataFetchActivity7.QueryParameters = DataFetchActivity7_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Add4_Input_1!MainDetails", _flow.DataFetchActivity7);
            this.Activities.Add(_flow.DataFetchActivity7);
            XmlDocument StartActivity1_ExecutionInputParameters_Document = new XmlDocument();

            StartActivity1_ExecutionInputParameters_Document.PreserveWhitespace = true;
            StartActivity1_ExecutionInputParameters_Document.LoadXml(
                @"<Arguments><Param1>90</Param1><Param2>10</Param2></Arguments>");
            _flow.StartActivity1.ExecutionInputParameters = StartActivity1_ExecutionInputParameters_Document;
            _flow.StartActivity1.Comment  = @"";
            _flow.StartActivity1.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name     = @"Start";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"For each item in {DataSource.Add4_Input_1!MainDetails}";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Condition         += delegate(object sender, STActivityBaseEventArgs e)
            {
                return(!DataCursorActivity14.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity14);
            _flow.Loop2.Activities.Add(this.DataCursorActivity15);
            _flow.Loop2.Activities.Add(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity9.Comment  = @"";
            _flow.DataExporterActivity9.IconPath = @"";
            VTDPropertyInfoBase pi19             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter10 = new VTDObjectGetter(pi19);
            VTDPropertyInfoBase pi20             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter10 = new VTDObjectSetter(pi20);

            binding_setter10 = new StringFormaterDecorator(binding_setter10, "{Step.DataFetchActivity7.OutTable}");
            bind_dir10       = new BindDirection(_flow.DataFetchActivity7, binding_getter10, binding_setter10, BindTargetType.ToInProperty);
            _flow.DataExporterActivity9.InDirections.Add(bind_dir10);
            this.Activities.Add(_flow.DataExporterActivity9);
            _flow.DataExporterActivity12.Comment  = @"";
            _flow.DataExporterActivity12.IconPath = @"";
            VTDPropertyInfoBase pi21             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter11 = new VTDObjectGetter(pi21);
            VTDPropertyInfoBase pi22             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter11 = new VTDObjectSetter(pi22);

            binding_setter11 = new StringFormaterDecorator(binding_setter11, "{Step.DataFetchActivity10.OutTable}");
            bind_dir11       = new BindDirection(_flow.DataFetchActivity10, binding_getter11, binding_setter11, BindTargetType.ToInProperty);
            _flow.DataExporterActivity12.InDirections.Add(bind_dir11);
            this.Activities.Add(_flow.DataExporterActivity12);
            _flow.DataExporterCloseActivity13.Comment  = @"";
            _flow.DataExporterCloseActivity13.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity13);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity8.Comment  = @"";
            _flow.DataDisconnectActivity8.IconPath = @"";
            VTDPropertyInfoBase pi23             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter12 = new VTDObjectGetter(pi23);
            VTDPropertyInfoBase pi24             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter12 = new VTDObjectSetter(pi24);

            binding_setter12 = new StringFormaterDecorator(binding_setter12, "{Step.DataFetchActivity7.OutTable}");
            bind_dir12       = new BindDirection(_flow.DataFetchActivity7, binding_getter12, binding_setter12, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity8.InDirections.Add(bind_dir12);
            this.Activities.Add(_flow.DataDisconnectActivity8);
            _flow.DataDisconnectActivity11.Comment  = @"";
            _flow.DataDisconnectActivity11.IconPath = @"";
            VTDPropertyInfoBase pi25             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter13 = new VTDObjectGetter(pi25);
            VTDPropertyInfoBase pi26             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter13 = new VTDObjectSetter(pi26);

            binding_setter13 = new StringFormaterDecorator(binding_setter13, "{Step.DataFetchActivity10.OutTable}");
            bind_dir13       = new BindDirection(_flow.DataFetchActivity10, binding_getter13, binding_setter13, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity11.InDirections.Add(bind_dir13);
            this.Activities.Add(_flow.DataDisconnectActivity11);
            this.DataCursorActivity14.Comment  = @"";
            this.DataCursorActivity14.IconPath = @"";
            VTDPropertyInfoBase pi27             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter14 = new VTDObjectGetter(pi27);
            VTDPropertyInfoBase pi28             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter14 = new VTDObjectSetter(pi28);

            binding_setter14 = new StringFormaterDecorator(binding_setter14, "{Step.DataFetchActivity7.OutTable}");
            bind_dir14       = new BindDirection(_flow.DataFetchActivity7, binding_getter14, binding_setter14, BindTargetType.ToInProperty);
            this.DataCursorActivity14.InDirections.Add(bind_dir14);
            this.DataCursorActivity14_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity14_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity14_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity14_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity14_Policy.StartCondition.Value      = "";
            this.DataCursorActivity14_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity14_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity14_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity14_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity14_Policy.EndCondition.Value      = "";
            this.DataCursorActivity14_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity14_Policy.StepSize = 1;
            this.DataCursorActivity14_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity14.Policy         = this.DataCursorActivity14_Policy;
            this.DataCursorActivity14.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity14.ResetCursor;
            this.DataCursorActivity15.Comment        = @"";
            this.DataCursorActivity15.IconPath       = @"";
            VTDPropertyInfoBase pi29             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter15 = new VTDObjectGetter(pi29);
            VTDPropertyInfoBase pi30             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter15 = new VTDObjectSetter(pi30);

            binding_setter15 = new StringFormaterDecorator(binding_setter15, "{Step.DataFetchActivity10.OutTable}");
            bind_dir15       = new BindDirection(_flow.DataFetchActivity10, binding_getter15, binding_setter15, BindTargetType.ToInProperty);
            this.DataCursorActivity15.InDirections.Add(bind_dir15);
            this.DataCursorActivity15_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity15_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity15_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity15_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity15_Policy.StartCondition.Value      = "";
            this.DataCursorActivity15_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity15_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity15_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity15_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity15_Policy.EndCondition.Value      = "";
            this.DataCursorActivity15_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity15_Policy.StepSize = 1;
            this.DataCursorActivity15_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity15.Policy         = this.DataCursorActivity15_Policy;
            this.DataCursorActivity15.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity15.ResetCursor;
            _flow.Sequence6.Comment  = @"";
            _flow.Sequence6.IconPath = @"";
            _flow.Sequence6.Name     = @"Sequence6";
            _flow.Sequence6.Activities.Add(_flow.SubtractActivity5);
            _flow.Sequence6.Activities.Add(_flow.AddActivity4);
            _flow.SubtractActivity5.A        = (decimal)10m;
            _flow.SubtractActivity5.B        = (decimal)5m;
            _flow.SubtractActivity5.Comment  = @"";
            _flow.SubtractActivity5.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_subtract.png";
            _flow.SubtractActivity5.Name     = @"Subtract5";
            _flow.AddActivity4.A             = (decimal)0m;
            _flow.AddActivity4.B             = (decimal)0m;
            _flow.AddActivity4.Comment       = @"";
            _flow.AddActivity4.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_add.png";
            _flow.AddActivity4.Name          = @"Add4";
            VTDPropertyInfoBase pi31             = new VTDPropertyInfoBase("B");
            VTDBaseGetter       binding_getter16 = new VTDObjectGetter(pi31);
            VTDPropertyInfoBase pi32             = new VTDPropertyInfoBase("B");
            VTDBaseSetter       binding_setter16 = new VTDObjectSetter(pi32);

            bind_dir16 = new BindDirection(this.DataCursorActivity14, binding_getter16, binding_setter16, BindTargetType.ToInProperty);
            _flow.AddActivity4.InDirections.Add(bind_dir16);
            VTDPropertyInfoBase pi33             = new VTDPropertyInfoBase("A");
            VTDBaseGetter       binding_getter17 = new VTDObjectGetter(pi33);
            VTDPropertyInfoBase pi34             = new VTDPropertyInfoBase("A");
            VTDBaseSetter       binding_setter17 = new VTDObjectSetter(pi34);

            bind_dir17 = new BindDirection(this.DataCursorActivity14, binding_getter17, binding_setter17, BindTargetType.ToInProperty);
            _flow.AddActivity4.InDirections.Add(bind_dir17);
            VTDPropertyInfoBase pi35             = new VTDPropertyInfoBase("Result");
            VTDBaseGetter       binding_getter18 = new VTDObjectGetter(pi35);
            VTDPropertyInfoBase pi36             = new VTDPropertyInfoBase("Result");
            VTDBaseSetter       binding_setter18 = new VTDCheckpointSetter(XmlTypeCode.Decimal);

            bind_dir18 = new BindDirection(this.DataCursorActivity15, binding_getter18, binding_setter18, BindTargetType.ToInProperty);
            set_AddActivity4_checkpoints(_flow.AddActivity4);
        }
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity12 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity12");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.For);
            _flow.DataExporterActivity14      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity14");
            _flow.DataExporterCloseActivity15 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity15");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity13   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity13");
            this.DataCursorActivity16        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity16");
            this.DataCursorActivity16_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence11                         = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence11");
            _flow.StServiceCallActivity4             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.StServiceCallActivity9             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity9");
            _flow.StServiceCallActivity10            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity10");
            _flow.DataFetchActivity12.Comment        = @"";
            _flow.DataFetchActivity12.IconPath       = @"";
            _flow.DataFetchActivity12.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity12.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity12_QueryParameters_Document = new XmlDocument();

            DataFetchActivity12_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity12Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>2811a251-2855-4a71-9600-d98ea6ec2ec6</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>AppData!Sheet1</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>False</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>AppData</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{AppData!Sheet1.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Sheet1$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity12_QueryParameters_Document.LoadXml(xmlDataFetchActivity12Params);
            _flow.DataFetchActivity12.QueryParameters = DataFetchActivity12_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("AppData!Sheet1", _flow.DataFetchActivity12);
            this.Activities.Add(_flow.DataFetchActivity12);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"Run for 5 iterations";
            _flow.Loop2.NumberOfIterations = (int)5;
            _flow.Loop2.Comment            = @"";
            _flow.Loop2.IconPath           = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity16);
            _flow.Loop2.Activities.Add(_flow.Sequence11);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity14.Comment  = @"";
            _flow.DataExporterActivity14.IconPath = @"";
            VTDPropertyInfoBase pi1             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter1 = new VTDObjectGetter(pi1);
            VTDPropertyInfoBase pi2             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter1 = new VTDObjectSetter(pi2);

            binding_setter1 = new StringFormaterDecorator(binding_setter1, "{Step.DataFetchActivity12.OutTable}");
            bind_dir1       = new BindDirection(_flow.DataFetchActivity12, binding_getter1, binding_setter1, BindTargetType.ToInProperty);
            _flow.DataExporterActivity14.InDirections.Add(bind_dir1);
            this.Activities.Add(_flow.DataExporterActivity14);
            _flow.DataExporterCloseActivity15.Comment  = @"";
            _flow.DataExporterCloseActivity15.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity15);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity13.Comment  = @"";
            _flow.DataDisconnectActivity13.IconPath = @"";
            VTDPropertyInfoBase pi3             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter2 = new VTDObjectGetter(pi3);
            VTDPropertyInfoBase pi4             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter2 = new VTDObjectSetter(pi4);

            binding_setter2 = new StringFormaterDecorator(binding_setter2, "{Step.DataFetchActivity12.OutTable}");
            bind_dir2       = new BindDirection(_flow.DataFetchActivity12, binding_getter2, binding_setter2, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity13.InDirections.Add(bind_dir2);
            this.Activities.Add(_flow.DataDisconnectActivity13);
            this.DataCursorActivity16.Comment  = @"";
            this.DataCursorActivity16.IconPath = @"";
            VTDPropertyInfoBase pi5             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter3 = new VTDObjectGetter(pi5);
            VTDPropertyInfoBase pi6             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter3 = new VTDObjectSetter(pi6);

            binding_setter3 = new StringFormaterDecorator(binding_setter3, "{Step.DataFetchActivity12.OutTable}");
            bind_dir3       = new BindDirection(_flow.DataFetchActivity12, binding_getter3, binding_setter3, BindTargetType.ToInProperty);
            this.DataCursorActivity16.InDirections.Add(bind_dir3);
            this.DataCursorActivity16_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity16_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity16_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity16_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity16_Policy.StartCondition.Value      = "";
            this.DataCursorActivity16_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity16_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity16_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity16_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity16_Policy.EndCondition.Value      = "";
            this.DataCursorActivity16_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity16_Policy.StepSize = 1;
            this.DataCursorActivity16_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity16.Policy         = this.DataCursorActivity16_Policy;
            this.DataCursorActivity16.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity16.ResetCursor;
            _flow.Sequence11.Comment  = @"";
            _flow.Sequence11.IconPath = @"";
            _flow.Sequence11.Name     = @"Sequence11";
            _flow.Sequence11.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence11.Activities.Add(_flow.StServiceCallActivity9);
            _flow.Sequence11.Activities.Add(_flow.StServiceCallActivity10);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AccountCreateRequest xmlns=""com.advantage.online.store.accountservice""><lastName>{DataSource.AppData!Sheet1.LastName}</lastName><firstName>{DataSource.AppData!Sheet1.FirstName}</firstName><loginName>{DataSource.AppData!Sheet1.LoginName}</loginName><countryId>40</countryId><stateProvince /><cityName /><address /><zipcode /><phoneNumber /><email>{DataSource.AppData!Sheet1.Email}</email><password>{DataSource.AppData!Sheet1.Password}</password><accountType>20</accountType><allowOffersPromotion>true</allowOffersPromotion></AccountCreateRequest></Body></Envelope>");
            _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document;
            _flow.StServiceCallActivity4.Comment       = @"";
            _flow.StServiceCallActivity4.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity4.Name          = @"AccountCreate";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction      = @"";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity4.Service              = @"AccountServicePortService";
            _flow.StServiceCallActivity4.Port                 = @"AccountServicePortSoap11";
            _flow.StServiceCallActivity4.Operation            = @"AccountCreate";
            _flow.StServiceCallActivity4.IsOneWay             = false;
            _flow.StServiceCallActivity4.SendRequestToService = true;
            _flow.StServiceCallActivity4.FaultExpected        = false;
            _flow.StServiceCallActivity4.IsAsync              = false;
            _flow.StServiceCallActivity4.TargetNamespace      = @"com.advantage.online.store.accountservice";
            _flow.StServiceCallActivity4.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi7             = new VTDPropertyInfoBase("Password");
            VTDBaseGetter       binding_getter4 = new VTDObjectGetter(pi7);
            VTDPropertyInfoBase pi8             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='password'][1]");
            VTDBaseSetter       binding_setter4 = new VTDXPathSetter(pi8, XmlTypeCode.String);

            binding_setter4 = new StringFormaterDecorator(binding_setter4, "{DataSource.AppData!Sheet1.Password}");
            bind_dir4       = new BindDirection(this.DataCursorActivity16, binding_getter4, binding_setter4, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir4);
            VTDPropertyInfoBase pi9             = new VTDPropertyInfoBase("LoginName");
            VTDBaseGetter       binding_getter5 = new VTDObjectGetter(pi9);
            VTDPropertyInfoBase pi10            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='loginName'][1]");
            VTDBaseSetter       binding_setter5 = new VTDXPathSetter(pi10, XmlTypeCode.String);

            binding_setter5 = new StringFormaterDecorator(binding_setter5, "{DataSource.AppData!Sheet1.LoginName}");
            bind_dir5       = new BindDirection(this.DataCursorActivity16, binding_getter5, binding_setter5, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir5);
            VTDPropertyInfoBase pi11            = new VTDPropertyInfoBase("LastName");
            VTDBaseGetter       binding_getter6 = new VTDObjectGetter(pi11);
            VTDPropertyInfoBase pi12            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='lastName'][1]");
            VTDBaseSetter       binding_setter6 = new VTDXPathSetter(pi12, XmlTypeCode.String);

            binding_setter6 = new StringFormaterDecorator(binding_setter6, "{DataSource.AppData!Sheet1.LastName}");
            bind_dir6       = new BindDirection(this.DataCursorActivity16, binding_getter6, binding_setter6, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir6);
            VTDPropertyInfoBase pi13            = new VTDPropertyInfoBase("FirstName");
            VTDBaseGetter       binding_getter7 = new VTDObjectGetter(pi13);
            VTDPropertyInfoBase pi14            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='firstName'][1]");
            VTDBaseSetter       binding_setter7 = new VTDXPathSetter(pi14, XmlTypeCode.String);

            binding_setter7 = new StringFormaterDecorator(binding_setter7, "{DataSource.AppData!Sheet1.FirstName}");
            bind_dir7       = new BindDirection(this.DataCursorActivity16, binding_getter7, binding_setter7, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir7);
            VTDPropertyInfoBase pi15            = new VTDPropertyInfoBase("Email");
            VTDBaseGetter       binding_getter8 = new VTDObjectGetter(pi15);
            VTDPropertyInfoBase pi16            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='email'][1]");
            VTDBaseSetter       binding_setter8 = new VTDXPathSetter(pi16, XmlTypeCode.String);

            binding_setter8 = new StringFormaterDecorator(binding_setter8, "{DataSource.AppData!Sheet1.Email}");
            bind_dir8       = new BindDirection(this.DataCursorActivity16, binding_getter8, binding_setter8, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir8);
            XmlDocument StServiceCallActivity4_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity4.ExpectedOutputAttachments = StServiceCallActivity4_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity4_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity4.ExpectedFaultProperties = StServiceCallActivity4_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AccountCreateResponse xmlns=""com.advantage.online.store.accountservice""><StatusMessage><success>true</success><userId>0</userId><reason /><token /><sessionId /></StatusMessage></AccountCreateResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
            XmlDocument StServiceCallActivity9_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity9_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity9_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AddSafePayMethodRequest xmlns=""com.advantage.online.store.accountservice""><accountId>{Step.OutputProperties.StServiceCallActivity4.Body.AccountCreateResponse.StatusMessage.userId}</accountId><safePayUsername>{Step.InputProperties.StServiceCallActivity4.Body.AccountCreateRequest.loginName}</safePayUsername><safePayPassword>{Step.InputProperties.StServiceCallActivity4.Body.AccountCreateRequest.password}</safePayPassword><base64Token>{Step.OutputProperties.StServiceCallActivity4.Body.AccountCreateResponse.StatusMessage.userId}</base64Token></AddSafePayMethodRequest></Body></Envelope>");
            _flow.StServiceCallActivity9.InputEnvelope = StServiceCallActivity9_InputEnvelope_Document;
            _flow.StServiceCallActivity9.Comment       = @"";
            _flow.StServiceCallActivity9.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity9.Name          = @"AddSafePayMethod";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity9.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity9.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.SoapAction      = @"";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity9.Service              = @"AccountServicePortService";
            _flow.StServiceCallActivity9.Port                 = @"AccountServicePortSoap11";
            _flow.StServiceCallActivity9.Operation            = @"AddSafePayMethod";
            _flow.StServiceCallActivity9.IsOneWay             = false;
            _flow.StServiceCallActivity9.SendRequestToService = true;
            _flow.StServiceCallActivity9.FaultExpected        = false;
            _flow.StServiceCallActivity9.IsAsync              = false;
            _flow.StServiceCallActivity9.TargetNamespace      = @"com.advantage.online.store.accountservice";
            _flow.StServiceCallActivity9.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi17            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='loginName'][1]");
            VTDBaseGetter       binding_getter9 = new VTDXPathGetter(pi17, XmlTypeCode.String);
            VTDPropertyInfoBase pi18            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AddSafePayMethodRequest'][1]/*[local-name(.)='safePayUsername'][1]");
            VTDBaseSetter       binding_setter9 = new VTDXPathSetter(pi18, XmlTypeCode.String);

            binding_setter9 = new StringFormaterDecorator(binding_setter9, "{Step.InputProperties.StServiceCallActivity4.Body.AccountCreateRequest.loginName}");
            bind_dir9       = new BindDirection(_flow.StServiceCallActivity4, binding_getter9, binding_setter9, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir9);
            VTDPropertyInfoBase pi19             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='password'][1]");
            VTDBaseGetter       binding_getter10 = new VTDXPathGetter(pi19, XmlTypeCode.String);
            VTDPropertyInfoBase pi20             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AddSafePayMethodRequest'][1]/*[local-name(.)='safePayPassword'][1]");
            VTDBaseSetter       binding_setter10 = new VTDXPathSetter(pi20, XmlTypeCode.String);

            binding_setter10 = new StringFormaterDecorator(binding_setter10, "{Step.InputProperties.StServiceCallActivity4.Body.AccountCreateRequest.password}");
            bind_dir10       = new BindDirection(_flow.StServiceCallActivity4, binding_getter10, binding_setter10, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir10);
            VTDPropertyInfoBase pi21             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateResponse'][1]/*[local-name(.)='StatusMessage'][1]/*[local-name(.)='userId'][1]");
            VTDBaseGetter       binding_getter11 = new VTDXPathGetter(pi21, XmlTypeCode.Long);
            VTDPropertyInfoBase pi22             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AddSafePayMethodRequest'][1]/*[local-name(.)='base64Token'][1]");
            VTDBaseSetter       binding_setter11 = new VTDXPathSetter(pi22, XmlTypeCode.String);

            binding_setter11 = new StringFormaterDecorator(binding_setter11, "{Step.OutputProperties.StServiceCallActivity4.Body.AccountCreateResponse.StatusMessage.userId}");
            bind_dir11       = new BindDirection(_flow.StServiceCallActivity4, binding_getter11, binding_setter11, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir11);
            VTDPropertyInfoBase pi23             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateResponse'][1]/*[local-name(.)='StatusMessage'][1]/*[local-name(.)='userId'][1]");
            VTDBaseGetter       binding_getter12 = new VTDXPathGetter(pi23, XmlTypeCode.Long);
            VTDPropertyInfoBase pi24             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AddSafePayMethodRequest'][1]/*[local-name(.)='accountId'][1]");
            VTDBaseSetter       binding_setter12 = new VTDXPathSetter(pi24, XmlTypeCode.Long);

            bind_dir12 = new BindDirection(_flow.StServiceCallActivity4, binding_getter12, binding_setter12, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir12);
            XmlDocument StServiceCallActivity9_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity9.ExpectedOutputAttachments = StServiceCallActivity9_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity9_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity9.ExpectedFaultProperties = StServiceCallActivity9_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity9_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AddSafePayMethodResponse xmlns=""com.advantage.online.store.accountservice""><StatusMessage><success>true</success><id /><reason /></StatusMessage></AddSafePayMethodResponse></Body></Envelope>");
            _flow.StServiceCallActivity9.ExpectedOutputProperties = StServiceCallActivity9_ExpectedOutputProperties_Document;
            set_StServiceCallActivity9_checkpoints(_flow.StServiceCallActivity9);
            XmlDocument StServiceCallActivity10_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity10_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity10_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AccountDeleteRequest xmlns=""com.advantage.online.store.accountservice""><accountId>{Step.OutputProperties.StServiceCallActivity4.Body.AccountCreateResponse.StatusMessage.userId}</accountId><base64Token>{Step.OutputProperties.StServiceCallActivity4.Body.AccountCreateResponse.StatusMessage.userId}</base64Token></AccountDeleteRequest></Body></Envelope>");
            _flow.StServiceCallActivity10.InputEnvelope = StServiceCallActivity10_InputEnvelope_Document;
            _flow.StServiceCallActivity10.Comment       = @"";
            _flow.StServiceCallActivity10.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity10.Name          = @"AccountDelete";
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity10.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity10.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.SoapAction      = @"";
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity10.Service              = @"AccountServicePortService";
            _flow.StServiceCallActivity10.Port                 = @"AccountServicePortSoap11";
            _flow.StServiceCallActivity10.Operation            = @"AccountDelete";
            _flow.StServiceCallActivity10.IsOneWay             = false;
            _flow.StServiceCallActivity10.IsSkip               = false;
            _flow.StServiceCallActivity10.SendRequestToService = true;
            _flow.StServiceCallActivity10.FaultExpected        = false;
            _flow.StServiceCallActivity10.IsAsync              = false;
            _flow.StServiceCallActivity10.TargetNamespace      = @"com.advantage.online.store.accountservice";
            _flow.StServiceCallActivity10.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi25             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateResponse'][1]/*[local-name(.)='StatusMessage'][1]/*[local-name(.)='userId'][1]");
            VTDBaseGetter       binding_getter13 = new VTDXPathGetter(pi25, XmlTypeCode.Long);
            VTDPropertyInfoBase pi26             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountDeleteRequest'][1]/*[local-name(.)='base64Token'][1]");
            VTDBaseSetter       binding_setter13 = new VTDXPathSetter(pi26, XmlTypeCode.String);

            binding_setter13 = new StringFormaterDecorator(binding_setter13, "{Step.OutputProperties.StServiceCallActivity4.Body.AccountCreateResponse.StatusMessage.userId}");
            bind_dir13       = new BindDirection(_flow.StServiceCallActivity4, binding_getter13, binding_setter13, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity10.InDirections.Add(bind_dir13);
            VTDPropertyInfoBase pi27             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateResponse'][1]/*[local-name(.)='StatusMessage'][1]/*[local-name(.)='userId'][1]");
            VTDBaseGetter       binding_getter14 = new VTDXPathGetter(pi27, XmlTypeCode.Long);
            VTDPropertyInfoBase pi28             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountDeleteRequest'][1]/*[local-name(.)='accountId'][1]");
            VTDBaseSetter       binding_setter14 = new VTDXPathSetter(pi28, XmlTypeCode.Long);

            bind_dir14 = new BindDirection(_flow.StServiceCallActivity4, binding_getter14, binding_setter14, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity10.InDirections.Add(bind_dir14);
            XmlDocument StServiceCallActivity10_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity10_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity10_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity10.ExpectedOutputAttachments = StServiceCallActivity10_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity10_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity10_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity10_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity10.ExpectedFaultProperties = StServiceCallActivity10_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity10_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity10_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity10_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AccountDeleteResponse xmlns=""com.advantage.online.store.accountservice""><StatusMessage><success>true</success><userId /><reason /><token /><sessionId /></StatusMessage></AccountDeleteResponse></Body></Envelope>");
            _flow.StServiceCallActivity10.ExpectedOutputProperties = StServiceCallActivity10_ExpectedOutputProperties_Document;
            set_StServiceCallActivity10_checkpoints(_flow.StServiceCallActivity10);
        }
Exemplo n.º 9
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity19 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity19");
            _flow.DataFetchActivity16 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity16");
            _flow.DataFetchActivity13 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity13");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.For);
            _flow.DataExporterActivity15      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity15");
            _flow.DataExporterActivity18      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity18");
            _flow.DataExporterActivity21      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity21");
            _flow.DataExporterCloseActivity22 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity22");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity14   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity14");
            _flow.DataDisconnectActivity17   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity17");
            _flow.DataDisconnectActivity20   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity20");
            this.DataCursorActivity23        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity23");
            this.DataCursorActivity23_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence12                         = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence12");
            _flow.StServiceCallActivity7             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity7");
            _flow.StServiceCallActivity9             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity9");
            _flow.CallQTPTest11                      = new HP.ST.Ext.UFTActivity.QtpTestActivity(_context, "CallQTPTest11");
            _flow.DataFetchActivity19.Comment        = @"";
            _flow.DataFetchActivity19.IconPath       = @"";
            _flow.DataFetchActivity19.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity19.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity19_QueryParameters_Document = new XmlDocument();

            DataFetchActivity19_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity19Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>02e9b1ee-449d-43bb-8260-1e0d5e9bde21</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Flight_Info!Sheet3</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Flight_Info</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Flight_Info!Sheet3.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Sheet3$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity19_QueryParameters_Document.LoadXml(xmlDataFetchActivity19Params);
            _flow.DataFetchActivity19.QueryParameters = DataFetchActivity19_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Flight_Info!Sheet3", _flow.DataFetchActivity19);
            this.Activities.Add(_flow.DataFetchActivity19);
            _flow.DataFetchActivity16.Comment        = @"";
            _flow.DataFetchActivity16.IconPath       = @"";
            _flow.DataFetchActivity16.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity16.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity16_QueryParameters_Document = new XmlDocument();

            DataFetchActivity16_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity16Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>73663818-6515-4759-9c18-6c64afb001ca</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Flight_Info!Output</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Flight_Info</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Flight_Info!Output.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Output$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity16_QueryParameters_Document.LoadXml(xmlDataFetchActivity16Params);
            _flow.DataFetchActivity16.QueryParameters = DataFetchActivity16_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Flight_Info!Output", _flow.DataFetchActivity16);
            this.Activities.Add(_flow.DataFetchActivity16);
            _flow.DataFetchActivity13.Comment        = @"";
            _flow.DataFetchActivity13.IconPath       = @"";
            _flow.DataFetchActivity13.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity13.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery";
            XmlDocument DataFetchActivity13_QueryParameters_Document = new XmlDocument();

            DataFetchActivity13_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity13Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>78cfa66c-f4e0-4908-839f-49a6ea4fcdb0</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Flight_Info!Input</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Flight_Info</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Flight_Info!Input.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Input$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity13_QueryParameters_Document.LoadXml(xmlDataFetchActivity13Params);
            _flow.DataFetchActivity13.QueryParameters = DataFetchActivity13_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("Flight_Info!Input", _flow.DataFetchActivity13);
            this.Activities.Add(_flow.DataFetchActivity13);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"Run for 3 iterations";
            _flow.Loop2.NumberOfIterations = (int)3;
            _flow.Loop2.Comment            = @"";
            _flow.Loop2.IconPath           = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity23);
            _flow.Loop2.Activities.Add(_flow.Sequence12);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity15.Comment  = @"";
            _flow.DataExporterActivity15.IconPath = @"";
            VTDPropertyInfoBase pi1             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter1 = new VTDObjectGetter(pi1);
            VTDPropertyInfoBase pi2             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter1 = new VTDObjectSetter(pi2);

            binding_setter1 = new StringFormaterDecorator(binding_setter1, "{Step.DataFetchActivity13.OutTable}");
            bind_dir1       = new BindDirection(_flow.DataFetchActivity13, binding_getter1, binding_setter1, BindTargetType.ToInProperty);
            _flow.DataExporterActivity15.InDirections.Add(bind_dir1);
            this.Activities.Add(_flow.DataExporterActivity15);
            _flow.DataExporterActivity18.Comment  = @"";
            _flow.DataExporterActivity18.IconPath = @"";
            VTDPropertyInfoBase pi3             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter2 = new VTDObjectGetter(pi3);
            VTDPropertyInfoBase pi4             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter2 = new VTDObjectSetter(pi4);

            binding_setter2 = new StringFormaterDecorator(binding_setter2, "{Step.DataFetchActivity16.OutTable}");
            bind_dir2       = new BindDirection(_flow.DataFetchActivity16, binding_getter2, binding_setter2, BindTargetType.ToInProperty);
            _flow.DataExporterActivity18.InDirections.Add(bind_dir2);
            this.Activities.Add(_flow.DataExporterActivity18);
            _flow.DataExporterActivity21.Comment  = @"";
            _flow.DataExporterActivity21.IconPath = @"";
            VTDPropertyInfoBase pi5             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter3 = new VTDObjectGetter(pi5);
            VTDPropertyInfoBase pi6             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter3 = new VTDObjectSetter(pi6);

            binding_setter3 = new StringFormaterDecorator(binding_setter3, "{Step.DataFetchActivity19.OutTable}");
            bind_dir3       = new BindDirection(_flow.DataFetchActivity19, binding_getter3, binding_setter3, BindTargetType.ToInProperty);
            _flow.DataExporterActivity21.InDirections.Add(bind_dir3);
            this.Activities.Add(_flow.DataExporterActivity21);
            _flow.DataExporterCloseActivity22.Comment  = @"";
            _flow.DataExporterCloseActivity22.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity22);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity14.Comment  = @"";
            _flow.DataDisconnectActivity14.IconPath = @"";
            VTDPropertyInfoBase pi7             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter4 = new VTDObjectGetter(pi7);
            VTDPropertyInfoBase pi8             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter4 = new VTDObjectSetter(pi8);

            binding_setter4 = new StringFormaterDecorator(binding_setter4, "{Step.DataFetchActivity13.OutTable}");
            bind_dir4       = new BindDirection(_flow.DataFetchActivity13, binding_getter4, binding_setter4, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity14.InDirections.Add(bind_dir4);
            this.Activities.Add(_flow.DataDisconnectActivity14);
            _flow.DataDisconnectActivity17.Comment  = @"";
            _flow.DataDisconnectActivity17.IconPath = @"";
            VTDPropertyInfoBase pi9             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter5 = new VTDObjectGetter(pi9);
            VTDPropertyInfoBase pi10            = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter5 = new VTDObjectSetter(pi10);

            binding_setter5 = new StringFormaterDecorator(binding_setter5, "{Step.DataFetchActivity16.OutTable}");
            bind_dir5       = new BindDirection(_flow.DataFetchActivity16, binding_getter5, binding_setter5, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity17.InDirections.Add(bind_dir5);
            this.Activities.Add(_flow.DataDisconnectActivity17);
            _flow.DataDisconnectActivity20.Comment  = @"";
            _flow.DataDisconnectActivity20.IconPath = @"";
            VTDPropertyInfoBase pi11            = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter6 = new VTDObjectGetter(pi11);
            VTDPropertyInfoBase pi12            = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter6 = new VTDObjectSetter(pi12);

            binding_setter6 = new StringFormaterDecorator(binding_setter6, "{Step.DataFetchActivity19.OutTable}");
            bind_dir6       = new BindDirection(_flow.DataFetchActivity19, binding_getter6, binding_setter6, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity20.InDirections.Add(bind_dir6);
            this.Activities.Add(_flow.DataDisconnectActivity20);
            this.DataCursorActivity23.Comment  = @"";
            this.DataCursorActivity23.IconPath = @"";
            VTDPropertyInfoBase pi13            = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter7 = new VTDObjectGetter(pi13);
            VTDPropertyInfoBase pi14            = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter7 = new VTDObjectSetter(pi14);

            binding_setter7 = new StringFormaterDecorator(binding_setter7, "{Step.DataFetchActivity13.OutTable}");
            bind_dir7       = new BindDirection(_flow.DataFetchActivity13, binding_getter7, binding_setter7, BindTargetType.ToInProperty);
            this.DataCursorActivity23.InDirections.Add(bind_dir7);
            this.DataCursorActivity23_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity23_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity23_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity23_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity23_Policy.StartCondition.Value      = "";
            this.DataCursorActivity23_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity23_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity23_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity23_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity23_Policy.EndCondition.Value      = "";
            this.DataCursorActivity23_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity23_Policy.StepSize = 1;
            this.DataCursorActivity23_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity23.Policy         = this.DataCursorActivity23_Policy;
            this.DataCursorActivity23.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity23.ResetCursor;
            _flow.Sequence12.Comment  = @"";
            _flow.Sequence12.IconPath = @"";
            _flow.Sequence12.Name     = @"Sequence12";
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity7);
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity9);
            _flow.Sequence12.Activities.Add(_flow.CallQTPTest11);
            XmlDocument StServiceCallActivity7_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity7_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity7_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><GetFlights xmlns=""HP.SOAQ.SampleApp""><DepartureCity>{DataSource.Flight_Info!Input.DepartureCity}</DepartureCity><ArrivalCity>{DataSource.Flight_Info!Input.ArrivalCity}</ArrivalCity><FlightDate>{DataSource.Flight_Info!Input.DepartureDate}</FlightDate></GetFlights></Body></Envelope>");
            _flow.StServiceCallActivity7.InputEnvelope = StServiceCallActivity7_InputEnvelope_Document;
            _flow.StServiceCallActivity7.Comment       = @"";
            _flow.StServiceCallActivity7.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity7.Name          = @"GetFlights";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity7.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity7.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlights";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity7.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity7.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity7.Operation            = @"GetFlights";
            _flow.StServiceCallActivity7.IsOneWay             = false;
            _flow.StServiceCallActivity7.SendRequestToService = true;
            _flow.StServiceCallActivity7.FaultExpected        = false;
            _flow.StServiceCallActivity7.IsAsync              = false;
            _flow.StServiceCallActivity7.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity7.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi15            = new VTDPropertyInfoBase("DepartureDate");
            VTDBaseGetter       binding_getter8 = new VTDObjectGetter(pi15);
            VTDPropertyInfoBase pi16            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='FlightDate'][1]");
            VTDBaseSetter       binding_setter8 = new VTDXPathSetter(pi16, XmlTypeCode.DateTime);

            bind_dir8 = new BindDirection(this.DataCursorActivity23, binding_getter8, binding_setter8, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir8);
            VTDPropertyInfoBase pi17            = new VTDPropertyInfoBase("DepartureCity");
            VTDBaseGetter       binding_getter9 = new VTDObjectGetter(pi17);
            VTDPropertyInfoBase pi18            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='DepartureCity'][1]");
            VTDBaseSetter       binding_setter9 = new VTDXPathSetter(pi18, XmlTypeCode.String);

            binding_setter9 = new StringFormaterDecorator(binding_setter9, "{DataSource.Flight_Info!Input.DepartureCity}");
            bind_dir9       = new BindDirection(this.DataCursorActivity23, binding_getter9, binding_setter9, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir9);
            VTDPropertyInfoBase pi19             = new VTDPropertyInfoBase("ArrivalCity");
            VTDBaseGetter       binding_getter10 = new VTDObjectGetter(pi19);
            VTDPropertyInfoBase pi20             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='ArrivalCity'][1]");
            VTDBaseSetter       binding_setter10 = new VTDXPathSetter(pi20, XmlTypeCode.String);

            binding_setter10 = new StringFormaterDecorator(binding_setter10, "{DataSource.Flight_Info!Input.ArrivalCity}");
            bind_dir10       = new BindDirection(this.DataCursorActivity23, binding_getter10, binding_setter10, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir10);
            XmlDocument StServiceCallActivity7_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity7.ExpectedOutputAttachments = StServiceCallActivity7_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity7_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity7.ExpectedFaultProperties = StServiceCallActivity7_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity7_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightsResponse xmlns=""HP.SOAQ.SampleApp""><GetFlightsResult><Flight><Airline p1:nil=""true"" /><ArrivalCity p1:nil=""true"" /><ArrivalTime p1:nil=""true"" /><DepartureCity p1:nil=""true"" /><DepartureTime p1:nil=""true"" /><FlightNumber /></Flight></GetFlightsResult></GetFlightsResponse></Body></Envelope>");
            _flow.StServiceCallActivity7.ExpectedOutputProperties = StServiceCallActivity7_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity9_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity9_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity9_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><CreateFlightOrder xmlns=""HP.SOAQ.SampleApp""><FlightOrder><Class>{DataSource.Flight_Info!Input.Class}</Class><CustomerName>{DataSource.Flight_Info!Input.CustomerName}</CustomerName><DepartureDate>{DataSource.Flight_Info!Input.DepartureDate}</DepartureDate><FlightNumber>{Step.OutputProperties.StServiceCallActivity7.Body.GetFlightsResponse.GetFlightsResult.Flight[1].FlightNumber}</FlightNumber><NumberOfTickets>{DataSource.Flight_Info!Input.NumberOfTickets}</NumberOfTickets></FlightOrder></CreateFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity9.InputEnvelope = StServiceCallActivity9_InputEnvelope_Document;
            _flow.StServiceCallActivity9.Comment       = @"";
            _flow.StServiceCallActivity9.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity9.Name          = @"CreateFlightOrder";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity9.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity9.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/CreateFlightOrder";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity9.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity9.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity9.Operation            = @"CreateFlightOrder";
            _flow.StServiceCallActivity9.IsOneWay             = false;
            _flow.StServiceCallActivity9.SendRequestToService = true;
            _flow.StServiceCallActivity9.FaultExpected        = false;
            _flow.StServiceCallActivity9.IsAsync              = false;
            _flow.StServiceCallActivity9.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity9.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi21             = new VTDPropertyInfoBase("NumberOfTickets");
            VTDBaseGetter       binding_getter11 = new VTDObjectGetter(pi21);
            VTDPropertyInfoBase pi22             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='NumberOfTickets'][1]");
            VTDBaseSetter       binding_setter11 = new VTDXPathSetter(pi22, XmlTypeCode.Int);

            bind_dir11 = new BindDirection(this.DataCursorActivity23, binding_getter11, binding_setter11, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir11);
            VTDPropertyInfoBase pi23             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightsResponse'][1]/*[local-name(.)='GetFlightsResult'][1]/*[local-name(.)='Flight'][{Array0}]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseGetter       binding_getter12 = new VTDXPathGetter(pi23, XmlTypeCode.Int);

            binding_getter12 = new XPathGetterDecorator(binding_getter12, "{Array0}", 1);
            VTDPropertyInfoBase pi24             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseSetter       binding_setter12 = new VTDXPathSetter(pi24, XmlTypeCode.Int);

            bind_dir12 = new BindDirection(_flow.StServiceCallActivity7, binding_getter12, binding_setter12, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir12);
            VTDPropertyInfoBase pi25             = new VTDPropertyInfoBase("DepartureDate");
            VTDBaseGetter       binding_getter13 = new VTDObjectGetter(pi25);
            VTDPropertyInfoBase pi26             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='DepartureDate'][1]");
            VTDBaseSetter       binding_setter13 = new VTDXPathSetter(pi26, XmlTypeCode.DateTime);

            bind_dir13 = new BindDirection(this.DataCursorActivity23, binding_getter13, binding_setter13, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir13);
            VTDPropertyInfoBase pi27             = new VTDPropertyInfoBase("CustomerName");
            VTDBaseGetter       binding_getter14 = new VTDObjectGetter(pi27);
            VTDPropertyInfoBase pi28             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='CustomerName'][1]");
            VTDBaseSetter       binding_setter14 = new VTDXPathSetter(pi28, XmlTypeCode.String);

            binding_setter14 = new StringFormaterDecorator(binding_setter14, "{DataSource.Flight_Info!Input.CustomerName}");
            bind_dir14       = new BindDirection(this.DataCursorActivity23, binding_getter14, binding_setter14, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir14);
            VTDPropertyInfoBase pi29             = new VTDPropertyInfoBase("Class");
            VTDBaseGetter       binding_getter15 = new VTDObjectGetter(pi29);
            VTDPropertyInfoBase pi30             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='Class'][1]");
            VTDBaseSetter       binding_setter15 = new VTDXPathSetter(pi30, XmlTypeCode.String);

            binding_setter15 = new StringFormaterDecorator(binding_setter15, "{DataSource.Flight_Info!Input.Class}");
            bind_dir15       = new BindDirection(this.DataCursorActivity23, binding_getter15, binding_setter15, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir15);
            XmlDocument StServiceCallActivity9_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity9.ExpectedOutputAttachments = StServiceCallActivity9_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity9_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity9.ExpectedFaultProperties = StServiceCallActivity9_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity9_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><CreateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp""><CreateFlightOrderResult><OrderNumber /></CreateFlightOrderResult></CreateFlightOrderResponse></Body></Envelope>");
            _flow.StServiceCallActivity9.ExpectedOutputProperties = StServiceCallActivity9_ExpectedOutputProperties_Document;
            XmlDocument CallQTPTest11_InputArguments_Document = new XmlDocument();

            CallQTPTest11_InputArguments_Document.PreserveWhitespace = true;
            CallQTPTest11_InputArguments_Document.LoadXml(
                @"<Arguments><tOrderNum>{Step.OutputProperties.StServiceCallActivity9.Body.CreateFlightOrderResponse.CreateFlightOrderResult.OrderNumber}</tOrderNum><tPassengerName>{Step.InputProperties.StServiceCallActivity9.Body.CreateFlightOrder.FlightOrder.CustomerName}</tPassengerName></Arguments>");
            _flow.CallQTPTest11.InputArguments   = CallQTPTest11_InputArguments_Document;
            _flow.CallQTPTest11.Comment          = @"";
            _flow.CallQTPTest11.IconPath         = @"AddIns\ServiceTest\UFT\toolbox_qtp.png";
            _flow.CallQTPTest11.Name             = @"Verify Flight";
            _flow.CallQTPTest11.ScriptPath       = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.ScriptPath}")) ? @"..\Verify Flight" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.ScriptPath}");
            _flow.CallQTPTest11.ActionName       = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.ActionName}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.ActionName}");
            _flow.CallQTPTest11.Description      = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.Description}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.Description}");
            _flow.CallQTPTest11.IsActionSelected = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.IsActionSelected}")) ? @"True" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.IsActionSelected}");
            _flow.CallQTPTest11.ResultLocation   = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.ResultLocation}")) ? @"RunQTPReport\" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.ResultLocation}");
            _flow.CallQTPTest11.QCScriptPath     = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.QCScriptPath}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest11.QCScriptPath}");
            VTDPropertyInfoBase pi31             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='CustomerName'][1]");
            VTDBaseGetter       binding_getter16 = new VTDXPathGetter(pi31, XmlTypeCode.String);
            VTDPropertyInfoBase pi32             = new VTDPropertyInfoBase("InputArguments", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='tPassengerName'][1]");
            VTDBaseSetter       binding_setter16 = new VTDXPathSetter(pi32, XmlTypeCode.String);

            binding_setter16 = new StringFormaterDecorator(binding_setter16, "{Step.InputProperties.StServiceCallActivity9.Body.CreateFlightOrder.FlightOrder.CustomerName}");
            bind_dir16       = new BindDirection(_flow.StServiceCallActivity9, binding_getter16, binding_setter16, BindTargetType.ToInProperty);
            _flow.CallQTPTest11.InDirections.Add(bind_dir16);
            VTDPropertyInfoBase pi33             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrderResponse'][1]/*[local-name(.)='CreateFlightOrderResult'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseGetter       binding_getter17 = new VTDXPathGetter(pi33, XmlTypeCode.Int);
            VTDPropertyInfoBase pi34             = new VTDPropertyInfoBase("InputArguments", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='tOrderNum'][1]");
            VTDBaseSetter       binding_setter17 = new VTDXPathSetter(pi34, XmlTypeCode.String);

            binding_setter17 = new StringFormaterDecorator(binding_setter17, "{Step.OutputProperties.StServiceCallActivity9.Body.CreateFlightOrderResponse.CreateFlightOrderResult.OrderNumber}");
            bind_dir17       = new BindDirection(_flow.StServiceCallActivity9, binding_getter17, binding_setter17, BindTargetType.ToInProperty);
            _flow.CallQTPTest11.InDirections.Add(bind_dir17);
        }
Exemplo n.º 10
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity7 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity7");
            _flow.StartActivity1     = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach);
            _flow.DataExporterActivity9       = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity9");
            _flow.DataExporterCloseActivity10 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity10");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity8    = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity8");
            this.DataCursorActivity11        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity11");
            this.DataCursorActivity11_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence6 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6");
            _flow.StServiceCallActivity4            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.StServiceCallActivity5            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.DataFetchActivity7.Comment        = @"";
            _flow.DataFetchActivity7.IconPath       = @"";
            _flow.DataFetchActivity7.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity7.QueryClassName = @"HP.ST.Ext.CustomDataProviders.LocalDataQuery";
            XmlDocument DataFetchActivity7_QueryParameters_Document = new XmlDocument();

            DataFetchActivity7_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity7Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>ab6e8be3-23f2-46e2-bbed-a5a00dc8cd69</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>City</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value></Value></QueryParameter><QueryParameter><Name>TableStructure</Name><Value>From_City,String,|To_City,String,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>London|Paris^Denver|Frankfurt</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity7_QueryParameters_Document.LoadXml(xmlDataFetchActivity7Params);
            _flow.DataFetchActivity7.QueryParameters = DataFetchActivity7_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("City", _flow.DataFetchActivity7);
            this.Activities.Add(_flow.DataFetchActivity7);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.JMSClientID           = @"";
            _flow.StartActivity1.JMS.SSLPassword           = @"";
            _flow.StartActivity1.JMS.SSLTrustedCertificate = @"";
            _flow.StartActivity1.JMS.SSLIdentity           = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"For each item in {DataSource.City}";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Condition         += delegate(object sender, STActivityBaseEventArgs e)
            {
                return(!DataCursorActivity11.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity11);
            _flow.Loop2.Activities.Add(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity9.Comment  = @"";
            _flow.DataExporterActivity9.IconPath = @"";
            VTDPropertyInfoBase pi43             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter22 = new VTDObjectGetter(pi43);
            VTDPropertyInfoBase pi44             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter22 = new VTDObjectSetter(pi44);

            binding_setter22 = new StringFormaterDecorator(binding_setter22, "{Step.DataFetchActivity7.OutTable}");
            bind_dir22       = new BindDirection(_flow.DataFetchActivity7, binding_getter22, binding_setter22, BindTargetType.ToInProperty);
            _flow.DataExporterActivity9.InDirections.Add(bind_dir22);
            this.Activities.Add(_flow.DataExporterActivity9);
            _flow.DataExporterCloseActivity10.Comment  = @"";
            _flow.DataExporterCloseActivity10.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity10);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity8.Comment  = @"";
            _flow.DataDisconnectActivity8.IconPath = @"";
            VTDPropertyInfoBase pi45             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter23 = new VTDObjectGetter(pi45);
            VTDPropertyInfoBase pi46             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter23 = new VTDObjectSetter(pi46);

            binding_setter23 = new StringFormaterDecorator(binding_setter23, "{Step.DataFetchActivity7.OutTable}");
            bind_dir23       = new BindDirection(_flow.DataFetchActivity7, binding_getter23, binding_setter23, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity8.InDirections.Add(bind_dir23);
            this.Activities.Add(_flow.DataDisconnectActivity8);
            this.DataCursorActivity11.Comment  = @"";
            this.DataCursorActivity11.IconPath = @"";
            VTDPropertyInfoBase pi47             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter24 = new VTDObjectGetter(pi47);
            VTDPropertyInfoBase pi48             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter24 = new VTDObjectSetter(pi48);

            binding_setter24 = new StringFormaterDecorator(binding_setter24, "{Step.DataFetchActivity7.OutTable}");
            bind_dir24       = new BindDirection(_flow.DataFetchActivity7, binding_getter24, binding_setter24, BindTargetType.ToInProperty);
            this.DataCursorActivity11.InDirections.Add(bind_dir24);
            this.DataCursorActivity11_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity11_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity11_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity11_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity11_Policy.StartCondition.Value      = "";
            this.DataCursorActivity11_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity11_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity11_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity11_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity11_Policy.EndCondition.Value      = "";
            this.DataCursorActivity11_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity11_Policy.StepSize = 1;
            this.DataCursorActivity11_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity11.Policy         = this.DataCursorActivity11_Policy;
            this.DataCursorActivity11.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity11.ResetCursor;
            _flow.Sequence6.Comment  = @"";
            _flow.Sequence6.IconPath = @"";
            _flow.Sequence6.Name     = @"Sequence6";
            _flow.Sequence6.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence6.Activities.Add(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><GetFlights xmlns=""HP.SOAQ.SampleApp""><DepartureCity>{DataSource.City.From_City}</DepartureCity><ArrivalCity>{DataSource.City.To_City}</ArrivalCity><FlightDate>2020-06-30T00:00:00-07:00</FlightDate></GetFlights></Body></Envelope>");
            _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document;
            _flow.StServiceCallActivity4.Comment       = @"";
            _flow.StServiceCallActivity4.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity4.Name          = @"GetFlights";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlights";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity4.Service              = @"Flights_Service";
            _flow.StServiceCallActivity4.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity4.Operation            = @"GetFlights";
            _flow.StServiceCallActivity4.IsOneWay             = false;
            _flow.StServiceCallActivity4.SendRequestToService = true;
            _flow.StServiceCallActivity4.FaultExpected        = false;
            _flow.StServiceCallActivity4.IsAsync              = false;
            _flow.StServiceCallActivity4.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity4.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi49             = new VTDPropertyInfoBase("From_City");
            VTDBaseGetter       binding_getter25 = new VTDObjectGetter(pi49);
            VTDPropertyInfoBase pi50             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='DepartureCity'][1]");
            VTDBaseSetter       binding_setter25 = new VTDXPathSetter(pi50, XmlTypeCode.String);

            binding_setter25 = new StringFormaterDecorator(binding_setter25, "{DataSource.City.From_City}");
            bind_dir25       = new BindDirection(this.DataCursorActivity11, binding_getter25, binding_setter25, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir25);
            VTDPropertyInfoBase pi51             = new VTDPropertyInfoBase("To_City");
            VTDBaseGetter       binding_getter26 = new VTDObjectGetter(pi51);
            VTDPropertyInfoBase pi52             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='ArrivalCity'][1]");
            VTDBaseSetter       binding_setter26 = new VTDXPathSetter(pi52, XmlTypeCode.String);

            binding_setter26 = new StringFormaterDecorator(binding_setter26, "{DataSource.City.To_City}");
            bind_dir26       = new BindDirection(this.DataCursorActivity11, binding_getter26, binding_setter26, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir26);
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightsResponse xmlns=""HP.SOAQ.SampleApp""><GetFlightsResult><Flight><Airline p1:nil=""true"" /><ArrivalCity p1:nil=""true"" /><ArrivalTime p1:nil=""true"" /><DepartureCity p1:nil=""true"" /><DepartureTime p1:nil=""true"" /><FlightNumber /></Flight></GetFlightsResult></GetFlightsResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity4.ExpectedFaultProperties = StServiceCallActivity4_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity4.ExpectedOutputAttachments = StServiceCallActivity4_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><CreateFlightOrder xmlns=""HP.SOAQ.SampleApp""><FlightOrder><Class>First</Class><CustomerName>Jan Hansen</CustomerName><DepartureDate>2020-06-30T00:00:00-07:00</DepartureDate><FlightNumber>{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightsResponse.GetFlightsResult.Flight[1].FlightNumber}</FlightNumber><NumberOfTickets>2</NumberOfTickets></FlightOrder></CreateFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"CreateFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/CreateFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"Flights_Service";
            _flow.StServiceCallActivity5.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity5.Operation            = @"CreateFlightOrder";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi53             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightsResponse'][1]/*[local-name(.)='GetFlightsResult'][1]/*[local-name(.)='Flight'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseGetter       binding_getter27 = new VTDXPathGetter(pi53, XmlTypeCode.Int);

            binding_getter27 = new XPathGetterDecorator(binding_getter27, "{Array0}", 1);
            VTDPropertyInfoBase pi54             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseSetter       binding_setter27 = new VTDXPathSetter(pi54, XmlTypeCode.Int);

            bind_dir27 = new BindDirection(_flow.StServiceCallActivity4, binding_getter27, binding_setter27, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir27);
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><CreateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
        }
Exemplo n.º 11
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity9 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity9");
            _flow.StartActivity1     = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach);
            _flow.DataExporterActivity11      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity11");
            _flow.DataExporterCloseActivity12 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity12");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity10   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity10");
            this.DataCursorActivity13        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity13");
            this.DataCursorActivity13_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence7 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence7");
            _flow.StServiceCallActivity4 = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.Loop6     = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop6Input>(_context, "Loop6", LoopType.For);
            _flow.Sequence8 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence8");
            _flow.StServiceCallActivity5            = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.DataFetchActivity9.Comment        = @"";
            _flow.DataFetchActivity9.IconPath       = @"";
            _flow.DataFetchActivity9.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity9.QueryClassName = @"HP.ST.Ext.CustomDataProviders.LocalDataQuery";
            XmlDocument DataFetchActivity9_QueryParameters_Document = new XmlDocument();

            DataFetchActivity9_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity9Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>a5bb1000-ac05-476d-86b7-cb94a760d004</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>persons</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value></Value></QueryParameter><QueryParameter><Name>TableStructure</Name><Value>name,String,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>a^b^j</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity9_QueryParameters_Document.LoadXml(xmlDataFetchActivity9Params);
            _flow.DataFetchActivity9.QueryParameters = DataFetchActivity9_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("persons", _flow.DataFetchActivity9);
            this.Activities.Add(_flow.DataFetchActivity9);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.JMSClientID           = @"";
            _flow.StartActivity1.JMS.SSLPassword           = @"";
            _flow.StartActivity1.JMS.SSLTrustedCertificate = @"";
            _flow.StartActivity1.JMS.SSLIdentity           = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"For each item in {DataSource.persons}";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Condition         += delegate(object sender, STActivityBaseEventArgs e)
            {
                return(!DataCursorActivity13.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity13);
            _flow.Loop2.Activities.Add(_flow.Sequence7);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity11.Comment  = @"";
            _flow.DataExporterActivity11.IconPath = @"";
            VTDPropertyInfoBase pi28             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter15 = new VTDObjectGetter(pi28);
            VTDPropertyInfoBase pi29             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter14 = new VTDObjectSetter(pi29);

            binding_setter14 = new StringFormaterDecorator(binding_setter14, "{Step.DataFetchActivity9.OutTable}");
            bind_dir14       = new BindDirection(_flow.DataFetchActivity9, binding_getter15, binding_setter14, BindTargetType.ToInProperty);
            _flow.DataExporterActivity11.InDirections.Add(bind_dir14);
            this.Activities.Add(_flow.DataExporterActivity11);
            _flow.DataExporterCloseActivity12.Comment  = @"";
            _flow.DataExporterCloseActivity12.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity12);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity10.Comment  = @"";
            _flow.DataDisconnectActivity10.IconPath = @"";
            VTDPropertyInfoBase pi30             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter16 = new VTDObjectGetter(pi30);
            VTDPropertyInfoBase pi31             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter15 = new VTDObjectSetter(pi31);

            binding_setter15 = new StringFormaterDecorator(binding_setter15, "{Step.DataFetchActivity9.OutTable}");
            bind_dir15       = new BindDirection(_flow.DataFetchActivity9, binding_getter16, binding_setter15, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity10.InDirections.Add(bind_dir15);
            this.Activities.Add(_flow.DataDisconnectActivity10);
            this.DataCursorActivity13.Comment  = @"";
            this.DataCursorActivity13.IconPath = @"";
            VTDPropertyInfoBase pi32             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter17 = new VTDObjectGetter(pi32);
            VTDPropertyInfoBase pi33             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter16 = new VTDObjectSetter(pi33);

            binding_setter16 = new StringFormaterDecorator(binding_setter16, "{Step.DataFetchActivity9.OutTable}");
            bind_dir16       = new BindDirection(_flow.DataFetchActivity9, binding_getter17, binding_setter16, BindTargetType.ToInProperty);
            this.DataCursorActivity13.InDirections.Add(bind_dir16);
            this.DataCursorActivity13_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity13_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity13_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity13_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity13_Policy.StartCondition.Value      = "";
            this.DataCursorActivity13_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity13_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity13_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity13_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity13_Policy.EndCondition.Value      = "";
            this.DataCursorActivity13_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity13_Policy.StepSize = 1;
            this.DataCursorActivity13_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity13.Policy         = this.DataCursorActivity13_Policy;
            this.DataCursorActivity13.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity13.ResetCursor;
            _flow.Sequence7.Comment  = @"";
            _flow.Sequence7.IconPath = @"";
            _flow.Sequence7.Name     = @"Sequence7";
            _flow.Sequence7.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence7.Activities.Add(_flow.Loop6);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightOrders xmlns=""HP.SOAQ.SampleApp""><FlightsDetails><CustomerName>{DataSource.persons.name}</CustomerName></FlightsDetails></GetFlightOrders></Body></Envelope>");
            _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document;
            _flow.StServiceCallActivity4.Comment       = @"";
            _flow.StServiceCallActivity4.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity4.Name          = @"GetFlightOrders";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlightOrders";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity4.Service              = @"Flights_Service";
            _flow.StServiceCallActivity4.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity4.Operation            = @"GetFlightOrders";
            _flow.StServiceCallActivity4.IsOneWay             = false;
            _flow.StServiceCallActivity4.SendRequestToService = true;
            _flow.StServiceCallActivity4.FaultExpected        = false;
            _flow.StServiceCallActivity4.IsAsync              = false;
            _flow.StServiceCallActivity4.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity4.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi34             = new VTDPropertyInfoBase("name");
            VTDBaseGetter       binding_getter18 = new VTDObjectGetter(pi34);
            VTDPropertyInfoBase pi35             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrders'][1]/*[local-name(.)='FlightsDetails'][1]/*[local-name(.)='CustomerName'][1]");
            VTDBaseSetter       binding_setter17 = new VTDXPathSetter(pi35, XmlTypeCode.String);

            binding_setter17 = new StringFormaterDecorator(binding_setter17, "{DataSource.persons.name}");
            bind_dir17       = new BindDirection(this.DataCursorActivity13, binding_getter18, binding_setter17, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir17);
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightOrdersResponse xmlns=""HP.SOAQ.SampleApp""><GetFlightOrdersResult><FlightOrder><CustomerName p1:nil=""true"" /><OrderNumber /></FlightOrder></GetFlightOrdersResult></GetFlightOrdersResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity4.ExpectedFaultProperties = StServiceCallActivity4_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity4_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity4.ExpectedOutputAttachments = StServiceCallActivity4_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
            _flow.Loop6.ConditionAsString  = @"Run for 1 iteration";
            _flow.Loop6.NumberOfIterations = (int)1;
            _flow.Loop6.Comment            = @"";
            _flow.Loop6.IconPath           = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop6.Name = @"Loop6";
            VTDPropertyInfoBase pi36             = new VTDPropertyInfoBase("OutputEnvelope", "count(/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrdersResponse'][1]/*[local-name(.)='GetFlightOrdersResult'][1]/*[local-name(.)='FlightOrder'])");
            VTDBaseGetter       binding_getter19 = new VTDXPathGetter(pi36);
            VTDPropertyInfoBase pi37             = new VTDPropertyInfoBase("NumberOfIterations");
            VTDBaseSetter       binding_setter18 = new VTDObjectSetter(pi37);

            bind_dir18 = new BindDirection(_flow.StServiceCallActivity4, binding_getter19, binding_setter18, BindTargetType.ToInProperty);
            _flow.Loop6.InDirections.Add(bind_dir18);
            _flow.Loop6.Activities.Add(_flow.Sequence8);
            _flow.Sequence8.Comment  = @"";
            _flow.Sequence8.IconPath = @"";
            _flow.Sequence8.Name     = @"Sequence8";
            _flow.Sequence8.Activities.Add(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrder xmlns=""HP.SOAQ.SampleApp""><OrderNumber>{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightOrdersResponse.GetFlightOrdersResult.FlightOrder[{Step.OutputProperties.Loop6.CurrentIterationNumber}].OrderNumber}</OrderNumber></DeleteFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"DeleteFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/DeleteFlightOrder";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"Flights_Service";
            _flow.StServiceCallActivity5.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity5.Operation            = @"DeleteFlightOrder";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi38             = new VTDPropertyInfoBase("CurrentIterationNumber");
            VTDBaseGetter       binding_getter20 = new VTDObjectGetter(pi38);
            VTDPropertyInfoBase pi39             = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrdersResponse'][1]/*[local-name(.)='GetFlightOrdersResult'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseGetter       binding_getter21 = new VTDXPathGetter(pi39, XmlTypeCode.Int);

            binding_getter21 = new XPathGetterDecorator(binding_getter21, "{Array0}", binding_getter20, _flow.Loop6);
            VTDPropertyInfoBase pi40             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='DeleteFlightOrder'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter19 = new VTDXPathSetter(pi40, XmlTypeCode.Int);

            bind_dir19 = new BindDirection(_flow.StServiceCallActivity4, binding_getter21, binding_setter19, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir19);
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
        }
Exemplo n.º 12
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

            _userCode     = new TestUserCode();
            _flow         = _userCode;
            _flow.Context = this._context;



            _flow.DataFetchActivity10 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity10");
            _flow.StartActivity1      = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1");
            _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach);
            _flow.DataExporterActivity12      = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity12");
            _flow.DataExporterCloseActivity13 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity13");
            _flow.EndActivity3               = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.DataDisconnectActivity11   = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity11");
            this.DataCursorActivity14        = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity14");
            this.DataCursorActivity14_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy();
            _flow.Sequence9 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence9");
            _flow.StServiceCallActivity5             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.StServiceCallActivity6             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity6");
            _flow.StServiceCallActivity8             = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity8");
            _flow.DataFetchActivity10.Comment        = @"";
            _flow.DataFetchActivity10.IconPath       = @"";
            _flow.DataFetchActivity10.AssemblyPath   = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll";
            _flow.DataFetchActivity10.QueryClassName = @"HP.ST.Ext.CustomDataProviders.LocalDataQuery";
            XmlDocument DataFetchActivity10_QueryParameters_Document = new XmlDocument();

            DataFetchActivity10_QueryParameters_Document.PreserveWhitespace = true;
            string xmlDataFetchActivity10Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>1754082e-16ce-4b9f-836f-103a2a710bd7</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>flight_details1</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value></Value></QueryParameter><QueryParameter><Name>TableStructure</Name><Value>Class,String,|CustName,String,|DepartDate,Date,|NoOfTockets,Integer,|FlightNo,Integer,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>Economy|ABc|9/25/2020 12:00:00 AM|1|11820^Economy|Efg|9/25/2020 12:00:00 AM|2|12274</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity10_QueryParameters_Document.LoadXml(xmlDataFetchActivity10Params);
            _flow.DataFetchActivity10.QueryParameters = DataFetchActivity10_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("flight_details1", _flow.DataFetchActivity10);
            this.Activities.Add(_flow.DataFetchActivity10);
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.StartActivity1.Name          = @"Start";
            _flow.StartActivity1.JVM           = new HP.ST.Ext.BasicActivities.JVMProperties();
            _flow.StartActivity1.IsJavaUsed    = false;
            _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%";
            _flow.StartActivity1.JVM.AdditionalVMParameters = @"";
            _flow.StartActivity1.JMS       = new HP.ST.Ext.BasicActivities.JMSProperties();
            _flow.StartActivity1.IsJmsUsed = false;
            _flow.StartActivity1.JMS.JNDIContextFactory    = @"<Select...>";
            _flow.StartActivity1.JMS.JNDIProviderUrl       = @"";
            _flow.StartActivity1.JMS.JMSConnectionFactory  = @"";
            _flow.StartActivity1.JMS.SecurityPrincipal     = @"";
            _flow.StartActivity1.JMS.SecurityCredentials   = @"";
            _flow.StartActivity1.JMS.JMSClientID           = @"";
            _flow.StartActivity1.JMS.SSLPassword           = @"";
            _flow.StartActivity1.JMS.SSLTrustedCertificate = @"";
            _flow.StartActivity1.JMS.SSLIdentity           = @"";
            _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1";
            _flow.StartActivity1.JMS.TimeoutOptions        = @"DN_User_defined_Timeout";
            _flow.StartActivity1.JMS.UserTimeout           = @"20";
            _flow.StartActivity1.JMS.GenerateAutoSelector  = @"No";
            this.Activities.Add(_flow.StartActivity1);
            _flow.Loop2.ConditionAsString  = @"For each item in {DataSource.flight_details1}";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Condition         += delegate(object sender, STActivityBaseEventArgs e)
            {
                return(!DataCursorActivity14.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.Activities.Add(this.DataCursorActivity14);
            _flow.Loop2.Activities.Add(_flow.Sequence9);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity12.Comment  = @"";
            _flow.DataExporterActivity12.IconPath = @"";
            VTDPropertyInfoBase pi45             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter23 = new VTDObjectGetter(pi45);
            VTDPropertyInfoBase pi46             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter23 = new VTDObjectSetter(pi46);

            binding_setter23 = new StringFormaterDecorator(binding_setter23, "{Step.DataFetchActivity10.OutTable}");
            bind_dir23       = new BindDirection(_flow.DataFetchActivity10, binding_getter23, binding_setter23, BindTargetType.ToInProperty);
            _flow.DataExporterActivity12.InDirections.Add(bind_dir23);
            this.Activities.Add(_flow.DataExporterActivity12);
            _flow.DataExporterCloseActivity13.Comment  = @"";
            _flow.DataExporterCloseActivity13.IconPath = @"";
            this.Activities.Add(_flow.DataExporterCloseActivity13);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity11.Comment  = @"";
            _flow.DataDisconnectActivity11.IconPath = @"";
            VTDPropertyInfoBase pi47             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter24 = new VTDObjectGetter(pi47);
            VTDPropertyInfoBase pi48             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter24 = new VTDObjectSetter(pi48);

            binding_setter24 = new StringFormaterDecorator(binding_setter24, "{Step.DataFetchActivity10.OutTable}");
            bind_dir24       = new BindDirection(_flow.DataFetchActivity10, binding_getter24, binding_setter24, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity11.InDirections.Add(bind_dir24);
            this.Activities.Add(_flow.DataDisconnectActivity11);
            this.DataCursorActivity14.Comment  = @"";
            this.DataCursorActivity14.IconPath = @"";
            VTDPropertyInfoBase pi49             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter25 = new VTDObjectGetter(pi49);
            VTDPropertyInfoBase pi50             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter25 = new VTDObjectSetter(pi50);

            binding_setter25 = new StringFormaterDecorator(binding_setter25, "{Step.DataFetchActivity10.OutTable}");
            bind_dir25       = new BindDirection(_flow.DataFetchActivity10, binding_getter25, binding_setter25, BindTargetType.ToInProperty);
            this.DataCursorActivity14.InDirections.Add(bind_dir25);
            this.DataCursorActivity14_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.DataCursorActivity14_Policy.StartAtSpecificRow        = 1;
            this.DataCursorActivity14_Policy.StartCondition.ColumnName = "";
            this.DataCursorActivity14_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity14_Policy.StartCondition.Value      = "";
            this.DataCursorActivity14_Policy.EndPosition             = CursorEndPosition.LastRecord;
            this.DataCursorActivity14_Policy.EndAtSpecificRow        = 1;
            this.DataCursorActivity14_Policy.EndCondition.ColumnName = "";
            this.DataCursorActivity14_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.DataCursorActivity14_Policy.EndCondition.Value      = "";
            this.DataCursorActivity14_Policy.StepType = CursorStepType.Forward;
            this.DataCursorActivity14_Policy.StepSize = 1;
            this.DataCursorActivity14_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.DataCursorActivity14.Policy         = this.DataCursorActivity14_Policy;
            this.DataCursorActivity14.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent      += this.DataCursorActivity14.ResetCursor;
            _flow.Sequence9.Comment  = @"";
            _flow.Sequence9.IconPath = @"";
            _flow.Sequence9.Name     = @"Sequence9";
            _flow.Sequence9.Activities.Add(_flow.StServiceCallActivity5);
            _flow.Sequence9.Activities.Add(_flow.StServiceCallActivity6);
            _flow.Sequence9.Activities.Add(_flow.StServiceCallActivity8);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightOrders xmlns=""HP.SOAQ.SampleApp""><FlightsDetails><OrderNumber>2</OrderNumber></FlightsDetails></GetFlightOrders></Body></Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"GetFlightOrders";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity5.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlightOrders";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity5.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity5.Service              = @"Flights_Service";
            _flow.StServiceCallActivity5.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity5.Operation            = @"GetFlightOrders";
            _flow.StServiceCallActivity5.IsOneWay             = false;
            _flow.StServiceCallActivity5.SendRequestToService = true;
            _flow.StServiceCallActivity5.FaultExpected        = false;
            _flow.StServiceCallActivity5.IsAsync              = false;
            _flow.StServiceCallActivity5.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity5.ListenOnPort         = (int)0;
            XmlDocument StServiceCallActivity5_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity5.ExpectedOutputAttachments = StServiceCallActivity5_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity5_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity5.ExpectedFaultProperties = StServiceCallActivity5_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity5_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity5_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><GetFlightOrdersResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity6_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity6_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity6_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrder xmlns=""HP.SOAQ.SampleApp""><OrderNumber>{Step.InputProperties.StServiceCallActivity5.Body.GetFlightOrders.FlightsDetails.OrderNumber}</OrderNumber></DeleteFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity6.InputEnvelope = StServiceCallActivity6_InputEnvelope_Document;
            _flow.StServiceCallActivity6.Comment       = @"";
            _flow.StServiceCallActivity6.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity6.Name          = @"DeleteFlightOrder";
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity6.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity6.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/DeleteFlightOrder";
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity6.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity6.Service              = @"Flights_Service";
            _flow.StServiceCallActivity6.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity6.Operation            = @"DeleteFlightOrder";
            _flow.StServiceCallActivity6.IsOneWay             = false;
            _flow.StServiceCallActivity6.SendRequestToService = true;
            _flow.StServiceCallActivity6.FaultExpected        = false;
            _flow.StServiceCallActivity6.IsAsync              = false;
            _flow.StServiceCallActivity6.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity6.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi51             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrders'][1]/*[local-name(.)='FlightsDetails'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseGetter       binding_getter26 = new VTDXPathGetter(pi51, XmlTypeCode.Int);
            VTDPropertyInfoBase pi52             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='DeleteFlightOrder'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter26 = new VTDXPathSetter(pi52, XmlTypeCode.Int);

            bind_dir26 = new BindDirection(_flow.StServiceCallActivity5, binding_getter26, binding_setter26, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity6.InDirections.Add(bind_dir26);
            XmlDocument StServiceCallActivity6_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity6_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity6_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity6.ExpectedOutputAttachments = StServiceCallActivity6_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity6_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity6_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity6_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity6.ExpectedFaultProperties = StServiceCallActivity6_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity6_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity6_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity6_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity6.ExpectedOutputProperties = StServiceCallActivity6_ExpectedOutputProperties_Document;
            set_StServiceCallActivity6_checkpoints(_flow.StServiceCallActivity6);
            XmlDocument StServiceCallActivity8_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity8_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity8_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><CreateFlightOrder xmlns=""HP.SOAQ.SampleApp""><FlightOrder><Class>{DataSource.flight_details1.Class}</Class><CustomerName>{DataSource.flight_details1.CustName}</CustomerName><DepartureDate>{DataSource.flight_details1.DepartDate}</DepartureDate><FlightNumber>{DataSource.flight_details1.FlightNo}</FlightNumber><NumberOfTickets>{DataSource.flight_details1.NoOfTockets}</NumberOfTickets></FlightOrder></CreateFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity8.InputEnvelope = StServiceCallActivity8_InputEnvelope_Document;
            _flow.StServiceCallActivity8.Comment       = @"";
            _flow.StServiceCallActivity8.IconPath      = @"AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity8.Name          = @"CreateFlightOrder";
            _flow.StServiceCallActivity8.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity8.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity8.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity8.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/CreateFlightOrder";
            _flow.StServiceCallActivity8.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity8.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity8.Service              = @"Flights_Service";
            _flow.StServiceCallActivity8.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity8.Operation            = @"CreateFlightOrder";
            _flow.StServiceCallActivity8.IsOneWay             = false;
            _flow.StServiceCallActivity8.SendRequestToService = true;
            _flow.StServiceCallActivity8.FaultExpected        = false;
            _flow.StServiceCallActivity8.IsAsync              = false;
            _flow.StServiceCallActivity8.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity8.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi53             = new VTDPropertyInfoBase("NoOfTockets");
            VTDBaseGetter       binding_getter27 = new VTDObjectGetter(pi53);
            VTDPropertyInfoBase pi54             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='NumberOfTickets'][1]");
            VTDBaseSetter       binding_setter27 = new VTDXPathSetter(pi54, XmlTypeCode.Int);

            bind_dir27 = new BindDirection(this.DataCursorActivity14, binding_getter27, binding_setter27, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity8.InDirections.Add(bind_dir27);
            VTDPropertyInfoBase pi55             = new VTDPropertyInfoBase("FlightNo");
            VTDBaseGetter       binding_getter28 = new VTDObjectGetter(pi55);
            VTDPropertyInfoBase pi56             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseSetter       binding_setter28 = new VTDXPathSetter(pi56, XmlTypeCode.Int);

            bind_dir28 = new BindDirection(this.DataCursorActivity14, binding_getter28, binding_setter28, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity8.InDirections.Add(bind_dir28);
            VTDPropertyInfoBase pi57             = new VTDPropertyInfoBase("DepartDate");
            VTDBaseGetter       binding_getter29 = new VTDObjectGetter(pi57);
            VTDPropertyInfoBase pi58             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='DepartureDate'][1]");
            VTDBaseSetter       binding_setter29 = new VTDXPathSetter(pi58, XmlTypeCode.DateTime);

            bind_dir29 = new BindDirection(this.DataCursorActivity14, binding_getter29, binding_setter29, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity8.InDirections.Add(bind_dir29);
            VTDPropertyInfoBase pi59             = new VTDPropertyInfoBase("CustName");
            VTDBaseGetter       binding_getter30 = new VTDObjectGetter(pi59);
            VTDPropertyInfoBase pi60             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='CustomerName'][1]");
            VTDBaseSetter       binding_setter30 = new VTDXPathSetter(pi60, XmlTypeCode.String);

            binding_setter30 = new StringFormaterDecorator(binding_setter30, "{DataSource.flight_details1.CustName}");
            bind_dir30       = new BindDirection(this.DataCursorActivity14, binding_getter30, binding_setter30, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity8.InDirections.Add(bind_dir30);
            VTDPropertyInfoBase pi61             = new VTDPropertyInfoBase("Class");
            VTDBaseGetter       binding_getter31 = new VTDObjectGetter(pi61);
            VTDPropertyInfoBase pi62             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrder'][1]/*[local-name(.)='FlightOrder'][1]/*[local-name(.)='Class'][1]");
            VTDBaseSetter       binding_setter31 = new VTDXPathSetter(pi62, XmlTypeCode.String);

            binding_setter31 = new StringFormaterDecorator(binding_setter31, "{DataSource.flight_details1.Class}");
            bind_dir31       = new BindDirection(this.DataCursorActivity14, binding_getter31, binding_setter31, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity8.InDirections.Add(bind_dir31);
            XmlDocument StServiceCallActivity8_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity8_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity8_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity8.ExpectedOutputAttachments = StServiceCallActivity8_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity8_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity8_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity8_ExpectedFaultProperties_Document.LoadXml(
                @"<tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""><tns:Body><tns:Fault><faultcode /><faultstring /></tns:Fault></tns:Body></tns:Envelope>");
            _flow.StServiceCallActivity8.ExpectedFaultProperties = StServiceCallActivity8_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity8_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity8_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity8_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><CreateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity8.ExpectedOutputProperties = StServiceCallActivity8_ExpectedOutputProperties_Document;
            set_StServiceCallActivity8_checkpoints(_flow.StServiceCallActivity8);
        }