Skip to content

Conversation

tnleeuw
Copy link
Contributor

@tnleeuw tnleeuw commented May 23, 2025

Also add an option to use property from scenario file, or from the included file.

@tnleeuw tnleeuw requested review from evandongen and nielsm5 May 23, 2025 11:37
@tnleeuw tnleeuw self-assigned this May 23, 2025
@tnleeuw tnleeuw added the Larva label May 23, 2025
@@ -34,6 +34,7 @@ public class LarvaConfig {

private @Getter @Setter int timeout = GLOBAL_TIMEOUT_MILLIS;
private @Getter @Setter int waitBeforeCleanup = 100;
private @Getter @Setter boolean scenarioPropertyOverridesIncluded = AppConstants.getInstance().getBoolean("larva.scenarioPropertyOverridesIncluded", false);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the name of this option, or the app-constant property.

Please suggest a better name!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik kom niet echt op wat beters helaas

@@ -32,7 +32,7 @@ public enum LarvaLogLevel {
SCENARIO_PASSED_FAILED("scenario passed/failed"),
SCENARIO_FAILED("scenario failed"),
TOTALS("totals"),
WARNING("error"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dat is best vreemd

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasta foutje van een vorig PR denk ik

messages.add(new LarvaMessage(LarvaLogLevel.WARNING, warning));
}

public void addError(@Nonnull String warning) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error? ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy-pasta foutje 🙈

includeFilename = properties.getProperty("include" + i);
}
while (includeFilename != null) {
private @Nonnull List<LarvaMessage> addIncludedProperties(@Nonnull File scenarioFile, @Nonnull Properties properties, @Nonnull String directory) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addIncludedPropertiesAndGetWarnings oid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vind ik ook niks. Misschien als extra parameter meegeven aan alle methods, waarin alle warnings van het laden van een scenario kunnen worden toegevoegd.

@@ -34,6 +34,7 @@ public class LarvaConfig {

private @Getter @Setter int timeout = GLOBAL_TIMEOUT_MILLIS;
private @Getter @Setter int waitBeforeCleanup = 100;
private @Getter @Setter boolean scenarioPropertyOverridesIncluded = AppConstants.getInstance().getBoolean("larva.scenarioPropertyOverridesIncluded", false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik kom niet echt op wat beters helaas

Copy link

@github-project-automation github-project-automation bot moved this to In Progress in Frank!Framework May 26, 2025
@tnleeuw tnleeuw moved this from In Progress to Review in Frank!Framework May 26, 2025
@tnleeuw tnleeuw added this to the 9.2.0 milestone May 26, 2025
@nielsm5 nielsm5 merged commit 41c0759 into master May 26, 2025
30 checks passed
@nielsm5 nielsm5 deleted the techdebt/Larva/GlobalPropertiesDontOverrideScenarioProperties branch May 26, 2025 07:53
@github-project-automation github-project-automation bot moved this from Review to Done in Frank!Framework May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants