From a7838082ea88ce2ab16da31d2911ebb72bb532b6 Mon Sep 17 00:00:00 2001 From: Nish26 Date: Fri, 30 Dec 2022 19:42:44 +0530 Subject: [PATCH] Fix incorrect tag asisgned while saving script files for test cases While saving data files for test cases, fixtureId is set as tag instead of testcaseId. As a result of this, files are missing while downloading later using tag for test case. This is fixed now. --- .../DataManagers/ProjectDataManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pixel.Persistence.Services.Client/DataManagers/ProjectDataManager.cs b/src/Pixel.Persistence.Services.Client/DataManagers/ProjectDataManager.cs index c2448381..d77a8922 100644 --- a/src/Pixel.Persistence.Services.Client/DataManagers/ProjectDataManager.cs +++ b/src/Pixel.Persistence.Services.Client/DataManagers/ProjectDataManager.cs @@ -616,7 +616,7 @@ public async Task SaveTestDataAsync(TestCase testCase) await AddDataFileAsync(testCaseFiles.ProcessFile, testCase.TestCaseId); foreach (var scriptFile in Directory.EnumerateFiles(testCaseFiles.TestDirectory, "*.csx")) { - await AddDataFileAsync(scriptFile, testCase.FixtureId); + await AddDataFileAsync(scriptFile, testCase.TestCaseId); } } logger.Information("Saved data files for test case : '{0}' for version : '{1}' of automation project : '{2}'.", testCase.DisplayName, projectVersion, automationProject.Name);