Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@t-prda
Copy link
Contributor

@t-prda t-prda commented Oct 2, 2024

Summary

Support loading of dataset and xml during OnInstall of the AI test apps
Introduce two new methods in AIT Test Context:
ImportTestInputs:
2. Overwrite dataset if it is imported by the same test app
3. Throw an error if the app is modifying an existing dataset uploaded by a different app

ImportAITestSuite:

  1. Skip if the same suite is already imported by the same app
  2. Error if the same suite is already imported with a different XML by the same app
  3. Error if the same suite is already imported by a different app

Example usage from Test App:

codeunit 139784 "SLS Test Install"
{
    Subtype = Install;
trigger OnInstallAppPerCompany()
var
    AITALTestSuiteMgt: Codeunit "AIT AL Test Suite Mgt";
    ResInStream: InStream;
begin
    NavApp.GetResource(ResFilePath, ResInStream);
    AITALTestSuiteMgt.ImportTestInputs(FileName, ResInStream);

    NavApp.GetResource(ResFilePath, ResInStream);
    AITALTestSuiteMgt.ImportAITestSuite(ResInStream);
end;
}

Work Item(s)

Fixes AB#542465

@t-prda t-prda requested a review from a team as a code owner October 2, 2024 15:52
@github-actions github-actions bot added this to the Version 26.0 milestone Oct 2, 2024
BardurKnudsen
BardurKnudsen previously approved these changes Oct 3, 2024
nikolakukrika
nikolakukrika previously approved these changes Oct 3, 2024
nikolakukrika
nikolakukrika previously approved these changes Oct 8, 2024
@t-prda t-prda enabled auto-merge (squash) October 9, 2024 10:53
@t-prda t-prda merged commit f7df3dc into main Oct 14, 2024
@t-prda t-prda deleted the features/542465-support-importing-dataset-and-suite branch October 14, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants