In Serenity-Cucumber execution, I am trying to insert Soft asserts in the Serenity Steps using the following command
This isn't showing any effective soft Assertion . Where as when I do the same enableSoftAsserts() through the Step EventBus , in the Execution through Serenity-Junit , I am able to achieve the SoftAssertion, i.e. able to execute the Later Steps even a step fails in between. Can you please let me know how to achive the same SoftAssertion behaviour in Serenity-Cucumber:JVM as that of Serenity-Junit. Also, I am not using Serenity ScreenPlay, I am just calling enableSoftAsserts() method in the Before Method of Test of Junit. |
--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
Visit this group at https://groups.google.com/group/thucydides-users.
For more options, visit https://groups.google.com/d/optout.
StepEventBus.getEventBus().enableSoftAsserts();
This is an internal API, and I would have to check, but I expect the soft asserts would work within the scope of a step, but not across multiple steps.
On 2 January 2018 at 19:03, Vayu Teja Amarnath Navuluri <vayu...@gmail.com> wrote:
In Serenity-Cucumber execution, I am trying to insert Soft asserts in the Serenity Steps using the following command
StepEventBus.getEventBus().enableSoftAsserts();
This isn't showing any effective soft Assertion .
Where as when I do the same enableSoftAsserts() through the Step EventBus ,
in the Execution through Serenity-Junit , I am able to achieve the SoftAssertion, i.e. able to execute the Later Steps even a step fails in between.
Can you please let me know how to achive the same SoftAssertion behaviour in Serenity-Cucumber:JVM as that of Serenity-Junit.
Also, I am not using Serenity ScreenPlay, I am just calling enableSoftAsserts() method in the Before Method of Test of Junit.
--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
Visit this group at https://groups.google.com/group/thucydides-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
Visit this group at https://groups.google.com/group/thucydides-users.
For more options, visit https://groups.google.com/d/optout.