diff --git a/src/Tools/AI Test Toolkit/AITestSummary.xlsx b/src/Tools/AI Test Toolkit/AITestSummary.xlsx new file mode 100644 index 0000000000..e938bfeb3b Binary files /dev/null and b/src/Tools/AI Test Toolkit/AITestSummary.xlsx differ diff --git a/src/Tools/AI Test Toolkit/Results.xlsx b/src/Tools/AI Test Toolkit/Results.xlsx deleted file mode 100644 index 67acce438b..0000000000 Binary files a/src/Tools/AI Test Toolkit/Results.xlsx and /dev/null differ diff --git a/src/Tools/AI Test Toolkit/src/AITTestContextImpl.Codeunit.al b/src/Tools/AI Test Toolkit/src/AITTestContextImpl.Codeunit.al index 74d038b737..d9f49b6979 100644 --- a/src/Tools/AI Test Toolkit/src/AITTestContextImpl.Codeunit.al +++ b/src/Tools/AI Test Toolkit/src/AITTestContextImpl.Codeunit.al @@ -163,9 +163,10 @@ codeunit 149043 "AIT Test Context Impl." end; /// - /// Gets the accuracy of the test. + /// Gets the accuracy of the test. Can only be retrieved if the accuracy of the test was already set manually. /// - /// True if the accuracy was set, false otherwise. + /// The accuracy as a decimal between 0 and 1. + /// True if it was possible to get the accuracy, false otherwise. procedure GetAccuracy(var AccuracyPct: Decimal): Boolean begin if AccuracySetManually then begin diff --git a/src/Tools/AI Test Toolkit/src/Logs/AITLogEntries.Page.al b/src/Tools/AI Test Toolkit/src/Logs/AITLogEntries.Page.al index 14186a9b4f..5c0e79362a 100644 --- a/src/Tools/AI Test Toolkit/src/Logs/AITLogEntries.Page.al +++ b/src/Tools/AI Test Toolkit/src/Logs/AITLogEntries.Page.al @@ -270,17 +270,17 @@ page 149033 "AIT Log Entries" Page.Run(Page::"AIT Test Data Compare", Rec); end; } - action("Export Results") + action("Download Test Summary") { - Caption = 'Export Results'; + Caption = 'Download Test Summary'; Image = Export; - ToolTip = 'Exports the results.'; + ToolTip = 'Downloads a summary of the test results.'; trigger OnAction() var AITTestSuiteMgt: Codeunit "AIT Test Suite Mgt."; begin - AITTestSuiteMgt.ExportResults(Rec); + AITTestSuiteMgt.DownloadTestSummary(Rec); end; } } @@ -309,7 +309,7 @@ page 149033 "AIT Log Entries" actionref("View Test Data_Promoted"; "View Test Data") { } - actionref("Export Results_Promoted"; "Export Results") + actionref("Export Results_Promoted"; "Download Test Summary") { } } diff --git a/src/Tools/AI Test Toolkit/src/Logs/AITLogEntry.Table.al b/src/Tools/AI Test Toolkit/src/Logs/AITLogEntry.Table.al index 3214f84d53..e024c8533d 100644 --- a/src/Tools/AI Test Toolkit/src/Logs/AITLogEntry.Table.al +++ b/src/Tools/AI Test Toolkit/src/Logs/AITLogEntry.Table.al @@ -172,7 +172,7 @@ table 149034 "AIT Log Entry" field(45; Accuracy; Decimal) { Caption = 'Accuracy'; - ToolTip = 'Specifies the accuracy of the test line.'; + ToolTip = 'Specifies the accuracy of the test line. The accuracy is calculated as the percentage of turns that passed or can be set manually by the test.'; } field(50; "Tokens Consumed"; Integer) { diff --git a/src/Tools/AI Test Toolkit/src/Logs/AITResults.Report.al b/src/Tools/AI Test Toolkit/src/Logs/AITTestSummary.Report.al similarity index 94% rename from src/Tools/AI Test Toolkit/src/Logs/AITResults.Report.al rename to src/Tools/AI Test Toolkit/src/Logs/AITTestSummary.Report.al index 228e58633c..d0f87422fa 100644 --- a/src/Tools/AI Test Toolkit/src/Logs/AITResults.Report.al +++ b/src/Tools/AI Test Toolkit/src/Logs/AITTestSummary.Report.al @@ -5,13 +5,13 @@ namespace System.TestTools.AITestToolkit; -report 149030 "AIT Results" +report 149030 "AIT Test Summary" { - Caption = 'AI Test Results'; + Caption = 'AI Test Summary'; ApplicationArea = All; UsageCategory = Tasks; DefaultLayout = Excel; - ExcelLayout = 'Results.xlsx'; + ExcelLayout = 'AITestSummary.xlsx'; dataset { diff --git a/src/Tools/AI Test Toolkit/src/TestSuite/AITTestMethodLine.Table.al b/src/Tools/AI Test Toolkit/src/TestSuite/AITTestMethodLine.Table.al index 03b666b7e9..fa166aec8b 100644 --- a/src/Tools/AI Test Toolkit/src/TestSuite/AITTestMethodLine.Table.al +++ b/src/Tools/AI Test Toolkit/src/TestSuite/AITTestMethodLine.Table.al @@ -185,7 +185,7 @@ table 149032 "AIT Test Method Line" field(45; Accuracy; Decimal) { Caption = 'Accuracy'; - ToolTip = 'Specifies the average accuracy of the test line.'; + ToolTip = 'Specifies the average accuracy of the test line. The accuracy is calculated as the percentage of turns that passed or can be set manually by the test.'; Editable = false; FieldClass = FlowField; CalcFormula = average("AIT Log Entry"."Accuracy" where("Test Suite Code" = field("Test Suite Code"), "Test Method Line No." = field("Line No."), Version = field("Version Filter"), Operation = const('Run Procedure'), "Procedure Name" = filter(<> ''))); diff --git a/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuite.Table.al b/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuite.Table.al index 85c78c81de..c0594135e4 100644 --- a/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuite.Table.al +++ b/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuite.Table.al @@ -164,7 +164,7 @@ table 149030 "AIT Test Suite" field(25; Accuracy; Decimal) { Caption = 'Accuracy'; - ToolTip = 'Specifies the average accuracy of the test suite.'; + ToolTip = 'Specifies the average accuracy of the test suite. The accuracy is calculated as the percentage of turns that passed or can be set manually by the test.'; Editable = false; FieldClass = FlowField; CalcFormula = average("AIT Log Entry"."Accuracy" where("Test Suite Code" = field("Code"), Version = field("Version"), Operation = const('Run Procedure'), "Procedure Name" = filter(<> ''))); diff --git a/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuiteMgt.Codeunit.al b/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuiteMgt.Codeunit.al index 7ce127971c..d3ef0c321f 100644 --- a/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuiteMgt.Codeunit.al +++ b/src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuiteMgt.Codeunit.al @@ -29,8 +29,8 @@ codeunit 149034 "AIT Test Suite Mgt." FeatureNameLbl: Label 'AI Test Toolkit', Locked = true; LineNoFilterLbl: Label 'Codeunit %1 "%2" (Input: %3)', Locked = true; TurnsLbl: Label '%1/%2', Comment = '%1 - No. of turns that passed, %2 - Total no. of turns'; - DownloadResultsLbl: Label 'Download results'; - ResultsFileNameLbl: Label 'Results.xlsx', Locked = true; + DownloadResultsLbl: Label 'Download Test Summary'; + ResultsFileNameLbl: Label 'AITestSummary.xlsx', Locked = true; procedure StartAITSuite(Iterations: Integer; var AITTestSuite: Record "AIT Test Suite") var @@ -457,9 +457,9 @@ codeunit 149034 "AIT Test Suite Mgt." exit(FeatureNameLbl); end; - internal procedure ExportResults(var AITLogEntries: Record "AIT Log Entry") + internal procedure DownloadTestSummary(var AITLogEntries: Record "AIT Log Entry") var - AITResults: Report "AIT Results"; + AITResults: Report "AIT Test Summary"; ResultsTempBlob: Codeunit "Temp Blob"; ResultsOutStream: OutStream; ResultsInStream: InStream;