通过多线程重用空手道功能时出错
Error when reusing karate features with multithreading
以下代码适用于单线程:
* def validateAricle = 'file:features/Articles.feature@validateArticle'
* def articles = {"id": 12}
* call read(validateArticle) articles
但是有多个线程时出现以下错误
Multi threaded access requested by thread Thread[pool-5-thread-1,5,main] but is not allowed for language(s) js.
这个错误可以从 1.0.1 版本重现(我在 1.0.0 版本中也发生过)。在更新到版本 1.0.0 之前,我在重用功能时没有遇到任何问题
是的,我们希望我们已经在 develop
分支中解决了这个问题:https://github.com/intuit/karate/issues/1558
您现在可以做的最好的事情(并帮助加快发布)是遵循开发人员指南,从源代码构建然后验证它是否适用于您的边缘情况:https://github.com/intuit/karate/wiki/Developer-Guide
如果没有,请务必按照以下过程进行复制:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
我希望这可以提醒大家,请测试我们 spend so much time on releasing 的 RC 版本(1.X 几个月)。
以下代码适用于单线程:
* def validateAricle = 'file:features/Articles.feature@validateArticle'
* def articles = {"id": 12}
* call read(validateArticle) articles
但是有多个线程时出现以下错误
Multi threaded access requested by thread Thread[pool-5-thread-1,5,main] but is not allowed for language(s) js.
这个错误可以从 1.0.1 版本重现(我在 1.0.0 版本中也发生过)。在更新到版本 1.0.0 之前,我在重用功能时没有遇到任何问题
是的,我们希望我们已经在 develop
分支中解决了这个问题:https://github.com/intuit/karate/issues/1558
您现在可以做的最好的事情(并帮助加快发布)是遵循开发人员指南,从源代码构建然后验证它是否适用于您的边缘情况:https://github.com/intuit/karate/wiki/Developer-Guide
如果没有,请务必按照以下过程进行复制:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
我希望这可以提醒大家,请测试我们 spend so much time on releasing 的 RC 版本(1.X 几个月)。