We have step classes which have the following inheritance hierarchy from Serenity ScenarioSteps:
OurStepsClass -> OurStepsBaseClass -> ScenarioSteps
We use Serenity.takeScreenshot() in several spots in each of the above
With Serenity / Thucydides version 1.0.25 and earlier, this worked fine
With Serenity 1.0.31 and later (including latest 1.0.35), we are getting the error below for these, and have had to temporarily comment-out these Serenity.takeScreenshot() calls to get the tests to pass:
java.lang.NullPointerException: No BaseStepListener has been registered
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)
at net.thucydides.core.steps.StepEventBus.getBaseStepListener(StepEventBus.java:94)
at net.thucydides.core.steps.StepEventBus.takeScreenshot(StepEventBus.java:527)
at net.serenitybdd.core.Serenity.takeScreenshot(Serenity.java:221)
br