Repettition nr. > 1 can be selected in the main sequence.

This commit is contained in:
Milan Hanajik
2017-10-19 09:19:31 +02:00
parent a8dd8d98cb
commit 38d7562bb3
5 changed files with 20 additions and 9 deletions
@@ -414,8 +414,9 @@ namespace TBF.BenchControl
/// </summary>
/// <param name="selection">Selection.Q1, .Q2, .Q3 or .Test</param>
/// <returns>The selected test or null</returns>
public static Config.Entities.Test GetTest(Sequences.MainSeq.Selection selection)
public static Config.Entities.Test GetTest(Sequences.MainSeq.Selection selection, out int repetNr)
{
repetNr = 1;
if ((selection == Sequences.MainSeq.Selection.Q1) && (Tests.Count >= 1))
{
return Tests[0];
@@ -432,9 +433,17 @@ namespace TBF.BenchControl
{
foreach (var test in Tests)
{
if (Utils.TestTitle(test, 1).Equals(UiBridge.Bridge.SelectedTestName)) return test;
for (int i = 1; i <= test.Repeats; i++)
{
if (Utils.TestTitle(test, i).Equals(UiBridge.Bridge.SelectedTestName))
{
repetNr = i;
return test;
}
}
}
}
return null;
}