Error when reusing karate features with multithreading

Viewed 171

The following code works fine with a single thread:

 * def validateAricle = 'file:features/Articles.feature@validateArticle'  
 * def articles = {"id": 12}
 * call read(validateArticle) articles

but having more than one thread I get the following error

Multi threaded access requested by thread Thread[pool-5-thread-1,5,main] but is not allowed for language(s) js.

This error can be reproduced from version 1.0.1 (it also happens to me in version 1.0.0). Before updating to version 1.0.0 I had no problems reusing features

1 Answers

Yes, we hope we have fixed this in the develop branch: https://github.com/intuit/karate/issues/1558

The best thing you can do now (and to help expedite a release) is to follow the developer guide, build from source and then verify that it works for your edge case: https://github.com/intuit/karate/wiki/Developer-Guide

If not, it is very important that you follow this process to replicate: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

And I hope that this can be a reminder to everyone that please test the RC versions that we spend so much time on releasing (a few months for 1.X).

Related