Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58765

why , When I launched  RobotFrameWork(with library selenium) tests by Jenkins all tests are FAIL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • _unsorted

      When I launch robotframework-seleniumwebdriver all test are PASS.

      idem when I launched with CLI commande, tests are PAST.

      But When I launched  same tests by Jenkins all tests that want to openbrowser (ff or chrome) arBut When I launched  same tests by Jenkins all tests that want to openbrowser (ff or chrome) are FAILe FAIL

      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

       

            Unassigned Unassigned
            remi_charles_lageix_arena RemiCharles LageixArena
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: