[성현모] TestTrend 기능 추가

This commit is contained in:
SHM
2025-09-23 10:03:12 +09:00
parent 4ceaa7c4e3
commit 681f1e97f4
10 changed files with 337 additions and 72 deletions

View File

@ -329,6 +329,27 @@ namespace Web.Tra.Services
return result;
}
public async Task<TestTrend> GetTestTrend(List<TestHistory> histories, int stepVersion, int stepId)
{
TestTrend result = new TestTrend();
if (histories?.Count() > 0)
{
List<TestResult> getTestResults = new List<TestResult>();
//test result parse
foreach (var hist in histories)
{
getTestResults.Add(await GetTestResult(hist, stepVersion));
}
result = histories.ToTestTrend(getTestResults, getTestResults.ToTestSummary(), stepId);
}
await Task.CompletedTask;
return result;
}
public bool TryParseTestCode(string testCode, out int outValue)
{
bool result = false;