AnsweredAssumed Answered

Using the RestStep of DevTest, How to POST multipart/form-data request with file and body

Question asked by chesa13 Employee on Jul 21, 2016
Latest reply on Jul 21, 2016 by sdetweil2

For the Content-Type: multipart/form-data, need to process the request for body and file. A Rest Step is added in the test cases with the dataset "Load a Set of File Names" which is used to send the file as attachment and in the content of the RestStep the body of the request is been mentioned. When this test case is executed the follwoing error is displayed

{

    "errorCode": "500",

    "errorDetail": "",

    "status": 500,

    "errorMsg": "Required request part 'body' is not present.",

    "timestamp": "2016-07-21T04:54+0000"

}

 

How to handle this and pass the body?

Outcomes