diff --git a/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Page.al b/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Page.al index ee0f64076..a0f5d3f1e 100644 --- a/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Page.al +++ b/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Page.al @@ -127,6 +127,12 @@ page 149036 "AIT Run History" Caption = 'Total Duration (ms)'; ToolTip = 'Specifies Total Duration of the tests for the base version.'; } + field("Tokens - By Version"; Rec."Tokens Consumed") + { + Visible = ViewBy = ViewBy::Version; + Caption = 'Total Tokens Consumed'; + ToolTip = 'Specifies the aggregated number of tokens consumed by the test in the current version. This is applicable only when using Microsoft AI Module.'; + } field("No. of Tests - By Tag"; Rec."No. of Tests Executed - By Tag") { Visible = ViewBy = ViewBy::Tag; @@ -161,6 +167,12 @@ page 149036 "AIT Run History" Caption = 'Total Duration (ms)'; ToolTip = 'Specifies Total Duration of the tests for the base version.'; } + field("Tokens - By Tag"; Rec."Tokens Consumed - By Tag") + { + Visible = ViewBy = ViewBy::Tag; + Caption = 'Total Tokens Consumed'; + ToolTip = 'Specifies the aggregated number of tokens consumed by the test in the current version. This is applicable only when using Microsoft AI Module.'; + } } } } diff --git a/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Table.al b/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Table.al index 168df58cf..41756ff94 100644 --- a/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Table.al +++ b/src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Table.al @@ -66,6 +66,14 @@ table 149036 "AIT Run History" FieldClass = FlowField; CalcFormula = sum("AIT Log Entry"."Duration (ms)" where("Test Suite Code" = field("Test Suite Code"), "Version" = field("Version"), "Test Method Line No." = field("Line No. Filter"), Operation = const('Run Procedure'), "Procedure Name" = filter(<> ''))); } + field(13; "Tokens Consumed"; Integer) + { + Caption = 'Total Tokens Consumed'; + ToolTip = 'Specifies the aggregated number of tokens consumed by the test in the current version. This is applicable only when using Microsoft AI Module.'; + Editable = false; + FieldClass = FlowField; + CalcFormula = sum("AIT Log Entry"."Tokens Consumed" where("Test Suite Code" = field("Test Suite Code"), Version = field("Version"), "Test Method Line No." = field("Line No. Filter"), Operation = const('Run Procedure'), "Procedure Name" = filter(<> ''))); + } field(20; "No. of Tests Executed - By Tag"; Integer) { Caption = 'No. of Tests Executed'; @@ -90,6 +98,14 @@ table 149036 "AIT Run History" FieldClass = FlowField; CalcFormula = sum("AIT Log Entry"."Duration (ms)" where("Test Suite Code" = field("Test Suite Code"), "Test Method Line No." = field("Line No. Filter"), Tag = field(Tag), Operation = const('Run Procedure'), "Procedure Name" = filter(<> ''))); } + field(23; "Tokens Consumed - By Tag"; Integer) + { + Caption = 'Total Tokens Consumed'; + ToolTip = 'Specifies the aggregated number of tokens consumed by the test in the current version. This is applicable only when using Microsoft AI Module.'; + Editable = false; + FieldClass = FlowField; + CalcFormula = sum("AIT Log Entry"."Tokens Consumed" where("Test Suite Code" = field("Test Suite Code"), "Test Method Line No." = field("Line No. Filter"), Tag = field(Tag), Operation = const('Run Procedure'), "Procedure Name" = filter(<> ''))); + } } keys