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

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3   = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence11     = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence11");
            _flow.CallSTTest9    = new HP.ST.Ext.STRunnerActivity.RunSTActivity(_context, "CallSTTest9", false);
            _flow.HTTPActivity8  = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity8");
            XmlDocument StartActivity1_ExecutionInputParameters_Document = new XmlDocument();

            StartActivity1_ExecutionInputParameters_Document.PreserveWhitespace = true;
            StartActivity1_ExecutionInputParameters_Document.LoadXml(
                @"<Arguments><proxy>http://127.0.0.1:3128</proxy></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  = @"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(_flow.Sequence11);
            this.Activities.Add(_flow.Loop2);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence11.Comment  = @"";
            _flow.Sequence11.IconPath = @"";
            _flow.Sequence11.Name     = @"Sequence11";
            _flow.Sequence11.Activities.Add(_flow.CallSTTest9);
            _flow.Sequence11.Activities.Add(_flow.HTTPActivity8);
            XmlDocument CallSTTest9_InputProperties_Document = new XmlDocument();

            CallSTTest9_InputProperties_Document.PreserveWhitespace = true;
            CallSTTest9_InputProperties_Document.LoadXml(
                @"<Arguments><Proxy>{Step.OutputProperties.StartActivity1.proxy}</Proxy></Arguments>");
            _flow.CallSTTest9.InputProperties = CallSTTest9_InputProperties_Document;
            _flow.CallSTTest9.Comment         = @"";
            _flow.CallSTTest9.IconPath        = @"AddIns\ServiceTest\STRunner\ictb_api_test_16x16.png";
            _flow.CallSTTest9.Name            = @"GetARASOAuth";
            _flow.CallSTTest9.ScriptPath      = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallSTTest9.ScriptPath}")) ? @"..\GetARASOAuth" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallSTTest9.ScriptPath}");
            _flow.CallSTTest9.ActionName      = @"";
            _flow.CallSTTest9.ResultLocation  = @"RunStReport\";
            VTDPropertyInfoBase pi1             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='proxy'][1]");
            VTDBaseGetter       binding_getter1 = new VTDXPathGetter(pi1, XmlTypeCode.String);
            VTDPropertyInfoBase pi2             = new VTDPropertyInfoBase("InputProperties", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Proxy'][1]");
            VTDBaseSetter       binding_setter1 = new VTDXPathSetter(pi2, XmlTypeCode.String);

            binding_setter1 = new StringFormaterDecorator(binding_setter1, "{Step.OutputProperties.StartActivity1.proxy}");
            bind_dir1       = new BindDirection(_flow.StartActivity1, binding_getter1, binding_setter1, BindTargetType.ToInProperty);
            _flow.CallSTTest9.InDirections.Add(bind_dir1);
            _flow.HTTPActivity8.TextBody                = @"";
            _flow.HTTPActivity8.TextXmlBody             = @"";
            _flow.HTTPActivity8.FileBody                = @"";
            _flow.HTTPActivity8.PostBody                = @"";
            _flow.HTTPActivity8.Url                     = @"http://80.158.47.39/11SP15_Demo/Server/InnovatorServer.aspx";
            _flow.HTTPActivity8.HttpMethod              = @"POST";
            _flow.HTTPActivity8.HttpVersion             = @"1.1";
            _flow.HTTPActivity8.RequestHeaders          = new Pair <string, string> [5];
            _flow.HTTPActivity8.RequestHeaders[0]       = new Pair <string, string>();
            _flow.HTTPActivity8.RequestHeaders[0].Key   = @"Authorization";
            _flow.HTTPActivity8.RequestHeaders[0].Value = @"{Step.OutputProperties.CallSTTest9.AccessToken}";
            _flow.HTTPActivity8.RequestHeaders[1]       = new Pair <string, string>();
            _flow.HTTPActivity8.RequestHeaders[1].Key   = @"Content-Type";
            _flow.HTTPActivity8.RequestHeaders[1].Value = @"text/xml";
            _flow.HTTPActivity8.RequestHeaders[2]       = new Pair <string, string>();
            _flow.HTTPActivity8.RequestHeaders[2].Key   = @"SOAPAction";
            _flow.HTTPActivity8.RequestHeaders[2].Value = @"ApplyItem";
            _flow.HTTPActivity8.RequestHeaders[3]       = new Pair <string, string>();
            _flow.HTTPActivity8.RequestHeaders[3].Key   = @"Cache-Control";
            _flow.HTTPActivity8.RequestHeaders[3].Value = @"no-cache";
            _flow.HTTPActivity8.RequestHeaders[4]       = new Pair <string, string>();
            _flow.HTTPActivity8.RequestHeaders[4].Key   = @"Connection";
            _flow.HTTPActivity8.RequestHeaders[4].Value = @"keep-alive";
            _flow.HTTPActivity8.Comment                 = @"";
            _flow.HTTPActivity8.IconPath                = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png";
            _flow.HTTPActivity8.RequestBodyType         = @"Xml";
            _flow.HTTPActivity8.ResponseType            = @"Text";
            _flow.HTTPActivity8.Name                    = @"GetBMWVorgang";
            _flow.HTTPActivity8.Proxy.Server            = @"{Step.OutputProperties.StartActivity1.proxy}";
            _flow.HTTPActivity8.Proxy.Username          = @"";
            _flow.HTTPActivity8.Proxy.Password          = @"";
            _flow.HTTPActivity8.Authentication.Username = @"";
            _flow.HTTPActivity8.Authentication.Password = @"";
            _flow.HTTPActivity8.Authentication.PreemptiveAuthentication = false;
            _flow.HTTPActivity8.ConnectionType                    = @"Keep-Alive";
            _flow.HTTPActivity8.Timeout                           = (int)100000;
            _flow.HTTPActivity8.ClientCertificate.Password        = @"";
            _flow.HTTPActivity8.ClientCertificate.FileSystem.Path = @"";
            _flow.HTTPActivity8.UseClientCertificate              = false;
            _flow.HTTPActivity8.MaximumAutomaticRedirections      = (int)3;
            _flow.HTTPActivity8.AllowRedirections                 = true;
            _flow.HTTPActivity8.ReuseCookies                      = true;
            _flow.HTTPActivity8.ExpectServerError                 = false;
            _flow.HTTPActivity8.HanaRequest                       = false;
            XmlDocument HTTPActivity8_XMLBody_Document = new XmlDocument();

            HTTPActivity8_XMLBody_Document.PreserveWhitespace = true;
            HTTPActivity8_XMLBody_Document.LoadXml(
                @"<SOAP-ENV:Envelope xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"">
  <SOAP-ENV:Body>
    <ApplyItem>
      <Item type=""BMW_Vorgang"" action=""get"" select=""_verwendung,_zeitpunkt"" />
    </ApplyItem>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>");
            _flow.HTTPActivity8.XMLBody = HTTPActivity8_XMLBody_Document;
            XmlDocument HTTPActivity8_RequestMultipartInfoXml_Document = new XmlDocument();

            HTTPActivity8_RequestMultipartInfoXml_Document.PreserveWhitespace = true;
            HTTPActivity8_RequestMultipartInfoXml_Document.LoadXml(
                @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>");
            _flow.HTTPActivity8.RequestMultipartInfoXml = HTTPActivity8_RequestMultipartInfoXml_Document;
            _flow.HTTPActivity8.Multipart = false;
            VTDPropertyInfoBase pi3             = new VTDPropertyInfoBase("OutputProperties", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='AccessToken'][1]");
            VTDBaseGetter       binding_getter2 = new VTDXPathGetter(pi3, XmlTypeCode.String);
            VTDPropertyInfoBase pi4             = new VTDPropertyInfoBase("RequestHeaders[0].Value");
            VTDBaseSetter       binding_setter2 = new VTDObjectSetter(pi4);

            binding_setter2 = new StringFormaterDecorator(binding_setter2, "{Step.OutputProperties.CallSTTest9.AccessToken}");
            bind_dir2       = new BindDirection(_flow.CallSTTest9, binding_getter2, binding_setter2, BindTargetType.ToInProperty);
            _flow.HTTPActivity8.InDirections.Add(bind_dir2);
            VTDPropertyInfoBase pi5             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='proxy'][1]");
            VTDBaseGetter       binding_getter3 = new VTDXPathGetter(pi5, XmlTypeCode.String);
            VTDPropertyInfoBase pi6             = new VTDPropertyInfoBase("Proxy.Server");
            VTDBaseSetter       binding_setter3 = new VTDObjectSetter(pi6);

            binding_setter3 = new StringFormaterDecorator(binding_setter3, "{Step.OutputProperties.StartActivity1.proxy}");
            bind_dir3       = new BindDirection(_flow.StartActivity1, binding_getter3, binding_setter3, BindTargetType.ToInProperty);
            _flow.HTTPActivity8.InDirections.Add(bind_dir3);
            XmlDocument HTTPActivity8_ExpectedResponseXmlBody_Document = new XmlDocument();

            HTTPActivity8_ExpectedResponseXmlBody_Document.PreserveWhitespace = true;
            HTTPActivity8_ExpectedResponseXmlBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity8.ExpectedResponseXmlBody = HTTPActivity8_ExpectedResponseXmlBody_Document;
            XmlDocument HTTPActivity8_ExpectedResponseJsonBody_Document = new XmlDocument();

            HTTPActivity8_ExpectedResponseJsonBody_Document.PreserveWhitespace = true;
            HTTPActivity8_ExpectedResponseJsonBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity8.ExpectedResponseJsonBody = HTTPActivity8_ExpectedResponseJsonBody_Document;
            XmlDocument HTTPActivity8_ExpectedOutputProperties_Document = new XmlDocument();

            HTTPActivity8_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            HTTPActivity8_ExpectedOutputProperties_Document.LoadXml(
                @"<Arguments><ResponseHttpVersion /><StatusCode /><StatusDescription /><ResponseBody /><ResponseBodyAsBase64 /></Arguments>");
            _flow.HTTPActivity8.ExpectedOutputProperties = HTTPActivity8_ExpectedOutputProperties_Document;
        }
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3           = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence5              = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence5");
            _flow.StServiceCallActivity4 = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            XmlDocument StartActivity1_ExecutionInputParameters_Document = new XmlDocument();

            StartActivity1_ExecutionInputParameters_Document.PreserveWhitespace = true;
            StartActivity1_ExecutionInputParameters_Document.LoadXml(
                @"<Arguments><Username /><Password /></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  = @"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(_flow.Sequence5);
            this.Activities.Add(_flow.Loop2);
            XmlDocument EndActivity3_ExecutionOutputParameters_Document = new XmlDocument();

            EndActivity3_ExecutionOutputParameters_Document.PreserveWhitespace = true;
            EndActivity3_ExecutionOutputParameters_Document.LoadXml(
                @"<Arguments><Result>{Step.OutputProperties.StServiceCallActivity4.Body.AccountLoginResponse.StatusMessage.reason}</Result></Arguments>");
            _flow.EndActivity3.ExecutionOutputParameters = EndActivity3_ExecutionOutputParameters_Document;
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            VTDPropertyInfoBase pi115            = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountLoginResponse'][1]/*[local-name(.)='StatusMessage'][1]/*[local-name(.)='reason'][1]");
            VTDBaseGetter       binding_getter58 = new VTDXPathGetter(pi115, XmlTypeCode.String);
            VTDPropertyInfoBase pi116            = new VTDPropertyInfoBase("ExecutionOutputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Result'][1]");
            VTDBaseSetter       binding_setter58 = new VTDXPathSetter(pi116, XmlTypeCode.String);

            binding_setter58 = new StringFormaterDecorator(binding_setter58, "{Step.OutputProperties.StServiceCallActivity4.Body.AccountLoginResponse.StatusMessage.reason}");
            bind_dir58       = new BindDirection(_flow.StServiceCallActivity4, binding_getter58, binding_setter58, BindTargetType.ToInProperty);
            _flow.EndActivity3.InDirections.Add(bind_dir58);
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence5.Comment  = @"";
            _flow.Sequence5.IconPath = @"";
            _flow.Sequence5.Name     = @"Sequence5";
            _flow.Sequence5.Activities.Add(_flow.StServiceCallActivity4);
            XmlDocument StServiceCallActivity4_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity4_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity4_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AccountLoginRequest xmlns=""com.advantage.online.store.accountservice""><loginUser>{Step.OutputProperties.StartActivity1.Username}</loginUser><email /><loginPassword>{Step.OutputProperties.StartActivity1.Password}</loginPassword></AccountLoginRequest></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          = @"AccountLogin";
            _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://www.advantageonlineshopping.com:8081/accountservice/" : _context.ResourceManager.GetValue(@"{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            = @"AccountLogin";
            _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 pi117            = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Username'][1]");
            VTDBaseGetter       binding_getter59 = new VTDXPathGetter(pi117, XmlTypeCode.String);
            VTDPropertyInfoBase pi118            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountLoginRequest'][1]/*[local-name(.)='loginUser'][1]");
            VTDBaseSetter       binding_setter59 = new VTDXPathSetter(pi118, XmlTypeCode.String);

            binding_setter59 = new StringFormaterDecorator(binding_setter59, "{Step.OutputProperties.StartActivity1.Username}");
            bind_dir59       = new BindDirection(_flow.StartActivity1, binding_getter59, binding_setter59, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir59);
            VTDPropertyInfoBase pi119            = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Password'][1]");
            VTDBaseGetter       binding_getter60 = new VTDXPathGetter(pi119, XmlTypeCode.String);
            VTDPropertyInfoBase pi120            = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountLoginRequest'][1]/*[local-name(.)='loginPassword'][1]");
            VTDBaseSetter       binding_setter60 = new VTDXPathSetter(pi120, XmlTypeCode.String);

            binding_setter60 = new StringFormaterDecorator(binding_setter60, "{Step.OutputProperties.StartActivity1.Password}");
            bind_dir60       = new BindDirection(_flow.StartActivity1, binding_getter60, binding_setter60, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir60);
            XmlDocument StServiceCallActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><AccountLoginResponse xmlns=""com.advantage.online.store.accountservice""><StatusMessage><success>false</success><userId /><reason /><token /><sessionId /></StatusMessage></AccountLoginResponse></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);
        }
Ejemplo n.º 3
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3           = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence6              = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6");
            _flow.ReportMessageActivity5 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity5");
            _flow.StServiceCallActivity4 = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            XmlDocument StartActivity1_ExecutionInputParameters_Document = new XmlDocument();

            StartActivity1_ExecutionInputParameters_Document.PreserveWhitespace = true;
            StartActivity1_ExecutionInputParameters_Document.LoadXml(
                @"<Arguments><UserName>abcd</UserName></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  = @"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(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence6.Comment  = @"";
            _flow.Sequence6.IconPath = @"";
            _flow.Sequence6.Name     = @"Sequence6";
            _flow.Sequence6.Activities.Add(_flow.ReportMessageActivity5);
            _flow.Sequence6.Activities.Add(_flow.StServiceCallActivity4);
            _flow.ReportMessageActivity5.Status      = @"Done";
            _flow.ReportMessageActivity5.Message     = @"{Step.OutputProperties.StartActivity1.UserName}";
            _flow.ReportMessageActivity5.Destination = @"ReportAndOutput";
            _flow.ReportMessageActivity5.Comment     = @"";
            _flow.ReportMessageActivity5.IconPath    = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png";
            _flow.ReportMessageActivity5.Name        = @"Name used";
            VTDPropertyInfoBase pi5             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='UserName'][1]");
            VTDBaseGetter       binding_getter3 = new VTDXPathGetter(pi5, XmlTypeCode.String);
            VTDPropertyInfoBase pi6             = new VTDPropertyInfoBase("Message");
            VTDBaseSetter       binding_setter3 = new VTDObjectSetter(pi6);

            binding_setter3 = new StringFormaterDecorator(binding_setter3, "{Step.OutputProperties.StartActivity1.UserName}");
            bind_dir3       = new BindDirection(_flow.StartActivity1, binding_getter3, binding_setter3, BindTargetType.ToInProperty);
            _flow.ReportMessageActivity5.InDirections.Add(bind_dir3);
            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>Rachelson</lastName><firstName>Yossi</firstName><loginName>{Step.OutputProperties.StartActivity1.UserName}</loginName><countryId>2</countryId><stateProvince>fff</stateProvince><cityName>ggg</cityName><address>ffff</address><zipcode>4444</zipcode><phoneNumber>454545</phoneNumber><email>[email protected]</email><password>Aa1234</password><accountType>10</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://www.advantageonlineshopping.com:80/accountservice/" : _context.ResourceManager.GetValue(@"{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("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='UserName'][1]");
            VTDBaseGetter       binding_getter4 = new VTDXPathGetter(pi7, XmlTypeCode.String);
            VTDPropertyInfoBase pi8             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountCreateRequest'][1]/*[local-name(.)='loginName'][1]");
            VTDBaseSetter       binding_setter4 = new VTDXPathSetter(pi8, XmlTypeCode.String);

            binding_setter4 = new StringFormaterDecorator(binding_setter4, "{Step.OutputProperties.StartActivity1.UserName}");
            bind_dir4       = new BindDirection(_flow.StartActivity1, binding_getter4, binding_setter4, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir4);
            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>false</success><userId /><reason /><token /><sessionId /></StatusMessage></AccountCreateResponse></Body></Envelope>");
            _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document;
            set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3                 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence12                   = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence12");
            _flow.HTTPActivity11               = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity11");
            _flow.StServiceCallActivity6       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity6");
            _flow.StServiceCallActivity7       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity7");
            _flow.StServiceCallActivity9       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity9");
            _flow.StServiceCallActivity10      = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity10");
            _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  = @"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(_flow.Sequence12);
            this.Activities.Add(_flow.Loop2);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence12.Comment  = @"";
            _flow.Sequence12.IconPath = @"";
            _flow.Sequence12.Name     = @"Sequence12";
            _flow.Sequence12.Activities.Add(_flow.HTTPActivity11);
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity6);
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity7);
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity9);
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity10);
            _flow.HTTPActivity11.TextBody                = @"";
            _flow.HTTPActivity11.TextXmlBody             = @"";
            _flow.HTTPActivity11.FileBody                = @"";
            _flow.HTTPActivity11.PostBody                = @"";
            _flow.HTTPActivity11.Url                     = @"http://*****:*****@"GET";
            _flow.HTTPActivity11.HttpVersion             = @"1.1";
            _flow.HTTPActivity11.Comment                 = @"";
            _flow.HTTPActivity11.IconPath                = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png";
            _flow.HTTPActivity11.RequestBodyType         = @"Text";
            _flow.HTTPActivity11.ResponseType            = @"Text";
            _flow.HTTPActivity11.Name                    = @"HTTP Request11";
            _flow.HTTPActivity11.Proxy.Server            = @"";
            _flow.HTTPActivity11.Proxy.Username          = @"";
            _flow.HTTPActivity11.Proxy.Password          = @"";
            _flow.HTTPActivity11.Authentication.Username = @"";
            _flow.HTTPActivity11.Authentication.Password = @"";
            _flow.HTTPActivity11.Authentication.PreemptiveAuthentication = false;
            _flow.HTTPActivity11.ConnectionType                    = @"Keep-Alive";
            _flow.HTTPActivity11.Timeout                           = (int)100000;
            _flow.HTTPActivity11.ClientCertificate.Password        = @"";
            _flow.HTTPActivity11.ClientCertificate.FileSystem.Path = @"";
            _flow.HTTPActivity11.UseClientCertificate              = false;
            _flow.HTTPActivity11.MaximumAutomaticRedirections      = (int)3;
            _flow.HTTPActivity11.AllowRedirections                 = true;
            _flow.HTTPActivity11.ReuseCookies                      = false;
            _flow.HTTPActivity11.ExpectServerError                 = false;
            _flow.HTTPActivity11.HanaRequest                       = false;
            XmlDocument HTTPActivity11_XMLBody_Document = new XmlDocument();

            HTTPActivity11_XMLBody_Document.PreserveWhitespace = true;
            HTTPActivity11_XMLBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity11.XMLBody = HTTPActivity11_XMLBody_Document;
            XmlDocument HTTPActivity11_RequestMultipartInfoXml_Document = new XmlDocument();

            HTTPActivity11_RequestMultipartInfoXml_Document.PreserveWhitespace = true;
            HTTPActivity11_RequestMultipartInfoXml_Document.LoadXml(
                @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>");
            _flow.HTTPActivity11.RequestMultipartInfoXml = HTTPActivity11_RequestMultipartInfoXml_Document;
            _flow.HTTPActivity11.Multipart = false;
            XmlDocument HTTPActivity11_ExpectedResponseXmlBody_Document = new XmlDocument();

            HTTPActivity11_ExpectedResponseXmlBody_Document.PreserveWhitespace = true;
            HTTPActivity11_ExpectedResponseXmlBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity11.ExpectedResponseXmlBody = HTTPActivity11_ExpectedResponseXmlBody_Document;
            XmlDocument HTTPActivity11_ExpectedResponseJsonBody_Document = new XmlDocument();

            HTTPActivity11_ExpectedResponseJsonBody_Document.PreserveWhitespace = true;
            HTTPActivity11_ExpectedResponseJsonBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity11.ExpectedResponseJsonBody = HTTPActivity11_ExpectedResponseJsonBody_Document;
            XmlDocument HTTPActivity11_ExpectedOutputProperties_Document = new XmlDocument();

            HTTPActivity11_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            HTTPActivity11_ExpectedOutputProperties_Document.LoadXml(
                @"<Arguments><ResponseHttpVersion /><StatusCode>200</StatusCode><StatusDescription /><ResponseBody /><ResponseBodyAsBase64 /></Arguments>");
            _flow.HTTPActivity11.ExpectedOutputProperties = HTTPActivity11_ExpectedOutputProperties_Document;
            set_HTTPActivity11_checkpoints(_flow.HTTPActivity11);
            XmlDocument StServiceCallActivity6_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity6_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity6_InputEnvelope_Document.LoadXml(
                @"<?xml version=""1.0"" encoding=""utf-8""?>
<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"">
  <Header />
  <Body>
    <GetFlights xmlns=""HP.SOAQ.SampleApp"">
      <DepartureCity>London</DepartureCity>
      <ArrivalCity>Paris</ArrivalCity>
      <FlightDate>2020-03-07T00:00:00+01:00</FlightDate>
    </GetFlights>
  </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          = @"GetFlights";
            _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/GetFlights";
            _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            = @"GetFlights";
            _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;
            XmlDocument StServiceCallActivity6_ChannelBindingXml = new XmlDocument();

            StServiceCallActivity6_ChannelBindingXml.PreserveWhitespace = true;
            StServiceCallActivity6_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.StServiceCallActivity6.ChannelBindingXml = StServiceCallActivity6_ChannelBindingXml;
            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><GetFlightsResponse xmlns=""HP.SOAQ.SampleApp""><GetFlightsResult></GetFlightsResult></GetFlightsResponse></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 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><CreateFlightOrder xmlns=""HP.SOAQ.SampleApp""><FlightOrder><Class>Economy</Class><CustomerName>Pawan</CustomerName><DepartureDate>2020-03-07T00:00:00+01:00</DepartureDate><FlightNumber>10436</FlightNumber><NumberOfTickets>1</NumberOfTickets></FlightOrder></CreateFlightOrder></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          = @"CreateFlightOrder";
            _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/CreateFlightOrder";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity7.Service              = @"Flights_Service";
            _flow.StServiceCallActivity7.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity7.Operation            = @"CreateFlightOrder";
            _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;
            XmlDocument StServiceCallActivity7_ChannelBindingXml = new XmlDocument();

            StServiceCallActivity7_ChannelBindingXml.PreserveWhitespace = true;
            StServiceCallActivity7_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.StServiceCallActivity7.ChannelBindingXml = StServiceCallActivity7_ChannelBindingXml;
            XmlDocument StServiceCallActivity7_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><CreateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp""><CreateFlightOrderResult><OrderNumber /></CreateFlightOrderResult></CreateFlightOrderResponse></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 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><UpdateFlightOrder xmlns=""HP.SOAQ.SampleApp""><UpdateFlightOrderDetails><Class>Economy</Class><CustomerName>Pawan</CustomerName><NumberOfTickets>2</NumberOfTickets><OrderNumber>{Step.OutputProperties.StServiceCallActivity7.Body.CreateFlightOrderResponse.CreateFlightOrderResult.OrderNumber}</OrderNumber></UpdateFlightOrderDetails></UpdateFlightOrder></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          = @"UpdateFlightOrder";
            _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/UpdateFlightOrder";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity9.Service              = @"Flights_Service";
            _flow.StServiceCallActivity9.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity9.Operation            = @"UpdateFlightOrder";
            _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;
            XmlDocument StServiceCallActivity9_ChannelBindingXml = new XmlDocument();

            StServiceCallActivity9_ChannelBindingXml.PreserveWhitespace = true;
            StServiceCallActivity9_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.StServiceCallActivity9.ChannelBindingXml = StServiceCallActivity9_ChannelBindingXml;
            VTDPropertyInfoBase pi1             = 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_getter1 = new VTDXPathGetter(pi1, XmlTypeCode.Int);
            VTDPropertyInfoBase pi2             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='UpdateFlightOrder'][1]/*[local-name(.)='UpdateFlightOrderDetails'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter1 = new VTDXPathSetter(pi2, XmlTypeCode.Int);

            bind_dir1 = new BindDirection(_flow.StServiceCallActivity7, binding_getter1, binding_setter1, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir1);
            XmlDocument StServiceCallActivity9_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><UpdateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity9.ExpectedOutputProperties = StServiceCallActivity9_ExpectedOutputProperties_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_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity9_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity9_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity9.ExpectedOutputAttachments = StServiceCallActivity9_ExpectedOutputAttachments_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><DeleteFlightOrder xmlns=""HP.SOAQ.SampleApp""><OrderNumber>{Step.InputProperties.StServiceCallActivity9.Body.UpdateFlightOrder.UpdateFlightOrderDetails.OrderNumber}</OrderNumber></DeleteFlightOrder></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          = @"DeleteFlightOrder";
            _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      = @"HP.SOAQ.SampleApp/IFlightsSoapService/DeleteFlightOrder";
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity10.Service              = @"Flights_Service";
            _flow.StServiceCallActivity10.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity10.Operation            = @"DeleteFlightOrder";
            _flow.StServiceCallActivity10.IsOneWay             = false;
            _flow.StServiceCallActivity10.SendRequestToService = true;
            _flow.StServiceCallActivity10.FaultExpected        = false;
            _flow.StServiceCallActivity10.IsAsync              = false;
            _flow.StServiceCallActivity10.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity10.ListenOnPort         = (int)0;
            XmlDocument StServiceCallActivity10_ChannelBindingXml = new XmlDocument();

            StServiceCallActivity10_ChannelBindingXml.PreserveWhitespace = true;
            StServiceCallActivity10_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.StServiceCallActivity10.ChannelBindingXml = StServiceCallActivity10_ChannelBindingXml;
            VTDPropertyInfoBase pi3             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='UpdateFlightOrder'][1]/*[local-name(.)='UpdateFlightOrderDetails'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseGetter       binding_getter2 = new VTDXPathGetter(pi3, XmlTypeCode.Int);
            VTDPropertyInfoBase pi4             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='DeleteFlightOrder'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter2 = new VTDXPathSetter(pi4, XmlTypeCode.Int);

            bind_dir2 = new BindDirection(_flow.StServiceCallActivity9, binding_getter2, binding_setter2, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity10.InDirections.Add(bind_dir2);
            XmlDocument StServiceCallActivity10_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity10_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity10_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity10.ExpectedOutputProperties = StServiceCallActivity10_ExpectedOutputProperties_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_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity10_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity10_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity10.ExpectedOutputAttachments = StServiceCallActivity10_ExpectedOutputAttachments_Document;
            set_StServiceCallActivity10_checkpoints(_flow.StServiceCallActivity10);
        }
Ejemplo n.º 8
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3   = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence11     = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence11");
            _flow.HTTPActivity4  = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity4");
            _flow.ConcatenateStringsActivity9 = new HP.ST.Ext.BasicActivities.ConcatenateStringsActivity(_context, "ConcatenateStringsActivity9");
            _flow.HTTPActivity6 = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity6");
            _flow.HTTPActivity8 = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity8");
            _flow.ConcatenateStringsActivity10 = new HP.ST.Ext.BasicActivities.ConcatenateStringsActivity(_context, "ConcatenateStringsActivity10");
            XmlDocument StartActivity1_ExecutionInputParameters_Document = new XmlDocument();

            StartActivity1_ExecutionInputParameters_Document.PreserveWhitespace = true;
            StartActivity1_ExecutionInputParameters_Document.LoadXml(
                @"<Arguments><Proxy>http://127.0.0.1:3128</Proxy></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  = @"Run for 1 iteration";
            _flow.Loop2.NumberOfIterations = (int)1;
            _flow.Loop2.Comment            = @"This module contains NO testcases, the actions inside try to provide an access token for other tests/testcases for an ARAS System";
            _flow.Loop2.IconPath           = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name = @"Test Flow";
            _flow.Loop2.Activities.Add(_flow.Sequence11);
            this.Activities.Add(_flow.Loop2);
            XmlDocument EndActivity3_ExecutionOutputParameters_Document = new XmlDocument();

            EndActivity3_ExecutionOutputParameters_Document.PreserveWhitespace = true;
            EndActivity3_ExecutionOutputParameters_Document.LoadXml(
                @"<Arguments><AccessToken>{Step.OutputProperties.ConcatenateStringsActivity10.Result}</AccessToken></Arguments>");
            _flow.EndActivity3.ExecutionOutputParameters = EndActivity3_ExecutionOutputParameters_Document;
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            VTDPropertyInfoBase pi45             = new VTDPropertyInfoBase("Result");
            VTDBaseGetter       binding_getter23 = new VTDObjectGetter(pi45);
            VTDPropertyInfoBase pi46             = new VTDPropertyInfoBase("ExecutionOutputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='AccessToken'][1]");
            VTDBaseSetter       binding_setter23 = new VTDXPathSetter(pi46, XmlTypeCode.String);

            binding_setter23 = new StringFormaterDecorator(binding_setter23, "{Step.OutputProperties.ConcatenateStringsActivity10.Result}");
            bind_dir23       = new BindDirection(_flow.ConcatenateStringsActivity10, binding_getter23, binding_setter23, BindTargetType.ToInProperty);
            _flow.EndActivity3.InDirections.Add(bind_dir23);
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence11.Comment  = @"";
            _flow.Sequence11.IconPath = @"";
            _flow.Sequence11.Name     = @"Sequence11";
            _flow.Sequence11.Activities.Add(_flow.HTTPActivity4);
            _flow.Sequence11.Activities.Add(_flow.ConcatenateStringsActivity9);
            _flow.Sequence11.Activities.Add(_flow.HTTPActivity6);
            _flow.Sequence11.Activities.Add(_flow.HTTPActivity8);
            _flow.Sequence11.Activities.Add(_flow.ConcatenateStringsActivity10);
            _flow.HTTPActivity4.TextBody                = @"";
            _flow.HTTPActivity4.TextXmlBody             = @"";
            _flow.HTTPActivity4.FileBody                = @"";
            _flow.HTTPActivity4.PostBody                = @"";
            _flow.HTTPActivity4.Url                     = @"http://80.158.47.39/11SP15_Demo/Server/OAuthServerDiscovery.aspx";
            _flow.HTTPActivity4.HttpMethod              = @"GET";
            _flow.HTTPActivity4.HttpVersion             = @"1.1";
            _flow.HTTPActivity4.Comment                 = @"";
            _flow.HTTPActivity4.IconPath                = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png";
            _flow.HTTPActivity4.RequestBodyType         = @"Text";
            _flow.HTTPActivity4.ResponseType            = @"Json";
            _flow.HTTPActivity4.Name                    = @"GetOAuthLocation";
            _flow.HTTPActivity4.Proxy.Server            = @"{Step.OutputProperties.StartActivity1.Proxy}";
            _flow.HTTPActivity4.Proxy.Username          = @"";
            _flow.HTTPActivity4.Proxy.Password          = @"";
            _flow.HTTPActivity4.Authentication.Username = @"";
            _flow.HTTPActivity4.Authentication.Password = @"";
            _flow.HTTPActivity4.Authentication.PreemptiveAuthentication = false;
            _flow.HTTPActivity4.ConnectionType                    = @"Keep-Alive";
            _flow.HTTPActivity4.Timeout                           = (int)100000;
            _flow.HTTPActivity4.ClientCertificate.Password        = @"";
            _flow.HTTPActivity4.ClientCertificate.FileSystem.Path = @"";
            _flow.HTTPActivity4.UseClientCertificate              = false;
            _flow.HTTPActivity4.MaximumAutomaticRedirections      = (int)3;
            _flow.HTTPActivity4.AllowRedirections                 = true;
            _flow.HTTPActivity4.ReuseCookies                      = true;
            _flow.HTTPActivity4.ExpectServerError                 = false;
            _flow.HTTPActivity4.HanaRequest                       = false;
            XmlDocument HTTPActivity4_XMLBody_Document = new XmlDocument();

            HTTPActivity4_XMLBody_Document.PreserveWhitespace = true;
            HTTPActivity4_XMLBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity4.XMLBody = HTTPActivity4_XMLBody_Document;
            XmlDocument HTTPActivity4_RequestMultipartInfoXml_Document = new XmlDocument();

            HTTPActivity4_RequestMultipartInfoXml_Document.PreserveWhitespace = true;
            HTTPActivity4_RequestMultipartInfoXml_Document.LoadXml(
                @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>");
            _flow.HTTPActivity4.RequestMultipartInfoXml = HTTPActivity4_RequestMultipartInfoXml_Document;
            _flow.HTTPActivity4.Multipart = false;
            VTDPropertyInfoBase pi47             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Proxy'][1]");
            VTDBaseGetter       binding_getter24 = new VTDXPathGetter(pi47, XmlTypeCode.String);
            VTDPropertyInfoBase pi48             = new VTDPropertyInfoBase("Proxy.Server");
            VTDBaseSetter       binding_setter24 = new VTDObjectSetter(pi48);

            binding_setter24 = new StringFormaterDecorator(binding_setter24, "{Step.OutputProperties.StartActivity1.Proxy}");
            bind_dir24       = new BindDirection(_flow.StartActivity1, binding_getter24, binding_setter24, BindTargetType.ToInProperty);
            _flow.HTTPActivity4.InDirections.Add(bind_dir24);
            XmlDocument HTTPActivity4_ExpectedResponseXmlBody_Document = new XmlDocument();

            HTTPActivity4_ExpectedResponseXmlBody_Document.PreserveWhitespace = true;
            HTTPActivity4_ExpectedResponseXmlBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity4.ExpectedResponseXmlBody = HTTPActivity4_ExpectedResponseXmlBody_Document;
            XmlDocument HTTPActivity4_ExpectedResponseJsonBody_Document = new XmlDocument();

            HTTPActivity4_ExpectedResponseJsonBody_Document.PreserveWhitespace = true;
            HTTPActivity4_ExpectedResponseJsonBody_Document.LoadXml(
                @"<Object jsonType=""Object"" isAnonymous=""true""><locations jsonType=""Array""><Object jsonType=""Object"" isAnonymous=""true""><uri jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/</uri></Object></locations></Object>");
            _flow.HTTPActivity4.ExpectedResponseJsonBody = HTTPActivity4_ExpectedResponseJsonBody_Document;
            XmlDocument HTTPActivity4_ExpectedOutputProperties_Document = new XmlDocument();

            HTTPActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            HTTPActivity4_ExpectedOutputProperties_Document.LoadXml(
                @"<Arguments><ResponseHttpVersion /><StatusCode /><StatusDescription /><ResponseBody /><ResponseBodyAsBase64 /></Arguments>");
            _flow.HTTPActivity4.ExpectedOutputProperties = HTTPActivity4_ExpectedOutputProperties_Document;
            _flow.ConcatenateStringsActivity9.Prefix     = @"{Step.ResponseJsonBody.HTTPActivity4.locations.Object.uri}";
            _flow.ConcatenateStringsActivity9.Suffix     = @".well-known/openid-configuration";
            _flow.ConcatenateStringsActivity9.Comment    = @"";
            _flow.ConcatenateStringsActivity9.IconPath   = @"AddIns\ServiceTest\BasicActivities\toolbox_concat.png";
            _flow.ConcatenateStringsActivity9.Name       = @"OAuthConfigURL";
            VTDPropertyInfoBase pi49             = new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='Object'][1]/*[local-name(.)='locations'][1]/*[local-name(.)='Object'][1]/*[local-name(.)='uri'][1]");
            VTDBaseGetter       binding_getter25 = new VTDJsonGetter(pi49);
            VTDPropertyInfoBase pi50             = new VTDPropertyInfoBase("Prefix");
            VTDBaseSetter       binding_setter25 = new VTDObjectSetter(pi50);

            binding_setter25 = new StringFormaterDecorator(binding_setter25, "{Step.ResponseJsonBody.HTTPActivity4.locations.Object.uri}");
            bind_dir25       = new BindDirection(_flow.HTTPActivity4, binding_getter25, binding_setter25, BindTargetType.ToInProperty);
            _flow.ConcatenateStringsActivity9.InDirections.Add(bind_dir25);
            _flow.HTTPActivity6.TextBody                = @"";
            _flow.HTTPActivity6.TextXmlBody             = @"";
            _flow.HTTPActivity6.FileBody                = @"";
            _flow.HTTPActivity6.PostBody                = @"";
            _flow.HTTPActivity6.Url                     = @"{Step.OutputProperties.ConcatenateStringsActivity9.Result}";
            _flow.HTTPActivity6.HttpMethod              = @"GET";
            _flow.HTTPActivity6.HttpVersion             = @"1.1";
            _flow.HTTPActivity6.RequestHeaders          = new Pair <string, string> [1];
            _flow.HTTPActivity6.RequestHeaders[0]       = new Pair <string, string>();
            _flow.HTTPActivity6.RequestHeaders[0].Key   = @"Accept";
            _flow.HTTPActivity6.RequestHeaders[0].Value = @"application/json";
            _flow.HTTPActivity6.Comment                 = @"";
            _flow.HTTPActivity6.IconPath                = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png";
            _flow.HTTPActivity6.RequestBodyType         = @"Text";
            _flow.HTTPActivity6.ResponseType            = @"Json";
            _flow.HTTPActivity6.Name                    = @"GetOAuthConfig";
            _flow.HTTPActivity6.Proxy.Server            = @"{Step.OutputProperties.StartActivity1.Proxy}";
            _flow.HTTPActivity6.Proxy.Username          = @"";
            _flow.HTTPActivity6.Proxy.Password          = @"";
            _flow.HTTPActivity6.Authentication.Username = @"";
            _flow.HTTPActivity6.Authentication.Password = @"";
            _flow.HTTPActivity6.Authentication.PreemptiveAuthentication = false;
            _flow.HTTPActivity6.ConnectionType                    = @"Keep-Alive";
            _flow.HTTPActivity6.Timeout                           = (int)100000;
            _flow.HTTPActivity6.ClientCertificate.Password        = @"";
            _flow.HTTPActivity6.ClientCertificate.FileSystem.Path = @"";
            _flow.HTTPActivity6.UseClientCertificate              = false;
            _flow.HTTPActivity6.MaximumAutomaticRedirections      = (int)3;
            _flow.HTTPActivity6.AllowRedirections                 = true;
            _flow.HTTPActivity6.ReuseCookies                      = true;
            _flow.HTTPActivity6.ExpectServerError                 = false;
            _flow.HTTPActivity6.HanaRequest                       = false;
            XmlDocument HTTPActivity6_XMLBody_Document = new XmlDocument();

            HTTPActivity6_XMLBody_Document.PreserveWhitespace = true;
            HTTPActivity6_XMLBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity6.XMLBody = HTTPActivity6_XMLBody_Document;
            XmlDocument HTTPActivity6_RequestMultipartInfoXml_Document = new XmlDocument();

            HTTPActivity6_RequestMultipartInfoXml_Document.PreserveWhitespace = true;
            HTTPActivity6_RequestMultipartInfoXml_Document.LoadXml(
                @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>");
            _flow.HTTPActivity6.RequestMultipartInfoXml = HTTPActivity6_RequestMultipartInfoXml_Document;
            _flow.HTTPActivity6.Multipart = false;
            VTDPropertyInfoBase pi51             = new VTDPropertyInfoBase("Result");
            VTDBaseGetter       binding_getter26 = new VTDObjectGetter(pi51);
            VTDPropertyInfoBase pi52             = new VTDPropertyInfoBase("Url");
            VTDBaseSetter       binding_setter26 = new VTDObjectSetter(pi52);

            binding_setter26 = new StringFormaterDecorator(binding_setter26, "{Step.OutputProperties.ConcatenateStringsActivity9.Result}");
            bind_dir26       = new BindDirection(_flow.ConcatenateStringsActivity9, binding_getter26, binding_setter26, BindTargetType.ToInProperty);
            _flow.HTTPActivity6.InDirections.Add(bind_dir26);
            VTDPropertyInfoBase pi53             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Proxy'][1]");
            VTDBaseGetter       binding_getter27 = new VTDXPathGetter(pi53, XmlTypeCode.String);
            VTDPropertyInfoBase pi54             = new VTDPropertyInfoBase("Proxy.Server");
            VTDBaseSetter       binding_setter27 = new VTDObjectSetter(pi54);

            binding_setter27 = new StringFormaterDecorator(binding_setter27, "{Step.OutputProperties.StartActivity1.Proxy}");
            bind_dir27       = new BindDirection(_flow.StartActivity1, binding_getter27, binding_setter27, BindTargetType.ToInProperty);
            _flow.HTTPActivity6.InDirections.Add(bind_dir27);
            XmlDocument HTTPActivity6_ExpectedResponseXmlBody_Document = new XmlDocument();

            HTTPActivity6_ExpectedResponseXmlBody_Document.PreserveWhitespace = true;
            HTTPActivity6_ExpectedResponseXmlBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity6.ExpectedResponseXmlBody = HTTPActivity6_ExpectedResponseXmlBody_Document;
            XmlDocument HTTPActivity6_ExpectedResponseJsonBody_Document = new XmlDocument();

            HTTPActivity6_ExpectedResponseJsonBody_Document.PreserveWhitespace = true;
            HTTPActivity6_ExpectedResponseJsonBody_Document.LoadXml(
                @"<Object jsonType=""Object"" isAnonymous=""true""><issuer jsonType=""String"">OAuthServer</issuer><jwks_uri jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/.well-known/jwks</jwks_uri><authorization_endpoint jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/connect/authorize</authorization_endpoint><token_endpoint jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/connect/token</token_endpoint><userinfo_endpoint jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/connect/userinfo</userinfo_endpoint><end_session_endpoint jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/connect/endsession</end_session_endpoint><check_session_iframe jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/connect/checksession</check_session_iframe><revocation_endpoint jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/connect/revocation</revocation_endpoint><introspection_endpoint jsonType=""String"">http://80.158.47.39/11SP15_Demo/oauthserver/connect/introspect</introspection_endpoint><frontchannel_logout_supported jsonType=""Boolean"">true</frontchannel_logout_supported><frontchannel_logout_session_supported jsonType=""Boolean"">true</frontchannel_logout_session_supported><scopes_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">Innovator</Value><Value jsonType=""String"" isAnonymous=""true"">offline_access</Value></scopes_supported><claims_supported jsonType=""Array"" /><response_types_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">code</Value><Value jsonType=""String"" isAnonymous=""true"">token</Value><Value jsonType=""String"" isAnonymous=""true"">id_token</Value><Value jsonType=""String"" isAnonymous=""true"">id_token token</Value><Value jsonType=""String"" isAnonymous=""true"">code id_token</Value><Value jsonType=""String"" isAnonymous=""true"">code token</Value><Value jsonType=""String"" isAnonymous=""true"">code id_token token</Value></response_types_supported><response_modes_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">form_post</Value><Value jsonType=""String"" isAnonymous=""true"">query</Value><Value jsonType=""String"" isAnonymous=""true"">fragment</Value></response_modes_supported><grant_types_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">authorization_code</Value><Value jsonType=""String"" isAnonymous=""true"">client_credentials</Value><Value jsonType=""String"" isAnonymous=""true"">password</Value><Value jsonType=""String"" isAnonymous=""true"">refresh_token</Value><Value jsonType=""String"" isAnonymous=""true"">implicit</Value><Value jsonType=""String"" isAnonymous=""true"">impersonate</Value></grant_types_supported><subject_types_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">public</Value></subject_types_supported><id_token_signing_alg_values_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">RS256</Value></id_token_signing_alg_values_supported><code_challenge_methods_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">plain</Value><Value jsonType=""String"" isAnonymous=""true"">S256</Value></code_challenge_methods_supported><token_endpoint_auth_methods_supported jsonType=""Array""><Value jsonType=""String"" isAnonymous=""true"">client_secret_post</Value><Value jsonType=""String"" isAnonymous=""true"">client_secret_basic</Value></token_endpoint_auth_methods_supported><protocol_version jsonType=""String"">1.0</protocol_version><protocol_info jsonType=""Object""><protocol_type jsonType=""String"">Standard</protocol_type><authorization_header jsonType=""String"">Authorization</authorization_header><www_authenticate_header jsonType=""String"">WWW-Authenticate</www_authenticate_header><unauthorized_status_code jsonType=""Integer"">401</unauthorized_status_code></protocol_info></Object>");
            _flow.HTTPActivity6.ExpectedResponseJsonBody = HTTPActivity6_ExpectedResponseJsonBody_Document;
            XmlDocument HTTPActivity6_ExpectedOutputProperties_Document = new XmlDocument();

            HTTPActivity6_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            HTTPActivity6_ExpectedOutputProperties_Document.LoadXml(
                @"<Arguments><ResponseHttpVersion /><StatusCode /><StatusDescription /><ResponseBody /><ResponseBodyAsBase64 /></Arguments>");
            _flow.HTTPActivity6.ExpectedOutputProperties = HTTPActivity6_ExpectedOutputProperties_Document;
            _flow.HTTPActivity8.TextBody                = @"";
            _flow.HTTPActivity8.TextXmlBody             = @"";
            _flow.HTTPActivity8.FileBody                = @"";
            _flow.HTTPActivity8.PostBody                = @"grant_type=password&scope=Innovator&client_id=IOMApp&username=admin&password=607920B64FE136F9AB2389E371852AF2&database=11SP15_Demo";
            _flow.HTTPActivity8.Url                     = @"{Step.ResponseJsonBody.HTTPActivity6.token_endpoint}";
            _flow.HTTPActivity8.HttpMethod              = @"POST";
            _flow.HTTPActivity8.HttpVersion             = @"1.1";
            _flow.HTTPActivity8.Comment                 = @"";
            _flow.HTTPActivity8.IconPath                = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png";
            _flow.HTTPActivity8.RequestBodyType         = @"PostForm";
            _flow.HTTPActivity8.ResponseType            = @"Json";
            _flow.HTTPActivity8.Name                    = @"GetAccessToken";
            _flow.HTTPActivity8.Proxy.Server            = @"{Step.OutputProperties.StartActivity1.Proxy}";
            _flow.HTTPActivity8.Proxy.Username          = @"";
            _flow.HTTPActivity8.Proxy.Password          = @"";
            _flow.HTTPActivity8.Authentication.Username = @"";
            _flow.HTTPActivity8.Authentication.Password = @"";
            _flow.HTTPActivity8.Authentication.PreemptiveAuthentication = false;
            _flow.HTTPActivity8.ConnectionType                    = @"Keep-Alive";
            _flow.HTTPActivity8.Timeout                           = (int)100000;
            _flow.HTTPActivity8.ClientCertificate.Password        = @"";
            _flow.HTTPActivity8.ClientCertificate.FileSystem.Path = @"";
            _flow.HTTPActivity8.UseClientCertificate              = false;
            _flow.HTTPActivity8.MaximumAutomaticRedirections      = (int)3;
            _flow.HTTPActivity8.AllowRedirections                 = true;
            _flow.HTTPActivity8.ReuseCookies                      = true;
            _flow.HTTPActivity8.ExpectServerError                 = false;
            _flow.HTTPActivity8.HanaRequest                       = false;
            XmlDocument HTTPActivity8_XMLBody_Document = new XmlDocument();

            HTTPActivity8_XMLBody_Document.PreserveWhitespace = true;
            HTTPActivity8_XMLBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity8.XMLBody = HTTPActivity8_XMLBody_Document;
            XmlDocument HTTPActivity8_RequestMultipartInfoXml_Document = new XmlDocument();

            HTTPActivity8_RequestMultipartInfoXml_Document.PreserveWhitespace = true;
            HTTPActivity8_RequestMultipartInfoXml_Document.LoadXml(
                @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>");
            _flow.HTTPActivity8.RequestMultipartInfoXml = HTTPActivity8_RequestMultipartInfoXml_Document;
            _flow.HTTPActivity8.Multipart = false;
            VTDPropertyInfoBase pi55             = new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='Object'][1]/*[local-name(.)='token_endpoint'][1]");
            VTDBaseGetter       binding_getter28 = new VTDJsonGetter(pi55);
            VTDPropertyInfoBase pi56             = new VTDPropertyInfoBase("Url");
            VTDBaseSetter       binding_setter28 = new VTDObjectSetter(pi56);

            binding_setter28 = new StringFormaterDecorator(binding_setter28, "{Step.ResponseJsonBody.HTTPActivity6.token_endpoint}");
            bind_dir28       = new BindDirection(_flow.HTTPActivity6, binding_getter28, binding_setter28, BindTargetType.ToInProperty);
            _flow.HTTPActivity8.InDirections.Add(bind_dir28);
            VTDPropertyInfoBase pi57             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Proxy'][1]");
            VTDBaseGetter       binding_getter29 = new VTDXPathGetter(pi57, XmlTypeCode.String);
            VTDPropertyInfoBase pi58             = new VTDPropertyInfoBase("Proxy.Server");
            VTDBaseSetter       binding_setter29 = new VTDObjectSetter(pi58);

            binding_setter29 = new StringFormaterDecorator(binding_setter29, "{Step.OutputProperties.StartActivity1.Proxy}");
            bind_dir29       = new BindDirection(_flow.StartActivity1, binding_getter29, binding_setter29, BindTargetType.ToInProperty);
            _flow.HTTPActivity8.InDirections.Add(bind_dir29);
            XmlDocument HTTPActivity8_ExpectedResponseXmlBody_Document = new XmlDocument();

            HTTPActivity8_ExpectedResponseXmlBody_Document.PreserveWhitespace = true;
            HTTPActivity8_ExpectedResponseXmlBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.HTTPActivity8.ExpectedResponseXmlBody = HTTPActivity8_ExpectedResponseXmlBody_Document;
            XmlDocument HTTPActivity8_ExpectedResponseJsonBody_Document = new XmlDocument();

            HTTPActivity8_ExpectedResponseJsonBody_Document.PreserveWhitespace = true;
            HTTPActivity8_ExpectedResponseJsonBody_Document.LoadXml(
                @"<Object jsonType=""Object"" isAnonymous=""true""><access_token jsonType=""String"">eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InlSMTBQQ2JXTGFoQU9LNXl5cU1rMXBseWh4NCIsImtpZCI6InlSMTBQQ2JXTGFoQU9LNXl5cU1rMXBseWh4NCJ9.eyJpc3MiOiJPQXV0aFNlcnZlciIsImF1ZCI6Ik9BdXRoU2VydmVyL3Jlc291cmNlcyIsImV4cCI6MTU3MTE3ODg4MywibmJmIjoxNTcxMTUwMDgzLCJjbGllbnRfaWQiOiJJT01BcHAiLCJzY29wZSI6Iklubm92YXRvciIsInN1YiI6ImFkbWluIiwiYXV0aF90aW1lIjoxNTcxMTUwMDgzLCJpZHAiOiJpZHNydiIsIm5hbWUiOiJhZG1pbiIsInVzZXJuYW1lIjoiYWRtaW4iLCJkYXRhYmFzZSI6IjExU1AxNV9EZW1vIiwiYW1yIjpbInBhc3N3b3JkIl19.Z1TrxfuL9n5Zy9gIu27lOquaNTGyPwlHto3UBGQz6viyDaPJT436KW8XJOA10k0anVEILoLT4QhpgCehZmPQjxogKpukKSvMoh8kq0oBOJdL_BS2Yu7ylCGPZG7NjlnbR39eggZN4Ugnx0PUoQFduR1kthoodfEg9Pet-1ccSAUxivGg10siG2SQ0-q0eokWspF8qAxInvDkc1N5TGakI483HKxRy2vVR2fZRIpikxM4XoIAJgCwHkkmOKSaJGE7z6gFpUkiBAAGp08kGj5tp0kXCYFd4HgQZWeFYqdYftTb5jz1w4eEVIT-FdVi_6RZH3nrCxKog586gYREA2Rn-w</access_token><expires_in jsonType=""Integer"">28800</expires_in><token_type jsonType=""String"">Bearer</token_type></Object>");
            _flow.HTTPActivity8.ExpectedResponseJsonBody = HTTPActivity8_ExpectedResponseJsonBody_Document;
            XmlDocument HTTPActivity8_ExpectedOutputProperties_Document = new XmlDocument();

            HTTPActivity8_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            HTTPActivity8_ExpectedOutputProperties_Document.LoadXml(
                @"<Arguments><ResponseHttpVersion /><StatusCode /><StatusDescription /><ResponseBody /><ResponseBodyAsBase64 /></Arguments>");
            _flow.HTTPActivity8.ExpectedOutputProperties = HTTPActivity8_ExpectedOutputProperties_Document;
            _flow.ConcatenateStringsActivity10.Prefix    = @"Bearer ";
            _flow.ConcatenateStringsActivity10.Suffix    = @"{Step.ResponseJsonBody.HTTPActivity8.access_token}";
            _flow.ConcatenateStringsActivity10.Comment   = @"";
            _flow.ConcatenateStringsActivity10.IconPath  = @"AddIns\ServiceTest\BasicActivities\toolbox_concat.png";
            _flow.ConcatenateStringsActivity10.Name      = @"GetBearerAccess";
            VTDPropertyInfoBase pi59             = new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='Object'][1]/*[local-name(.)='access_token'][1]");
            VTDBaseGetter       binding_getter30 = new VTDJsonGetter(pi59);
            VTDPropertyInfoBase pi60             = new VTDPropertyInfoBase("Suffix");
            VTDBaseSetter       binding_setter30 = new VTDObjectSetter(pi60);

            binding_setter30 = new StringFormaterDecorator(binding_setter30, "{Step.ResponseJsonBody.HTTPActivity8.access_token}");
            bind_dir30       = new BindDirection(_flow.HTTPActivity8, binding_getter30, binding_setter30, BindTargetType.ToInProperty);
            _flow.ConcatenateStringsActivity10.InDirections.Add(bind_dir30);
        }
Ejemplo 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);
        }
        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);
        }
Ejemplo n.º 11
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);
        }
Ejemplo n.º 12
0
        internal void InitializeComponent()
        {
            this._context.SnapshotManager.EnableSnapshots    = false;
            this._context.PropertyBag["IsRunningInLodeMode"] = true;
            _userCode = new TestUserCode();
            _flow     = _userCode;
            LoadInput();
            this.Activities.Clear();
            _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.EndActivity3                 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence12                   = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence12");
            _flow.StServiceCallActivity8       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity8");
            _flow.IfElse4                      = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElse <IfElse4Input>(_context, "IfElse4");
            _flow.IfElseBranch5                = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElseBranch(_context, "IfElseBranch5");
            _flow.IfElseBranch6                = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElseBranch(_context, "IfElseBranch6");
            _flow.StServiceCallActivity9       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity9");
            _flow.StServiceCallActivity10      = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity10");
            _flow.ReportMessageActivity11      = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity11");
            _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";
            _flow.StartActivity1.TransactionWastedTime    += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            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.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.Loop2.Activities.Add(_flow.Sequence12);
            this.Activities.Add(_flow.Loop2);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            _flow.EndActivity3.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence12.Comment  = @"";
            _flow.Sequence12.IconPath = @"";
            _flow.Sequence12.Name     = @"Sequence12";
            _flow.Sequence12.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.Sequence12.Activities.Add(_flow.StServiceCallActivity8);
            _flow.Sequence12.Activities.Add(_flow.IfElse4);
            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><GetFlightOrders xmlns=""HP.SOAQ.SampleApp""><FlightsDetails><OrderNumber>3</OrderNumber></FlightsDetails></GetFlightOrders></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          = @"GetFlightOrders";
            _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/GetFlightOrders";
            _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              = @"GetFlightOrders";
            _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;
            _flow.StServiceCallActivity8.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity8.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity8.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.IfElse4.ConditionAsString = @"{Step.OutputProperties.StServiceCallActivity8.Body.GetFlightOrdersResponse.GetFlightOrdersResult.FlightOrder[1].OrderNumber} Equal 3";
            _flow.IfElse4.Comment           = @"";
            _flow.IfElse4.IconPath          = @"AddIns\ServiceTest\BasicActivities\toolbox_if_else.png";
            _flow.IfElse4.Name = @"Condition4";
            _flow.IfElse4.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.IfElse4.Activities.Add(_flow.IfElseBranch5);
            _flow.IfElse4.Activities.Add(_flow.IfElseBranch6);
            _flow.IfElseBranch5.Condition += delegate(object sender, EventArgs e)
            {
                try
                {
                    VTDPropertyInfoBase pi26             = 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_getter16 = new VTDXPathGetter(pi26, XmlTypeCode.Int);
                    binding_getter16 = new XPathGetterDecorator(binding_getter16, "{Array0}", 1);
                    System.Int32 expr00  = (System.Int32)HP.ST.Fwk.RunTimeFWK.Utilities.Utils.ConvertValue(_flow.StServiceCallActivity8.GetParam(binding_getter16), typeof(System.Int32));
                    var          result0 = expr00;
                    System.Int32 result1 = (System.Int32)(3);
                    return(result0 == result1);
                }
                catch (Exception exp)
                {
                    if (exp is System.InvalidCastException)
                    {
                        throw;
                    }
                    else
                    {
                        return(false);
                    }
                };
            };
            _flow.IfElseBranch5.Comment  = @"";
            _flow.IfElseBranch5.IconPath = @"";
            _flow.IfElseBranch5.Name     = @"Yes";
            _flow.IfElseBranch5.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.IfElseBranch5.Activities.Add(_flow.StServiceCallActivity9);
            _flow.IfElseBranch5.Activities.Add(_flow.StServiceCallActivity10);
            _flow.IfElseBranch6.Condition += delegate(object sender, EventArgs e)
            {
                return(true);
            };
            _flow.IfElseBranch6.Comment  = @"";
            _flow.IfElseBranch6.IconPath = @"";
            _flow.IfElseBranch6.Name     = @"No";
            _flow.IfElseBranch6.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.IfElseBranch6.Activities.Add(_flow.ReportMessageActivity11);
            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><UpdateFlightOrder xmlns=""HP.SOAQ.SampleApp""><UpdateFlightOrderDetails><Class>Business</Class><OrderNumber>{Step.InputProperties.StServiceCallActivity8.Body.GetFlightOrders.FlightsDetails.OrderNumber}</OrderNumber></UpdateFlightOrderDetails></UpdateFlightOrder></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          = @"UpdateFlightOrder";
            _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/UpdateFlightOrder";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity9.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity9.Service                = @"Flights_Service";
            _flow.StServiceCallActivity9.Port                   = @"FlightsServiceMethods";
            _flow.StServiceCallActivity9.Operation              = @"UpdateFlightOrder";
            _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;
            _flow.StServiceCallActivity9.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity9.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity9.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi27             = 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_getter17 = new VTDXPathGetter(pi27, XmlTypeCode.Int);
            VTDPropertyInfoBase pi28             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='UpdateFlightOrder'][1]/*[local-name(.)='UpdateFlightOrderDetails'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter11 = new VTDXPathSetter(pi28, XmlTypeCode.Int);

            bind_dir11 = new BindDirection(_flow.StServiceCallActivity8, binding_getter17, binding_setter11, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir11);
            XmlDocument StServiceCallActivity10_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity10_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity10_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>{Step.InputProperties.StServiceCallActivity8.Body.GetFlightOrders.FlightsDetails.OrderNumber}</OrderNumber></FlightsDetails></GetFlightOrders></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          = @"GetFlightOrders";
            _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      = @"HP.SOAQ.SampleApp/IFlightsSoapService/GetFlightOrders";
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity10.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity10.Service                = @"Flights_Service";
            _flow.StServiceCallActivity10.Port                   = @"FlightsServiceMethods";
            _flow.StServiceCallActivity10.Operation              = @"GetFlightOrders";
            _flow.StServiceCallActivity10.IsOneWay               = false;
            _flow.StServiceCallActivity10.SendRequestToService   = true;
            _flow.StServiceCallActivity10.FaultExpected          = false;
            _flow.StServiceCallActivity10.IsAsync                = false;
            _flow.StServiceCallActivity10.TargetNamespace        = @"http://tempuri.org/";
            _flow.StServiceCallActivity10.ListenOnPort           = (int)0;
            _flow.StServiceCallActivity10.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity10.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity10.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi29             = 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_getter18 = new VTDXPathGetter(pi29, XmlTypeCode.Int);
            VTDPropertyInfoBase pi30             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlightOrders'][1]/*[local-name(.)='FlightsDetails'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter12 = new VTDXPathSetter(pi30, XmlTypeCode.Int);

            bind_dir12 = new BindDirection(_flow.StServiceCallActivity8, binding_getter18, binding_setter12, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity10.InDirections.Add(bind_dir12);
            _flow.ReportMessageActivity11.Status                 = @"Fail";
            _flow.ReportMessageActivity11.Message                = @"Order # not found";
            _flow.ReportMessageActivity11.Destination            = @"ReportAndOutput";
            _flow.ReportMessageActivity11.Comment                = @"";
            _flow.ReportMessageActivity11.IconPath               = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png";
            _flow.ReportMessageActivity11.Name                   = @"Report Message11";
            _flow.ReportMessageActivity11.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
        }
Ejemplo n.º 13
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);
        }
Ejemplo n.º 14
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3                 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence8                    = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence8");
            _flow.StServiceCallActivity4       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4");
            _flow.StServiceCallActivity5       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.StServiceCallActivity7       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity7");
            _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  = @"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(_flow.Sequence8);
            this.Activities.Add(_flow.Loop2);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence8.Comment  = @"";
            _flow.Sequence8.IconPath = @"";
            _flow.Sequence8.Name     = @"Sequence8";
            _flow.Sequence8.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence8.Activities.Add(_flow.StServiceCallActivity5);
            _flow.Sequence8.Activities.Add(_flow.StServiceCallActivity7);
            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>Frankfurt</DepartureCity><ArrivalCity>Paris</ArrivalCity><FlightDate>2020-06-17T00: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              = @"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;
            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>Omar Gonzalez</CustomerName><DepartureDate>2020-06-17T00:00:00-06:00</DepartureDate><FlightNumber>{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightsResponse.GetFlightsResult.Flight[1].FlightNumber}</FlightNumber><NumberOfTickets>3</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 pi15            = 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_getter8 = new VTDXPathGetter(pi15, XmlTypeCode.Int);

            binding_getter8 = new XPathGetterDecorator(binding_getter8, "{Array0}", 1);
            VTDPropertyInfoBase pi16            = 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_setter8 = new VTDXPathSetter(pi16, XmlTypeCode.Int);

            bind_dir8 = new BindDirection(_flow.StServiceCallActivity4, binding_getter8, binding_setter8, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir8);
            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>85</OrderNumber></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);
            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><GetFlightOrders xmlns=""HP.SOAQ.SampleApp""><FlightsDetails><CustomerName>Omar Gonzalez</CustomerName><FlightDate>2020-06-17T00:00:00-06:00</FlightDate><OrderNumber>0</OrderNumber></FlightsDetails></GetFlightOrders></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          = @"GetFlightOrders";
            _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/GetFlightOrders";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity7.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity7.Service              = @"Flights_Service";
            _flow.StServiceCallActivity7.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity7.Operation            = @"GetFlightOrders";
            _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;
            XmlDocument StServiceCallActivity7_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity7_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity7_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><GetFlightOrdersResponse xmlns=""HP.SOAQ.SampleApp"" /></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);
        }
Ejemplo n.º 15
0
        internal void InitializeComponent()
        {
            this._context.SnapshotManager.EnableSnapshots    = false;
            this._context.PropertyBag["IsRunningInLodeMode"] = true;
            _userCode = new TestUserCode();
            _flow     = _userCode;
            LoadInput();
            this.Activities.Clear();
            _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.LoadRunnerDataCursor18        = new HP.ST.Ext.LoadRunnerRTAddin.LoadRunnerDataCursor(_context, "LoadRunnerDataCursor18");
            this.LoadRunnerDataCursor18_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.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _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";
            _flow.StartActivity1.TransactionWastedTime    += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            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(!LoadRunnerDataCursor18.IsAtEndPosition);
            };
            _flow.Loop2.Comment  = @"";
            _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name     = @"Test Flow";
            _flow.Loop2.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.Loop2.Activities.Add(this.LoadRunnerDataCursor18);
            _flow.Loop2.Activities.Add(_flow.Sequence13);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity16.Comment  = @"";
            _flow.DataExporterActivity16.IconPath = @"";
            _flow.DataExporterActivity16.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi265             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter133 = new VTDObjectGetter(pi265);
            VTDPropertyInfoBase pi266             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter133 = new VTDObjectSetter(pi266);

            binding_setter133 = new StringFormaterDecorator(binding_setter133, "{Step.DataFetchActivity14.OutTable}");
            bind_dir133       = new BindDirection(_flow.DataFetchActivity14, binding_getter133, binding_setter133, BindTargetType.ToInProperty);
            _flow.DataExporterActivity16.InDirections.Add(bind_dir133);
            this.Activities.Add(_flow.DataExporterActivity16);
            _flow.DataExporterCloseActivity17.Comment  = @"";
            _flow.DataExporterCloseActivity17.IconPath = @"";
            _flow.DataExporterCloseActivity17.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            this.Activities.Add(_flow.DataExporterCloseActivity17);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            _flow.EndActivity3.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity15.Comment  = @"";
            _flow.DataDisconnectActivity15.IconPath = @"";
            _flow.DataDisconnectActivity15.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi267             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter134 = new VTDObjectGetter(pi267);
            VTDPropertyInfoBase pi268             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter134 = new VTDObjectSetter(pi268);

            binding_setter134 = new StringFormaterDecorator(binding_setter134, "{Step.DataFetchActivity14.OutTable}");
            bind_dir134       = new BindDirection(_flow.DataFetchActivity14, binding_getter134, binding_setter134, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity15.InDirections.Add(bind_dir134);
            this.Activities.Add(_flow.DataDisconnectActivity15);
            this.LoadRunnerDataCursor18.Comment  = @"";
            this.LoadRunnerDataCursor18.IconPath = @"";
            this.LoadRunnerDataCursor18.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi269             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter135 = new VTDObjectGetter(pi269);
            VTDPropertyInfoBase pi270             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter135 = new VTDObjectSetter(pi270);

            binding_setter135 = new StringFormaterDecorator(binding_setter135, "{Step.DataFetchActivity14.OutTable}");
            bind_dir135       = new BindDirection(_flow.DataFetchActivity14, binding_getter135, binding_setter135, BindTargetType.ToInProperty);
            this.LoadRunnerDataCursor18.InDirections.Add(bind_dir135);
            this.LoadRunnerDataCursor18_Policy.StartPosition             = CursorStartPosition.FirstRecord;
            this.LoadRunnerDataCursor18_Policy.StartAtSpecificRow        = 1;
            this.LoadRunnerDataCursor18_Policy.StartCondition.ColumnName = "";
            this.LoadRunnerDataCursor18_Policy.StartCondition.Comparison = ConditionOperator.Equal;
            this.LoadRunnerDataCursor18_Policy.StartCondition.Value      = "";
            this.LoadRunnerDataCursor18_Policy.EndPosition             = CursorEndPosition.UserSpecificRecord;
            this.LoadRunnerDataCursor18_Policy.EndAtSpecificRow        = 1;
            this.LoadRunnerDataCursor18_Policy.EndCondition.ColumnName = "";
            this.LoadRunnerDataCursor18_Policy.EndCondition.Comparison = ConditionOperator.Equal;
            this.LoadRunnerDataCursor18_Policy.EndCondition.Value      = "";
            this.LoadRunnerDataCursor18_Policy.StepType = CursorStepType.Forward;
            this.LoadRunnerDataCursor18_Policy.StepSize = 1;
            this.LoadRunnerDataCursor18_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.LoadRunnerDataCursor18.Policy         = this.LoadRunnerDataCursor18_Policy;
            this.LoadRunnerDataCursor18.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent        += this.LoadRunnerDataCursor18.ResetCursor;
            _flow.Sequence13.Comment  = @"";
            _flow.Sequence13.IconPath = @"";
            _flow.Sequence13.Name     = @"Sequence13";
            _flow.Sequence13.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _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;
            _flow.StServiceCallActivity4.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity4.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity4.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi271             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='ServiceEndpoint'][1]");
            VTDBaseGetter       binding_getter136 = new VTDXPathGetter(pi271, XmlTypeCode.String);
            VTDPropertyInfoBase pi272             = new VTDPropertyInfoBase("TransportProtocol.SOAPProperties.EndpointAddress");
            VTDBaseSetter       binding_setter136 = new VTDObjectSetter(pi272);

            binding_setter136 = new StringFormaterDecorator(binding_setter136, "{Step.OutputProperties.StartActivity1.ServiceEndpoint}");
            bind_dir136       = new BindDirection(_flow.StartActivity1, binding_getter136, binding_setter136, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir136);
            VTDPropertyInfoBase pi273             = new VTDPropertyInfoBase("SSN");
            VTDBaseGetter       binding_getter137 = new VTDObjectGetter(pi273);
            VTDPropertyInfoBase pi274             = 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_setter137 = new VTDXPathSetter(pi274, XmlTypeCode.String);

            binding_setter137 = new StringFormaterDecorator(binding_setter137, "{DataSource.TestClaims!Sheet1.SSN}");
            bind_dir137       = new BindDirection(this.LoadRunnerDataCursor18, binding_getter137, binding_setter137, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir137);
            VTDPropertyInfoBase pi275             = new VTDPropertyInfoBase("LastName");
            VTDBaseGetter       binding_getter138 = new VTDObjectGetter(pi275);
            VTDPropertyInfoBase pi276             = 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_setter138 = new VTDXPathSetter(pi276, XmlTypeCode.String);

            binding_setter138 = new StringFormaterDecorator(binding_setter138, "{DataSource.TestClaims!Sheet1.LastName}");
            bind_dir138       = new BindDirection(this.LoadRunnerDataCursor18, binding_getter138, binding_setter138, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir138);
            VTDPropertyInfoBase pi277             = new VTDPropertyInfoBase("FirstName");
            VTDBaseGetter       binding_getter139 = new VTDObjectGetter(pi277);
            VTDPropertyInfoBase pi278             = 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_setter139 = new VTDXPathSetter(pi278, XmlTypeCode.String);

            binding_setter139 = new StringFormaterDecorator(binding_setter139, "{DataSource.TestClaims!Sheet1.FirstName}");
            bind_dir139       = new BindDirection(this.LoadRunnerDataCursor18, binding_getter139, binding_setter139, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir139);
            VTDPropertyInfoBase pi279             = new VTDPropertyInfoBase("ClaimDesc");
            VTDBaseGetter       binding_getter140 = new VTDObjectGetter(pi279);
            VTDPropertyInfoBase pi280             = 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_setter140 = new VTDXPathSetter(pi280, XmlTypeCode.String);

            binding_setter140 = new StringFormaterDecorator(binding_setter140, "{DataSource.TestClaims!Sheet1.ClaimDesc}");
            bind_dir140       = new BindDirection(this.LoadRunnerDataCursor18, binding_getter140, binding_setter140, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir140);
            VTDPropertyInfoBase pi281             = new VTDPropertyInfoBase("Date");
            VTDBaseGetter       binding_getter141 = new VTDObjectGetter(pi281);
            VTDPropertyInfoBase pi282             = 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_setter141 = new VTDXPathSetter(pi282, XmlTypeCode.DateTime);

            bind_dir141 = new BindDirection(this.LoadRunnerDataCursor18, binding_getter141, binding_setter141, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir141);
            VTDPropertyInfoBase pi283             = new VTDPropertyInfoBase("ClaimAount");
            VTDBaseGetter       binding_getter142 = new VTDObjectGetter(pi283);
            VTDPropertyInfoBase pi284             = 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_setter142 = new VTDXPathSetter(pi284, XmlTypeCode.Float);

            bind_dir142 = new BindDirection(this.LoadRunnerDataCursor18, binding_getter142, binding_setter142, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity4.InDirections.Add(bind_dir142);
            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;
            _flow.StServiceCallActivity5.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity5.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity5.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi285             = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='ServiceEndpoint'][1]");
            VTDBaseGetter       binding_getter143 = new VTDXPathGetter(pi285, XmlTypeCode.String);
            VTDPropertyInfoBase pi286             = new VTDPropertyInfoBase("TransportProtocol.SOAPProperties.EndpointAddress");
            VTDBaseSetter       binding_setter143 = new VTDObjectSetter(pi286);

            binding_setter143 = new StringFormaterDecorator(binding_setter143, "{Step.OutputProperties.StartActivity1.ServiceEndpoint}");
            bind_dir143       = new BindDirection(_flow.StartActivity1, binding_getter143, binding_setter143, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir143);
            VTDPropertyInfoBase pi287             = 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_getter144 = new VTDXPathGetter(pi287, XmlTypeCode.Long);
            VTDPropertyInfoBase pi288             = 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_setter144 = new VTDXPathSetter(pi288, XmlTypeCode.Long);

            bind_dir144 = new BindDirection(_flow.StServiceCallActivity4, binding_getter144, binding_setter144, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir144);
        }
Ejemplo n.º 16
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3                 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _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.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(_flow.Sequence11);
            this.Activities.Add(_flow.Loop2);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence11.Comment  = @"";
            _flow.Sequence11.IconPath = @"";
            _flow.Sequence11.Name     = @"Sequence11";
            _flow.Sequence11.Activities.Add(_flow.StServiceCallActivity4);
            _flow.Sequence11.Activities.Add(_flow.StServiceCallActivity9);
            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>Denver</DepartureCity><ArrivalCity>Los Angeles</ArrivalCity><FlightDate>2018-01-15T00:00:00-05: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;
            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;
            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><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;
            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/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><CreateFlightOrder xmlns=""HP.SOAQ.SampleApp""><FlightOrder><Class>Business</Class><CustomerName>Mauricio Henao O.</CustomerName><DepartureDate>2018-01-15T00:00:00-05:00</DepartureDate><FlightNumber>{Step.OutputProperties.StServiceCallActivity4.Body.GetFlightsResponse.GetFlightsResult.Flight[1].FlightNumber}</FlightNumber><NumberOfTickets>2</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;
            XmlDocument StServiceCallActivity9_ChannelBindingXml = new XmlDocument();

            StServiceCallActivity9_ChannelBindingXml.PreserveWhitespace = true;
            StServiceCallActivity9_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.StServiceCallActivity9.ChannelBindingXml = StServiceCallActivity9_ChannelBindingXml;
            VTDPropertyInfoBase pi31             = 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_getter16 = new VTDXPathGetter(pi31, XmlTypeCode.Int);

            binding_getter16 = new XPathGetterDecorator(binding_getter16, "{Array0}", 1);
            VTDPropertyInfoBase pi32             = 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_setter16 = new VTDXPathSetter(pi32, XmlTypeCode.Int);

            bind_dir16 = new BindDirection(_flow.StServiceCallActivity4, binding_getter16, binding_setter16, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity9.InDirections.Add(bind_dir16);
            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>106</OrderNumber><TotalPrice>462.4</TotalPrice></CreateFlightOrderResult></CreateFlightOrderResponse></Body></Envelope>");
            _flow.StServiceCallActivity9.ExpectedOutputProperties = StServiceCallActivity9_ExpectedOutputProperties_Document;
            set_StServiceCallActivity9_checkpoints(_flow.StServiceCallActivity9);
        }
Ejemplo n.º 17
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.For);
            _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");
            _flow.Sequence6                          = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6");
            _flow.RESTActivityV24                    = new HP.ST.Ext.RestActivity.RESTActivityV2 <RESTActivityV24Input, RESTActivityV24Output>(_context, "RESTActivityV24");
            _flow.RESTActivityV25                    = new HP.ST.Ext.RestActivity.RESTActivityV2 <RESTActivityV25Input, RESTActivityV25Output>(_context, "RESTActivityV25");
            _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>448598d8-7b2d-448b-b468-bbb801d6a5b6</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>FlightAPIDataSource!Output</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>True</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>FlightAPIDataSource</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{FlightAPIDataSource!Output.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Output$</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("FlightAPIDataSource!Output", _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>9ca19b4b-997d-46e5-838c-274b5ca58521</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>FlightAPIDataSource!Input</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>True</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>FlightAPIDataSource</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{FlightAPIDataSource!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("FlightAPIDataSource!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.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  = @"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(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity9.Comment  = @"";
            _flow.DataExporterActivity9.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.DataFetchActivity7.OutTable}");
            bind_dir5       = new BindDirection(_flow.DataFetchActivity7, binding_getter5, binding_setter5, BindTargetType.ToInProperty);
            _flow.DataExporterActivity9.InDirections.Add(bind_dir5);
            this.Activities.Add(_flow.DataExporterActivity9);
            _flow.DataExporterActivity12.Comment  = @"";
            _flow.DataExporterActivity12.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.DataFetchActivity10.OutTable}");
            bind_dir6       = new BindDirection(_flow.DataFetchActivity10, binding_getter6, binding_setter6, BindTargetType.ToInProperty);
            _flow.DataExporterActivity12.InDirections.Add(bind_dir6);
            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 pi13            = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter7 = new VTDObjectGetter(pi13);
            VTDPropertyInfoBase pi14            = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter7 = new VTDObjectSetter(pi14);

            binding_setter7 = new StringFormaterDecorator(binding_setter7, "{Step.DataFetchActivity7.OutTable}");
            bind_dir7       = new BindDirection(_flow.DataFetchActivity7, binding_getter7, binding_setter7, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity8.InDirections.Add(bind_dir7);
            this.Activities.Add(_flow.DataDisconnectActivity8);
            _flow.DataDisconnectActivity11.Comment  = @"";
            _flow.DataDisconnectActivity11.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.DataFetchActivity10.OutTable}");
            bind_dir8       = new BindDirection(_flow.DataFetchActivity10, binding_getter8, binding_setter8, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity11.InDirections.Add(bind_dir8);
            this.Activities.Add(_flow.DataDisconnectActivity11);
            _flow.Sequence6.Comment  = @"";
            _flow.Sequence6.IconPath = @"";
            _flow.Sequence6.Name     = @"Sequence6";
            _flow.Sequence6.Activities.Add(_flow.RESTActivityV24);
            _flow.Sequence6.Activities.Add(_flow.RESTActivityV25);
            _flow.RESTActivityV24.TextBody                = @"";
            _flow.RESTActivityV24.TextXmlBody             = @"";
            _flow.RESTActivityV24.FileBody                = @"";
            _flow.RESTActivityV24.PostBody                = @"";
            _flow.RESTActivityV24.Url                     = @"http://*****:*****@"GET";
            _flow.RESTActivityV24.HttpVersion             = @"1.1";
            _flow.RESTActivityV24.RequestHeaders          = new Pair <string, string> [2];
            _flow.RESTActivityV24.RequestHeaders[0]       = new Pair <string, string>();
            _flow.RESTActivityV24.RequestHeaders[0].Key   = @"Accept";
            _flow.RESTActivityV24.RequestHeaders[0].Value = @"application/xml";
            _flow.RESTActivityV24.RequestHeaders[1]       = new Pair <string, string>();
            _flow.RESTActivityV24.RequestHeaders[1].Key   = @"Content-Type";
            _flow.RESTActivityV24.RequestHeaders[1].Value = @"text/xml";
            _flow.RESTActivityV24.Input.DepartureCity     = @"";
            _flow.RESTActivityV24.Input.ArrivalCity       = @"";
            _flow.RESTActivityV24.Input.Date              = new DateTime(1, 1, 1, 0, 0, 0, 0);
            _flow.RESTActivityV24.Comment                 = @"";
            _flow.RESTActivityV24.IconPath                = @"AddIns\ServiceTest\REST\ictb_REST_Method_16.png";
            _flow.RESTActivityV24.RequestBodyType         = @"Xml";
            _flow.RESTActivityV24.ResponseType            = @"Xml";
            _flow.RESTActivityV24.Name                    = @"GetFlights4";
            _flow.RESTActivityV24.Proxy.Server            = @"";
            _flow.RESTActivityV24.Proxy.Username          = @"";
            _flow.RESTActivityV24.Proxy.Password          = @"";
            _flow.RESTActivityV24.Authentication.Username = @"";
            _flow.RESTActivityV24.Authentication.Password = @"";
            _flow.RESTActivityV24.Authentication.PreemptiveAuthentication = false;
            _flow.RESTActivityV24.ConnectionType                    = @"Keep-Alive";
            _flow.RESTActivityV24.Timeout                           = (int)99999;
            _flow.RESTActivityV24.ClientCertificate.Password        = @"";
            _flow.RESTActivityV24.ClientCertificate.FileSystem.Path = @"";
            _flow.RESTActivityV24.UseClientCertificate              = false;
            _flow.RESTActivityV24.MaximumAutomaticRedirections      = (int)3;
            _flow.RESTActivityV24.AllowRedirections                 = true;
            _flow.RESTActivityV24.ReuseCookies                      = false;
            _flow.RESTActivityV24.ExpectServerError                 = false;
            _flow.RESTActivityV24.HanaRequest                       = false;
            XmlDocument RESTActivityV24_XMLBody_Document = new XmlDocument();

            RESTActivityV24_XMLBody_Document.PreserveWhitespace = true;
            RESTActivityV24_XMLBody_Document.LoadXml("<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.RESTActivityV24.XMLBody = RESTActivityV24_XMLBody_Document;
            XmlDocument RESTActivityV24_RequestMultipartInfoXml_Document = new XmlDocument();

            RESTActivityV24_RequestMultipartInfoXml_Document.PreserveWhitespace = true;
            RESTActivityV24_RequestMultipartInfoXml_Document.LoadXml(
                @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>");
            _flow.RESTActivityV24.RequestMultipartInfoXml = RESTActivityV24_RequestMultipartInfoXml_Document;
            _flow.RESTActivityV24.Multipart           = false;
            _flow.RESTActivityV24.Input.DepartureCity = @"";
            _flow.RESTActivityV24.Input.ArrivalCity   = @"";
            _flow.RESTActivityV24.Input.Date          = new DateTime(1, 1, 1, 0, 0, 0, 0);
            _flow.RESTActivityV24.Input.DepartureCity = @"";
            _flow.RESTActivityV24.Input.ArrivalCity   = @"";
            _flow.RESTActivityV24.Input.Date          = new DateTime(1, 1, 1, 0, 0, 0, 0);
            VTDPropertyInfoBase pi17            = new VTDPropertyInfoBase("Input.DepartureCity");
            VTDBaseGetter       binding_getter9 = new VTDObjectGetter(pi17);
            VTDPropertyInfoBase pi18            = new VTDPropertyInfoBase("Url");
            VTDBaseSetter       binding_setter9 = new VTDObjectSetter(pi18);

            binding_setter9 = new StringFormaterDecorator(binding_setter9, "{Step.RESTInputProperties.RESTActivityV24.DepartureCity}");
            bind_dir9       = new BindDirection(_flow.RESTActivityV24, binding_getter9, binding_setter9, BindTargetType.ToInProperty);
            _flow.RESTActivityV24.InDirections.Add(bind_dir9);
            VTDPropertyInfoBase pi19             = new VTDPropertyInfoBase("Input.ArrivalCity");
            VTDBaseGetter       binding_getter10 = new VTDObjectGetter(pi19);
            VTDPropertyInfoBase pi20             = new VTDPropertyInfoBase("Url");
            VTDBaseSetter       binding_setter10 = new VTDObjectSetter(pi20);

            binding_setter10 = new StringFormaterDecorator(binding_setter10, "{Step.RESTInputProperties.RESTActivityV24.ArrivalCity}");
            bind_dir10       = new BindDirection(_flow.RESTActivityV24, binding_getter10, binding_setter10, BindTargetType.ToInProperty);
            _flow.RESTActivityV24.InDirections.Add(bind_dir10);
            VTDPropertyInfoBase pi21             = new VTDPropertyInfoBase("Input.Date");
            VTDBaseGetter       binding_getter11 = new VTDObjectGetter(pi21);
            VTDPropertyInfoBase pi22             = new VTDPropertyInfoBase("Url");
            VTDBaseSetter       binding_setter11 = new VTDObjectSetter(pi22);

            binding_setter11 = new StringFormaterDecorator(binding_setter11, "{Step.RESTInputProperties.RESTActivityV24.Date}");
            bind_dir11       = new BindDirection(_flow.RESTActivityV24, binding_getter11, binding_setter11, BindTargetType.ToInProperty);
            _flow.RESTActivityV24.InDirections.Add(bind_dir11);
            XmlDocument RESTActivityV24_ExpectedResponseXmlBody_Document = new XmlDocument();

            RESTActivityV24_ExpectedResponseXmlBody_Document.PreserveWhitespace = true;
            RESTActivityV24_ExpectedResponseXmlBody_Document.LoadXml(
                @"<ArrayOfFlight xmlns=""HP.SOAQ.SampleApp"" xmlns:i=""http://www.w3.org/2001/XMLSchema-instance"">
 <Flight>
   <Airlines>AA</Airlines>
   <ArrivalCity>Denver</ArrivalCity> 
   <ArrivalTime>01:23 PM</ArrivalTime> 
   <DepartureCity>London</DepartureCity> 
   <DepartureTime>06:12 AM</DepartureTime> 
   <FlightNumber>20279</FlightNumber> 
   <Price>112.2</Price>
 </Flight>
</ArrayOfFlight>");
            _flow.RESTActivityV24.ExpectedResponseXmlBody = RESTActivityV24_ExpectedResponseXmlBody_Document;
            XmlDocument RESTActivityV24_ExpectedResponseJsonBody_Document = new XmlDocument();

            RESTActivityV24_ExpectedResponseJsonBody_Document.PreserveWhitespace = true;
            RESTActivityV24_ExpectedResponseJsonBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.RESTActivityV24.ExpectedResponseJsonBody = RESTActivityV24_ExpectedResponseJsonBody_Document;
            XmlDocument RESTActivityV24_ExpectedOutputProperties_Document = new XmlDocument();

            RESTActivityV24_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            RESTActivityV24_ExpectedOutputProperties_Document.LoadXml(
                @"<Arguments><ResponseHttpVersion></ResponseHttpVersion><StatusCode></StatusCode><StatusDescription></StatusDescription><ResponseBody></ResponseBody><ResponseBodyAsBase64></ResponseBodyAsBase64></Arguments>");
            _flow.RESTActivityV24.ExpectedOutputProperties = RESTActivityV24_ExpectedOutputProperties_Document;
            _flow.RESTActivityV25.TextBody                = @"";
            _flow.RESTActivityV25.TextXmlBody             = @"";
            _flow.RESTActivityV25.FileBody                = @"";
            _flow.RESTActivityV25.PostBody                = @"";
            _flow.RESTActivityV25.Url                     = @"http://*****:*****@"POST";
            _flow.RESTActivityV25.HttpVersion             = @"1.1";
            _flow.RESTActivityV25.RequestHeaders          = new Pair <string, string> [1];
            _flow.RESTActivityV25.RequestHeaders[0]       = new Pair <string, string>();
            _flow.RESTActivityV25.RequestHeaders[0].Key   = @"Content-Type";
            _flow.RESTActivityV25.RequestHeaders[0].Value = @"text/xml";
            _flow.RESTActivityV25.Comment                 = @"";
            _flow.RESTActivityV25.IconPath                = @"AddIns\ServiceTest\REST\ictb_REST_Method_16.png";
            _flow.RESTActivityV25.RequestBodyType         = @"Xml";
            _flow.RESTActivityV25.ResponseType            = @"Xml";
            _flow.RESTActivityV25.Name                    = @"ReserveOrder5";
            _flow.RESTActivityV25.Proxy.Server            = @"";
            _flow.RESTActivityV25.Proxy.Username          = @"";
            _flow.RESTActivityV25.Proxy.Password          = @"";
            _flow.RESTActivityV25.Authentication.Username = @"";
            _flow.RESTActivityV25.Authentication.Password = @"";
            _flow.RESTActivityV25.Authentication.PreemptiveAuthentication = false;
            _flow.RESTActivityV25.ConnectionType                    = @"Keep-Alive";
            _flow.RESTActivityV25.Timeout                           = (int)100000;
            _flow.RESTActivityV25.ClientCertificate.Password        = @"";
            _flow.RESTActivityV25.ClientCertificate.FileSystem.Path = @"";
            _flow.RESTActivityV25.UseClientCertificate              = false;
            _flow.RESTActivityV25.MaximumAutomaticRedirections      = (int)3;
            _flow.RESTActivityV25.AllowRedirections                 = true;
            _flow.RESTActivityV25.ReuseCookies                      = false;
            _flow.RESTActivityV25.ExpectServerError                 = false;
            _flow.RESTActivityV25.HanaRequest                       = false;
            XmlDocument RESTActivityV25_XMLBody_Document = new XmlDocument();

            RESTActivityV25_XMLBody_Document.PreserveWhitespace = true;
            RESTActivityV25_XMLBody_Document.LoadXml(
                @"<?xml version=""1.0"" encoding=""utf-8""?>
<FlightOrderDetails xmlns=""HP.SOAQ.SampleApp"">
 <Class></Class>
 <CustomerName></CustomerName>
 <DepartureDate></DepartureDate>
 <FlightNumber>{Step.ResponseXmlBody.RESTActivityV24.Flight.FlightNumber}</FlightNumber>
 <NumberOfTickets></NumberOfTickets>
</FlightOrderDetails>");
            _flow.RESTActivityV25.XMLBody = RESTActivityV25_XMLBody_Document;
            XmlDocument RESTActivityV25_RequestMultipartInfoXml_Document = new XmlDocument();

            RESTActivityV25_RequestMultipartInfoXml_Document.PreserveWhitespace = true;
            RESTActivityV25_RequestMultipartInfoXml_Document.LoadXml(
                @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>");
            _flow.RESTActivityV25.RequestMultipartInfoXml = RESTActivityV25_RequestMultipartInfoXml_Document;
            _flow.RESTActivityV25.Multipart = false;
            VTDPropertyInfoBase pi23             = new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='ArrayOfFlight'][1]/*[local-name(.)='Flight'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseGetter       binding_getter12 = new VTDXPathGetter(pi23, XmlTypeCode.UnsignedShort);
            VTDPropertyInfoBase pi24             = new VTDPropertyInfoBase("XMLBody", "/*[local-name(.)='FlightOrderDetails'][1]/*[local-name(.)='FlightNumber'][1]");
            VTDBaseSetter       binding_setter12 = new VTDXPathSetter(pi24, XmlTypeCode.UnsignedShort);

            bind_dir12 = new BindDirection(_flow.RESTActivityV24, binding_getter12, binding_setter12, BindTargetType.ToInProperty);
            _flow.RESTActivityV25.InDirections.Add(bind_dir12);
            XmlDocument RESTActivityV25_ExpectedResponseXmlBody_Document = new XmlDocument();

            RESTActivityV25_ExpectedResponseXmlBody_Document.PreserveWhitespace = true;
            RESTActivityV25_ExpectedResponseXmlBody_Document.LoadXml(
                @"<?xml version=""1.0""?>
<CreatedOrderParams xmlns:i=""http://www.w3.org/2001/XMLSchema-instance"" xmlns=""HP.SOAQ.SampleApp"">
	<OrderNumber>10</OrderNumber> 
	<TotalPrice>2000</TotalPrice> 
</CreatedOrderParams>");
            _flow.RESTActivityV25.ExpectedResponseXmlBody = RESTActivityV25_ExpectedResponseXmlBody_Document;
            XmlDocument RESTActivityV25_ExpectedResponseJsonBody_Document = new XmlDocument();

            RESTActivityV25_ExpectedResponseJsonBody_Document.PreserveWhitespace = true;
            RESTActivityV25_ExpectedResponseJsonBody_Document.LoadXml(
                @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />");
            _flow.RESTActivityV25.ExpectedResponseJsonBody = RESTActivityV25_ExpectedResponseJsonBody_Document;
            XmlDocument RESTActivityV25_ExpectedOutputProperties_Document = new XmlDocument();

            RESTActivityV25_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            RESTActivityV25_ExpectedOutputProperties_Document.LoadXml(
                @"<Arguments><ResponseHttpVersion></ResponseHttpVersion><StatusCode></StatusCode><StatusDescription></StatusDescription><ResponseBody></ResponseBody><ResponseBodyAsBase64></ResponseBodyAsBase64></Arguments>");
            _flow.RESTActivityV25.ExpectedOutputProperties = RESTActivityV25_ExpectedOutputProperties_Document;
            set_RESTActivityV25_checkpoints(_flow.RESTActivityV25);
        }
Ejemplo n.º 18
0
        internal void InitializeComponent()
        {
            this._context.SnapshotManager.EnableSnapshots    = false;
            this._context.PropertyBag["IsRunningInLodeMode"] = true;
            _userCode = new TestUserCode();
            _flow     = _userCode;
            LoadInput();
            this.Activities.Clear();
            _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.LoadRunnerDataCursor17        = new HP.ST.Ext.LoadRunnerRTAddin.LoadRunnerDataCursor(_context, "LoadRunnerDataCursor17");
            this.LoadRunnerDataCursor17_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.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _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";
            _flow.StartActivity1.TransactionWastedTime    += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            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.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _flow.Loop2.Activities.Add(this.LoadRunnerDataCursor17);
            _flow.Loop2.Activities.Add(_flow.Sequence12);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity15.Comment  = @"";
            _flow.DataExporterActivity15.IconPath = @"";
            _flow.DataExporterActivity15.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi73             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter37 = new VTDObjectGetter(pi73);
            VTDPropertyInfoBase pi74             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter37 = new VTDObjectSetter(pi74);

            binding_setter37 = new StringFormaterDecorator(binding_setter37, "{Step.DataFetchActivity13.OutTable}");
            bind_dir37       = new BindDirection(_flow.DataFetchActivity13, binding_getter37, binding_setter37, BindTargetType.ToInProperty);
            _flow.DataExporterActivity15.InDirections.Add(bind_dir37);
            this.Activities.Add(_flow.DataExporterActivity15);
            _flow.DataExporterCloseActivity16.Comment  = @"";
            _flow.DataExporterCloseActivity16.IconPath = @"";
            _flow.DataExporterCloseActivity16.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            this.Activities.Add(_flow.DataExporterCloseActivity16);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            _flow.EndActivity3.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            this.Activities.Add(_flow.EndActivity3);
            _flow.DataDisconnectActivity14.Comment  = @"";
            _flow.DataDisconnectActivity14.IconPath = @"";
            _flow.DataDisconnectActivity14.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi75             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter38 = new VTDObjectGetter(pi75);
            VTDPropertyInfoBase pi76             = new VTDPropertyInfoBase("Data");
            VTDBaseSetter       binding_setter38 = new VTDObjectSetter(pi76);

            binding_setter38 = new StringFormaterDecorator(binding_setter38, "{Step.DataFetchActivity13.OutTable}");
            bind_dir38       = new BindDirection(_flow.DataFetchActivity13, binding_getter38, binding_setter38, BindTargetType.ToInProperty);
            _flow.DataDisconnectActivity14.InDirections.Add(bind_dir38);
            this.Activities.Add(_flow.DataDisconnectActivity14);
            this.LoadRunnerDataCursor17.Comment  = @"";
            this.LoadRunnerDataCursor17.IconPath = @"";
            this.LoadRunnerDataCursor17.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi77             = new VTDPropertyInfoBase("OutTable");
            VTDBaseGetter       binding_getter39 = new VTDObjectGetter(pi77);
            VTDPropertyInfoBase pi78             = new VTDPropertyInfoBase("InTable");
            VTDBaseSetter       binding_setter39 = new VTDObjectSetter(pi78);

            binding_setter39 = new StringFormaterDecorator(binding_setter39, "{Step.DataFetchActivity13.OutTable}");
            bind_dir39       = new BindDirection(_flow.DataFetchActivity13, binding_getter39, binding_setter39, BindTargetType.ToInProperty);
            this.LoadRunnerDataCursor17.InDirections.Add(bind_dir39);
            this.LoadRunnerDataCursor17_Policy.StartPosition         = CursorStartPosition.FirstRecord;
            this.LoadRunnerDataCursor17_Policy.StartAtSpecificRow    = 1;
            this.LoadRunnerDataCursor17_Policy.EndPosition           = CursorEndPosition.LastRecord;
            this.LoadRunnerDataCursor17_Policy.EndAtSpecificRow      = 2;
            this.LoadRunnerDataCursor17_Policy.StepType              = CursorStepType.Forward;
            this.LoadRunnerDataCursor17_Policy.StepSize              = 1;
            this.LoadRunnerDataCursor17_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound;
            this.LoadRunnerDataCursor17.Policy         = this.LoadRunnerDataCursor17_Policy;
            this.LoadRunnerDataCursor17.ReportStepData = true;
            _flow.Loop2.BeforeExecuteStepEvent        += this.LoadRunnerDataCursor17.ResetCursor;
            _flow.Sequence12.Comment  = @"";
            _flow.Sequence12.IconPath = @"";
            _flow.Sequence12.Name     = @"Sequence12";
            _flow.Sequence12.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            _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;
            _flow.StServiceCallActivity7.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity7.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity7.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi79             = new VTDPropertyInfoBase("SSN");
            VTDBaseGetter       binding_getter40 = new VTDObjectGetter(pi79);
            VTDPropertyInfoBase pi80             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='memberSearch'][1]/*[local-name(.)='socialSecurityNumber'][1]");
            VTDBaseSetter       binding_setter40 = new VTDXPathSetter(pi80, XmlTypeCode.String);

            binding_setter40 = new StringFormaterDecorator(binding_setter40, "{DataSource.Members.SSN}");
            bind_dir40       = new BindDirection(this.LoadRunnerDataCursor17, binding_getter40, binding_setter40, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir40);
            VTDPropertyInfoBase pi81             = new VTDPropertyInfoBase("LastName");
            VTDBaseGetter       binding_getter41 = new VTDObjectGetter(pi81);
            VTDPropertyInfoBase pi82             = 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_setter41 = new VTDXPathSetter(pi82, XmlTypeCode.String);

            binding_setter41 = new StringFormaterDecorator(binding_setter41, "{DataSource.Members.LastName}");
            bind_dir41       = new BindDirection(this.LoadRunnerDataCursor17, binding_getter41, binding_setter41, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir41);
            VTDPropertyInfoBase pi83             = new VTDPropertyInfoBase("FirstName");
            VTDBaseGetter       binding_getter42 = new VTDObjectGetter(pi83);
            VTDPropertyInfoBase pi84             = 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_setter42 = new VTDXPathSetter(pi84, XmlTypeCode.String);

            binding_setter42 = new StringFormaterDecorator(binding_setter42, "{DataSource.Members.FirstName}");
            bind_dir42       = new BindDirection(this.LoadRunnerDataCursor17, binding_getter42, binding_setter42, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity7.InDirections.Add(bind_dir42);
            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;
            _flow.StServiceCallActivity6.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity6.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity6.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi85             = 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_getter43 = new VTDXPathGetter(pi85, XmlTypeCode.Long);

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

            bind_dir43 = new BindDirection(_flow.StServiceCallActivity7, binding_getter43, binding_setter43, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity6.InDirections.Add(bind_dir43);
            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;
            _flow.StServiceCallActivity5.StartStepEvent        += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionStart;
            _flow.StServiceCallActivity5.EndStepEvent          += HP.ST.Ext.WebServicesActivities.TransactionHandlers.TransactionEnd;
            _flow.StServiceCallActivity5.TransactionWastedTime += HP.ST.Fwk.RunTimeFWK.TransactionHandlers.TransactionWastedTime;
            VTDPropertyInfoBase pi87             = 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_getter44 = new VTDXPathGetter(pi87, XmlTypeCode.Long);

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

            bind_dir44 = new BindDirection(_flow.StServiceCallActivity7, binding_getter44, binding_setter44, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir44);
        }
Ejemplo n.º 19
0
        internal void InitializeComponent()
        {
            LoadInput();

            InitReport();

            InitializeEncryptionManagerValues();

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



            _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.EndActivity3                 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3");
            _flow.Sequence14                   = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence14");
            _flow.StServiceCallActivity5       = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity5");
            _flow.StServiceCallActivity11      = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity11");
            _flow.ReportMessageActivity12      = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity12");
            _flow.StServiceCallActivity13      = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity13");
            _flow.StartActivity1.Comment       = @"";
            _flow.StartActivity1.IconPath      = @"C:\Program Files (x86)\Hp\Unified Functional Testing\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           = @"C:\Program Files (x86)\Hp\Unified Functional Testing\AddIns\ServiceTest\BasicActivities\toolbox_loop.png";
            _flow.Loop2.Name = @"Test Flow";
            _flow.Loop2.Activities.Add(_flow.Sequence14);
            this.Activities.Add(_flow.Loop2);
            _flow.EndActivity3.Comment  = @"";
            _flow.EndActivity3.IconPath = @"C:\Program Files (x86)\Hp\Unified Functional Testing\AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png";
            _flow.EndActivity3.Name     = @"End";
            this.Activities.Add(_flow.EndActivity3);
            _flow.Sequence14.Comment  = @"";
            _flow.Sequence14.IconPath = @"";
            _flow.Sequence14.Name     = @"Sequence14";
            _flow.Sequence14.Activities.Add(_flow.StServiceCallActivity5);
            _flow.Sequence14.Activities.Add(_flow.StServiceCallActivity11);
            _flow.Sequence14.Activities.Add(_flow.ReportMessageActivity12);
            _flow.Sequence14.Activities.Add(_flow.StServiceCallActivity13);
            XmlDocument StServiceCallActivity5_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity5_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity5_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>Denver</DepartureCity>
      <ArrivalCity>London</ArrivalCity><FlightDate>2017-03-23T00:00:00+05:30</FlightDate>
    </GetFlights>
  </Body>
</Envelope>");
            _flow.StServiceCallActivity5.InputEnvelope = StServiceCallActivity5_InputEnvelope_Document;
            _flow.StServiceCallActivity5.Comment       = @"";
            _flow.StServiceCallActivity5.IconPath      = @"C:\Program Files (x86)\Hp\Unified Functional Testing\AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity5.Name          = @"GetFlights";
            _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/GetFlights";
            _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            = @"GetFlights";
            _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/"" 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.StServiceCallActivity5.ExpectedOutputProperties = StServiceCallActivity5_ExpectedOutputProperties_Document;
            set_StServiceCallActivity5_checkpoints(_flow.StServiceCallActivity5);
            XmlDocument StServiceCallActivity11_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity11_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity11_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>sss</CustomerName><DepartureDate>{Step.InputProperties.StServiceCallActivity5.Body.GetFlights.FlightDate}</DepartureDate><FlightNumber>20254</FlightNumber><NumberOfTickets>2</NumberOfTickets></FlightOrder></CreateFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity11.InputEnvelope = StServiceCallActivity11_InputEnvelope_Document;
            _flow.StServiceCallActivity11.Comment       = @"";
            _flow.StServiceCallActivity11.IconPath      = @"C:\Program Files (x86)\Hp\Unified Functional Testing\AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity11.Name          = @"CreateFlightOrder";
            _flow.StServiceCallActivity11.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity11.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity11.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity11.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/CreateFlightOrder";
            _flow.StServiceCallActivity11.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity11.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity11.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity11.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity11.Operation            = @"CreateFlightOrder";
            _flow.StServiceCallActivity11.IsOneWay             = false;
            _flow.StServiceCallActivity11.SendRequestToService = true;
            _flow.StServiceCallActivity11.FaultExpected        = false;
            _flow.StServiceCallActivity11.IsAsync              = false;
            _flow.StServiceCallActivity11.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity11.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi24             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='FlightDate'][1]");
            VTDBaseGetter       binding_getter14 = new VTDXPathGetter(pi24, XmlTypeCode.DateTime);
            VTDPropertyInfoBase pi25             = 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_setter11 = new VTDXPathSetter(pi25, XmlTypeCode.DateTime);

            bind_dir11 = new BindDirection(_flow.StServiceCallActivity5, binding_getter14, binding_setter11, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity11.InDirections.Add(bind_dir11);
            XmlDocument StServiceCallActivity11_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity11_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity11_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity11.ExpectedOutputAttachments = StServiceCallActivity11_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity11_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity11_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity11_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.StServiceCallActivity11.ExpectedFaultProperties = StServiceCallActivity11_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity11_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity11_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity11_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><CreateFlightOrderResponse xmlns=""HP.SOAQ.SampleApp""><CreateFlightOrderResult><OrderNumber /></CreateFlightOrderResult></CreateFlightOrderResponse></Body></Envelope>");
            _flow.StServiceCallActivity11.ExpectedOutputProperties = StServiceCallActivity11_ExpectedOutputProperties_Document;
            set_StServiceCallActivity11_checkpoints(_flow.StServiceCallActivity11);
            _flow.ReportMessageActivity12.Status      = @"Done";
            _flow.ReportMessageActivity12.Message     = @"{Step.OutputProperties.StServiceCallActivity11.Body.CreateFlightOrderResponse.CreateFlightOrderResult.OrderNumber}";
            _flow.ReportMessageActivity12.Destination = @"ReportAndOutput";
            _flow.ReportMessageActivity12.Comment     = @"";
            _flow.ReportMessageActivity12.IconPath    = @"C:\Program Files (x86)\Hp\Unified Functional Testing\AddIns\ServiceTest\BasicActivities\toolbox_report_message.png";
            _flow.ReportMessageActivity12.Name        = @"Report Message12";
            VTDPropertyInfoBase pi26             = 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_getter15 = new VTDXPathGetter(pi26, XmlTypeCode.Int);
            VTDPropertyInfoBase pi27             = new VTDPropertyInfoBase("Message");
            VTDBaseSetter       binding_setter12 = new VTDObjectSetter(pi27);

            binding_setter12 = new StringFormaterDecorator(binding_setter12, "{Step.OutputProperties.StServiceCallActivity11.Body.CreateFlightOrderResponse.CreateFlightOrderResult.OrderNumber}");
            bind_dir12       = new BindDirection(_flow.StServiceCallActivity11, binding_getter15, binding_setter12, BindTargetType.ToInProperty);
            _flow.ReportMessageActivity12.InDirections.Add(bind_dir12);
            XmlDocument StServiceCallActivity13_InputEnvelope_Document = new XmlDocument();

            StServiceCallActivity13_InputEnvelope_Document.PreserveWhitespace = true;
            StServiceCallActivity13_InputEnvelope_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrder xmlns=""HP.SOAQ.SampleApp""><OrderNumber>{Step.OutputProperties.StServiceCallActivity11.Body.CreateFlightOrderResponse.CreateFlightOrderResult.OrderNumber}</OrderNumber></DeleteFlightOrder></Body></Envelope>");
            _flow.StServiceCallActivity13.InputEnvelope = StServiceCallActivity13_InputEnvelope_Document;
            _flow.StServiceCallActivity13.Comment       = @"";
            _flow.StServiceCallActivity13.IconPath      = @"C:\Program Files (x86)\Hp\Unified Functional Testing\AddIns\ServiceTest\WSImportTechnology\ictb_service_operations_16.png";
            _flow.StServiceCallActivity13.Name          = @"DeleteFlightOrder";
            _flow.StServiceCallActivity13.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity13.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://*****:*****@"{Step.GeneralProperties.StServiceCallActivity13.TransportProtocol.SOAPProperties.EndpointAddress}");
            _flow.StServiceCallActivity13.TransportProtocol.SOAPProperties.SoapAction      = @"HP.SOAQ.SampleApp/IFlightsSoapService/DeleteFlightOrder";
            _flow.StServiceCallActivity13.TransportProtocol.SOAPProperties.ContentType     = @"text/xml; charset=utf-8";
            _flow.StServiceCallActivity13.TransportProtocol.SOAPProperties.Timeout         = (int)100000;
            _flow.StServiceCallActivity13.Service              = @"HPFlights_Service";
            _flow.StServiceCallActivity13.Port                 = @"FlightsServiceMethods";
            _flow.StServiceCallActivity13.Operation            = @"DeleteFlightOrder";
            _flow.StServiceCallActivity13.IsOneWay             = false;
            _flow.StServiceCallActivity13.SendRequestToService = true;
            _flow.StServiceCallActivity13.FaultExpected        = false;
            _flow.StServiceCallActivity13.IsAsync              = false;
            _flow.StServiceCallActivity13.TargetNamespace      = @"http://tempuri.org/";
            _flow.StServiceCallActivity13.ListenOnPort         = (int)0;
            VTDPropertyInfoBase pi28             = 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_getter16 = new VTDXPathGetter(pi28, XmlTypeCode.Int);
            VTDPropertyInfoBase pi29             = new VTDPropertyInfoBase("InputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='DeleteFlightOrder'][1]/*[local-name(.)='OrderNumber'][1]");
            VTDBaseSetter       binding_setter13 = new VTDXPathSetter(pi29, XmlTypeCode.Int);

            bind_dir13 = new BindDirection(_flow.StServiceCallActivity11, binding_getter16, binding_setter13, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity13.InDirections.Add(bind_dir13);
            XmlDocument StServiceCallActivity13_ExpectedOutputAttachments_Document = new XmlDocument();

            StServiceCallActivity13_ExpectedOutputAttachments_Document.PreserveWhitespace = true;
            StServiceCallActivity13_ExpectedOutputAttachments_Document.LoadXml(
                @"<OutputAttachments />");
            _flow.StServiceCallActivity13.ExpectedOutputAttachments = StServiceCallActivity13_ExpectedOutputAttachments_Document;
            XmlDocument StServiceCallActivity13_ExpectedFaultProperties_Document = new XmlDocument();

            StServiceCallActivity13_ExpectedFaultProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity13_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.StServiceCallActivity13.ExpectedFaultProperties = StServiceCallActivity13_ExpectedFaultProperties_Document;
            XmlDocument StServiceCallActivity13_ExpectedOutputProperties_Document = new XmlDocument();

            StServiceCallActivity13_ExpectedOutputProperties_Document.PreserveWhitespace = true;
            StServiceCallActivity13_ExpectedOutputProperties_Document.LoadXml(
                @"<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/""><Body><DeleteFlightOrderResponse xmlns=""HP.SOAQ.SampleApp"" /></Body></Envelope>");
            _flow.StServiceCallActivity13.ExpectedOutputProperties = StServiceCallActivity13_ExpectedOutputProperties_Document;
            set_StServiceCallActivity13_checkpoints(_flow.StServiceCallActivity13);
        }
Ejemplo n.º 20
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";
        }
Ejemplo n.º 21
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");
            _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>0c26e684-c05b-4462-9174-a1c61fa223da</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>CustomerName</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,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>Joe^Harry</Value></QueryParameter></QueryParametersContainer></Arguments>";

            DataFetchActivity7_QueryParameters_Document.LoadXml(xmlDataFetchActivity7Params);
            _flow.DataFetchActivity7.QueryParameters = DataFetchActivity7_QueryParameters_Document;
            _flow.dataSourceNameToDataSource.Add("CustomerName", _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  = @"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(_flow.Sequence6);
            this.Activities.Add(_flow.Loop2);
            _flow.DataExporterActivity9.Comment  = @"";
            _flow.DataExporterActivity9.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.DataFetchActivity7.OutTable}");
            bind_dir3       = new BindDirection(_flow.DataFetchActivity7, binding_getter3, binding_setter3, BindTargetType.ToInProperty);
            _flow.DataExporterActivity9.InDirections.Add(bind_dir3);
            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 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.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/"" xmlns:p1=""http://www.w3.org/2001/XMLSchema-instance""><Body><GetFlightOrders xmlns=""HP.SOAQ.SampleApp""><FlightsDetails><OrderNumber>96</OrderNumber></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;
            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);
            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 pi9             = 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_getter5 = new VTDXPathGetter(pi9, XmlTypeCode.Int);

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

            bind_dir5 = new BindDirection(_flow.StServiceCallActivity4, binding_getter5, binding_setter5, BindTargetType.ToInProperty);
            _flow.StServiceCallActivity5.InDirections.Add(bind_dir5);
            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;
            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);
        }