gwen-interpreter / gwen-web

Web automation engine for Gwen
https://gweninterpreter.org
Apache License 2.0
54 stars 18 forks source link

gwen console : infinitely recursive error #47

Closed Rahul9844 closed 6 years ago

Rahul9844 commented 6 years ago

Below issue is in context to step-definition which has datatable defined. On pasting/executing gwen dsl without datatable (accidentally), then all subsequent executions of that dsl (with datatable) fails with below error

ERROR - Failed step [at line 1]: And I execute payment flows for "Config.csv": StepDef I execute payment flows for "" is infinitely recursive at [line 1]: And I execute payment flows for "Config.csv" ERROR - [6ms] Failed Step: And I execute payment flows for "Config.csv"

bjuric commented 6 years ago

Hi @Rahul9844, can you please provide your StepDef and instructions on how to reproduce this?

bjuric commented 6 years ago

Successfully replicated..

Steps to reproduce:

   __ ___      _____ _ __     _
  / _` \ \ /\ / / _ \ '_ \   { \,"
 | (_| |\ V  V /  __/ | | | {_`/
  \__, | \_/\_/ \___|_| |_|   `
  |___/

gwen-web v-SNAPSHOT

REPL Console

Enter steps to evaluate or type exit to quit..

gwen> And single row without header contains a number in decimal and binary form

INFO - Evaluating Step: And single row without header contains a number in decimal and binary form
gwen.errors.package$DataTableException: Data table expected for StepDef with @DataTable annotation

[non-step]

gwen> :paste

REPL Console (paste mode)

Enter or paste steps and press ctrl-D to evaluate..

       Given single row without header contains a number in decimal and binary form
             | 3 | 11 |

Exiting paste mode, interpreting now..

gwen>        Given single row without header contains a number in decimal and binary form
                   | 3 | 11 |

INFO - Evaluating Step: Given single row without header contains a number in decimal and binary form
ERROR - Failed step [at line 1]: Given single row without header contains a number in decimal and binary form: StepDef single row without header contains a number in decimal and binary form is infinitely recursive at [line 1]: Given single row without header contains a number in decimal and binary form
INFO - Starting chrome browser session
Starting ChromeDriver 2.34.522932 (4140ab217e1ca1bec0c4b4d1b148f3361eb3a03e) on port 15740
Only local connections are allowed.
Jan 23, 2018 5:28:58 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
ERROR - [8ms] Failed Step: Given single row without header contains a number in decimal and binary form

[Failed]

REPL Console

Enter steps to evaluate or type exit to quit..
bjuric commented 6 years ago

@Rahul9844, we've implemented a fix for this in the snapshot build below. Please test it in your environment and let us know how it goes.

Rahul9844 commented 6 years ago

I am getting below error on startup of gwen engine. Error: Could not find or load main class gwen.web.WebInterpreter

bjuric commented 6 years ago

@Rahul9844, apologies that one got corrupted. Try this one please:

Rahul9844 commented 6 years ago

Tested and hence closing as the issue is fixed on gwen-web-2.15.0-3-g308d08a-SNAPSHOT.zip