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"; 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 = @"https://api.havenondemand.com/1/api/sync/highlighttext/v1"; _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; 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() { LoadTestInput(); // Intialize Reporter string reportDBDir = Path.Combine(this._context.ReportDirectory, @"Report"); CleanupReport(reportDBDir); string reportDBPath = Path.Combine(reportDBDir, "VTDReport.mdb"); if (reporter == null) { reporter = new Reporter(reportDBPath); } _context.Reporter = reporter; 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.Sequence13 = new HP.ST.Fwk.RunTimeFWK.CompositeActivities.Sequence(_context,"Sequence13"); _flow.JavaUnitActivity11 = new JavaUnit.JavaUnitActivity(_context,"JavaUnitActivity11"); _flow.StartActivity1.Comment = @""; _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.Name = @"Test Flow"; _flow.Loop2.Activities.Add (_flow.Sequence13); this.Activities.Add (_flow.Loop2); _flow.EndActivity3.Comment = @""; _flow.EndActivity3.Name = @"End"; this.Activities.Add (_flow.EndActivity3); _flow.Sequence13.Comment = @""; _flow.Sequence13.Name = @"Sequence13"; _flow.Sequence13.Activities.Add (_flow.JavaUnitActivity11); _flow.JavaUnitActivity11.JavaPath = @""; _flow.JavaUnitActivity11.ClassPath = @""; _flow.JavaUnitActivity11.InputParams = @""; _flow.JavaUnitActivity11.ExpectedData = @""; _flow.JavaUnitActivity11.Comment = @""; _flow.JavaUnitActivity11.Name = @"JavaUnitDriver11"; }