-
Notifications
You must be signed in to change notification settings - Fork 194
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
Hierarchy Lookup for Expression Resolver #163
Comments
Just remember to keep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem:
Currently we have
StringPropertyReplacer
to resolve expression${p}
.I am running my tests with failsafe configuration like
If I am using expression language to resolve
${APP_NAME}
, I will useIt works fine from
mvn build
. But if I tries to run if from IDE(che), it doesn't resolve this property which is fine becuase we don't have system property or env variable set. But even if I set env variable by nameAPP_NAME
, it won't resolve it because during test execution core will set all env vars to system properties by prefixing it withenv.
, which meanAPP_NAME
env variable will be available in system properties by nameenv.APP_NAME
.To make it workable I have to change code to following
Proposed Solution:
It'll be good if we provide some hierarchy for lookup `System.getProperty(APP_NAME) - > System.getenv(APP_NAME) -> System.getProperty("env.APP_NAME"), so user can easily use same code for both the cases(through system property and env var)
The text was updated successfully, but these errors were encountered: