|
|
@ -61,9 +61,17 @@ namespace Rs.MotionPlat.Entitys
|
|
|
|
_start.Stop();
|
|
|
|
_start.Stop();
|
|
|
|
_btest = false;
|
|
|
|
_btest = false;
|
|
|
|
testResult = $"1$";
|
|
|
|
testResult = $"1$";
|
|
|
|
Random rnd = new Random();
|
|
|
|
int res = 0;
|
|
|
|
int randomNumber = rnd.Next(0, 100);
|
|
|
|
if (GlobalVar.SimulateTestYield<100)
|
|
|
|
int res = randomNumber < (100-GlobalVar.SimulateTestYield) ? 0 : 1;
|
|
|
|
{
|
|
|
|
|
|
|
|
Random rnd = new Random();
|
|
|
|
|
|
|
|
int randomNumber = rnd.Next(0, 100);
|
|
|
|
|
|
|
|
res = randomNumber < (100 - GlobalVar.SimulateTestYield) ? 0 : 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
res = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
testResult = $"Result#0#{res}#CsvInfo#FailItems#TestItems#BinInfo$";
|
|
|
|
testResult = $"Result#0#{res}#CsvInfo#FailItems#TestItems#BinInfo$";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|