how do I send form-data as 'Text' via Rest Assured, please refer to the screenshot. When I use request.multipart("key"."value") request is being sent as file( refer screenshot ). TIA.
Asked
Active
Viewed 454 times
1 Answers
0
If you want to send form-data
parameter with Rest Assured, you can use the param
function of Rest Assured:
given()
.param("key", "value")
.post("your_api_url");

Norayr Sargsyan
- 1,737
- 1
- 12
- 26