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
I'm getting this very strange exception. It happens in a test method which uses the Assume.assumeThat which actually turns false and test should be ignored but it fails on the execution of the @After method call (which one is actually making and http external call to cleanup). What is strange is that Intelij junit runner is actually showing this test as Ignored but Serenity report says ERROR in this post Step.
10:14:55.375 [main] DEBUG net.thucydides.core.steps.StepInterceptor - STEP FAILED: Delete customer {0} - io.restassured.internal.RestAssuredResponseOptionsImpl cannot be cast to io.restassured.response.ResponseOptions
org.junit.AssumptionViolatedException: got: <[null]>, expected: every item is not null
at net.serenitybdd.junit.runners.SerenityStatement.checkForAssumptionViolations(SerenityStatement.java:59)
at net.serenitybdd.junit.runners.SerenityStatement.evaluate(SerenityStatement.java:42)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at net.serenitybdd.junit.runners.SerenityRunner.performRunChild(SerenityRunner.java:472)
at net.serenitybdd.junit.runners.SerenityRunner.runChild(SerenityRunner.java:447)
at net.serenitybdd.junit.runners.SerenityRunner.runChild(SerenityRunner.java:55)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at net.serenitybdd.junit.runners.SerenityRunner.run(SerenityRunner.java:252)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
10:14:55.472 [main] ERROR net.serenitybdd.core.Serenity -
I have updated serenity and libraries to latest 1.8.12 (from 1.2.2) and explicit rest-assured dependency to 3.0.5 but this exception still happens. Message is quite weird as both classes comes from rest-assured library and RestAssuredResponseOptionsImpl actually implements ResponseOptions so I don't get it :) . Any ideas what can I check more ?
The text was updated successfully, but these errors were encountered:
I'm getting this very strange exception. It happens in a test method which uses the
Assume.assumeThat
which actually turns false and test should be ignored but it fails on the execution of the@After
method call (which one is actually making and http external call to cleanup). What is strange is that Intelij junit runner is actually showing this test as Ignored but Serenity report says ERROR in this post Step.I have updated serenity and libraries to latest 1.8.12 (from 1.2.2) and explicit rest-assured dependency to 3.0.5 but this exception still happens. Message is quite weird as both classes comes from rest-assured library and
RestAssuredResponseOptionsImpl
actually implementsResponseOptions
so I don't get it :) . Any ideas what can I check more ?The text was updated successfully, but these errors were encountered: