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

Close

problem in using 2.0.3

Help
2010-04-14
2013-02-18
  • Aanchal Gupta
    Aanchal Gupta
    2010-04-14

    Hi,
    My scripts are not working in 2.0.3.
    There is an error when i execute the other press method!!

    The exception comes up at this line:
    press("HOME", "3500");

    Pls tell how to correct this error!!!

    Here are some of the error-logs:

    java.lang.IllegalArgumentException: Syntax error in parameter 'wait': Can't evaluate expression ''.
    Execution finished, exit code is PASS (0) Exit timeout set to 2 seconds, starting to count down…
    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:2401)
    at com.mypackage.TestClassWhichIsNotWorking.test(TestClassWhichIsNotWorking.java:13)
    at com.tplan.robot.scripting.interpret.java.JavaTestScriptInterpret.execute(JavaTestScriptInterpret.java:297)
    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)
    … 5 more

     
  • Robert Pes
    Robert Pes
    2010-04-15

    The press() method is indeed broken. The bug is caused by a typo in the parameter population code.

    I filed the issue as 2987624. Since I consider this a high priority issue, I'll release a new build (2.0.4) within a day.

    Thanks for reporting the issue!

     
  • Aanchal Gupta
    Aanchal Gupta
    2010-04-15

    Thanks for the new release.
    Will be waiting for it…   :)

     
  • Robert Pes
    Robert Pes
    2010-04-15

    Just released.

     
  • Aanchal Gupta
    Aanchal Gupta
    2010-04-19

    My scripts work with the new version…
    Thanks :)