[성현모] TestTrend 기능 추가
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user