Contributions
Re: ReadyAPI is not reading a json file
HelloabirHajali, Your Content-type in both parts are not well sended Instead of Content-Type: application/json; name=***.json you should sendContent-Type: application/json; My advice is to modify your request and correct Content-type, the way to do it is to use Event handlers (Filtering requests) Use: RequestFilter.filterRequest to modify request before sending, this script aim to retreive and enter the correct Content-type 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") Do the same with the second part (index = 1)2.2KViews1like2Comments