public TestLoadStatus ParseLoadMsg(Message msg)
        {
            XElement       reply = XElement.Parse(msg.fileMessage.xmlLoadReply);
            TestLoadStatus tls   = new TestLoadStatus();

            tls.status      = reply.Element("Status").Value == "true" ? true : false;
            tls.loadMessage = reply.Element("LoadMessage").Value;
            return(tls);
        }
Esempio n. 2
0
 public TestInfo()
 {
     requestName    = string.Empty;
     requestTime    = new DateTime();
     authorName     = string.Empty;
     testName       = string.Empty;
     testDriverName = string.Empty;
     testCodeName   = new List <string>();
     testTime       = new DateTime();
     testResult     = string.Empty;
     stat           = new TestLoadStatus();
 }
        public Message SetupLoadMessageToClient(TestLoadStatus tls)
        {
            Message msg = new Message();

            msg.sender    = "TestHarness";
            msg.recipient = "AboutLoad";

            XElement loadMsg = new XElement("LoadStatus");

            loadMsg.Add(new XElement("Status", tls.status));
            loadMsg.Add(new XElement("LoadMessage", tls.loadMessage));

            msg.fileMessage.xmlLoadReply = loadMsg.ToString();
            return(msg);
        }