From 912de6de452cf696ea1e0ce833d31198478de00b Mon Sep 17 00:00:00 2001 From: priyasomangali <46961539+priyasomangali@users.noreply.github.com> Date: Tue, 22 Aug 2023 21:56:16 +0800 Subject: [PATCH] include runid TestCasePayload (#39) Co-authored-by: psomangali --- .../TestCasePayloadTests.cs | 1 + src/Agoda.Tests.Metrics/TestCasePayload.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/Agoda.Tests.Metrics.Tests/TestCasePayloadTests.cs b/src/Agoda.Tests.Metrics.Tests/TestCasePayloadTests.cs index 2ad2be6..c29c1d3 100644 --- a/src/Agoda.Tests.Metrics.Tests/TestCasePayloadTests.cs +++ b/src/Agoda.Tests.Metrics.Tests/TestCasePayloadTests.cs @@ -20,5 +20,6 @@ public void WhenInit_ShouldHaveDefaultVarsFromEnvironment() #pragma warning restore AG0035 underTest.Platform.ShouldBe((int)Environment.OSVersion.Platform); underTest.Os.ShouldBe(Environment.OSVersion.VersionString); + underTest.RunId.ShouldNotBeNull(); } } \ No newline at end of file diff --git a/src/Agoda.Tests.Metrics/TestCasePayload.cs b/src/Agoda.Tests.Metrics/TestCasePayload.cs index eb21826..ca799f8 100644 --- a/src/Agoda.Tests.Metrics/TestCasePayload.cs +++ b/src/Agoda.Tests.Metrics/TestCasePayload.cs @@ -26,6 +26,15 @@ public TestCasePayload(string metricsVersion, GitContext gitContext, IList NUnitTestCases { get; set; } + + public string RunId { get; set; } + } }