Contributions
Re: ReadyAPI is not reading a json file
Having just ran into this scenario, this is what we did based on the solution provided here: Note: assumes first attachment is the JSON and the Test Step Name is "Post - Documents" def currentStep = context.getCurrentStep().name if (currentStep == "Post - Documents") { def bodyPartAttach = context.getProperty("httpMethod").requestEntity.message.content.getBodyPart(0) // get a part by number, it starts with 0 bodyPartAttach.removeHeader("Content-Type") bodyPartAttach.addHeader("Content-Type", "application/json") }1.6KViews0likes0Comments