ContributionsMost RecentMost LikesSolutionsRe: [Ready API 1.2] Double slash (//) in path I fixed this issue by going through the suite xml file. Search for any trailing / or // in between URL and fix that. You can use notepad++ to find all the instant. I used \w// pattern and /< pattern to find trailing / or // in between URL. Hope this helps for the time being. Re: Get unexpected char: 0xFFFF exception when try to URLEncode JSON request Hi Tanya, I am using ReadyAPI 1.6.0 -Ritesh. Re: Replace request content using RequestFilter.filterRequest does not work It's a GIF file. You should be able to see raw request in the animation. (May be download the file and see it. Somehow, It's super slow in forum window) Also, I am using following line to set the content which is not very different that you are suggesting. context.requestContent = "=$reqContent".toString() I tried with what you are suggesting and result is same. -Ritesh Re: not able to delete Test Suite You can edit your project XML file and delete testsuite from it. Search for con:testSuite tag in which name property should be your testSuite name. Delete this tag values and tag. Note: You can use eclipse or some other good XML editor to edit this file easily. -Ritesh Re: Replace request content using RequestFilter.filterRequest does not work I am checking RAW request not the request section. Please see following screencast Re: Replace request content using RequestFilter.filterRequest does not work log.info reqContent prints encoded request. Re: Use a timestamp in request and test for it in response Try Following: 1. Create A Groovy Step Before your request 2. Set variable on testcase level (you can use properties as well) testRunner.testCase.setPropertyValue('TimeStamp', new SimpleDateFormat("YYYY-MM-dd HH:mm:ss").format(new Date())) 3. Use TimeStamp variable in your request and response ${#TestCase#TimeStamp} Hope this help! -Ritesh Re: Replace request content using RequestFilter.filterRequest does not work If I try to get request content inSubmitListener.beforeSubmit using context.requestContent. It returns blank. I tried setting context.requestContent in SubmitListener.beforeSubmit but it does't work either. context.requestContent = reqContent also doesn't work in RequestFilter.filterRequest -Ritesh Replace request content using RequestFilter.filterRequest does not work I want to send urlencoded request, to achive that I am using following code in RequestFilter.filterRequest def requestHeaders = request.getRequestHeaders() def contentType = requestHeaders.get("Content-Type")[0].trim().toLowerCase() def reqContent = context.requestContent if (contentType=="application/x-www-form-urlencoded" && reqContent){ reqContent = java.net.URLEncoder.encode(reqContent.replaceAll('\t', ' ').replaceAll('\r\n|\n', ''), java.nio.charset.StandardCharsets.UTF_8.toString()) context.requestContent = "=$reqContent".toString() } But It doesn't send URLEncoded request. According to http://blog.smartbear.com/soapui/soapui-pro-holiday-goodies-event-handlers-and-jdbc-connections/ article, it should work. Am I missing something? I don't want to use SubmitListener.beforeSubmit event with request.setRequestContent as It changes request content in the test and next time it becomes unreadable for anyone. Any Suggestion folks? Thanks, Ritesh Get unexpected char: 0xFFFF exception when try to URLEncode JSON request I am trying to send URLEncoded request. In order to URLEncode my request I am using following code in my request body: =${=java.net.URLEncoder.encode("""{ 'Guid': '934172bb-80d2-4888-a2e6-2ec6015df5dc', 'DateTime': '2016-03-16T00:00:00+00:00' }""", java.nio.charset.StandardCharsets.UTF_8.toString())} When I try to send the request I get following exception: =startup failed: Script17.groovy: 4: unexpected char: 0xFFFF @ line 4, column 1.org.codehaus.groovy.syntax.SyntaxException: unexpected char: 0xFFFF @ line 4, column 1. at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:138) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:111) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:237) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:167) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:694) at groovy.lang.GroovyShell.parse(GroovyShell.java:706) at groovy.lang.GroovyShell.parse(GroovyShell.java:742) at groovy.lang.GroovyShell.parse(GroovyShell.java:733) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:138) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:89) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:79) at com.eviware.soapui.model.propertyexpansion.resolvers.EvalPropertyResolver.doEval(EvalPropertyResolver.java:165) at com.eviware.soapui.model.propertyexpansion.resolvers.EvalPropertyResolver.resolveProperty(EvalPropertyResolver.java:145) at com.eviware.soapui.model.propertyexpansion.PropertyExpander.expand(PropertyExpander.java:211) at com.eviware.soapui.model.propertyexpansion.PropertyExpander.expand(PropertyExpander.java:156) at com.eviware.soapui.model.propertyexpansion.PropertyExpander.expand(PropertyExpander.java:152) at com.eviware.soapui.model.propertyexpansion.PropertyExpander.expandProperties(PropertyExpander.java:135) at com.eviware.soapui.impl.wsdl.submit.filters.HttpRequestFilter.filterHttpRequest(HttpRequestFilter.java:320) at com.eviware.soapui.impl.wsdl.submit.filters.RestRequestFilter.filterRestRequest(RestRequestFilter.java:31) at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterAbstractHttpRequest(AbstractRequestFilter.java:42) at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:34) at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.filterRequest(HttpClientRequestTransport.java:378) at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:183) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: Script17.groovy:4:1: unexpected char: 0xFFFF at org.codehaus.groovy.antlr.parser.GroovyLexer.mSTRING_CTOR_END(GroovyLexer.java:2345) at org.codehaus.groovy.antlr.parser.GroovyLexer.mSTRING_LITERAL(GroovyLexer.java:1942) at org.codehaus.groovy.antlr.parser.GroovyLexer.nextToken(GroovyLexer.java:478) at org.codehaus.groovy.antlr.parser.GroovyLexer$1.nextToken(GroovyLexer.java:262) at groovyjarjarantlr.TokenBuffer.fill(TokenBuffer.java:69) at groovyjarjarantlr.TokenBuffer.LA(TokenBuffer.java:80) at groovyjarjarantlr.LLkParser.LA(LLkParser.java:52) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.pathExpression(GroovyRecognizer.java:11680) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.postfixExpression(GroovyRecognizer.java:13410) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.unaryExpressionNotPlusMinus(GroovyRecognizer.java:13379) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.powerExpressionNotPlusMinus(GroovyRecognizer.java:13083) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.multiplicativeExpression(GroovyRecognizer.java:13015) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.additiveExpression(GroovyRecognizer.java:12685) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.shiftExpression(GroovyRecognizer.java:9921) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.relationalExpression(GroovyRecognizer.java:12590) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.equalityExpression(GroovyRecognizer.java:12514) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.regexExpression(GroovyRecognizer.java:12462) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.andExpression(GroovyRecognizer.java:12430) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.exclusiveOrExpression(GroovyRecognizer.java:12398) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.inclusiveOrExpression(GroovyRecognizer.java:12366) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalAndExpression(GroovyRecognizer.java:12334) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalOrExpression(GroovyRecognizer.java:12302) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.conditionalExpression(GroovyRecognizer.java:4956) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.assignmentExpression(GroovyRecognizer.java:8122) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.expression(GroovyRecognizer.java:10061) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.expressionStatementNoCheck(GroovyRecognizer.java:8449) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.expressionStatement(GroovyRecognizer.java:8995) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.statement(GroovyRecognizer.java:1278) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.compilationUnit(GroovyRecognizer.java:668) at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:134) ... 34 more 1 error """, java.nio.charset.StandardCharsets.UTF_8.toString())} The issue is with {. If I remove {, I don't get any exception. I also tried to escape { using \ but it didn't work. Any help would be appriciated. Thanks, Ritesh