vmi / selenese-runner-java

Selenium IDE native format (selenese and side) interpreter.
Other
140 stars 83 forks source link

Selenese enters infinite loop when using "run" command #320

Closed billxiao closed 3 years ago

billxiao commented 4 years ago

Hi,

When I run the attached simple SIDE file, Selenese-runner-java would enter infinite loop. The SIDE file is actually very simple, only containing a "run" command which calls another simple test case.

I believe this is a bug. Please have a look.

The command line I used to run the SIDE is like the following: java -jar selenese-runner.jar --driver chrome --max-retries=3 D:\asd.side

asd.zip

billxiao commented 4 years ago

Finally I spot the bug. It's the "run" command where the retry times in the context is reset by its sub test case. So "run" command will never reach max retries and be locked in an infinite loop.

My solution is to never retry "run" command and once return from the execution of sub test case, set the retries in the context to be max to let it break out of the while loop.

vmi commented 4 years ago

Sorry for being late. I have released version 3.32.0 that fixes this problem. Please check it.

vmi commented 3 years ago

Please re-open this issue if your problem is not resolved.