Ejemplo n.º 1
0
        private UUTReport CreateReport(TDM api, XDocument xml)
        {
            XElement  testRun     = xml.Element("testrun");
            XElement  testRunInfo = testRun.Element("testruninfo");
            UUTReport uut         = api.CreateUUTReport(
                testRunInfo.Element("user").Value,
                parameters["partNumber"],
                parameters["partRevision"],
                testRunInfo.Element("serial").Value,
                parameters["operationTypeCode"],
                parameters["sequenceName"],
                parameters["sequenceVersion"]);

            uut.StartDateTime = DateTime.ParseExact(testRun.Attribute("datetime").Value, "o", CultureInfo.InvariantCulture);
            uut.Comment       = testRunInfo.Element("project-description").Value;
            if (testRunInfo.Element("xjlink-name") != null)
            {
                uut.StationName = testRunInfo.Element("xjlink-name").Value;
            }
            if (testRunInfo.Element("time-taken") != null)
            {
                uut.ExecutionTime = double.Parse(testRunInfo.Element("time-taken").Value) / 1000.0;
            }
            ReadTests(uut, testRun);
            uut.Status = testRunInfo.Element("result").Value == "Passed"?UUTStatusType.Passed:UUTStatusType.Failed; //Termiated, Error?
            return(uut);
        }
Ejemplo n.º 2
0
        private UUTReport CreateReportFromHeader(Dictionary <string, string> headerData, TDM api)
        {
            UUTReport uut = api.CreateUUTReport(headerData["Cfg_UserName"], parameters["partNumber"], parameters["partRevision"], headerData["Cfg_SerialNumber"],
                                                parameters["operationTypeCode"], parameters["sequenceName"], parameters["sequenceVersion"]);

            uut.AddMiscUUTInfo("Cfg_LoginMode", headerData["Cfg_LoginMode"]);
            uut.AddMiscUUTInfo("Cfg_Speaker", headerData["Cfg_Speaker"]);
            return(uut);
        }
Ejemplo n.º 3
0
        private UUTReport CreateUUTFromHeader(TDM api, string[] cols, string sn)
        {
            UUTReport uut = api.CreateUUTReport(parameters["operator"],
                                                cols[2], parameters["partRevision"],
                                                sn, parameters["operationTypeCode"],
                                                parameters["sequenceName"], parameters["sequenceVersion"]);

            uut.StartDateTime = DateTime.Parse(cols[1], cultureInfo);
            return(uut);
        }