grunt-protractor-webdriver icon indicating copy to clipboard operation
grunt-protractor-webdriver copied to clipboard

Zombie Process Left Running

Open ljohnston opened this issue 9 years ago • 6 comments

Create the following task config:

protractor_webdriver: {
    start: {
    }
},

Then simply run grunt protractor_webdriver:start. After grunt exits a java process will still be running on port 4444. When protractor_webdriver:start is called as part of my integration test task which then runs the tests, however, after grunt exits there is no lingering zombie process. Note that running with debug does claim that the server gets shutdown:

$ grunt protractor_webdriver:start
...
Starting Selenium server
Started Selenium server: http://127.0.0.1:4444
Shutting down Selenium server: http://127.0.0.1:4444

This is with version 0.2.0. Rolling back to 0.1.9 fixes the issue.

ljohnston avatar Mar 20 '15 05:03 ljohnston

+1 I have the same issue! I promiss you invite a coffee cup if you solve this in less than 24 hours :dash:

BrodaNoel avatar Apr 10 '15 17:04 BrodaNoel

I'm rolling back to 0.1.9 and still broken. You could create a protractor_webdriver:stop by default and we can call it at the end. My 2 cents.

BrodaNoel avatar Apr 10 '15 17:04 BrodaNoel

I had a lot of jasmine-reportes added, Console, screenshot, and more. When I remove all them, the fix disapear. So, the issue is related to the browser.takeScreenshot() or something like that.

BrodaNoel avatar Apr 10 '15 18:04 BrodaNoel

Hi Steffen Eckardt! Look... I just install the plugin, and when I run the tests, look at what's append. Here 2 screenshots.

error webdriver 2 error webdriver

BrodaNoel avatar Apr 13 '15 15:04 BrodaNoel

Ooook, some news about it:

Seems that the http.get(shutDown) never is executed. So, what I did was add this sub-task: shell:killPlease Whit that options:

killPlease: {
                options: {
                    stdout: true
                },
                command: 'curl http://127.0.0.1:4444/selenium-server/driver/?cmd=shutDownSeleniumServer'
            }

And now, I get the prompt again, but, why is it necessary? Good luck!

BrodaNoel avatar Apr 13 '15 16:04 BrodaNoel

Same issue here. Grunt output says server is shutdown but that's not the case.

jeandat avatar May 16 '15 14:05 jeandat