Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3655

How to execute each scenario outlines in parallel, but the outline examples of each scenario in sequential manner

$
0
0

Considering I have the parallel tag set to true at the feature file level, Can I have the scenario outline examples executed in sequential manner?

Test.feature:

@parallel=true@MS_Feature1_Test@TestCase1Scenario Outline: This is to validate TC1Given ...Then ....Examples:  |Steps        |Outcome|  |'Call API 1' |'PASS' |    |'Call API 2' |'PASS' |  |'Call API 3' |'PASS' |@TestCase2Scenario Outline: This is to validate TC2Given ...Then ....Examples:  |Steps        |Outcome|  |'Call API 1' |'PASS' |    |'Call API 2' |'PASS' |  |'Call API 3' |'PASS' |

As per the above feature file, I would want @TestCase1 and @TestCase2 to start execution in parallel, but the Steps(Examples) "Call API 1" , "Call API 2" and "Call API3" to be executed in sequential manner.

Is there a way I can achieve this in Karate?


Viewing all articles
Browse latest Browse all 3655

Trending Articles