Esempio n. 1
0
        static void Main(string[] args)
        {
            DaasToolLogManagement.InitializeLog();
            LOG.Info("----------------------------------------------------------------------------------");
            LOG.Info(string.Format("{0} session has been started ", System.Security.Principal.WindowsIdentity.GetCurrent().Name));

            string configFilePath = string.Empty;

            if (args.Length > 1 && args[0] == "-t")
            {
                configFilePath = args[1];
            }

            if (string.IsNullOrEmpty(configFilePath))
            {
                PrintUsageInfo();
                //return 400; // what to return?
            }

            try
            {
                //Console.WriteLine("Running tests using test suite config:{0}", configFilePath);
                RunTests(args[1]);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            //today's goal - get test run working
            // todo: figure out return paths, etc.
            //return returnValue;
            Console.ReadKey();
        }
        public MainWindow()
        {
            InitializeComponent();

            //Initialize logs
            DaasToolLogManagement.InitializeLog();

            #region Zip TM client Log option with Verbose logging on Readiness Tool
            //RunProcessAsAdmin("HPLogReportTool\\HPLogReportTool.exe", "");
            #endregion
        }