You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following feature, multipart field is a json .
I passed it converted to a string to build a request successfully in multiPartInternal()
Scenario: karate test
* url endpoint
* def abc =
"""
{
a: 'b'
b: {
c: 'd'
}
}
"""
Given path '/api/path'
And headers required_headers
And multipart file mediaFile = { read: 'image.png', filename: 'image.png', contentType: 'image/png'}
And multipart field abc = JSON.stringfy(abc)
When method post
Then status 200
And match response.status contains 'ok'
The feature failed with the following output.
{"message":"Content type 'text/plain;charset=UTF-8' not supported"}
After upgrading to 1.0.1, I faced this issue.
In the following feature, multipart field is a json .
I passed it converted to a string to build a request successfully in
multiPartInternal()
The feature failed with the following output.
logs:
The text was updated successfully, but these errors were encountered: