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
Hi
I am using Karate version 1.3.1 for our projects. Currently we have a use case to test an API which is taking a file and a metadata as part of the request.
we are using multipart file and field to write our feature file, but it seems when we check the POsT call on report we don’t see the metadata which is a Json going as part of the request.
Hi
I am using Karate version 1.3.1 for our projects. Currently we have a use case to test an API which is taking a file and a metadata as part of the request.
we are using multipart file and field to write our feature file, but it seems when we check the POsT call on report we don’t see the metadata which is a Json going as part of the request.
As per the suggestion in link: #1710
we tried the other approach to use multipart file and value as a parameter but it did not work for us.
Is there any other way to implement this on karate?
note: postman is working without any issues and we get a response too
please help if anyone has faced or resolved this.
Below is my feature file:
Given url "http://11.111.1.111:1111"
And path "/api/v1/upload
And method POST
Note: I also tried * multipart field metadata = temp (but no luck here)
Response:
content-disposition: form-data; name= file; filename="file1.txt"
content-type: text/plain; charset= UTF-8
content-length: 5300
Completed: true
IsInMemory: true
content-disposition: form-data; name= metadata; filename=""
content-type: application/json; charset= UTF-8
content-length: 100
Completed: true
IsInMemory: true
The text was updated successfully, but these errors were encountered: