Repettition nr. > 1 can be selected in the main sequence.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user