public void UpdateNormalWithTestTimes(String tr) { if (tr == "PASS") { PassCount_Nomal++; } else { FailCount_Nomal++; } if (PassCount_Nomal + FailCount_Nomal != 0) { Yield_Nomal = Math.Round((double)PassCount_Nomal / (PassCount_Nomal + FailCount_Nomal) * 100, 2); } else { Yield_Nomal = 0; } Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "PassCount_Nomal", PassCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "FailCount_Nomal", FailCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "Yield_Nomal", Yield_Nomal.ToString()); }
public void Clean() { TestCount = 0; PassCount = 0; FailCount = 0; Yield = 0; TestCount_Nomal = 0; PassCount_Nomal = 0; FailCount_Nomal = 0; Yield_Nomal = 0; Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "PassCount_Nomal", PassCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "FailCount_Nomal", FailCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "TestCount_Nomal", TestCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "Yield_Nomal", Yield_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "PassCount", PassCount.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "FailCount", FailCount.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "TestCount", TestCount.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + (Index - 1).ToString(), "Yield", Yield.ToString()); }
private void UpdateTester(int rst) { /*result = 0 -> Ng * result = 1 -> Pass * result = 2 -> Timeout */ switch (rst) { case 0: testStatus = TestStatus.Tested; testResult = TestResult.Ng; FailCount_Nomal++; break; case 1: testStatus = TestStatus.Tested; testResult = TestResult.Pass; PassCount_Nomal++; break; case 2: testStatus = TestStatus.Tested; testResult = TestResult.TimeOut; break; default: testStatus = TestStatus.Err; testResult = TestResult.TimeOut; break; } TestCount_Nomal++; Yield_Nomal = Math.Round((double)PassCount_Nomal / (PassCount_Nomal + FailCount_Nomal) * 100, 2); try { Inifile.INIWriteValue(iniTesterResutPath, "Tester" + Index.ToString(), "TestSpan", TestSpan.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + Index.ToString(), "PassCount_Nomal", PassCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + Index.ToString(), "FailCount_Nomal", FailCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + Index.ToString(), "TestCount_Nomal", TestCount_Nomal.ToString()); Inifile.INIWriteValue(iniTesterResutPath, "Tester" + Index.ToString(), "Yield_Nomal", Yield_Nomal.ToString()); } catch { } }