Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test locally/Test suite locally constantly hangs #279

Open
fedevegili opened this issue Aug 27, 2015 · 3 comments
Open

Test locally/Test suite locally constantly hangs #279

fedevegili opened this issue Aug 27, 2015 · 3 comments

Comments

@fedevegili
Copy link

Hello, I've been using this amazing plugin for about 1 month now. I've realised that when my tests gets bigger, the plugin stops in random steps and I have to reopen it. The step is highlighted yellow but nothing happens.

When I say bigger, I mean around 200 steps per suite/test.

I'm testing it on a macbook air with the latest version of yosemite, but the problem happens on windows as well.

I've tried converting the suite to a single test and running it. Indeed the halts got much less frequently, but they still happened.

While running the test on remote server via nodejs the problem just doesn't happen.

If this problem happens only to me, I could provide you some of my test cases for you to test.

Is this a known problem or am I doing sth wrong?

Thank you!

@ghost
Copy link

ghost commented Aug 27, 2015

It would be great if you will give a reproducible test case :)

@fedevegili
Copy link
Author

Hey guys, sorry for the delay but I was very busy with a product release.

I made a very simple test (13 steps) and repeated it a lot of times in the same script. For me, it usually stops between step 100-200, but sometimes on 30th or 40 step.

Here's the link:
https://gist.github.com/fedevegili/68d3f3f92149033c6a5b

I think it's related to page reloads or frame switching. When I didn't have those in my test, the bug almost never happens. As my application has LOTS of popups and frames switching, this halting bug happens all the time.

Thank you in advance.

@fedevegili
Copy link
Author

I may have found the problem after debugging around. File https://github.com/SeleniumBuilder/se-builder/blob/master/seleniumbuilder/chrome/content/html/js/builder/selenium2/playback.js line 212.

There's a clearTimeout for builder.selenium2.playback.waitInterval, but sometimes the builder.selenium2.playback.implicitWaitTimeout was left running. All I had to do was to clearInterval this timeout and everything worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant