-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AI Test Tool] Improve compare page (#1927)
<!-- Thank you for submitting a Pull Request. If you're new to contributing to BCApps please read our pull request guideline below * https://github.com/microsoft/BCApps/Contributing.md --> ### Summary <!-- Provide a general summary of your changes --> This PR adds some improvements to the compare page, specifically: 1. Introduce new page that shows entire history of runs 1. Add capability to view by tag or version 1. Allow filtering results to specific test lines 1. Improve the tool tips, captions and variable names. Delete unused fields and pages 1. Introduce new page for viewing test input/output and comparing 1. Add missing objects to permission sets ### Screenshots UI #### Run history page, view by version: ![image](https://github.com/user-attachments/assets/f8085da0-8d00-4918-9073-389a0d9953fe) #### Run history page, view by tag: ![image](https://github.com/user-attachments/assets/f436c771-9db5-4f5e-b601-5096ea25effe) #### Run history page, filter history to specific lines: ![image](https://github.com/user-attachments/assets/00426d3c-87d4-4acf-b259-66bb6d2e4da3) #### Compare test data ![image](https://github.com/user-attachments/assets/8f5c4370-9e20-4d7b-b737-85d6ea0d951c) #### Work Item(s) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes [AB#541857](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/541857/)
- Loading branch information
Showing
23 changed files
with
877 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/Tools/AI Test Toolkit/src/Logs/AITRunHistory.Codeunit.al
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// ------------------------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
namespace System.TestTools.AITestToolkit; | ||
|
||
codeunit 149036 "AIT Run History" | ||
{ | ||
Access = Internal; | ||
|
||
procedure GetHistory(Code: Code[100]; LineNo: Integer; AITViewBy: Enum "AIT Run History - View By"; var TempAITRunHistory: Record "AIT Run History" temporary) | ||
var | ||
AITRunHistory: Record "AIT Run History"; | ||
SeenTags: List of [Text[20]]; | ||
begin | ||
TempAITRunHistory.DeleteAll(); | ||
AITRunHistory.SetRange("Test Suite Code", Code); | ||
|
||
if AITViewBy = AITViewBy::Version then | ||
if AITRunHistory.FindSet() then | ||
repeat | ||
TempAITRunHistory.TransferFields(AITRunHistory); | ||
TempAITRunHistory.Insert(); | ||
until AITRunHistory.Next() = 0; | ||
|
||
if AITViewBy = AITViewBy::Tag then | ||
if AITRunHistory.FindSet() then | ||
repeat | ||
if not SeenTags.Contains(AITRunHistory.Tag) then begin | ||
TempAITRunHistory.TransferFields(AITRunHistory); | ||
TempAITRunHistory.Insert(); | ||
end; | ||
SeenTags.Add(AITRunHistory.Tag); | ||
until AITRunHistory.Next() = 0; | ||
|
||
if (LineNo <> 0) then | ||
TempAITRunHistory.SetRange("Line No. Filter", LineNo) | ||
end; | ||
} |
Oops, something went wrong.