have you put quotes around the left hand operator ?

On Mon, Aug 6, 2012 at 3:30 PM, Marcelo Jara <[email protected]>wrote:

> Hello,
> I am parsing a token from a web page using the Regular Expression
> Extractor. I'm then using an IF statement to check that the value is not
> "none", which is the default value if the token is not found. I'm getting
> this exception when trying to get this to work. Any help would be greatly
> appreciated.
> 2012/08/06 18:20:33 ERROR - jmeter.control.IfController: If Controller:
> error while processing [F4Jv6R/RvCZf/A6DRlUsrtdsNr4FpAI4Q6sg7jJCoCM= !=
> "none"] org.mozilla.javascript.EvaluatorException: syntax error (<cmd>#1)
>     at
> org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
>      at
> org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)
>      at org.mozilla.javascript.Parser.addError(Parser.java:230)      at
> org.mozilla.javascript.Parser.addError(Parser.java:208)      at
> org.mozilla.javascript.Parser.reportError(Parser.java:265)   at
> org.mozilla.javascript.Parser.reportError(Parser.java:252)   at
> org.mozilla.javascript.Parser.reportError(Parser.java:245)   at
> org.mozilla.javascript.Parser.primaryExpr(Parser.java:2871)  at
> org.mozilla.javascript.Parser.memberExpr(Parser.java:2458)   at
> org.mozilla.javascript.Parser.unaryExpr(Parser.java:2368)    at
> org.mozilla.javascript.Parser.mulExpr(Parser.java:2291)      at
> org.mozilla.javascript.Parser.addExpr(Parser.java:2273)      at
> org.mozilla.javascript.Parser.shiftExpr(Parser.java:2252)    at
> org.mozilla.javascript.Parser.relExpr(Parser.java:2225)      at
> org.mozilla.javascript.Parser.eqExpr(Parser.java:2195)       at
> org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2182)   at
> org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2169)   at
> org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2156)    at
> org.mozilla.javascript.Parser.andExpr(Parser.java:2143)      at
> org.mozilla.javascript.Parser.orExpr(Parser.java:2130)       at
> org.mozilla.javascript.Parser.condExpr(Parser.java:2106)     at
> org.mozilla.javascript.Parser.assignExpr(Parser.java:2075)   at
> org.mozilla.javascript.Parser.assignExpr(Parser.java:2087)   at
> org.mozilla.javascript.Parser.expr(Parser.java:2052) at
> org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1810)  at
> org.mozilla.javascript.Parser.statementHelper(Parser.java:1074)      at
> org.mozilla.javascript.Parser.statement(Parser.java:943)     at
> org.mozilla.javascript.Parser.parse(Parser.java:568) at
> org.mozilla.javascript.Parser.parse(Parser.java:506) at
> org.mozilla.javascript.Context.compileImpl(Context.java:2401)        at
> org.mozilla.javascript.Context.compileString(Context.java:1367)      at
> org.mozilla.javascript.Context.compileString(Context.java:1356)      at
> org.mozilla.javascript.Context.evaluateString(Context.java:1108)     at
> org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:110)
>      at org.apache.jmeter.control.IfController.next(IfController.java:167)
>   at
> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:200)
>    at
> org.apache.jmeter.control.GenericController.next(GenericController.java:162)
> at org.apache.jmeter.control.LoopController.next(LoopController.java:108)
>     at
> org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:75)
>      at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
>  at java.lang.Thread.run(Unknown Source)
>

Reply via email to