Formdata usage in postman
above is the attached image
how to send form data in the above way using robot framework
i tried with all types of examples available but unable to send the form data correctly with robot framework
Create Session session https://wismaapapidev.tanla.co.in/templateapi/v1/bots
${data}= Create Dictionary name=test_template3 type=text textMessage=Hi there!
${template_data}= Set Variable {“name”: “test_template3”, “type”: “text”, “textMessage”: “Hi there”}
${headers}= Create Dictionary Content-Type=application/json Authorization=Bearer ${token}
${response}= POST On Session session /JaAsM3ezSOjpVxoA/templates json=${template_data} headers=${headers}
Should Be Equal As Strings ${response.status_code} 200
i am getting the error like “request body doesnot contain multipart/form-data”
lakshmi priyanka is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.