问题描述
在新版本(0.9.0)中,我看到karatedsl能够在方案级别运行并行测试(每个功能将分解为方案,并在每个线程中作为1个方案运行).因此,例如,我有4个功能,对于功能1和2,我想在场景级别运行并行测试,对于功能3和4在功能级别运行(由于某些情况,我必须做这些事情).所以,对我有什么解决方案或建议吗?
in new release(0.9.0),I saw that karatedsl able to run parallel tests in scenario level (each feature will be breakdown into scenarios and run as 1 scenario per thread)..so for example, I have 4 features, for feature 1 and 2 I want to run parallel tests in scenario level and for feature 3 and 4 in feature level(because of some case I have to do these things)..so, are there any solution or suggestion for me how can I do it ??
推荐答案
对于不想在场景级别运行的功能,可以在功能中添加 parallel = false
标记.
For Feature you don't want to run on scenario level you can add parallel=false
tag to your feature.
@parallel=false
Feature:
这篇关于空手道DSL-运行并行功能和方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!