I am using Robotframework-httplibrary for automating my webservice API, which has Header and Request body. Manually If I test these APIs using REST Client, the APIs works fine. However, from my Robot framework Testcase it fails.
I understand that the error is with testcase syntax or with the interpretor..python2.7(may be it is not supported)
Below is the test script:
*** Settings***
Library HttpLibrary.HTTP
*** Test Cases ***
Test Create Process Set Request Header clientID: vg_site1
Set Request Body {" "}
POST http://localhost:portno/application
Response Status Code Should Equal 200 OK
output:Request should have succeeded, but was "400 Bad Request"
Aucun commentaire:
Enregistrer un commentaire