验证脚本报错 " 变成"

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

验证脚本报错 " 变成"

小虎
net.grinder.engine.common.EngineException: Error while initialize test runner
        at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:71) ~[ngrinder-groovy-3.4.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngineService.createScriptEngine(GroovyScriptEngineService.java:109) ~[ngrinder-groovy-3.4.jar:na]
        at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:105) ~[grinder-core-3.9.1.jar:na]
        at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:330) ~[ngrinder-runtime-3.4.jar:na]
        at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87) [grinder-core-3.9.1.jar:na]
        at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60) [grinder-core-3.9.1.jar:na]
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
${NGRINDER_HOME}\script\admin\getUserIdCardInfo.groovy: 46: unexpected token: & @ line 46, column 23.
    test = new GTest(1, "getUserCardInfo")
                         ^
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

小虎
在线等...
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

veryyoung
脚本贴出来
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

veryyoung
In reply to this post by 小虎
引号用英文的吧
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

小虎
In reply to this post by veryyoung
知道怎么回事了,是3.4版本的一个bug,我用3.4.1就没有这个问题了
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

yu.zhai
我的3.4.1,也这样啊
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

yuchen_liu
In reply to this post by 小虎
3.4.2也是这个问题,请问如何解决,有解决方案了么?
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

salou329
In reply to this post by 小虎
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

patent88
3.4.2里面已经是跟这边的一样的了。还是有报错。
Reply | Threaded
Open this post in threaded view
|

Re: 验证脚本报错 " 变成&quot;

demonchm
In reply to this post by 小虎
我这边也是用的3.4.1变好, 我看了其他办法,说是改controller,我翻看了下源代码,里面是做过解析的 我这边是直接在工具里面创建一个test.groovy文件,然后就可以执行成功,工具上来,直接上传就有这个问题。