public static void StartExportElo(string profilename, KonfigurationIx ixConf) { try { IXConnFactory connFact = new IXConnFactory(ixConf.ixUrl, "StartExportElo", "1.0"); IXConnection conn = connFact.Create(ixConf.user, ixConf.pwd, null, null); string winPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\ExportElo\\" + profilename; if (!Directory.Exists(winPath)) { Directory.CreateDirectory(winPath); } FindChildren(conn, ixConf.arcPath, winPath, ixConf.exportReferences, ixConf.maskName); Debug.WriteLine("ticket=" + conn.LoginResult.clientInfo.ticket); conn.Logout(); } catch (byps.BException e) { if (e.Source != null) { MessageBox.Show("Falsche Verbindungsdaten zu ELO \n" + e.Message, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("byps.BException message: {0}", e.Message); } } catch (System.Net.WebException e) { if (e.Source != null) { MessageBox.Show("Indexserver-Verbindung ungültig \n User: "******"\n IxUrl: " + ixConf.ixUrl, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("System.Net.WebException message: {0}", e.Message); } } }
public static void StartAppManager(KonfigurationIx ixConf) { try { IXConnFactory connFact = new IXConnFactory(ixConf.ixUrl, "Start AppManager", "1.0"); IXConnection ixConn = connFact.Create(ixConf.user, ixConf.pwd, null, null); string ticket = ixConn.LoginResult.clientInfo.ticket; string ixUrl = ixConn.EndpointUrl; string appManagerUrl = ixUrl.Replace("ix-", "wf-"); appManagerUrl = appManagerUrl.Replace("/ix", "/apps/app"); appManagerUrl = appManagerUrl + "/elo.webapps.AppManager"; appManagerUrl = appManagerUrl + "/?lang=de"; appManagerUrl = appManagerUrl + "&ticket=" + ticket; appManagerUrl = appManagerUrl + "&timezone=Europe%2FBerlin"; Http.OpenUrl(appManagerUrl); } catch (byps.BException e) { if (e.Source != null) { MessageBox.Show("Falsche Verbindungsdaten zu ELO \n" + e.Message, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("byps.BException message: {0}", e.Message); } } catch (System.Net.WebException e) { if (e.Source != null) { MessageBox.Show("Indexserver-Verbindung ungültig \n User: "******"\n IxUrl: " + ixConf.ixUrl, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("System.Net.WebException message: {0}", e.Message); } } }
public static void StartAdminConsole(KonfigurationIx ixConf) { try { IXConnFactory connFact = new IXConnFactory(ixConf.ixUrl, "Start AdminConsole", "1.0"); IXConnection ixConn = connFact.Create(ixConf.user, ixConf.pwd, null, null); string ticket = ixConn.LoginResult.clientInfo.ticket; string ixUrl = ixConn.EndpointUrl; string[] adminConsole = ixUrl.Split('/'); string adminConsoleUrl = adminConsole[0] + "//" + adminConsole[2] + "/AdminConsole"; adminConsoleUrl = adminConsoleUrl + "/?lang=de"; adminConsoleUrl = adminConsoleUrl + "&ticket=" + ticket; adminConsoleUrl = adminConsoleUrl + "&timezone=Europe%2FBerlin"; Http.OpenUrl(adminConsoleUrl); } catch (byps.BException e) { if (e.Source != null) { MessageBox.Show("Falsche Verbindungsdaten zu ELO \n" + e.Message, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("byps.BException message: {0}", e.Message); } } catch (System.Net.WebException e) { if (e.Source != null) { MessageBox.Show("Indexserver-Verbindung ungültig \n User: "******"\n IxUrl: " + ixConf.ixUrl, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("System.Net.WebException message: {0}", e.Message); } } }
public KonfigurationParameter() { this._ixConf = new KonfigurationIx(); this._onenoteConf = new KonfigurationOneNote(); this._cmdGitPullAllConf = new KonfigurationCmd(); this._cmdEloPullUnittestConf = new KonfigurationCmd(); this._cmdEloPrepareConf = new KonfigurationCmd(); this._cmdEloPullPackageConf = new KonfigurationCmd(); }
public KonfigurationParameter(KonfigurationIx ixConf, KonfigurationOneNote onenoteConf, KonfigurationCmd cmdGitPullAllConf, KonfigurationCmd cmdEloPullUnittestConf, KonfigurationCmd cmdEloPrepareConf, KonfigurationCmd cmdEloPullPackageConf) { this._ixConf = ixConf; this._onenoteConf = onenoteConf; this._cmdGitPullAllConf = cmdGitPullAllConf; this._cmdEloPullUnittestConf = cmdEloPullUnittestConf; this._cmdEloPrepareConf = cmdEloPrepareConf; this._cmdEloPullPackageConf = cmdEloPullPackageConf; }
public KonfigurationParameter(XmlNode profileNode) { this._ixConf = new KonfigurationIx(); this._onenoteConf = new KonfigurationOneNote(); this._cmdGitPullAllConf = new KonfigurationCmd(); this._cmdEloPullUnittestConf = new KonfigurationCmd(); this._cmdEloPrepareConf = new KonfigurationCmd(); this._cmdEloPullPackageConf = new KonfigurationCmd(); foreach (XmlNode subNode in profileNode.ChildNodes) { string cmdName = ""; switch (subNode.Name) { case "ixConf": _ixConf = new KonfigurationIx(subNode); break; case "onenoteConf": _onenoteConf = new KonfigurationOneNote(subNode); break; case "cmdConf": foreach (XmlNode subSubNode in subNode.ChildNodes) { if (subSubNode.Name == "#text") { cmdName = subSubNode.InnerText; } } switch (cmdName) { case "gitPullAll": _cmdGitPullAllConf = new KonfigurationCmd(subNode); break; case "eloPullUnittest": _cmdEloPullUnittestConf = new KonfigurationCmd(subNode); break; case "eloPrepare": _cmdEloPrepareConf = new KonfigurationCmd(subNode); break; case "eloPullPackage": _cmdEloPullPackageConf = new KonfigurationCmd(subNode); break; } break; } } }
public static void ShowReportMatchUnittest(KonfigurationIx ixConf) { try { IXConnFactory connFact = new IXConnFactory(ixConf.ixUrl, "Show Report Match Unittest", "1.0"); IXConnection ixConn = connFact.Create(ixConf.user, ixConf.pwd, null, null); List <string> jsTexts = RepoUtils.LoadTextDocs("ARCPATH[(E10E1000-E100-E100-E100-E10E10E10E00)]:/Business Solutions/_global/Unit Tests", ixConn); SortedDictionary <string, bool> dicRFs = RegisterFunctions.GetRFs(ixConn, jsTexts, ixConf.package); SortedDictionary <string, bool> dicASDirectRules = ASDirectRules.GetRules(ixConn, jsTexts, ixConf.package); SortedDictionary <string, bool> dicActionDefs = ActionDefinitions.GetActionDefs(ixConn, jsTexts, ixConf.package); string htmlDoc = Http.CreateHtmlReport(dicRFs, dicASDirectRules, dicActionDefs); string reportUrl = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\ReportElo"; if (!Directory.Exists(reportUrl)) { Directory.CreateDirectory(reportUrl); } File.WriteAllText(Path.Combine(reportUrl, "Report.html"), htmlDoc); reportUrl = reportUrl + "\\Report.html"; Http.OpenUrl(reportUrl); } catch (byps.BException e) { if (e.Source != null) { MessageBox.Show("Falsche Verbindungsdaten zu ELO \n" + e.Message, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("byps.BException message: {0}", e.Message); } } catch (System.Net.WebException e) { if (e.Source != null) { MessageBox.Show("Indexserver-Verbindung ungültig \n User: "******"\n IxUrl: " + ixConf.ixUrl, "ELO Connection", MessageBoxButton.OK, MessageBoxImage.Asterisk); Debug.WriteLine("System.Net.WebException message: {0}", e.Message); } } }