Contributions
Property transfer test step - cannot use project/test case level properties in the JSON Path
Hi I am trying to use project level property in JSON path for the source in a property transfer test step, but the value of the property is not substituted when I execute the step. eg: $..books[?(@.book.name=='${#Project#bookName}')].author[0] But when I use a hard coded value instead of the Project property the same JSON path is working fine and assigning the result to the target property. Can anyone please let me know how to make it work? Thanks Vijay8 years agoPlace ReadyAPI QuestionsReadyAPI Questions928Views0likes2CommentsRe: How to get Request Headers and request content in the handler after it is prepared and before submit
Hi Thanks a lot for your reply. I want to know how we can get the request headers that gets prepared( as they will be shown in the raw request) inside a Event handler and I am trying to get them like below but no success. In the RequestFilter.filterRequest or RequestFilter.afterRequest I have triedthe following statments request.getRequestHeaders() request.requestHeaders context.testCase.testSteps['TestStepname'].httpRequest.requestHeaders All the above are returning nothing. Can you please let me know how to do inside the Event and which handler is the correct one to use ? Thanks Vijay9 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.5KViews0likes0CommentsHow to get Request Headers and request content in the handler after it is prepared and before submit
Hi I am using ReadyAPI and creating a REST request with some header values initially, but once the request is prepared with the inital values I need to interfere the request and need to modify some header values with the request data thatgets prepared for submit. I need the request header information and request content info once it is preapared so that I can modify it before submit. Can anyone please let me know how can I do it and which handler to use ? Thanks Vijay9 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.6KViews0likes2Comments