Running robotic framework testcase/suite in dev/prod Linux servers

Hi Team,
I had created one test suite and now I wanted to run this on my Linux Development server.
I have installed python and robotic packages in server.
robotframework 6.1.1
robotframework-datadriver 1.7.0
robotframework-pythonlibcore 4.2.0
robotframework-seleniumlibrary 6.2.0

So I have to create JAR file for this and use this in server or any other approaches to run suite in Linux server.

Chrome/edge driver also need to be installed in server to run the suites???
Please help me with the process.

Thanks in advance !!

There is no jar files for python / robot framework. Suggested steps to deploy for CI is:

  • create virtual environment
  • install all dependencies either via requirements.txt or pyproject.toml
  • run your tests.

Selenium (the upstream project of SeleniumLibrary) will now automatically download suitable webdrivers so you don’t need to deploy them in most cases. YMMV

created virtual environment and installed the packages, when i Run the test case getting below error.

This is my test case
*** Settings ***
Library SeleniumLibrary

*** Variables ***
*** Test Cases ***
${options}= Evaluate sys.modules[‘selenium.webdriver’].ChromeOptions() sys, selenium.webdriver
Call Method ${options} add_argument --ignore-certificate-errors
Call Method ${options} add_argument --ignore-ssl-errors
Call Method ${options} add_argument --disable-proxy-certificate-handler
Call Method ${options} add_argument --disable-content-security-policy
Open Browser https://dev2.manager.Login.action headlesschrome options=${options}

Error message

bash-4.4$ robot login.robot


LoginTest | FAIL |
NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: Unable to Locate Driver Error | Selenium

Login | FAIL |
1 test, 0 passed, 1 failed

Output: /home01/cs2xdev/WLM_ML/test_once/RobotFrameWork/output.xml
Log: /home01/cs2xdev/WLM_ML/test_once/RobotFrameWork/log.html
Report: /home01/cs2xdev/WLM_ML/test_once/RobotFrameWork/report.html

that’s the “YMMV” (your mileage may vary) part. As seen in your error message, its coming from “selenim-manager” which is the tool that selenium uses to automatically download the correct webdriver. Possible reasons for this is that your CI node cant reach all the needed sites to download the correct one.

In this case, you need to provide the correct one by some other means.