From 581cb9f2c1f5b5e7227d52f53f5a657885ab53f2 Mon Sep 17 00:00:00 2001 From: Stig Killendahl Date: Mon, 13 Jan 2025 16:58:44 +0100 Subject: [PATCH 1/2] Trim ToText output --- .../src/DataDrivenTest/DataInputs/TestInputJson.Codeunit.al | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataInputs/TestInputJson.Codeunit.al b/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataInputs/TestInputJson.Codeunit.al index 8b79947b49..fe80aae12f 100644 --- a/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataInputs/TestInputJson.Codeunit.al +++ b/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataInputs/TestInputJson.Codeunit.al @@ -115,6 +115,8 @@ codeunit 130464 "Test Input Json" if TextOutput = 'null' then exit(''); + TextOutput := TextOutput.TrimStart('"').TrimEnd('"'); + exit(TextOutput); end; From cb17972eabca50294f9fc2cfdcead1120cbaef44 Mon Sep 17 00:00:00 2001 From: Stig Killendahl Date: Mon, 13 Jan 2025 17:03:37 +0100 Subject: [PATCH 2/2] Also trim in test output json --- .../src/DataDrivenTest/DataOutputs/TestOutputJson.Codeunit.al | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataOutputs/TestOutputJson.Codeunit.al b/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataOutputs/TestOutputJson.Codeunit.al index 96d65d1831..389f888c59 100644 --- a/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataOutputs/TestOutputJson.Codeunit.al +++ b/src/Tools/Test Framework/Test Runner/src/DataDrivenTest/DataOutputs/TestOutputJson.Codeunit.al @@ -202,6 +202,8 @@ codeunit 130462 "Test Output Json" if TextOutput = 'null' then exit(''); + TextOutput := TextOutput.TrimStart('"').TrimEnd('"'); + exit(TextOutput); end;