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.ConcatenateStringsActivity4 = new HP.ST.Ext.BasicActivities.ConcatenateStringsActivity(_context, "ConcatenateStringsActivity4"); _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); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; this.Activities.Add(_flow.EndActivity3); _flow.Sequence5.Comment = @""; _flow.Sequence5.IconPath = @""; _flow.Sequence5.Name = @"Sequence5"; _flow.Sequence5.Activities.Add(_flow.ConcatenateStringsActivity4); _flow.ConcatenateStringsActivity4.Prefix = @"Hey"; _flow.ConcatenateStringsActivity4.Suffix = @"Bye"; _flow.ConcatenateStringsActivity4.Comment = @""; _flow.ConcatenateStringsActivity4.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_concat.png"; _flow.ConcatenateStringsActivity4.Name = @"Concatenate Strings4"; set_ConcatenateStringsActivity4_checkpoints(_flow.ConcatenateStringsActivity4); }
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.Sequence4 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence4"); _flow.StartActivity1.Comment = @""; _flow.StartActivity1.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.StartActivity1.Name = @"Start"; this.Activities.Add(_flow.StartActivity1); _flow.Loop2.ConditionAsString = @"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.Sequence4); 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.Sequence4.Comment = @""; _flow.Sequence4.IconPath = @""; _flow.Sequence4.Name = @"Sequence4"; }
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.HTTPActivity4 = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity4"); _flow.StartActivity1.Comment = @""; _flow.StartActivity1.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.StartActivity1.Name = @"Inicio"; _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 = @"Flujo de Prueba"; _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 = @"Fin"; this.Activities.Add(_flow.EndActivity3); _flow.Sequence6.Comment = @""; _flow.Sequence6.IconPath = @""; _flow.Sequence6.Name = @"Sequence6"; _flow.Sequence6.Activities.Add(_flow.HTTPActivity4); _flow.HTTPActivity4.TextBody = @""; _flow.HTTPActivity4.TextXmlBody = @""; _flow.HTTPActivity4.FileBody = @""; _flow.HTTPActivity4.PostBody = @""; _flow.HTTPActivity4.Url = @"https://api.biblia.com/v1/bible/content/LEB.html?passage=1Cor13:1-7&key=fd37d8f28e95d3be8cb4fbc37e15e18e"; _flow.HTTPActivity4.HttpMethod = @"GET"; _flow.HTTPActivity4.HttpVersion = @"1.1"; _flow.HTTPActivity4.Comment = @"Cambio 1" + Environment.NewLine + @"Cambio 2" + Environment.NewLine + @"Cambio 3" + Environment.NewLine + @"Cambio 4"; _flow.HTTPActivity4.IconPath = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png"; _flow.HTTPActivity4.RequestBodyType = @"Text"; _flow.HTTPActivity4.ResponseType = @"Text"; _flow.HTTPActivity4.Name = @"Solicitud HTTP4"; _flow.HTTPActivity4.Proxy.Server = @""; _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 = false; _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; 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( @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />"); _flow.HTTPActivity4.ExpectedResponseJsonBody = HTTPActivity4_ExpectedResponseJsonBody_Document; XmlDocument HTTPActivity4_ExpectedOutputProperties_Document = new XmlDocument(); HTTPActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true; HTTPActivity4_ExpectedOutputProperties_Document.LoadXml( @"<Arguments><ResponseHttpVersion /><StatusCode>200</StatusCode><StatusDescription></StatusDescription><ResponseBody>bears all <span style=""font-style:italic;"">things</span>, believes all <span style=""font-style:italic;"">things</span>, hopes all <span style=""font-style:italic;"">things</span>, endures all <span style=""font-style:italic;"">things</span>.</ResponseBody><ResponseBodyAsBase64 /></Arguments>"); _flow.HTTPActivity4.ExpectedOutputProperties = HTTPActivity4_ExpectedOutputProperties_Document; set_HTTPActivity4_checkpoints(_flow.HTTPActivity4); }
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); }
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.Sequence7 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence7"); _flow.HTTPActivity5 = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity5"); _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.Sequence7); 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.Sequence7.Comment = @""; _flow.Sequence7.IconPath = @""; _flow.Sequence7.Name = @"Sequence7"; _flow.Sequence7.Activities.Add(_flow.HTTPActivity5); _flow.HTTPActivity5.TextBody = @""; _flow.HTTPActivity5.TextXmlBody = @""; _flow.HTTPActivity5.FileBody = @""; _flow.HTTPActivity5.PostBody = @""; _flow.HTTPActivity5.Url = @"http://polls.apiblueprint.org/questions"; _flow.HTTPActivity5.HttpMethod = @"GET"; _flow.HTTPActivity5.HttpVersion = @"1.1"; _flow.HTTPActivity5.Comment = @""; _flow.HTTPActivity5.IconPath = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png"; _flow.HTTPActivity5.RequestBodyType = @"Text"; _flow.HTTPActivity5.ResponseType = @"Text"; _flow.HTTPActivity5.Name = @"HTTP Request5"; _flow.HTTPActivity5.Proxy.Server = @""; _flow.HTTPActivity5.Proxy.Username = @""; _flow.HTTPActivity5.Proxy.Password = @""; _flow.HTTPActivity5.Authentication.Username = @""; _flow.HTTPActivity5.Authentication.Password = @""; _flow.HTTPActivity5.Authentication.PreemptiveAuthentication = false; _flow.HTTPActivity5.ConnectionType = @"Keep-Alive"; _flow.HTTPActivity5.Timeout = (int)100000; _flow.HTTPActivity5.ClientCertificate.Password = @""; _flow.HTTPActivity5.ClientCertificate.FileSystem.Path = @""; _flow.HTTPActivity5.UseClientCertificate = false; _flow.HTTPActivity5.MaximumAutomaticRedirections = (int)3; _flow.HTTPActivity5.AllowRedirections = true; _flow.HTTPActivity5.ReuseCookies = false; _flow.HTTPActivity5.ExpectServerError = false; _flow.HTTPActivity5.HanaRequest = false; XmlDocument HTTPActivity5_XMLBody_Document = new XmlDocument(); HTTPActivity5_XMLBody_Document.PreserveWhitespace = true; HTTPActivity5_XMLBody_Document.LoadXml( @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />"); _flow.HTTPActivity5.XMLBody = HTTPActivity5_XMLBody_Document; XmlDocument HTTPActivity5_RequestMultipartInfoXml_Document = new XmlDocument(); HTTPActivity5_RequestMultipartInfoXml_Document.PreserveWhitespace = true; HTTPActivity5_RequestMultipartInfoXml_Document.LoadXml( @"<RequestMultipartInfo><Type>Related</Type></RequestMultipartInfo>"); _flow.HTTPActivity5.RequestMultipartInfoXml = HTTPActivity5_RequestMultipartInfoXml_Document; _flow.HTTPActivity5.Multipart = false; XmlDocument HTTPActivity5_ExpectedResponseXmlBody_Document = new XmlDocument(); HTTPActivity5_ExpectedResponseXmlBody_Document.PreserveWhitespace = true; HTTPActivity5_ExpectedResponseXmlBody_Document.LoadXml( @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />"); _flow.HTTPActivity5.ExpectedResponseXmlBody = HTTPActivity5_ExpectedResponseXmlBody_Document; XmlDocument HTTPActivity5_ExpectedResponseJsonBody_Document = new XmlDocument(); HTTPActivity5_ExpectedResponseJsonBody_Document.PreserveWhitespace = true; HTTPActivity5_ExpectedResponseJsonBody_Document.LoadXml( @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />"); _flow.HTTPActivity5.ExpectedResponseJsonBody = HTTPActivity5_ExpectedResponseJsonBody_Document; XmlDocument HTTPActivity5_ExpectedOutputProperties_Document = new XmlDocument(); HTTPActivity5_ExpectedOutputProperties_Document.PreserveWhitespace = true; HTTPActivity5_ExpectedOutputProperties_Document.LoadXml( @"<Arguments><ResponseHttpVersion /><StatusCode>200</StatusCode><StatusDescription /><ResponseBody /><ResponseBodyAsBase64 /></Arguments>"); _flow.HTTPActivity5.ExpectedOutputProperties = HTTPActivity5_ExpectedOutputProperties_Document; set_HTTPActivity5_checkpoints(_flow.HTTPActivity5); }
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); }
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); }
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.CallSTTest4 = new HP.ST.Ext.STRunnerActivity.RunSTActivity(_context, "CallSTTest4", false); _flow.CallQTPTest5 = new HP.ST.Ext.UFTActivity.QtpTestActivity(_context, "CallQTPTest5"); _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.CallSTTest4); _flow.Sequence6.Activities.Add(_flow.CallQTPTest5); _flow.CallSTTest4.Comment = @""; _flow.CallSTTest4.IconPath = @"AddIns\ServiceTest\STRunner\ictb_api_test_16x16.png"; _flow.CallSTTest4.Name = @"Call API Action or Test"; _flow.CallSTTest4.ScriptPath = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallSTTest4.ScriptPath}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallSTTest4.ScriptPath}"); _flow.CallSTTest4.ActionName = @""; _flow.CallSTTest4.ResultLocation = @"RunStReport\"; _flow.CallQTPTest5.Comment = @""; _flow.CallQTPTest5.IconPath = @"AddIns\ServiceTest\UFT\toolbox_qtp.png"; _flow.CallQTPTest5.Name = @"Call GUI Action or Test"; _flow.CallQTPTest5.ScriptPath = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.ScriptPath}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.ScriptPath}"); _flow.CallQTPTest5.ActionName = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.ActionName}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.ActionName}"); _flow.CallQTPTest5.Description = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.Description}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.Description}"); _flow.CallQTPTest5.IsActionSelected = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.IsActionSelected}")) ? @"False" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.IsActionSelected}"); _flow.CallQTPTest5.ResultLocation = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.ResultLocation}")) ? @"RunQTPReport\" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.ResultLocation}"); _flow.CallQTPTest5.QCScriptPath = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.QCScriptPath}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest5.QCScriptPath}"); }
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"); _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); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; 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><GetFlights xmlns=""HP.SOAQ.SampleApp""><DepartureCity>Denver</DepartureCity><ArrivalCity>Paris</ArrivalCity><FlightDate>2018-11-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 = @"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_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></DepartureTime><FlightNumber>15113</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); }
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); }
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"); _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); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; 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( @"<?xml version=""1.0"" encoding=""utf-8""?> <tns:Envelope xmlns:tns=""http://schemas.xmlsoap.org/soap/envelope/""> <tns:Body /> </tns:Envelope>"); _flow.StServiceCallActivity4.InputEnvelope = StServiceCallActivity4_InputEnvelope_Document; _flow.StServiceCallActivity4.Comment = @""; _flow.StServiceCallActivity4.IconPath = @"AddIns\ServiceTest\WSImportTechnology\toolbox_SOAP_request.png"; _flow.StServiceCallActivity4.Name = @"invokeWebService (RPC/Encoded)4"; _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://ecomt200.dev.qintra.com:7622/FulfillmentWFMDWWeb/MDWWebService" : _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 = @"MDWWebService"; _flow.StServiceCallActivity4.Port = @"MDWWebServicePort"; _flow.StServiceCallActivity4.Operation = @"invokeWebService"; _flow.StServiceCallActivity4.IsOneWay = false; _flow.StServiceCallActivity4.SendRequestToService = true; _flow.StServiceCallActivity4.FaultExpected = false; _flow.StServiceCallActivity4.IsAsync = false; _flow.StServiceCallActivity4.TargetNamespace = @"http://mdw.qwest.com/listener/webservice"; set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4); }
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); }
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.Sequence7 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence7"); _flow.CallQTPTest6 = new HP.ST.Ext.UFTActivity.QtpTestActivity(_context, "CallQTPTest6"); _flow.ReportMessageActivity5 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity5"); _flow.CodeActivity4 = new HP.ST.Ext.BasicActivities.CodeActivity <CodeActivity4Input, CodeActivity4Output>(_context, "CodeActivity4"); _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.BeforeExecution += _userCode.StartActivity1_OnBeforeExecution; 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.Sequence7); 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.Sequence7.Comment = @""; _flow.Sequence7.IconPath = @""; _flow.Sequence7.Name = @"Sequence7"; _flow.Sequence7.Activities.Add(_flow.CallQTPTest6); _flow.Sequence7.Activities.Add(_flow.ReportMessageActivity5); _flow.Sequence7.Activities.Add(_flow.CodeActivity4); _flow.CallQTPTest6.Comment = @""; _flow.CallQTPTest6.IconPath = @"AddIns\ServiceTest\UFT\toolbox_qtp.png"; _flow.CallQTPTest6.Name = @"GUITest7"; _flow.CallQTPTest6.ScriptPath = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.ScriptPath}")) ? @"..\GUITest7" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.ScriptPath}"); _flow.CallQTPTest6.ActionName = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.ActionName}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.ActionName}"); _flow.CallQTPTest6.Description = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.Description}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.Description}"); _flow.CallQTPTest6.IsActionSelected = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.IsActionSelected}")) ? @"True" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.IsActionSelected}"); _flow.CallQTPTest6.ResultLocation = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.ResultLocation}")) ? @"RunQTPReport\" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.ResultLocation}"); _flow.CallQTPTest6.QCScriptPath = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.QCScriptPath}")) ? @"" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.CallQTPTest6.QCScriptPath}"); _flow.ReportMessageActivity5.Status = @"Done"; _flow.ReportMessageActivity5.Message = @"ssss"; _flow.ReportMessageActivity5.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity5.Comment = @""; _flow.ReportMessageActivity5.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity5.Name = @"Report Message5"; _flow.CodeActivity4.Comment = @""; _flow.CodeActivity4.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.CodeActivity4.Name = @"Custom Code4"; _flow.CodeActivity4.ExecuteEvent += _userCode.CodeActivity4_OnExecuteEvent; }
internal void InitializeComponent() { LoadInput(); InitReport(); InitializeEncryptionManagerValues(); _userCode = new TestUserCode(); _flow = _userCode; _flow.Context = this._context; _flow.DataFetchActivity10 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity10"); _flow.DataFetchActivity7 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity7"); _flow.StartActivity1 = new HP.ST.Ext.BasicActivities.StartActivity(_context, "StartActivity1"); _flow.Loop2 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop2Input>(_context, "Loop2", LoopType.ForEach); _flow.DataExporterActivity9 = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity9"); _flow.DataExporterActivity12 = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity12"); _flow.DataExporterCloseActivity13 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity13"); _flow.EndActivity3 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3"); _flow.DataDisconnectActivity8 = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity8"); _flow.DataDisconnectActivity11 = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity11"); this.DataCursorActivity14 = new HP.ST.Ext.BasicActivities.DataCursorActivity(_context, "DataCursorActivity14"); this.DataCursorActivity14_Policy = new HP.ST.Fwk.SOAReplayAPI.DataHandling.CursorMovementPolicy(); _flow.RelatedDataFetchActivity15 = new HP.ST.Ext.BasicActivities.RelatedDataFetchActivity(_context, "RelatedDataFetchActivity15"); _flow.Sequence6 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence6"); _flow.ReplaceStringActivity4 = new HP.ST.Ext.BasicActivities.ReplaceStringActivity(_context, "ReplaceStringActivity4"); _flow.ConcatenateStringsActivity5 = new HP.ST.Ext.BasicActivities.ConcatenateStringsActivity(_context, "ConcatenateStringsActivity5"); _flow.DataFetchActivity10.Comment = @""; _flow.DataFetchActivity10.IconPath = @""; _flow.DataFetchActivity10.AssemblyPath = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll"; _flow.DataFetchActivity10.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery"; XmlDocument DataFetchActivity10_QueryParameters_Document = new XmlDocument(); DataFetchActivity10_QueryParameters_Document.PreserveWhitespace = true; string xmlDataFetchActivity10Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>33f9fef4-2191-4419-a8fe-47c2a6aa8713</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>SearchReplaceString$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>"; DataFetchActivity10_QueryParameters_Document.LoadXml(xmlDataFetchActivity10Params); _flow.DataFetchActivity10.QueryParameters = DataFetchActivity10_QueryParameters_Document; _flow.dataSourceNameToDataSource.Add("Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString", _flow.DataFetchActivity10); this.Activities.Add(_flow.DataFetchActivity10); _flow.DataFetchActivity7.Comment = @""; _flow.DataFetchActivity7.IconPath = @""; _flow.DataFetchActivity7.AssemblyPath = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll"; _flow.DataFetchActivity7.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery"; XmlDocument DataFetchActivity7_QueryParameters_Document = new XmlDocument(); DataFetchActivity7_QueryParameters_Document.PreserveWhitespace = true; string xmlDataFetchActivity7Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>025b403c-788c-49e8-9b72-fa7da23c772d</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>MainDetails$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>"; DataFetchActivity7_QueryParameters_Document.LoadXml(xmlDataFetchActivity7Params); _flow.DataFetchActivity7.QueryParameters = DataFetchActivity7_QueryParameters_Document; _flow.dataSourceNameToDataSource.Add("Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails", _flow.DataFetchActivity7); this.Activities.Add(_flow.DataFetchActivity7); _flow.StartActivity1.Comment = @""; _flow.StartActivity1.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.StartActivity1.Name = @"Start"; _flow.StartActivity1.JVM = new HP.ST.Ext.BasicActivities.JVMProperties(); _flow.StartActivity1.IsJavaUsed = false; _flow.StartActivity1.JVM.Classpath = @"%CLASSPATH%"; _flow.StartActivity1.JVM.AdditionalVMParameters = @""; _flow.StartActivity1.JMS = new HP.ST.Ext.BasicActivities.JMSProperties(); _flow.StartActivity1.IsJmsUsed = false; _flow.StartActivity1.JMS.JNDIContextFactory = @"<Select...>"; _flow.StartActivity1.JMS.JNDIProviderUrl = @""; _flow.StartActivity1.JMS.JMSConnectionFactory = @""; _flow.StartActivity1.JMS.SecurityPrincipal = @""; _flow.StartActivity1.JMS.SecurityCredentials = @""; _flow.StartActivity1.JMS.ConnectionsPerProcess = @"1"; _flow.StartActivity1.JMS.TimeoutOptions = @"DN_User_defined_Timeout"; _flow.StartActivity1.JMS.UserTimeout = @"20"; _flow.StartActivity1.JMS.GenerateAutoSelector = @"No"; this.Activities.Add(_flow.StartActivity1); _flow.Loop2.ConditionAsString = @"For each item in {DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails}"; _flow.Loop2.NumberOfIterations = (int)1; _flow.Loop2.Condition += delegate(object sender, STActivityBaseEventArgs e) { return(!DataCursorActivity14.IsAtEndPosition); }; _flow.Loop2.Comment = @""; _flow.Loop2.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png"; _flow.Loop2.Name = @"Test Flow"; _flow.Loop2.Activities.Add(this.DataCursorActivity14); _flow.Loop2.Activities.Add(_flow.RelatedDataFetchActivity15); _flow.Loop2.Activities.Add(_flow.Sequence6); this.Activities.Add(_flow.Loop2); _flow.DataExporterActivity9.Comment = @""; _flow.DataExporterActivity9.IconPath = @""; VTDPropertyInfoBase pi3 = new VTDPropertyInfoBase("OutTable"); VTDBaseGetter binding_getter2 = new VTDObjectGetter(pi3); VTDPropertyInfoBase pi4 = new VTDPropertyInfoBase("Data"); VTDBaseSetter binding_setter2 = new VTDObjectSetter(pi4); binding_setter2 = new StringFormaterDecorator(binding_setter2, "{Step.DataFetchActivity7.OutTable}"); bind_dir2 = new BindDirection(_flow.DataFetchActivity7, binding_getter2, binding_setter2, BindTargetType.ToInProperty); _flow.DataExporterActivity9.InDirections.Add(bind_dir2); this.Activities.Add(_flow.DataExporterActivity9); _flow.DataExporterActivity12.Comment = @""; _flow.DataExporterActivity12.IconPath = @""; VTDPropertyInfoBase pi5 = new VTDPropertyInfoBase("OutTable"); VTDBaseGetter binding_getter3 = new VTDObjectGetter(pi5); VTDPropertyInfoBase pi6 = new VTDPropertyInfoBase("Data"); VTDBaseSetter binding_setter3 = new VTDObjectSetter(pi6); binding_setter3 = new StringFormaterDecorator(binding_setter3, "{Step.DataFetchActivity10.OutTable}"); bind_dir3 = new BindDirection(_flow.DataFetchActivity10, binding_getter3, binding_setter3, BindTargetType.ToInProperty); _flow.DataExporterActivity12.InDirections.Add(bind_dir3); this.Activities.Add(_flow.DataExporterActivity12); _flow.DataExporterCloseActivity13.Comment = @""; _flow.DataExporterCloseActivity13.IconPath = @""; this.Activities.Add(_flow.DataExporterCloseActivity13); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; this.Activities.Add(_flow.EndActivity3); _flow.DataDisconnectActivity8.Comment = @""; _flow.DataDisconnectActivity8.IconPath = @""; VTDPropertyInfoBase pi7 = new VTDPropertyInfoBase("OutTable"); VTDBaseGetter binding_getter4 = new VTDObjectGetter(pi7); VTDPropertyInfoBase pi8 = new VTDPropertyInfoBase("Data"); VTDBaseSetter binding_setter4 = new VTDObjectSetter(pi8); binding_setter4 = new StringFormaterDecorator(binding_setter4, "{Step.DataFetchActivity7.OutTable}"); bind_dir4 = new BindDirection(_flow.DataFetchActivity7, binding_getter4, binding_setter4, BindTargetType.ToInProperty); _flow.DataDisconnectActivity8.InDirections.Add(bind_dir4); this.Activities.Add(_flow.DataDisconnectActivity8); _flow.DataDisconnectActivity11.Comment = @""; _flow.DataDisconnectActivity11.IconPath = @""; VTDPropertyInfoBase pi9 = new VTDPropertyInfoBase("OutTable"); VTDBaseGetter binding_getter5 = new VTDObjectGetter(pi9); VTDPropertyInfoBase pi10 = new VTDPropertyInfoBase("Data"); VTDBaseSetter binding_setter5 = new VTDObjectSetter(pi10); binding_setter5 = new StringFormaterDecorator(binding_setter5, "{Step.DataFetchActivity10.OutTable}"); bind_dir5 = new BindDirection(_flow.DataFetchActivity10, binding_getter5, binding_setter5, BindTargetType.ToInProperty); _flow.DataDisconnectActivity11.InDirections.Add(bind_dir5); this.Activities.Add(_flow.DataDisconnectActivity11); this.DataCursorActivity14.Comment = @""; this.DataCursorActivity14.IconPath = @""; VTDPropertyInfoBase pi11 = new VTDPropertyInfoBase("OutTable"); VTDBaseGetter binding_getter6 = new VTDObjectGetter(pi11); VTDPropertyInfoBase pi12 = new VTDPropertyInfoBase("InTable"); VTDBaseSetter binding_setter6 = new VTDObjectSetter(pi12); binding_setter6 = new StringFormaterDecorator(binding_setter6, "{Step.DataFetchActivity7.OutTable}"); bind_dir6 = new BindDirection(_flow.DataFetchActivity7, binding_getter6, binding_setter6, BindTargetType.ToInProperty); this.DataCursorActivity14.InDirections.Add(bind_dir6); this.DataCursorActivity14_Policy.StartPosition = CursorStartPosition.FirstRecord; this.DataCursorActivity14_Policy.StartAtSpecificRow = 1; this.DataCursorActivity14_Policy.StartCondition.ColumnName = ""; this.DataCursorActivity14_Policy.StartCondition.Comparison = ConditionOperator.Equal; this.DataCursorActivity14_Policy.StartCondition.Value = ""; this.DataCursorActivity14_Policy.EndPosition = CursorEndPosition.LastRecord; this.DataCursorActivity14_Policy.EndAtSpecificRow = 1; this.DataCursorActivity14_Policy.EndCondition.ColumnName = ""; this.DataCursorActivity14_Policy.EndCondition.Comparison = ConditionOperator.Equal; this.DataCursorActivity14_Policy.EndCondition.Value = ""; this.DataCursorActivity14_Policy.StepType = CursorStepType.Forward; this.DataCursorActivity14_Policy.StepSize = 1; this.DataCursorActivity14_Policy.ActionAfterLastRecord = CursorActionAfterLastRecord.Wraparound; this.DataCursorActivity14.Policy = this.DataCursorActivity14_Policy; this.DataCursorActivity14.ReportStepData = true; _flow.Loop2.BeforeExecuteStepEvent += this.DataCursorActivity14.ResetCursor; XmlDocument RelatedDataFetchActivity15_Relations_Document = new XmlDocument(); RelatedDataFetchActivity15_Relations_Document.PreserveWhitespace = true; RelatedDataFetchActivity15_Relations_Document.LoadXml( @"<RelationsContainer><Relation><PrimaryQuery>025b403c-788c-49e8-9b72-fa7da23c772d</PrimaryQuery><RelatedQuery>33f9fef4-2191-4419-a8fe-47c2a6aa8713</RelatedQuery><PrimaryKey>MainDetailsKey</PrimaryKey><ForeignKey>MainDetailsKey</ForeignKey></Relation></RelationsContainer>"); _flow.RelatedDataFetchActivity15.Relations = RelatedDataFetchActivity15_Relations_Document; string xmlRelatedDataFetchActivity15Params = @"<QueriesContainer><Query><AssemblyPath>C:\Program Files (x86)\HPE\Unified Functional Testing\AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll</AssemblyPath><QueryClassName>HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery</QueryClassName><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>025b403c-788c-49e8-9b72-fa7da23c772d</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.TablePath}") + @"</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>MainDetails$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Query><Query><AssemblyPath>C:\Program Files (x86)\HPE\Unified Functional Testing\AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll</AssemblyPath><QueryClassName>HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery</QueryClassName><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>33f9fef4-2191-4419-a8fe-47c2a6aa8713</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>False</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>Cambiar Texto_InputPropertiesOutputProperties_1</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.TablePath}") + @"</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>SearchReplaceString$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Query></QueriesContainer>"; XmlDocument RelatedDataFetchActivity15_Queries_Document = new XmlDocument(); RelatedDataFetchActivity15_Queries_Document.PreserveWhitespace = true; RelatedDataFetchActivity15_Queries_Document.LoadXml(xmlRelatedDataFetchActivity15Params); _flow.RelatedDataFetchActivity15.Queries = RelatedDataFetchActivity15_Queries_Document; VTDPropertyInfoBase pi13 = new VTDPropertyInfoBase("MainDetailsKey"); VTDBaseGetter binding_getter7 = new VTDObjectGetter(pi13); VTDPropertyInfoBase pi14 = new VTDPropertyInfoBase("025b403c-788c-49e8-9b72-fa7da23c772d_MainDetailsKey"); VTDBaseSetter binding_setter7 = new VTDObjectSetter(pi14); bind_dir7 = new BindDirection(this.DataCursorActivity14, binding_getter7, binding_setter7, BindTargetType.ToInProperty); _flow.RelatedDataFetchActivity15.InDirections.Add(bind_dir7); _flow.Sequence6.Comment = @""; _flow.Sequence6.IconPath = @""; _flow.Sequence6.Name = @"Sequence6"; _flow.Sequence6.Activities.Add(_flow.ReplaceStringActivity4); _flow.Sequence6.Activities.Add(_flow.ConcatenateStringsActivity5); _flow.ReplaceStringActivity4.SourceString = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}"; _flow.ReplaceStringActivity4.SearchReplaceString = new Pair <string, string> [1]; _flow.ReplaceStringActivity4.SearchReplaceString[0] = new Pair <string, string>(); _flow.ReplaceStringActivity4.SearchReplaceString[0].Key = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.Key}"; _flow.ReplaceStringActivity4.SearchReplaceString[0].Value = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!SearchReplaceString.Value}"; _flow.ReplaceStringActivity4.CaseSensitive = false; _flow.ReplaceStringActivity4.Comment = @""; _flow.ReplaceStringActivity4.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_replace_string.png"; _flow.ReplaceStringActivity4.Name = @"Cambiar Texto"; VTDPropertyInfoBase pi15 = new VTDPropertyInfoBase("SourceString"); VTDBaseGetter binding_getter8 = new VTDObjectGetter(pi15); VTDPropertyInfoBase pi16 = new VTDPropertyInfoBase("SourceString"); VTDBaseSetter binding_setter8 = new VTDObjectSetter(pi16); binding_setter8 = new StringFormaterDecorator(binding_setter8, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}"); bind_dir8 = new BindDirection(this.DataCursorActivity14, binding_getter8, binding_setter8, BindTargetType.ToInProperty); _flow.ReplaceStringActivity4.InDirections.Add(bind_dir8); VTDPropertyInfoBase pi17 = new VTDPropertyInfoBase("CaseSensitive"); VTDBaseGetter binding_getter9 = new VTDObjectGetter(pi17); VTDPropertyInfoBase pi18 = new VTDPropertyInfoBase("CaseSensitive"); VTDBaseSetter binding_setter9 = new VTDObjectSetter(pi18); bind_dir9 = new BindDirection(this.DataCursorActivity14, binding_getter9, binding_setter9, BindTargetType.ToInProperty); _flow.ReplaceStringActivity4.InDirections.Add(bind_dir9); List <DataLink> ReplaceStringActivity4_InputProperties_relatedDataLinks = new List <DataLink>(); ReplaceStringActivity4_InputProperties_relatedDataLinks.Add(new DataLink("33f9fef4-2191-4419-a8fe-47c2a6aa8713", "Value", "/Arguments[1]/SearchReplaceString[1]/SearchReplaceString[1][1]/Value[1]")); ReplaceStringActivity4_InputProperties_relatedDataLinks.Add(new DataLink("33f9fef4-2191-4419-a8fe-47c2a6aa8713", "Key", "/Arguments[1]/SearchReplaceString[1]/SearchReplaceString[1][1]/Key[1]")); string ReplaceStringActivity4_InputProperties_schema = @"<?xml version=""1.0"" encoding=""utf-16""?> <xs:schema xmlns:types=""http://hp.vtd.schemas/types/v1.0"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""> <xs:import schemaLocation=""../../../dat/schemas/Types.xsd"" namespace=""http://hp.vtd.schemas/types/v1.0"" /> <xs:element types:displayName=""Properties"" name=""Arguments""> <xs:complexType> <xs:sequence> <xs:element types:displayName=""Source string"" name=""SourceString"" type=""xs:string"" /> <xs:element types:displayCollectionName=""Search and Replace"" types:displayName=""Search and Replace Strings"" types:serialize=""none"" types:visible=""true"" types:argType=""xml"" minOccurs=""1"" maxOccurs=""unbounded"" name=""SearchReplaceString""> <xs:complexType> <xs:sequence> <xs:element types:displayName=""Search string"" name=""Key"" type=""xs:string"" /> <xs:element types:displayName=""Replace string"" name=""Value"" type=""xs:string"" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element types:displayName=""Case-sensitive"" default=""true"" name=""CaseSensitive"" type=""xs:boolean""> <xs:annotation> <xs:documentation>An indicator denoting if the search string is case-sensitive</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>"; VTDPropertyInfoBase pi19 = new VTDPropertyInfoBase("Value"); VTDPropertyInfoBase pi20 = new VTDPropertyInfoBase("SearchReplaceString[0].Value"); VTDBaseGetter binding_getter10 = new VTDObjectGetter(pi19); VTDBaseSetter binding_setter10 = new VTDDataSourceObjectSetter(pi20, ReplaceStringActivity4_InputProperties_schema, Path.Combine(_context.ScriptPath, @"Schemas"), ReplaceStringActivity4_InputProperties_relatedDataLinks); bind_dir10 = new BindDirection(_flow.RelatedDataFetchActivity15, binding_getter10, binding_setter10, BindTargetType.ToInProperty); _flow.ReplaceStringActivity4.InDirections.Add(bind_dir10); VTDPropertyInfoBase pi21 = new VTDPropertyInfoBase("Result"); VTDBaseGetter binding_getter11 = new VTDObjectGetter(pi21); VTDPropertyInfoBase pi22 = new VTDPropertyInfoBase("Result"); VTDBaseSetter binding_setter11 = new VTDCheckpointSetter(XmlTypeCode.String); binding_setter11 = new StringFormaterDecorator(binding_setter11, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}"); bind_dir11 = new BindDirection(this.DataCursorActivity14, binding_getter11, binding_setter11, BindTargetType.ToInProperty); set_ReplaceStringActivity4_checkpoints(_flow.ReplaceStringActivity4); _flow.ConcatenateStringsActivity5.Prefix = @"{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}"; _flow.ConcatenateStringsActivity5.Suffix = @" was replaced with {DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}"; _flow.ConcatenateStringsActivity5.Comment = @""; _flow.ConcatenateStringsActivity5.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_concat.png"; _flow.ConcatenateStringsActivity5.Name = @"Concatenar Texto"; VTDPropertyInfoBase pi23 = new VTDPropertyInfoBase("Result"); VTDBaseGetter binding_getter12 = new VTDObjectGetter(pi23); VTDPropertyInfoBase pi24 = new VTDPropertyInfoBase("Suffix"); VTDBaseSetter binding_setter12 = new VTDObjectSetter(pi24); binding_setter12 = new StringFormaterDecorator(binding_setter12, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}"); bind_dir12 = new BindDirection(this.DataCursorActivity14, binding_getter12, binding_setter12, BindTargetType.ToInProperty); _flow.ConcatenateStringsActivity5.InDirections.Add(bind_dir12); VTDPropertyInfoBase pi25 = new VTDPropertyInfoBase("SourceString"); VTDBaseGetter binding_getter13 = new VTDObjectGetter(pi25); VTDPropertyInfoBase pi26 = new VTDPropertyInfoBase("Prefix"); VTDBaseSetter binding_setter13 = new VTDObjectSetter(pi26); binding_setter13 = new StringFormaterDecorator(binding_setter13, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}"); bind_dir13 = new BindDirection(this.DataCursorActivity14, binding_getter13, binding_setter13, BindTargetType.ToInProperty); _flow.ConcatenateStringsActivity5.InDirections.Add(bind_dir13); VTDPropertyInfoBase pi27 = new VTDPropertyInfoBase("SourceString"); VTDBaseGetter binding_getter14 = new VTDObjectGetter(pi27); VTDPropertyInfoBase pi28 = new VTDPropertyInfoBase("Result"); VTDBaseSetter binding_setter14 = new VTDCheckpointSetter(XmlTypeCode.String); binding_setter14 = new StringFormaterDecorator(binding_setter14, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.SourceString}"); bind_dir14 = new BindDirection(this.DataCursorActivity14, binding_getter14, binding_setter14, BindTargetType.ToInProperty); VTDPropertyInfoBase pi29 = new VTDPropertyInfoBase("Result"); VTDBaseGetter binding_getter15 = new VTDObjectGetter(pi29); VTDPropertyInfoBase pi30 = new VTDPropertyInfoBase("Result"); VTDBaseSetter binding_setter15 = new VTDCheckpointSetter(XmlTypeCode.String); binding_setter15 = new StringFormaterDecorator(binding_setter15, "{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}"); bind_dir15 = new BindDirection(this.DataCursorActivity14, binding_getter15, binding_setter15, BindTargetType.ToInProperty); set_ConcatenateStringsActivity5_checkpoints(_flow.ConcatenateStringsActivity5); }
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.RESTActivityV24 = new HP.ST.Ext.RestActivity.RESTActivityV2 <RESTActivityV24Input, RESTActivityV24Output>(_context, "RESTActivityV24"); _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.Sequence5); 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.Sequence5.Comment = @""; _flow.Sequence5.IconPath = @""; _flow.Sequence5.Name = @"Sequence5"; _flow.Sequence5.Activities.Add(_flow.RESTActivityV24); _flow.RESTActivityV24.TextBody = @""; _flow.RESTActivityV24.TextXmlBody = @""; _flow.RESTActivityV24.FileBody = @""; _flow.RESTActivityV24.PostBody = @""; _flow.RESTActivityV24.Url = @"http://172.31.18.209:8000/Flights_REST/Flights/1304"; _flow.RESTActivityV24.HttpMethod = @"GET"; _flow.RESTActivityV24.HttpVersion = @"1.1"; _flow.RESTActivityV24.Comment = @""; _flow.RESTActivityV24.IconPath = @"AddIns\ServiceTest\REST\ictb_REST_Method_16.png"; _flow.RESTActivityV24.RequestBodyType = @"Text"; _flow.RESTActivityV24.ResponseType = @"Text"; _flow.RESTActivityV24.Name = @"Method4"; _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)100000; _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; XmlDocument RESTActivityV24_ExpectedResponseXmlBody_Document = new XmlDocument(); RESTActivityV24_ExpectedResponseXmlBody_Document.PreserveWhitespace = true; RESTActivityV24_ExpectedResponseXmlBody_Document.LoadXml( @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />"); _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; }
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.ReportMessageActivity4 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity4"); _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.Sequence5); 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.Sequence5.Comment = @""; _flow.Sequence5.IconPath = @""; _flow.Sequence5.Name = @"Sequence5"; _flow.Sequence5.Activities.Add(_flow.ReportMessageActivity4); _flow.ReportMessageActivity4.Status = @"Pass"; _flow.ReportMessageActivity4.Message = @"The service is up and running"; _flow.ReportMessageActivity4.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity4.Comment = @""; _flow.ReportMessageActivity4.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity4.Name = @"Ordering Service"; }
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); }
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"); _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); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; 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><GetWeather xmlns=""http://www.webserviceX.NET""><CityName>Fort Worth</CityName><CountryName>United States</CountryName></GetWeather></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 = @"GetWeather"; _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress = String.IsNullOrEmpty(_context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}")) ? @"http://www.webservicex.com/globalweather.asmx" : _context.ResourceManager.GetValue(@"{Step.GeneralProperties.StServiceCallActivity4.TransportProtocol.SOAPProperties.EndpointAddress}"); _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.SoapAction = @"http://www.webserviceX.NET/GetWeather"; _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.ContentType = @"text/xml; charset=utf-8"; _flow.StServiceCallActivity4.TransportProtocol.SOAPProperties.Timeout = (int)100000; _flow.StServiceCallActivity4.Service = @"GlobalWeather"; _flow.StServiceCallActivity4.Port = @"GlobalWeatherSoap"; _flow.StServiceCallActivity4.Operation = @"GetWeather"; _flow.StServiceCallActivity4.IsOneWay = false; _flow.StServiceCallActivity4.SendRequestToService = true; _flow.StServiceCallActivity4.FaultExpected = false; _flow.StServiceCallActivity4.IsAsync = false; _flow.StServiceCallActivity4.TargetNamespace = @"http://www.webserviceX.NET"; _flow.StServiceCallActivity4.ListenOnPort = (int)0; 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><GetWeatherResponse xmlns=""http://www.webserviceX.NET"" /></Body></Envelope>"); _flow.StServiceCallActivity4.ExpectedOutputProperties = StServiceCallActivity4_ExpectedOutputProperties_Document; set_StServiceCallActivity4_checkpoints(_flow.StServiceCallActivity4); }
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.Sequence9 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence9"); _flow.DbOpenConnection4 = new HP.ST.Ext.DatabaseRunTime.DbOpenConnection(_context, "DbOpenConnection4"); _flow.DbFetchData6 = new HP.ST.Ext.DatabaseRunTime.DbFetchData(_context, "DbFetchData6"); _flow.Loop8 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Loop <Loop8Input>(_context, "Loop8", LoopType.For); _flow.DbCloseConnection5 = new HP.ST.Ext.DatabaseRunTime.DbCloseConnection(_context, "DbCloseConnection5"); _flow.Sequence10 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence10"); _flow.ReportMessageActivity7 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity7"); _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.Sequence9); 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.Sequence9.Comment = @""; _flow.Sequence9.IconPath = @""; _flow.Sequence9.Name = @"Sequence9"; _flow.Sequence9.Activities.Add(_flow.DbOpenConnection4); _flow.Sequence9.Activities.Add(_flow.DbFetchData6); _flow.Sequence9.Activities.Add(_flow.Loop8); _flow.Sequence9.Activities.Add(_flow.DbCloseConnection5); _flow.DbOpenConnection4.ConnectionString = @"Provider=SQLOLEDB;Password={PWD};Persist Security Info=True;User ID=sa;Initial Catalog=default_alm_academy_db;Data Source=192.168.5.138;"; _flow.DbOpenConnection4.Password = @"qez5j6SGWIyM3WLuMiR+9A=="; _flow.DbOpenConnection4.DatabaseType = HP.ST.Shared.Utilities.DB.DatabaseType.OLE; _flow.DbOpenConnection4.Comment = @""; _flow.DbOpenConnection4.IconPath = @"AddIns\ServiceTest\Database\toolbox_db_connect.png"; _flow.DbOpenConnection4.Name = @"Open Connection4"; _flow.DbFetchData6.QueryString = @"SELECT ""td"".""TEST"".""TS_TEST_VERSION"", ""td"".""TEST"".""TS_TEST_ID"", ""td"".""TEST"".""TS_NAME"", ""td"".""TEST"".""TS_STEPS"", ""td"".""TEST"".""TS_PATH"", ""td"".""TEST"".""TS_SUBJECT"", ""td"".""TEST"".""TS_ORDER_ID"", ""td"".""TEST"".""TS_STATUS"", ""td"".""TEST"".""TS_RESPONSIBLE"", ""td"".""TEST"".""TS_CREATION_DATE"", ""td"".""TEST"".""TS_DESCRIPTION"", ""td"".""TEST"".""TS_TYPE"", ""td"".""TEST"".""TS_TIMEOUT"", ""td"".""TEST"".""TS_ATTACHMENT"", ""td"".""TEST"".""TS_RUNTIME_DATA"", ""td"".""TEST"".""TS_WORKING_MODE"", ""td"".""TEST"".""TS_PROTOCOL_TYPE"", ""td"".""TEST"".""TS_SERVICE_TEST_MODE"", ""td"".""TEST"".""TS_USER_01"", ""td"".""TEST"".""TS_USER_02"", ""td"".""TEST"".""TS_USER_03"", ""td"".""TEST"".""TS_USER_04"", ""td"".""TEST"".""TS_USER_05"", ""td"".""TEST"".""TS_USER_06"", ""td"".""TEST"".""TS_USER_07"", ""td"".""TEST"".""TS_USER_08"", ""td"".""TEST"".""TS_USER_09"", ""td"".""TEST"".""TS_USER_10"", ""td"".""TEST"".""TS_USER_11"", ""td"".""TEST"".""TS_USER_12"", ""td"".""TEST"".""TS_USER_HR_01"", ""td"".""TEST"".""TS_USER_HR_02"", ""td"".""TEST"".""TS_USER_HR_03"", ""td"".""TEST"".""TS_USER_HR_04"", ""td"".""TEST"".""TS_USER_HR_05"", ""td"".""TEST"".""TS_USER_HR_06"", ""td"".""TEST"".""TS_ESTIMATE_DEVTIME"", ""td"".""TEST"".""TS_TEST_VER_STAMP"", ""td"".""TEST"".""TS_EXEC_STATUS"", ""td"".""TEST"".""TS_TEMPLATE"", ""td"".""TEST"".""TS_STEP_PARAM"", ""td"".""TEST"".""TS_VTS"", ""td"".""TEST"".""TS_VC_CUR_VER"", ""td"".""TEST"".""TS_USER_13"", ""td"".""TEST"".""TS_USER_14"", ""td"".""TEST"".""TS_USER_15"", ""td"".""TEST"".""TS_USER_16"", ""td"".""TEST"".""TS_USER_17"", ""td"".""TEST"".""TS_USER_18"", ""td"".""TEST"".""TS_USER_19"", ""td"".""TEST"".""TS_USER_20"", ""td"".""TEST"".""TS_USER_21"", ""td"".""TEST"".""TS_USER_22"", ""td"".""TEST"".""TS_USER_23"", ""td"".""TEST"".""TS_USER_24"", ""td"".""TEST"".""TS_TEXT_SYNC"", ""td"".""TEST"".""TS_DEV_COMMENTS"", ""td"".""TEST"".""TS_VC_USER_NAME"", ""td"".""TEST"".""TS_VC_DATE"", ""td"".""TEST"".""TS_VC_TIME"", ""td"".""TEST"".""TS_VC_COMMENTS"", ""td"".""TEST"".""TS_VC_CHECKIN_USER_NAME"", ""td"".""TEST"".""TS_VC_CHECKIN_DATE"", ""td"".""TEST"".""TS_VC_CHECKIN_TIME"", ""td"".""TEST"".""TS_VC_CHECKIN_COMMENTS"", ""td"".""TEST"".""TS_VC_STATUS"", ""td"".""TEST"".""TS_VC_START_AUDIT_ACTION_ID"", ""td"".""TEST"".""TS_VC_END_AUDIT_ACTION_ID"", ""td"".""TEST"".""TS_VC_VERSION_NUMBER"", ""td"".""TEST"".""TS_BPTA_CHANGE_DETECTED"", ""td"".""TEST"".""TS_BASE_TEST_ID"", ""td"".""TEST"".""TS_UT_PACKAGE_NAME"", ""td"".""TEST"".""TS_UT_CLASS_NAME"", ""td"".""TEST"".""TS_UT_METHOD_NAME"", ""td"".""TEST"".""TS_TESTING_FRAMEWORK"", ""td"".""TEST"".""TS_TESTING_TOOL"" FROM ""td"".""TEST"""; _flow.DbFetchData6.Timeout = (int)30; _flow.DbFetchData6.Comment = @""; _flow.DbFetchData6.IconPath = @"AddIns\ServiceTest\Database\toolbox_db_fetch_data.png"; _flow.DbFetchData6.Name = @"Select Data6"; VTDPropertyInfoBase pi7 = new VTDPropertyInfoBase("Connection"); VTDBaseGetter binding_getter4 = new VTDObjectGetter(pi7); VTDPropertyInfoBase pi8 = new VTDPropertyInfoBase("Connection"); VTDBaseSetter binding_setter4 = new VTDObjectSetter(pi8); bind_dir4 = new BindDirection(_flow.DbOpenConnection4, binding_getter4, binding_setter4, BindTargetType.ToInProperty); _flow.DbFetchData6.InDirections.Add(bind_dir4); XmlDocument DbFetchData6_ExpectedOutputProperties_Document = new XmlDocument(); DbFetchData6_ExpectedOutputProperties_Document.PreserveWhitespace = true; DbFetchData6_ExpectedOutputProperties_Document.LoadXml( @"<tns:Arguments xmlns:tns=""hp.dbFetchActivity""><Count /><Result>true</Result><ResultMessage /><ResultTable><Row><TS_TEST_VERSION /><TS_TEST_ID /><TS_NAME /><TS_STEPS /><TS_PATH /><TS_SUBJECT /><TS_ORDER_ID /><TS_STATUS /><TS_RESPONSIBLE /><TS_CREATION_DATE /><TS_DESCRIPTION /><TS_TYPE /><TS_TIMEOUT /><TS_ATTACHMENT /><TS_RUNTIME_DATA /><TS_WORKING_MODE /><TS_PROTOCOL_TYPE /><TS_SERVICE_TEST_MODE /><TS_USER_01 /><TS_USER_02 /><TS_USER_03 /><TS_USER_04 /><TS_USER_05 /><TS_USER_06 /><TS_USER_07 /><TS_USER_08 /><TS_USER_09 /><TS_USER_10 /><TS_USER_11 /><TS_USER_12 /><TS_USER_HR_01 /><TS_USER_HR_02 /><TS_USER_HR_03 /><TS_USER_HR_04 /><TS_USER_HR_05 /><TS_USER_HR_06 /><TS_ESTIMATE_DEVTIME /><TS_TEST_VER_STAMP /><TS_EXEC_STATUS /><TS_TEMPLATE /><TS_STEP_PARAM /><TS_VTS /><TS_VC_CUR_VER /><TS_USER_13 /><TS_USER_14 /><TS_USER_15 /><TS_USER_16 /><TS_USER_17 /><TS_USER_18 /><TS_USER_19 /><TS_USER_20 /><TS_USER_21 /><TS_USER_22 /><TS_USER_23 /><TS_USER_24 /><TS_TEXT_SYNC /><TS_DEV_COMMENTS /><TS_VC_USER_NAME /><TS_VC_DATE /><TS_VC_TIME /><TS_VC_COMMENTS /><TS_VC_CHECKIN_USER_NAME /><TS_VC_CHECKIN_DATE /><TS_VC_CHECKIN_TIME /><TS_VC_CHECKIN_COMMENTS /><TS_VC_STATUS /><TS_VC_START_AUDIT_ACTION_ID /><TS_VC_END_AUDIT_ACTION_ID /><TS_VC_VERSION_NUMBER /><TS_BPTA_CHANGE_DETECTED /><TS_BASE_TEST_ID /><TS_UT_PACKAGE_NAME /><TS_UT_CLASS_NAME /><TS_UT_METHOD_NAME /><TS_TESTING_FRAMEWORK /><TS_TESTING_TOOL /></Row></ResultTable></tns:Arguments>"); _flow.DbFetchData6.ExpectedOutputProperties = DbFetchData6_ExpectedOutputProperties_Document; _flow.Loop8.ConditionAsString = @"Run for 1 iteration"; _flow.Loop8.NumberOfIterations = (int)1; _flow.Loop8.Comment = @""; _flow.Loop8.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_loop.png"; _flow.Loop8.Name = @"Loop8"; VTDPropertyInfoBase pi9 = new VTDPropertyInfoBase("OutputProperties", "count(/*[local-name(.)='Arguments'][1]/*[local-name(.)='ResultTable'][1]/*[local-name(.)='Row'])"); VTDBaseGetter binding_getter5 = new VTDXPathGetter(pi9); VTDPropertyInfoBase pi10 = new VTDPropertyInfoBase("NumberOfIterations"); VTDBaseSetter binding_setter5 = new VTDObjectSetter(pi10); bind_dir5 = new BindDirection(_flow.DbFetchData6, binding_getter5, binding_setter5, BindTargetType.ToInProperty); _flow.Loop8.InDirections.Add(bind_dir5); _flow.Loop8.Activities.Add(_flow.Sequence10); _flow.DbCloseConnection5.Comment = @""; _flow.DbCloseConnection5.IconPath = @"AddIns\ServiceTest\Database\toolbox_db_close_connection.png"; _flow.DbCloseConnection5.Name = @"Close Connection5"; VTDPropertyInfoBase pi11 = new VTDPropertyInfoBase("Connection"); VTDBaseGetter binding_getter6 = new VTDObjectGetter(pi11); VTDPropertyInfoBase pi12 = new VTDPropertyInfoBase("Connection"); VTDBaseSetter binding_setter6 = new VTDObjectSetter(pi12); bind_dir6 = new BindDirection(_flow.DbOpenConnection4, binding_getter6, binding_setter6, BindTargetType.ToInProperty); _flow.DbCloseConnection5.InDirections.Add(bind_dir6); _flow.Sequence10.Comment = @""; _flow.Sequence10.IconPath = @""; _flow.Sequence10.Name = @"Sequence10"; _flow.Sequence10.Activities.Add(_flow.ReportMessageActivity7); _flow.ReportMessageActivity7.Status = @"Done"; _flow.ReportMessageActivity7.Message = @"{Step.OutputProperties.DbFetchData6.ResultTable.Row[{Step.OutputProperties.Loop8.CurrentIterationNumber}].TS_NAME}"; _flow.ReportMessageActivity7.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity7.Comment = @""; _flow.ReportMessageActivity7.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity7.Name = @"Report Testname"; VTDPropertyInfoBase pi13 = new VTDPropertyInfoBase("CurrentIterationNumber"); VTDBaseGetter binding_getter7 = new VTDObjectGetter(pi13); VTDPropertyInfoBase pi14 = new VTDPropertyInfoBase("OutputProperties", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='ResultTable'][1]/*[local-name(.)='Row'][{Array0}]/*[local-name(.)='TS_NAME'][1]"); VTDBaseGetter binding_getter8 = new VTDXPathGetter(pi14, XmlTypeCode.String); binding_getter8 = new XPathGetterDecorator(binding_getter8, "{Array0}", binding_getter7, _flow.Loop8); VTDPropertyInfoBase pi15 = new VTDPropertyInfoBase("Message"); VTDBaseSetter binding_setter7 = new VTDObjectSetter(pi15); binding_setter7 = new StringFormaterDecorator(binding_setter7, "{Step.OutputProperties.DbFetchData6.ResultTable.Row[{Step.OutputProperties.Loop8.CurrentIterationNumber}].TS_NAME}"); bind_dir7 = new BindDirection(_flow.DbFetchData6, binding_getter8, binding_setter7, BindTargetType.ToInProperty); _flow.ReportMessageActivity7.InDirections.Add(bind_dir7); }
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.Sequence7 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence7"); _flow.RESTActivityV24 = new HP.ST.Ext.RestActivity.RESTActivityV2 <RESTActivityV24Input, RESTActivityV24Output>(_context, "RESTActivityV24"); _flow.ReportMessageActivity5 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity5"); _flow.ReportMessageActivity6 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity6"); _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.Sequence7); 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.Sequence7.Comment = @""; _flow.Sequence7.IconPath = @""; _flow.Sequence7.Name = @"Sequence7"; _flow.Sequence7.Activities.Add(_flow.RESTActivityV24); _flow.Sequence7.Activities.Add(_flow.ReportMessageActivity5); _flow.Sequence7.Activities.Add(_flow.ReportMessageActivity6); _flow.RESTActivityV24.TextBody = @""; _flow.RESTActivityV24.TextXmlBody = @""; _flow.RESTActivityV24.FileBody = @""; _flow.RESTActivityV24.PostBody = @""; _flow.RESTActivityV24.Url = @"https://www.metaweather.com/api/location/search/?query={Step.RESTInputProperties.RESTActivityV24.query}"; _flow.RESTActivityV24.HttpMethod = @"GET"; _flow.RESTActivityV24.HttpVersion = @"1.1"; _flow.RESTActivityV24.Input.query = @"frankfurt"; _flow.RESTActivityV24.Comment = @""; _flow.RESTActivityV24.IconPath = @"AddIns\ServiceTest\REST\ictb_REST_Method_16.png"; _flow.RESTActivityV24.RequestBodyType = @"Text"; _flow.RESTActivityV24.ResponseType = @"Json"; _flow.RESTActivityV24.Name = @"GET4"; _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)100000; _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.query = @"frankfurt"; _flow.RESTActivityV24.Input.query = @"frankfurt"; VTDPropertyInfoBase pi7 = new VTDPropertyInfoBase("Input.query"); VTDBaseGetter binding_getter4 = new VTDObjectGetter(pi7); VTDPropertyInfoBase pi8 = new VTDPropertyInfoBase("Url"); VTDBaseSetter binding_setter4 = new VTDObjectSetter(pi8); binding_setter4 = new StringFormaterDecorator(binding_setter4, "{Step.RESTInputProperties.RESTActivityV24.query}"); bind_dir4 = new BindDirection(_flow.RESTActivityV24, binding_getter4, binding_setter4, BindTargetType.ToInProperty); _flow.RESTActivityV24.InDirections.Add(bind_dir4); XmlDocument RESTActivityV24_ExpectedResponseXmlBody_Document = new XmlDocument(); RESTActivityV24_ExpectedResponseXmlBody_Document.PreserveWhitespace = true; RESTActivityV24_ExpectedResponseXmlBody_Document.LoadXml( @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />"); _flow.RESTActivityV24.ExpectedResponseXmlBody = RESTActivityV24_ExpectedResponseXmlBody_Document; XmlDocument RESTActivityV24_ExpectedResponseJsonBody_Document = new XmlDocument(); RESTActivityV24_ExpectedResponseJsonBody_Document.PreserveWhitespace = true; RESTActivityV24_ExpectedResponseJsonBody_Document.LoadXml( @"<Array jsonType=""Array"" isAnonymous=""true""><Object jsonType=""Object"" isAnonymous=""true""><title jsonType=""String"">Frankfurt</title><location_type jsonType=""String"">City</location_type><woeid jsonType=""Integer"">650272</woeid><latt_long jsonType=""String"">50.112080,8.683410</latt_long></Object></Array>"); _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.ReportMessageActivity5.Status = @"Done"; _flow.ReportMessageActivity5.Message = @"{Step.ResponseJsonBody.RESTActivityV24.Object[1].title}"; _flow.ReportMessageActivity5.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity5.Comment = @""; _flow.ReportMessageActivity5.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity5.Name = @"Report Location"; VTDPropertyInfoBase pi9 = new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='Array'][1]/*[local-name(.)='Object'][{Array0}]/*[local-name(.)='title'][1]"); VTDBaseGetter binding_getter5 = new VTDJsonGetter(pi9); binding_getter5 = new XPathGetterDecorator(binding_getter5, "{Array0}", 1); VTDPropertyInfoBase pi10 = new VTDPropertyInfoBase("Message"); VTDBaseSetter binding_setter5 = new VTDObjectSetter(pi10); binding_setter5 = new StringFormaterDecorator(binding_setter5, "{Step.ResponseJsonBody.RESTActivityV24.Object[1].title}"); bind_dir5 = new BindDirection(_flow.RESTActivityV24, binding_getter5, binding_setter5, BindTargetType.ToInProperty); _flow.ReportMessageActivity5.InDirections.Add(bind_dir5); _flow.ReportMessageActivity6.Status = @"Done"; _flow.ReportMessageActivity6.Message = @"{Step.ResponseJsonBody.RESTActivityV24.Object[1].woeid}"; _flow.ReportMessageActivity6.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity6.Comment = @""; _flow.ReportMessageActivity6.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity6.Name = @"Report Temprature"; VTDPropertyInfoBase pi11 = new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='Array'][1]/*[local-name(.)='Object'][{Array0}]/*[local-name(.)='woeid'][1]"); VTDBaseGetter binding_getter6 = new VTDJsonGetter(pi11); binding_getter6 = new XPathGetterDecorator(binding_getter6, "{Array0}", 1); VTDPropertyInfoBase pi12 = new VTDPropertyInfoBase("Message"); VTDBaseSetter binding_setter6 = new VTDObjectSetter(pi12); binding_setter6 = new StringFormaterDecorator(binding_setter6, "{Step.ResponseJsonBody.RESTActivityV24.Object[1].woeid}"); bind_dir6 = new BindDirection(_flow.RESTActivityV24, binding_getter6, binding_setter6, BindTargetType.ToInProperty); _flow.ReportMessageActivity6.InDirections.Add(bind_dir6); }
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.DirectoryExistsActivity4 = new HP.ST.Ext.BasicActivities.DirectoryExistsActivity(_context, "DirectoryExistsActivity4"); _flow.IfElse5 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElse <IfElse5Input>(_context, "IfElse5"); _flow.IfElseBranch6 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElseBranch(_context, "IfElseBranch6"); _flow.IfElseBranch7 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.IfElseBranch(_context, "IfElseBranch7"); _flow.FileDeleteActivity8 = new HP.ST.Ext.BasicActivities.FileDeleteActivity(_context, "FileDeleteActivity8"); _flow.ReportMessageActivity9 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity9"); _flow.ReportMessageActivity10 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity10"); _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.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.DirectoryExistsActivity4); _flow.Sequence11.Activities.Add(_flow.IfElse5); _flow.DirectoryExistsActivity4.FolderPath = @"C:\uft-demo-ftp\bofrost"; _flow.DirectoryExistsActivity4.Comment = @""; _flow.DirectoryExistsActivity4.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_folder_exists.png"; _flow.DirectoryExistsActivity4.Name = @"Check folder exists"; _flow.IfElse5.ConditionAsString = @"{Step.OutputProperties.DirectoryExistsActivity4.FolderExists} Equal True"; _flow.IfElse5.Comment = @""; _flow.IfElse5.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_if_else.png"; _flow.IfElse5.Name = @"Condition5"; _flow.IfElse5.Activities.Add(_flow.IfElseBranch6); _flow.IfElse5.Activities.Add(_flow.IfElseBranch7); _flow.IfElseBranch6.Condition += delegate(object sender, EventArgs e) { try { VTDPropertyInfoBase pi6 = new VTDPropertyInfoBase("FolderExists"); VTDBaseGetter binding_getter4 = new VTDObjectGetter(pi6); System.Boolean expr00 = (System.Boolean)HP.ST.Fwk.RunTimeFWK.Utilities.Utils.ConvertValue(_flow.DirectoryExistsActivity4.GetParam(binding_getter4), typeof(System.Boolean)); var result0 = expr00; System.Boolean result1 = (System.Boolean)(true); return(result0 == result1); } catch (Exception exp) { if (exp is System.InvalidCastException) { throw; } else { return(false); } }; }; _flow.IfElseBranch6.Comment = @""; _flow.IfElseBranch6.IconPath = @""; _flow.IfElseBranch6.Name = @"Yes"; _flow.IfElseBranch6.Activities.Add(_flow.FileDeleteActivity8); _flow.IfElseBranch6.Activities.Add(_flow.ReportMessageActivity9); _flow.IfElseBranch7.Condition += delegate(object sender, EventArgs e) { return(true); }; _flow.IfElseBranch7.Comment = @""; _flow.IfElseBranch7.IconPath = @""; _flow.IfElseBranch7.Name = @"No"; _flow.IfElseBranch7.Activities.Add(_flow.ReportMessageActivity10); _flow.FileDeleteActivity8.FilePath = @"C:\uft-demo-ftp\bofrost\Szenarien Anbieterpräsenation.pdf"; _flow.FileDeleteActivity8.Comment = @""; _flow.FileDeleteActivity8.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_filedelete.png"; _flow.FileDeleteActivity8.Name = @"File Deletion"; _flow.ReportMessageActivity9.Status = @"Done"; _flow.ReportMessageActivity9.Message = @"File deleted: {Step.OutputProperties.FileDeleteActivity8.Result}"; _flow.ReportMessageActivity9.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity9.Comment = @""; _flow.ReportMessageActivity9.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity9.Name = @"Report Message9"; VTDPropertyInfoBase pi7 = new VTDPropertyInfoBase("Result"); VTDBaseGetter binding_getter5 = new VTDObjectGetter(pi7); VTDPropertyInfoBase pi8 = new VTDPropertyInfoBase("Message"); VTDBaseSetter binding_setter3 = new VTDObjectSetter(pi8); binding_setter3 = new StringFormaterDecorator(binding_setter3, "{Step.OutputProperties.FileDeleteActivity8.Result}"); bind_dir3 = new BindDirection(_flow.FileDeleteActivity8, binding_getter5, binding_setter3, BindTargetType.ToInProperty); _flow.ReportMessageActivity9.InDirections.Add(bind_dir3); _flow.ReportMessageActivity10.Status = @"Done"; _flow.ReportMessageActivity10.Message = @"File does not exist"; _flow.ReportMessageActivity10.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity10.Comment = @""; _flow.ReportMessageActivity10.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity10.Name = @"Not exist"; }
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.Sequence7 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence7"); _flow.FTP_MakeDirActivity4 = new HP.ST.Ext.FTPActivities.FTP_MakeDirActivity(_context, "FTP_MakeDirActivity4"); _flow.ReportMessageActivity6 = new HP.ST.Ext.BasicActivities.ReportMessageActivity(_context, "ReportMessageActivity6"); _flow.FTP_UploadActivity5 = new HP.ST.Ext.FTPActivities.FTP_UploadActivity(_context, "FTP_UploadActivity5"); _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.Sequence7); 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.Sequence7.Comment = @""; _flow.Sequence7.IconPath = @""; _flow.Sequence7.Name = @"Sequence7"; _flow.Sequence7.Activities.Add(_flow.FTP_MakeDirActivity4); _flow.Sequence7.Activities.Add(_flow.ReportMessageActivity6); _flow.Sequence7.Activities.Add(_flow.FTP_UploadActivity5); _flow.FTP_MakeDirActivity4.DirectoryURLPath = @"ftp://192.168.5.128:21"; _flow.FTP_MakeDirActivity4.UserID = @"*****@*****.**"; _flow.FTP_MakeDirActivity4.Password = this._context.EncryptionMngr.Decrypt("1/71ZdfTuq+UNRZYmBy7Zg=="); _flow.FTP_MakeDirActivity4.DirectoryName = @"bofrost"; _flow.FTP_MakeDirActivity4.Comment = @""; _flow.FTP_MakeDirActivity4.IconPath = @"AddIns\ServiceTest\FTPActivity\ictb_New_folder_16.png"; _flow.FTP_MakeDirActivity4.Name = @"FTP Directory Create4"; _flow.FTP_MakeDirActivity4.Comment = @""; _flow.FTP_MakeDirActivity4.EnableSSL = false; _flow.FTP_MakeDirActivity4.Timeout = (int)0; _flow.FTP_MakeDirActivity4.Proxy.Server = @""; _flow.FTP_MakeDirActivity4.Proxy.Username = @""; _flow.FTP_MakeDirActivity4.Proxy.Password = @""; _flow.FTP_MakeDirActivity4.ClientCertificate.Password = @""; _flow.FTP_MakeDirActivity4.ClientCertificate.FileSystem.Path = @""; _flow.ReportMessageActivity6.Status = @"Done"; _flow.ReportMessageActivity6.Message = @"{Step.OutputProperties.FTP_MakeDirActivity4.Result}"; _flow.ReportMessageActivity6.Destination = @"ReportAndOutput"; _flow.ReportMessageActivity6.Comment = @""; _flow.ReportMessageActivity6.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_report_message.png"; _flow.ReportMessageActivity6.Name = @"Report Message6"; VTDPropertyInfoBase pi1 = new VTDPropertyInfoBase("Result"); VTDBaseGetter binding_getter1 = new VTDObjectGetter(pi1); VTDPropertyInfoBase pi2 = new VTDPropertyInfoBase("Message"); VTDBaseSetter binding_setter1 = new VTDObjectSetter(pi2); binding_setter1 = new StringFormaterDecorator(binding_setter1, "{Step.OutputProperties.FTP_MakeDirActivity4.Result}"); bind_dir1 = new BindDirection(_flow.FTP_MakeDirActivity4, binding_getter1, binding_setter1, BindTargetType.ToInProperty); _flow.ReportMessageActivity6.InDirections.Add(bind_dir1); _flow.FTP_UploadActivity5.DirectoryURLPath = @"ftp://192.168.5.128:21/bofrost"; _flow.FTP_UploadActivity5.UserID = @"*****@*****.**"; _flow.FTP_UploadActivity5.Password = this._context.EncryptionMngr.Decrypt("1/71ZdfTuq+UNRZYmBy7Zg=="); _flow.FTP_UploadActivity5.FilePath = @"C:\Users\khanamir\Documents\Szenarien Anbieterpräsenation.pdf"; _flow.FTP_UploadActivity5.Overwrite = false; _flow.FTP_UploadActivity5.TransferMode = @"ASCII"; _flow.FTP_UploadActivity5.Comment = @""; _flow.FTP_UploadActivity5.IconPath = @"AddIns\ServiceTest\FTPActivity\ictb_Upload_file_16.png"; _flow.FTP_UploadActivity5.Name = @"FTP Upload5"; _flow.FTP_UploadActivity5.Comment = @""; _flow.FTP_UploadActivity5.EnableSSL = false; _flow.FTP_UploadActivity5.Timeout = (int)0; _flow.FTP_UploadActivity5.Proxy.Server = @""; _flow.FTP_UploadActivity5.Proxy.Username = @""; _flow.FTP_UploadActivity5.Proxy.Password = @""; _flow.FTP_UploadActivity5.ClientCertificate.Password = @""; _flow.FTP_UploadActivity5.ClientCertificate.FileSystem.Path = @""; }
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.HTTPActivity4 = new HP.ST.Ext.HTTPActivity.HTTPActivity(_context, "HTTPActivity4"); _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); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; this.Activities.Add(_flow.EndActivity3); _flow.Sequence5.Comment = @""; _flow.Sequence5.IconPath = @""; _flow.Sequence5.Name = @"Sequence5"; _flow.Sequence5.Activities.Add(_flow.HTTPActivity4); _flow.HTTPActivity4.TextBody = @""; _flow.HTTPActivity4.TextXmlBody = @""; _flow.HTTPActivity4.FileBody = @""; _flow.HTTPActivity4.PostBody = @""; _flow.HTTPActivity4.Url = @"http://10.26.131.99:5000/push/api"; _flow.HTTPActivity4.HttpMethod = @"POST"; _flow.HTTPActivity4.HttpVersion = @"1.1"; _flow.HTTPActivity4.RequestHeaders = new Pair <string, string> [1]; _flow.HTTPActivity4.RequestHeaders[0] = new Pair <string, string>(); _flow.HTTPActivity4.RequestHeaders[0].Key = @"Content-Type"; _flow.HTTPActivity4.RequestHeaders[0].Value = @"application/json"; _flow.HTTPActivity4.Comment = @""; _flow.HTTPActivity4.IconPath = @"AddIns\ServiceTest\HTTPActivity\toolbox_http.png"; _flow.HTTPActivity4.RequestBodyType = @"Json"; _flow.HTTPActivity4.ResponseType = @"Text"; _flow.HTTPActivity4.Name = @"IOT_API"; _flow.HTTPActivity4.Proxy.Server = @""; _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 = false; _flow.HTTPActivity4.ExpectServerError = false; _flow.HTTPActivity4.HanaRequest = false; XmlDocument HTTPActivity4_XMLBody_Document = new XmlDocument(); HTTPActivity4_XMLBody_Document.PreserveWhitespace = true; HTTPActivity4_XMLBody_Document.LoadXml( @"<Object jsonType=""Object"" isAnonymous=""true""><H1-Number jsonType=""String"">HOUSE_101</H1-Number><main-Door jsonType=""String"">OPEN</main-Door><H1-PowerCons jsonType=""String"">100</H1-PowerCons><H1-Room-Temperature jsonType=""String"">40</H1-Room-Temperature><H1-Water-Consumption jsonType=""String"">30</H1-Water-Consumption><H1lat jsonType=""String"">17.4483</H1lat><H1long jsonType=""String"">78.3915</H1long><originatorType jsonType=""String"">HOUSE_101</originatorType><severity jsonType=""String"">High</severity><H2-Number jsonType=""String"">HOUSE_102</H2-Number><H2-PowerCons jsonType=""String"">45</H2-PowerCons><H2-Room-Temperature jsonType=""String"">45</H2-Room-Temperature><H2-Water-Consumption jsonType=""String"">35</H2-Water-Consumption><H2lat jsonType=""String"">18.4483</H2lat><H2long jsonType=""String"">79.3915</H2long><H3-Number jsonType=""String"">HOUSE_103</H3-Number><H3-PowerCons jsonType=""String"">45</H3-PowerCons><H3-Room-Temperature jsonType=""String"">45</H3-Room-Temperature><H3-Water-Consumption jsonType=""String"">35</H3-Water-Consumption><H3lat jsonType=""String"">16.4483</H3lat><H3long jsonType=""String"">79.3915</H3long><H4-Number jsonType=""String"">HOUSE_104</H4-Number><H4-PowerCons jsonType=""String"">45</H4-PowerCons><H4-Room-Temperature jsonType=""String"">45</H4-Room-Temperature><H4-Water-Consumption jsonType=""String"">25</H4-Water-Consumption><H4lat jsonType=""String"">15.4483</H4lat><H4long jsonType=""String"">79.3915</H4long><H5-Number jsonType=""String"">HOUSE_105</H5-Number><H5-PowerCons jsonType=""String"">45</H5-PowerCons><H5-Room-Temperature jsonType=""String"">45</H5-Room-Temperature><H5-Water-Consumption jsonType=""String"">25</H5-Water-Consumption><H5lat jsonType=""String"">19.4483</H5lat><H5long jsonType=""String"">79.3915</H5long><status jsonType=""String"">Any</status></Object>"); _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; 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( @"<F6DA54ED-92F5-4c5c-9795-170905F25080 />"); _flow.HTTPActivity4.ExpectedResponseJsonBody = HTTPActivity4_ExpectedResponseJsonBody_Document; XmlDocument HTTPActivity4_ExpectedOutputProperties_Document = new XmlDocument(); HTTPActivity4_ExpectedOutputProperties_Document.PreserveWhitespace = true; HTTPActivity4_ExpectedOutputProperties_Document.LoadXml( @"<Arguments><ResponseHttpVersion /><StatusCode>200</StatusCode><StatusDescription /><ResponseBody /><ResponseBodyAsBase64 /></Arguments>"); _flow.HTTPActivity4.ExpectedOutputProperties = HTTPActivity4_ExpectedOutputProperties_Document; set_HTTPActivity4_checkpoints(_flow.HTTPActivity4); }
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.DataFetchActivity6 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity6"); _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.DataExporterActivity8 = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity8"); _flow.DataExporterCloseActivity9 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity9"); _flow.EndActivity3 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3"); _flow.DataDisconnectActivity7 = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity7"); _flow.Sequence5 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence5"); _flow.AddActivity4 = new HP.ST.Ext.BasicActivities.AddActivity(_context, "AddActivity4"); _flow.DataFetchActivity6.Comment = @""; _flow.DataFetchActivity6.IconPath = @""; _flow.DataFetchActivity6.AssemblyPath = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll"; _flow.DataFetchActivity6.QueryClassName = @"HP.ST.Ext.CustomDataProviders.ExcelFileDataQuery"; XmlDocument DataFetchActivity6_QueryParameters_Document = new XmlDocument(); DataFetchActivity6_QueryParameters_Document.PreserveWhitespace = true; string xmlDataFetchActivity6Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>60b94bc6-04c9-467d-ad83-fd9ad1d26cf4</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>DT2!Sheet1</Value></QueryParameter><QueryParameter><Name>IsEmbedded</Name><Value>True</Value></QueryParameter><QueryParameter><Name>Externalized</Name><Value>True</Value></QueryParameter><QueryParameter><Name>GroupText</Name><Value>DT2</Value></QueryParameter><QueryParameter><Name>FilePath</Name><Value>" + _context.ResourceManager.GetValue("{DT2!Sheet1.TablePath}") + "</Value></QueryParameter><QueryParameter><Name>SheetName</Name><Value>Sheet1$</Value></QueryParameter><QueryParameter><Name>ContainsHeadersRow</Name><Value>True</Value></QueryParameter></QueryParametersContainer></Arguments>"; DataFetchActivity6_QueryParameters_Document.LoadXml(xmlDataFetchActivity6Params); _flow.DataFetchActivity6.QueryParameters = DataFetchActivity6_QueryParameters_Document; _flow.dataSourceNameToDataSource.Add("DT2!Sheet1", _flow.DataFetchActivity6); this.Activities.Add(_flow.DataFetchActivity6); XmlDocument StartActivity1_ExecutionInputParameters_Document = new XmlDocument(); StartActivity1_ExecutionInputParameters_Document.PreserveWhitespace = true; StartActivity1_ExecutionInputParameters_Document.LoadXml( @"<Arguments><A></A><B></B><Results></Results></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); _flow.DataExporterActivity8.Comment = @""; _flow.DataExporterActivity8.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.DataFetchActivity6.OutTable}"); bind_dir6 = new BindDirection(_flow.DataFetchActivity6, binding_getter6, binding_setter6, BindTargetType.ToInProperty); _flow.DataExporterActivity8.InDirections.Add(bind_dir6); this.Activities.Add(_flow.DataExporterActivity8); _flow.DataExporterCloseActivity9.Comment = @""; _flow.DataExporterCloseActivity9.IconPath = @""; this.Activities.Add(_flow.DataExporterCloseActivity9); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; this.Activities.Add(_flow.EndActivity3); _flow.DataDisconnectActivity7.Comment = @""; _flow.DataDisconnectActivity7.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.DataFetchActivity6.OutTable}"); bind_dir7 = new BindDirection(_flow.DataFetchActivity6, binding_getter7, binding_setter7, BindTargetType.ToInProperty); _flow.DataDisconnectActivity7.InDirections.Add(bind_dir7); this.Activities.Add(_flow.DataDisconnectActivity7); _flow.Sequence5.Comment = @""; _flow.Sequence5.IconPath = @""; _flow.Sequence5.Name = @"Sequence5"; _flow.Sequence5.Activities.Add(_flow.AddActivity4); _flow.AddActivity4.A = (decimal)0m; _flow.AddActivity4.B = (decimal)0m; _flow.AddActivity4.Comment = @""; _flow.AddActivity4.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_add.png"; _flow.AddActivity4.Name = @"Add4"; VTDPropertyInfoBase pi15 = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='B'][1]"); VTDBaseGetter binding_getter8 = new VTDXPathGetter(pi15, XmlTypeCode.String); VTDPropertyInfoBase pi16 = new VTDPropertyInfoBase("B"); VTDBaseSetter binding_setter8 = new VTDObjectSetter(pi16); bind_dir8 = new BindDirection(_flow.StartActivity1, binding_getter8, binding_setter8, BindTargetType.ToInProperty); _flow.AddActivity4.InDirections.Add(bind_dir8); VTDPropertyInfoBase pi17 = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='A'][1]"); VTDBaseGetter binding_getter9 = new VTDXPathGetter(pi17, XmlTypeCode.String); VTDPropertyInfoBase pi18 = new VTDPropertyInfoBase("A"); VTDBaseSetter binding_setter9 = new VTDObjectSetter(pi18); bind_dir9 = new BindDirection(_flow.StartActivity1, binding_getter9, binding_setter9, BindTargetType.ToInProperty); _flow.AddActivity4.InDirections.Add(bind_dir9); VTDPropertyInfoBase pi19 = new VTDPropertyInfoBase("ExecutionInputParameters", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Results'][1]"); VTDBaseGetter binding_getter10 = new VTDXPathGetter(pi19, XmlTypeCode.String); VTDPropertyInfoBase pi20 = new VTDPropertyInfoBase("Result"); VTDBaseSetter binding_setter10 = new VTDCheckpointSetter(XmlTypeCode.Decimal); bind_dir10 = new BindDirection(_flow.StartActivity1, binding_getter10, binding_setter10, BindTargetType.ToInProperty); set_AddActivity4_checkpoints(_flow.AddActivity4); }
internal void InitializeComponent() { LoadInput(); InitReport(); InitializeEncryptionManagerValues(); _userCode = new TestUserCode(); _flow = _userCode; _flow.Context = this._context; _flow.DataFetchActivity6 = new HP.ST.Ext.BasicActivities.DataFetchActivity(_context, "DataFetchActivity6"); _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.DataExporterActivity8 = new HP.ST.Ext.BasicActivities.DataExporterActivity(_context, "DataExporterActivity8"); _flow.DataExporterCloseActivity9 = new HP.ST.Ext.BasicActivities.DataExporterCloseActivity(_context, "DataExporterCloseActivity9"); _flow.EndActivity3 = new HP.ST.Ext.BasicActivities.EndActivity(_context, "EndActivity3"); _flow.DataDisconnectActivity7 = new HP.ST.Ext.BasicActivities.DataDisconnectActivity(_context, "DataDisconnectActivity7"); _flow.Sequence5 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context, "Sequence5"); _flow.StServiceCallActivity4 = new HP.ST.Ext.WebServicesActivities.StServiceCallActivity(_context, "StServiceCallActivity4"); _flow.DataFetchActivity6.Comment = @""; _flow.DataFetchActivity6.IconPath = @""; _flow.DataFetchActivity6.AssemblyPath = @"AddIns\ServiceTest\BaseDataProviders\HP.ST.Ext.CustomDataProviders.dll"; _flow.DataFetchActivity6.QueryClassName = @"HP.ST.Ext.CustomDataProviders.LocalDataQuery"; XmlDocument DataFetchActivity6_QueryParameters_Document = new XmlDocument(); DataFetchActivity6_QueryParameters_Document.PreserveWhitespace = true; string xmlDataFetchActivity6Params = @"<Arguments><QueryParametersContainer><QueryParameter><Name>Id</Name><Value>91697915-7023-4d46-92ed-87cd93996048</Value></QueryParameter><QueryParameter><Name>QueryName</Name><Value>Cities</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>DepCity,String,|ArvCity,String,</Value></QueryParameter><QueryParameter><Name>TableContents</Name><Value>London|Paris^Paris|London^Paris|Sydney</Value></QueryParameter></QueryParametersContainer></Arguments>"; DataFetchActivity6_QueryParameters_Document.LoadXml(xmlDataFetchActivity6Params); _flow.DataFetchActivity6.QueryParameters = DataFetchActivity6_QueryParameters_Document; _flow.dataSourceNameToDataSource.Add("Cities", _flow.DataFetchActivity6); this.Activities.Add(_flow.DataFetchActivity6); _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.Sequence5); this.Activities.Add(_flow.Loop2); _flow.DataExporterActivity8.Comment = @""; _flow.DataExporterActivity8.IconPath = @""; VTDPropertyInfoBase pi63 = new VTDPropertyInfoBase("OutTable"); VTDBaseGetter binding_getter32 = new VTDObjectGetter(pi63); VTDPropertyInfoBase pi64 = new VTDPropertyInfoBase("Data"); VTDBaseSetter binding_setter32 = new VTDObjectSetter(pi64); binding_setter32 = new StringFormaterDecorator(binding_setter32, "{Step.DataFetchActivity6.OutTable}"); bind_dir32 = new BindDirection(_flow.DataFetchActivity6, binding_getter32, binding_setter32, BindTargetType.ToInProperty); _flow.DataExporterActivity8.InDirections.Add(bind_dir32); this.Activities.Add(_flow.DataExporterActivity8); _flow.DataExporterCloseActivity9.Comment = @""; _flow.DataExporterCloseActivity9.IconPath = @""; this.Activities.Add(_flow.DataExporterCloseActivity9); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.IconPath = @"AddIns\ServiceTest\BasicActivities\toolbox_code_activity.png"; _flow.EndActivity3.Name = @"End"; this.Activities.Add(_flow.EndActivity3); _flow.DataDisconnectActivity7.Comment = @""; _flow.DataDisconnectActivity7.IconPath = @""; VTDPropertyInfoBase pi65 = new VTDPropertyInfoBase("OutTable"); VTDBaseGetter binding_getter33 = new VTDObjectGetter(pi65); VTDPropertyInfoBase pi66 = new VTDPropertyInfoBase("Data"); VTDBaseSetter binding_setter33 = new VTDObjectSetter(pi66); binding_setter33 = new StringFormaterDecorator(binding_setter33, "{Step.DataFetchActivity6.OutTable}"); bind_dir33 = new BindDirection(_flow.DataFetchActivity6, binding_getter33, binding_setter33, BindTargetType.ToInProperty); _flow.DataDisconnectActivity7.InDirections.Add(bind_dir33); this.Activities.Add(_flow.DataDisconnectActivity7); _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><GetFlights xmlns=""HP.SOAQ.SampleApp""><DepartureCity>London</DepartureCity><ArrivalCity>Paris</ArrivalCity><FlightDate>2020-08-20T00:00:00+00: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/""><Body><GetFlightsResponse xmlns=""HP.SOAQ.SampleApp""><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); }
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); }
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); }
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"; }
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); }