Esempio n. 1
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);
        }
Esempio n. 2
0
        /*-------------------------------------------<it is to start build process here parsing happens>------------------------------------------*/
        private static void startBuildProcess(string buildRequest)
        {
            XmlParsing xml = new XmlParsing();

            xml.LoadXml("../../../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  = BuildFolderPath + "/";
            requestFiles.from      = "http://localhost:" + childBuilderPort.ToString() + "/IMessagePassingComm";
            requestFiles.to        = "http://localhost:8081/IMessagePassingComm";
            requestFiles.arguments = tested;
            childbuilder.postMessage(requestFiles);
        }