Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[25.x] Fixing update of the test methods #2839

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,19 @@ codeunit 130456 "Test Suite Mgt."
Dialog.Update(2, format(Counter) + '/' + format(TotalCount) + ' (' + format(round(Counter / TotalCount * 100, 1)) + '%)');
end;

TempTestMethodLine.TransferFields(TestMethodLine);
TempTestMethodLine.Insert();
ExpandDataDrivenTests.SetDataDrivenTests(TempTestMethodLine);
BindSubscription(ExpandDataDrivenTests);
if TestMethodLine."Data Input Group Code" <> '' then begin
TempTestMethodLine.TransferFields(TestMethodLine);
TempTestMethodLine.Insert();
ExpandDataDrivenTests.SetDataDrivenTests(TempTestMethodLine);
BindSubscription(ExpandDataDrivenTests);
end;

TestRunnerGetMethods.SetUpdateTests(true);
TestRunnerGetMethods.Run(TestMethodLine);
UnbindSubscription(ExpandDataDrivenTests);
TempTestMethodLine.DeleteAll();
if TempTestMethodLine."Data Input Group Code" <> '' then begin
UnbindSubscription(ExpandDataDrivenTests);
TempTestMethodLine.DeleteAll();
end;
until TestMethodLine.Next() = 0;

if GuiAllowed() then
Expand Down Expand Up @@ -481,7 +486,8 @@ codeunit 130456 "Test Suite Mgt."
CodeunitTestMethodLine.SetRange("Test Codeunit", TestMethodLine."Test Codeunit");
CodeunitTestMethodLine.SetRange("Line Type", TestMethodLine."Line Type"::Codeunit);
CodeunitTestMethodLine.SetAscending("Line No.", true);
CodeunitTestMethodLine.FindLast();
if not CodeunitTestMethodLine.FindLast() then
CodeunitTestMethodLine."Line No." := TestMethodLine."Line No.";

NextCodeunitTestMethodLine.SetFilter("Line No.", '>%1', TestMethodLine."Line No.");
NextCodeunitTestMethodLine.SetRange("Test Suite", TestMethodLine."Test Suite");
Expand Down
Loading