How to make a POST (ReST) API in Robot framework with

前端 未结 3 1771
孤城傲影
孤城傲影 2021-01-13 09:09

I need to replicate the below API call in Robot Framework:

curl -X POST \"http://xyz/api/createApp\" -H \"Content-Type:application/json\" -d @/tmp/testfile.jso

3条回答
  •  天涯浪人
    2021-01-13 09:29

    http://bulkan.github.io/robotframework-requests/#Post has files parameter. And what you could do is use Get File keyword from OperatingSystem library and pass that to your Post keyword.

提交回复
热议问题