You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrade when i try to run a test encontered with Step InitialisationExcetion
Error message:
Step failed
net.serenitybdd.core.exceptions.StepInitialisationException: Failed to create step library for ConnectionSteps:Failed to create step library for EnvironmentVariables:Could not create type
You shouldn't have the @steps annotation for the EnvironmentVariable field - just use SerenityInfrastructure.getEnvironmentVariables() whenever you need the environment variables.
What happened?
I was trying upgrade serenity version in the Test framework from 2.6.x to 4.0.15 and followed the migiration steps as outlined in https://serenity-bdd.github.io/docs/tutorials/migrating_to_serenity_4
After upgrade when i try to run a test encontered with Step InitialisationExcetion
Error message:
Step failed
net.serenitybdd.core.exceptions.StepInitialisationException: Failed to create step library for ConnectionSteps:Failed to create step library for EnvironmentVariables:Could not create type
ConnectionSteps.java
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import net.serenitybdd.annotations.Step;
import net.serenitybdd.annotations.Steps;
import net.serenitybdd.model.environment.EnvironmentSpecificConfiguration;
import net.thucydides.model.util.EnvironmentVariables;
public class ConnectionSteps extends BaseSteps {
}
What did you expect to happen?
@wakaleo All my test are running find in the older version 2.6.x but in the 4.0.15 it started to faile due to StepInitialisationException
Serenity BDD version
4.0.15
JDK version
11
Execution environment
Local
How to reproduce the bug.
Create project with
Page class extends BasePage
Steps extends BaseSteps
Create feature file and runner class
Execute test
How can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up
The text was updated successfully, but these errors were encountered: