Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="hdlPath"></param>
        /// <param name="fileExportPath"></param>
        /// <returns></returns>
        public bool LogExport(string hdlPath, string ExportLogPath)
        {
            HoloScript.LogReaderV2_5 logReader = new HoloScript.LogReaderV2_5( );

            logReader.OpenLogFile(hdlPath, ExportLogPath);

            return(File.Exists(ExportLogPath));
        }
Exemple #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="hdlPath"></param>
        /// <param name="fileExportPath"></param>
        /// <returns></returns>
        public bool LogExport(string hdlPath , string ExportLogPath)
        {
            HoloScript.LogReaderV2_5 logReader = new HoloScript.LogReaderV2_5( );

            logReader.OpenLogFile(hdlPath , ExportLogPath);

            return (File.Exists(ExportLogPath));
        }
Exemple #3
0
        static void Main(string[] args)
        {
            HoloScript.LogReaderV2_5 logReader = new HoloScript.LogReaderV2_5( );

            logReader.OpenLogFile( @"C:\Documents and Settings\vparikh\My Documents\HD Logs\testwin32_Logs\1016.hdl", "C:\\testExportHDLog.txt" );
        }
Exemple #4
0
        static void Main(string[] args)
        {
            TestCases myTestCase = new TestCases();

            GetHolodeck();


            //geth the id of the process in holodeck
            Process[] myProcesses;
            myProcesses = Process.GetProcesses();
            String processid = "";

            foreach (Process myProcess in myProcesses)
            {
                processid = Convert.ToString(myProcess.Id);
                if (String.Compare(myProcess.ProcessName, "LogExportTest") == 0)
                {
                    break;
                }
            }

            //encoporate filters here
            for (int i = 0; i < args.Length; i++)
            {
                if (args.GetValue(i).ToString() == "Memory")
                {
                    Console.WriteLine("Now performing Memory filter operations...");
                    myTestCase.MemoryFilter();
                }

                if (args.GetValue(i).ToString() == "File")
                {
                    Console.WriteLine("Now performing File filter operations...");
                    myTestCase.FileFilter();
                }

                if (args.GetValue(i).ToString() == "Net")
                {
                    //myTestCase.MemoryFilter();
                }

                if (args.GetValue(i).ToString() == "Native")
                {
                    //myTestCase.MemoryFilter();
                }

                if (args.GetValue(i).ToString() == "NetNative")
                {
                    //myTestCase.MemoryFilter();
                }
            }

            Thread.Sleep(50);
            Holodeck.HolodeckPane.SendKeyStrokes("%F");
            Holodeck.HolodeckPane.SendKeyStrokes("E");
            Holodeck.Base.SetEditBoxText("C:\\UILogTest");
            Holodeck.NewProjectPane3.SendKeyStrokes("{TAB}");
            Holodeck.NewProjectPane3.SendKeyStrokes("{TAB}");
            Holodeck.NewProjectPane3.SendKeyStrokes(" ");
            Holodeck.NewProjectPane3.SendKeyStrokes(" ");
            Holodeck.HolodeckPane.SendKeyStrokes("%F");
            Holodeck.HolodeckPane.SendKeyStrokes("S");

            //need to enumerate processes to get the processid of aut log

            HoloScript.LogReaderV2_5 logReader = new HoloScript.LogReaderV2_5( );
            String LogExportPath = "C:\\LogExportTest_Logs\\";
            String LogName       = String.Concat(processid, ".hdl");
            String FullLogName   = String.Concat(LogExportPath, LogName);

            Console.WriteLine(FullLogName);
            logReader.OpenLogFile(FullLogName, "C:\\TestExportHolodeckLog.txt");

            Thread.Sleep(20);
            System.Diagnostics.Process proc = new System.Diagnostics.Process();
            proc.EnableRaisingEvents = false;
            proc.StartInfo.FileName  = "fc /L c:\\UILogTest.txt c:\\TestExportHolodeckLog.txt >c:\\TestOutput.txt";
            proc.Start();

            Console.ReadLine();
        }
Exemple #5
0
        static void Main(string[] args)
        {
            HoloScript.LogReaderV2_5 logReader = new HoloScript.LogReaderV2_5( );

            logReader.OpenLogFile(@"C:\Documents and Settings\vparikh\My Documents\HD Logs\testwin32_Logs\1016.hdl", "C:\\testExportHDLog.txt");
        }
Exemple #6
0
        static void Main(string[] args)
        {
            TestCases myTestCase = new TestCases();

            GetHolodeck();

            //geth the id of the process in holodeck
            Process[] myProcesses;
            myProcesses = Process.GetProcesses();
            String processid="";
            foreach (Process myProcess in myProcesses)
            {
                processid = Convert.ToString(myProcess.Id);
                if(String.Compare(myProcess.ProcessName,"LogExportTest") == 0) break;
            }

            //encoporate filters here
            for (int i=0;i < args.Length;i++)
            {
                if (args.GetValue(i).ToString() == "Memory")
                {
                Console.WriteLine("Now performing Memory filter operations...");
                myTestCase.MemoryFilter();
                }

                if (args.GetValue(i).ToString() == "File")
                {
                    Console.WriteLine("Now performing File filter operations...");
                    myTestCase.FileFilter();
                }

                if (args.GetValue(i).ToString() == "Net")
                {
                    //myTestCase.MemoryFilter();
                }

                if (args.GetValue(i).ToString() == "Native")
                {
                    //myTestCase.MemoryFilter();
                }

                if (args.GetValue(i).ToString() == "NetNative")
                {
                    //myTestCase.MemoryFilter();
                }

            }

            Thread.Sleep(50);
            Holodeck.HolodeckPane.SendKeyStrokes("%F");
            Holodeck.HolodeckPane.SendKeyStrokes("E");
            Holodeck.Base.SetEditBoxText("C:\\UILogTest");
            Holodeck.NewProjectPane3.SendKeyStrokes("{TAB}");
            Holodeck.NewProjectPane3.SendKeyStrokes("{TAB}");
            Holodeck.NewProjectPane3.SendKeyStrokes(" ");
            Holodeck.NewProjectPane3.SendKeyStrokes(" ");
            Holodeck.HolodeckPane.SendKeyStrokes("%F");
            Holodeck.HolodeckPane.SendKeyStrokes("S");

            //need to enumerate processes to get the processid of aut log

            HoloScript.LogReaderV2_5 logReader = new HoloScript.LogReaderV2_5( );
            String LogExportPath = "C:\\LogExportTest_Logs\\";
            String LogName = String.Concat(processid,".hdl");
            String FullLogName = String.Concat(LogExportPath,LogName);
            Console.WriteLine(FullLogName);
            logReader.OpenLogFile( FullLogName, "C:\\TestExportHolodeckLog.txt" );

            Thread.Sleep(20);
            System.Diagnostics.Process proc = new System.Diagnostics.Process();
            proc.EnableRaisingEvents=false;
            proc.StartInfo.FileName="fc /L c:\\UILogTest.txt c:\\TestExportHolodeckLog.txt >c:\\TestOutput.txt";
            proc.Start();

            Console.ReadLine();
        }