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

Serenity Execute on multiple environment with gradle #36

Open
PreethiJeevi opened this issue May 23, 2024 · 0 comments
Open

Serenity Execute on multiple environment with gradle #36

PreethiJeevi opened this issue May 23, 2024 · 0 comments

Comments

@PreethiJeevi
Copy link

Attached is serenity.conf and serenity.properties file.

serenity.conf.txt
serenity.properties.txt

Below error is displayed.

Step failed
net.serenitybdd.core.environment.UndefinedEnvironmentVariableException: Environment 'env' property undefined for environment '[]'
at net.serenitybdd.core.environment.EnvironmentSpecificConfiguration.lambda$getProperty$7(EnvironmentSpecificConfiguration.java:141)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at net.serenitybdd.core.environment.EnvironmentSpecificConfiguration.getProperty(EnvironmentSpecificConfiguration.java:137)
at com.essentracomponenet.serenity.util.PropertyHelper.getEnvironment(PropertyHelper.java:53)
at com.essentracomponenet.serenity.config.LaHook.preProdAuthHandler(LaHook.java:606)

but the same configuration works with maven.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant