コード例 #1
0
        public void RunTest(ref ATFReturnResult results)
        {
            string strError = string.Empty;
            // ReSharper disable once JoinDeclarationAndInitializer
            long testTime;

            TestCount = 0; //reset to start
            _speedo.Reset();
            _speedo.Start();

            foreach (SparamTestCase.TestCaseAbstract tc in objFBar.TestCases)
            {
                tc.RunTest();
                tc.BuildResults();
            }

            #region Create FmTrace file
            if (SnpFile.FileOutputEnable & TmpUnitNo <= SnpFile.FileOutputCount)
            {
                for (int i = 0; i < objFBar.SparamRaw.Length; i++)
                {
                    if (SnpFile.ADSFormat)
                    {
                        LibEqmtDriver.NA.SParam tsSparam = _eqNa.ConvertTourchStone(_traceSetting[i], objFBar.SparamRaw[i]);
                        _eqNa.ExportSnpFile(tsSparam, SnpFile.FileSourcePath, SnpFile.FileOutputFileName, TmpUnitNo.ToString(), i + 1);
                    }
                    else
                    {
                        _eqNa.ExportSnpFile(objFBar.SparamRaw[i], SnpFile.FileSourcePath, SnpFile.FileOutputFileName, TmpUnitNo.ToString(), i + 1);
                    }
                }
            }
            #endregion

            #region Add Result to Clotho
            for (int i = 0; i < objFBar.Result.Length; i++)
            {
                if (objFBar.Result[i].Enable)
                {
                    for (int iRst = 0; iRst < objFBar.Result[i].Header.Length; iRst++)
                    {
                        ATFResultBuilder.AddResult(ref results, objFBar.Result[i].Header[iRst], "", objFBar.Result[i].Result[iRst]);
                    }
                }
            }
            #endregion

            _speedo.Stop();
            testTime = _speedo.ElapsedMilliseconds;

            ATFResultBuilder.AddResult(ref results, "SparamTestTime", "mS", testTime);
        }
コード例 #2
0
 public void BuildResults(ref ATFReturnResult results, string paraName, string unit, double value)
 {
     ATFResultBuilder.AddResult(ref results, paraName, unit, value);
 }