void parseXML(CommMessage msg)
        {
            fileMgr = new FileMgr();
            fileMgr.loadXml(msg.XML);
            int testNum = Int32.Parse(msg.command);

            for (int i = 0; i < testNum; i++)
            {
                string        test        = "test" + i;
                string        testdriver  = fileMgr.parse(test, "testDriver");
                string        driverName_ = Path.GetFileNameWithoutExtension(testdriver);
                List <string> argslist    = new List <string>();
                foreach (string item in fileMgr.parseList(test, "tested"))
                {
                    argslist.Add(item);
                }
                if (Build(testdriver, argslist))
                {
                    Console.Write("\n ==============Sending logs to repo ==================\n ");
                    logToRepo(driverName_);
                }
                else
                {
                    Console.Write("\n ==============Build files are missing==================\n ");
                }
                string dllname = driverName_ + ".dll";
                string dllpath = Path.Combine(childstorage, dllname);
                if (File.Exists(dllpath))
                {
                    Console.Write("\n==============" + testdriver + " builds successfully==============");
                    sndr.createSendChannel(THAddress);
                    Thread.Sleep(300);
                    Console.Write("\n ==============Sending dll to testharness ==================\n ");
                    if (sndr.postFile(dllname, childstorage, THStorage))
                    {
                        Console.Write("\n================== Send files successfully================== \n ");
                        CommMessage build = new CommMessage(CommMessage.MessageType.build);
                        build.from    = "# " + rcvrport_number + " child builder";
                        build.to      = THAddress;
                        build.command = dllname;
                        sndr.postMessage(build);
                    }
                    else
                    {
                        Console.Write("\n ================== Send file failed. ==================\n ");
                    }
                }
                else
                {
                    Console.Write("\n==============" + testdriver + " build fails==============");
                }
            }
            global = true;
        }
        void parseXML(CommMessage msg)
        {
            FileMgr fileMgr = new FileMgr();

            fileMgr.loadXml(msg.XML);
            int testNum = Int32.Parse(msg.command);

            for (int i = 0; i < testNum; i++)
            {
                string test = "test" + i;
                templist.Add(fileMgr.parse(test, "testDriver"));
                foreach (string item in fileMgr.parseList(test, "tested"))
                {
                    templist.Add(item);
                }
            }
        }