Karate - How to use java execution hook for parallel execution

Viewed 499

I am trying to implement a beforeStep execution hook.

It has been successfuly with

                Results result = Runner
                .path("/Users/FindStoryByID.feature")
                .hook(new KarateExecutionHockExample()).parallel(1);

How to achieve such feat if we want to use the parallel execution like below? I cannot seem to chain the .hook with Runner.parallel

    Results results = Runner.parallel(getClass(), 20);

Thanks a lot!

1 Answers
Related