You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New Chrome Process Getting Executed On Each New Test Run And Using CPU #893
I am running my tests on Chrome browser on client server and via jenkins my automation test build initiates on daily basis.
my tests are getting failed on random basis and when I debugged i found that each time a new chrome Tab is opened then the previous tab is not getting killed in task manager even after my use of I.closeOtherTabs() in the start of each test.
there are multiple chrome.exe getting opened when each test runs and this causes high CPU utilization and then causes tests to fail random.
Is there any way to kill old chrome.exe when a new test runs so that there are not threads of chrome.exe running and causing high CPU
Provide console output if related. Use --verbose mode for more details.
# paste output here
Provide test source code if related
// paste test
Details
CodeceptJS version:
NodeJS Version:
Operating System:window 10
Protractor || WebDriverIO || Nightmare version (if related)
I'm not in a position to look into this issue in detail, but a possible workaround would be to close the chrome.exe instances using powershell after the codeceptjs have finished executing. This is easily done in Jenkins.
Assuming that you have an independent chrome install (see suggestion in #864), then you can add this powershell one liner to kill the chrome.exe
This would only work if you have a way of differentiating from the normal system chrome installation (i.e. under \Program Files) and the chrome.exe used for the tests.
In my jenkins setup, I use the Powershell Plugin so you can call codeceptjs to run the tests, then kill anything after it has completed.
Activity
reubenmiller commentedon Jan 27, 2018
I'm not in a position to look into this issue in detail, but a possible workaround would be to close the chrome.exe instances using powershell after the codeceptjs have finished executing. This is easily done in Jenkins.
Assuming that you have an independent chrome install (see suggestion in #864), then you can add this powershell one liner to kill the chrome.exe
This would only work if you have a way of differentiating from the normal system chrome installation (i.e. under \Program Files) and the chrome.exe used for the tests.
In my jenkins setup, I use the Powershell Plugin so you can call codeceptjs to run the tests, then kill anything after it has completed.
ninpop25 commentedon Feb 3, 2018
Thanks @reubenmiller