Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#118 Press() methods broken

2.0.3
closed-fixed
Robert Pes
8
2010-04-15
2010-04-15
Robert Pes
No

Most press() methods throw an unexpected IllegalArgumentException:

java.lang.IllegalArgumentException: Syntax error in parameter 'wait': Can't evaluate expression ''.
at com.tplan.robot.scripting.AbstractJavaTestScript.runScriptCommand(AbstractJavaTestScript.java:168)
at com.tplan.robot.scripting.DefaultJavaTestScript.press(DefaultJavaTestScript.java:2158)
at com.tplan.robot.scripting.DefaultJavaTestScript.press(DefaultJavaTestScript.java:2465)
at sandbox.MyTest.test(MyTest.java:17)
at com.tplan.robot.scripting.interpret.java.JavaTestScriptInterpret.execute(JavaTestScriptInterpret.java:348)
at com.tplan.robot.scripting.ExecOrCompileThread.run(ExecOrCompileThread.java:51)
Caused by: com.tplan.robot.scripting.SyntaxErrorException: Syntax error in parameter 'wait': Can't evaluate expression ''.
at com.tplan.robot.scripting.TokenParserImpl.parseNumber(TokenParserImpl.java:215)
at com.tplan.robot.scripting.TokenParserImpl.parseTime(TokenParserImpl.java:308)
at com.tplan.robot.scripting.commands.impl.PressCommand.validate(PressCommand.java:177)
at com.tplan.robot.scripting.commands.impl.PressCommand.execute(PressCommand.java:206)
at com.tplan.robot.scripting.AbstractJavaTestScript.runScriptCommand(AbstractJavaTestScript.java:166)

Discussion

  • Robert Pes
    Robert Pes
    2010-04-15

    • status: open --> open-fixed
     
  • Robert Pes
    Robert Pes
    2010-04-15

    • status: open-fixed --> closed-fixed
     
  • Robert Pes
    Robert Pes
    2010-04-15

    Fixed in 2.0.4.