예제 #1
0
        public static void startBuildProcess(string buildRequest)     // Initiating the thread process
        {
            XmlParsing xml = new XmlParsing();

            xml.XMLLoad("../../../RepositoryStorage/" + buildRequest);
            Author   = xml.Parse("author");
            DateTime = xml.Parse("dateTime");
            Tested   = xml.ParseList("tested");
            String testDriver = xml.Parse("testDriver");

            Tested.Add(testDriver);
            CommMessage requestFiles = new CommMessage(CommMessage.MessageType.request);

            requestFiles.author    = "ChildBuilder";
            requestFiles.command   = "RequestParsedFiles";
            requestFiles.fileName  = FolderPath + "/";
            requestFiles.from      = "http://localhost:" + PortChildBuilder.ToString() + "/IMessagePassingComm";
            requestFiles.to        = "http://localhost:8081/IMessagePassingComm";
            requestFiles.arguments = Tested;
            childbuilder.postMessage(requestFiles);
        }
예제 #2
0
        /*-----------------------------<this it parse test request>---------------------------*/
        private void ParseTestRequest(string path)
        {
            XmlParsing xml = new XmlParsing();

            xml.LoadXml(path);
            Author    = xml.Parse("author");
            _DateTime = xml.Parse("dateTime");
            String      testDriver   = xml.Parse("testDriver");
            CommMessage requestFiles = new CommMessage(CommMessage.MessageType.request);

            requestFiles.from      = from;
            requestFiles.to        = toAddress;
            requestFiles.command   = "SendDllFiles";
            requestFiles.xmlString = testDriver;
            requestFiles.fileName  = TestFolderPath;
            requestFiles.author    = "TestHarness";
            testHarness.postMessage(requestFiles);
            Thread.Sleep(10000);
            Console.WriteLine(" \n Requirement 9:The Test Harness shall attempt to load each test library it receives and execute it. It shall submit the results of testing to the Repository.");
            Console.WriteLine("===================================================================================================================================================================== ");
            Console.Write("\n \n");
            TestProcess(testDriver);
        }