空手道DSL-运行并行功能和方案 [英] karate dsl - running parallel features and scenarios

查看:70
本文介绍了空手道DSL-运行并行功能和方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新版本(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-运行并行功能和方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆