ContributionsMost RecentMost LikesSolutionsRe: Use regular expression on ReadyAPI event target Thank you very much! Re: Use regular expression on ReadyAPI event target Thank you for the prompt response. Any way to do it from the ReadyAPI event dialogue? Use regular expression on ReadyAPI event target I'm trying to use different RequestFilter.filterRequest to add headers to different tests. Not sure how the regular expression should be used in the target field. I'd like to use RequestFilter1 for all GET requests and RequestFilter2 for all SAVE/DELETE requests. I tried to set RequestFilter1 with target"*Service.get*" and RequestFilter2 with target "*Service.save*". But did not work. Did I do anything wrong here? Thank you for your input in advance! TestSuite: |--AppleService |--getApples |--getApple |--saveApple |--deleteApple |--BService |--getBananas |--getBanana |--saveBanana |--deleteBanana ... SolvedRe: How to set Accept header to application/octet-stream with Swagger Will do. Thank you. Populate Accept header from ApiOperation annotation I'm trying to set Accept header to application/octet-stream with Swagger. I use the following code and notice in SoapUI Pro's request representation tab I have REQUEST = application/json and in response representation tab I have RESPONSE = application/octet-stream. Would it be possible to add it as Accept header? @ApiOperation(produces = MediaType.APPLICATION_OCTET_STREAM, value = "") How to set Accept header to application/octet-stream with Swagger Hi, I'm trying to set Accept header to application/octet-stream with Swagger. I use the following code and notice in SoapUI Pro's request representation tab I have REQUEST = application/json and in response representation tab I have RESPONSE = application/octet-stream. However I don't see the Accept header being generated. Did I do anything wrong here? @ApiOperation(produces = MediaType.APPLICATION_OCTET_STREAM, value = "") Receive error when return data is ArrayList Hi all, The application front end can retrieve return ArralyList via REST call using Wildfly 10. However when running tests via ReadyAPI calling the same APIs got follow error: Could not find MessageBodyWriter for response object of type: java.util.ArrayList of media type: application/octet-stream Application: Java backend 1.8 Request media-type: application/json Response: media-type: application/json or application/octet-stream Does anybody have any insight on this? Thanks in advance! Re: Use testCase custom property to create dynamic request header in event Thank you for the help! By using Swagger and that solved the problem. :) Use testCase custom property to create dynamic request header in event I created an event to use RequestFilter.filterRequest to populate REST call headers. Most of the testCases use "Accept, application/json" as header while some special testCases require "Accept, application/octet-stream". I include a custom property "Accept" in the special testCases and hope when event gets executed the Accept header can be populated dynamically. But the actual execution completely skip the if-else section. May I know did I miss anything? import com.eviware.soapui.support.types.StringToStringMap def headers = new StringToStringMap() headers.put("Authorization", "Basic abcxyz123456....") headers.put("Cache-Control", "no-cache") headers.put("Pragma", " no-cache") headers.put("Expires", " Sat, 01 Jan 2000 00:00:00 GMT") headers.put("Content-Type", "application/json") if(testRunner.testCase.hasProperty("Accept")) { headers.remove("Accept") headers.put("Accept", "application/octet-stream") } else { headers.put("Accept", "application/json") } request.setRequestHeaders(headers)