| why jenkins launch the build/scriptShell always with root permission? whit the following errors WebDriverException: Message: invalid argument: can't kill an exited process WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.).... you can see the complet log at the end of this page anyone know a fix? thanks in advance ************************************************************ into Configure/build/scriptShell #!/bin/bash /usr/local/bin/robot /home/ar/eclipse-workspace/ProjectRobot1/test/TestSuite1.robot but Jenkins run always this script shell with root permission. and the result is FAIL. when I launch the same command on CLI with my user permission the result is PASS /usr/local/bin/robot /home/ar/eclipse-workspace/ProjectRobot1/test/TestSuite1.robot ============================================================================== TestSuite1 ============================================================================== MyFirstTest | PASS | ------------------------------------------------------------------------------ FirstSeleniumTest | PASS | ------------------------------------------------------------------------------ test1 ...Completed Successfuly with fireFox ...Completed Successfuly with Google/Chrome test1 | PASS | ------------------------------------------------------------------------------ SampleLoginTest :: This is a sample login test | PASS | ------------------------------------------------------------------------------ The user can search for flights | PASS | ------------------------------------------------------------------------------ TestSuite1 | PASS | 5 critical tests, 5 passed, 0 failed 5 tests total, 5 passed, 0 failed ============================================================================== Output: /home/ar/output.xml Log: /home/ar/log.html Report: /home/ar/report.html ************************************************************ this is the log when I launch the script by jenkins Démarré par l'utilisateur unknown or anonymous Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/Job_Launching_Robot_FrameWork_Tests [Job_Launching_Robot_FrameWork_Tests] $ /bin/bash /tmp/jenkins5348072280975223222.sh --------------------------------------------- HELLO WORLD ==============================================WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)================================ TestSuite1 ============================================================================== MyFirstTest | PASS | ------------------------------------------------------------------------------ FirstSeleniumTest [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: Multiple keywords with name 'Capture Page Screenshot' found. Give the full name of the keyword you want to use: AppiumLibrary.Capture Page Screenshot SeleniumLibrary.Capture Page Screenshot | FAIL | WebDriverException: Message: invalid argument: can't kill an exited process ------------------------------------------------------------------------------ test1 [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: Multiple keywords with name 'Capture Page Screenshot' found. Give the full name of the keyword you want to use: AppiumLibrary.Capture Page Screenshot SeleniumLibrary.Capture Page Screenshot | FAIL | WebDriverException: Message: invalid argument: can't kill an exited process ------------------------------------------------------------------------------ SampleLoginTest :: This is a sample login test [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: Multiple keywords with name 'Capture Page Screenshot' found. Give the full name of the keyword you want to use: AppiumLibrary.Capture Page Screenshot SeleniumLibrary.Capture Page Screenshot | FAIL | WebDriverException: Message: unknown error: Chrome failWebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)ed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) ------------------------------------------------------------------------------ The user can search for flights [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: Multiple keywords with name 'Capture Page Screenshot' found. Give the full name of the keyword you want to use: AppiumLibrary.Capture Page Screenshot SeleniumLibrary.Capture Page Screenshot | FAIL | WebDriverException: Message: invalid argument: can't kill an exited process ------------------------------------------------------------------------------ TestSuite1 | FAIL | 5 critical tests, 1 passed, 4 failed 5 tests total, 1 passed, 4 failed ============================================================================== Output: /home/ar/eclipse-workspace/ProjectRobot1/test/output.xml Log: /home/ar/eclipse-workspace/ProjectRobot1/test/log.html Report: /home/ar/eclipse-workspace/ProjectRobot1/test/report.html Build step 'Exécuter un script shell' marked build as failure Robot results publisher started... -Parsing output xml: Done! -Copying log files to build dir: Done! -Assigning results to build: Done! -Checking thresholds: Done! Done publishing Robot results. Finished: FAILURE |