-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Hi,
as stated in the documentation Multiple calls using karate.callSingle() I am trying to use different keys for callSingle cache:
var adminResponse = karate.callSingle('classpath:get-token.feature?admin', {'username': 'admin', 'password': 'password123' });
callSingle tries to create a file:
target\classpath-get-token.feature?admin.txt
but fails with this error (The filename, directory name, or volume label syntax is incorrect)
>>> failed features:
java.io.FileNotFoundException: target\classpath-get-token.feature?admin.txt (The filename, directory name, or volume label syntax is incorrect)
src/test/resources/apis/EventsApi/listEvents.feature:43
src/test/resources/apis/EventsApi/listEvents.feature:12
java.io.FileNotFoundException: target\classpath-get-token.feature?admin.txt (The filename, directory name, or volume label syntax is incorrect)
src/test/resources/apis/EventsApi/listEvents.feature:43
src/test/resources/apis/EventsApi/listEvents.feature:26
because in Windows the character '?' is reserved (as reported here Windows - Files - Naming Conventions characters <>:"/|?* are reserved).
Is there a possible workaround for Windows? If not, could you please remove these reserved characters from the filename?
Thank you.