zerocode icon indicating copy to clipboard operation
zerocode copied to clipboard

@Before and @After skipped - Zerocode - Testrail

Open SuyogSSS opened this issue 3 years ago • 1 comments

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.

SuyogSSS avatar Oct 06 '21 14:10 SuyogSSS

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

sparrowV avatar Nov 24 '21 19:11 sparrowV