Exemple #1
0
        //<-----------------Gets data required for building a DLL------------------------------->
        public String libraryCreation(String directoryPath, TestRequestData datasent, string path)
        {
            rply.to   = ClientEnvironment.endPoint;
            rply.from = EnvironmentSet.address + ":" + (EnvironmentSet.port).ToString() + "/IMessagePassingComm";
            bldse     = new BuildServer();
            List <String> tdrivertCase = new List <String>(10);

            try
            {
                String[] files = Directory.GetFiles(directoryPath, datasent.testDriver);
                foreach (String file in files)
                {
                    tdrivertCase.Add(file);
                    dllName = Path.GetFileNameWithoutExtension(file);
                }
                foreach (String file in datasent.testCode)
                {
                    tdrivertCase.Add(file);
                }
            }
            catch (Exception e) { Console.WriteLine(e.Message); }
            String status = libraryCreationHelper(tdrivertCase, directoryPath, datasent, dllName, path);

            datasent.status = status;
            return(status);
        }
Exemple #2
0
        //-----------------< Main the starting point og Child Builder >---------------------------
        static void Main(string[] args)
        {
            Console.WriteLine("Spawned Process");
            BuildServer mb     = new BuildServer(Int32.Parse(args[0]));
            CommMessage cntMsg = new CommMessage(CommMessage.MessageType.connect);

            cntMsg.author = "Harika";
            string localEndPoint = EnvironmentSet.address + ":" + (EnvironmentSet.port).ToString() + "/IMessagePassingComm";

            cntMsg.to   = localEndPoint;
            cntMsg.from = localEndPoint;
            mb.comm.postMessage(cntMsg);


            mb.readymsg        = new CommMessage(CommMessage.MessageType.Ready);
            mb.readymsg.author = "Harika";
            mb.readymsg.to     = MotherBuildServer.endPoint;
            mb.readymsg.from   = localEndPoint;
            mb.comm.postMessage(mb.readymsg);

            mb.tRmsg      = new CommMessage(CommMessage.MessageType.TestRequest);
            mb.tRmsg.to   = TestHarness.endPoint;
            mb.tRmsg.from = localEndPoint;
        }
Exemple #3
0
 //-----------< Used to intialisise the Environment for Client Comm >---------------------------------
 public BuildLibrary()
 {
     rply.to   = ClientEnvironment.endPoint;
     rply.from = EnvironmentSet.address + ":" + (EnvironmentSet.port).ToString() + "/IMessagePassingComm";
     bldse     = new BuildServer();
 }