zerocode
zerocode copied to clipboard
@Before and @After skipped - Zerocode - Testrail
Hello,
I am new to zerocode and Junit. I was trying to integrate my test runs with testrail using Junit and Zerocde. I refered : https://github.com/swtestacademy/TestRailsIntegration
When I run it as plain JUnit test. it works fine. But when I run it along zerocode(@TargetEnv, @Scenario, ZeroCodeUnitRunner.class) then @Before and @After is skipped due to which my testcase in testRail does not execute.
Also, is there a way by which I can store my request and response of a step to a java variable that can be consumed somewhere else? i want to add that to test case ids in TestRail.
~ Please forgive if my question is lame.
HI @SuyogSSS With regard to @Before and @After , can you share the minimum reproducible code with us so we can see in detail?
With regard to storing req/resp in Java variable, there is no out of the box solution, you can leverage method execution from a scenario.
You can also join us in the Slack