Replace this template with your information
Describe your question in as much detail as possible:
- What are you seeing, and how does that differ from what you expect to see?
- Hi I’ve encountered a problem when I creating a CI/CD gitlab for robot framework.
Error Message :
please check screenshot
error logs
I’ve attached also my configured .yml
My YML Configuration
stages:
test-simple:
stage: build
image: python:3.8
script:
- apt-get update -q -y
- apt-get install -y python-pip
- python -V
- pip install robotframework
- pip install robotframework-faker
- pip install rpaframework
- pip install robotframework-browser
- apt-get install -y xvfb
- apt-get update
- apt-get install -y libdbus-glib-1-2
- apt-get install -y libnss3 libxss1 libasound2
- apt-get -y install npm
- apt-get -y install nodejs
- node -v
- npm -v
- rfbrowser init
- apt-get install -y python3-opencv
- pip install robotframework-screencaplibrary
- robot /builds/weh2017/kcar_automation_scripts/kcar_main_scripts/scenario_23_kcar_create_job_in.robot
Hi @weh2017
I guess that error comes from the robot
application.
You have not posted if the libdbus-glib-1-2
was actually installed or not.
You can put all those apt-get install -y
commands in a single line.
- apt-get update
- apt-get install -y python-pip xvfb libdbus-glib-1-2 libnss3 libxss1 libasound2 npm nodejs python3-opencv
- pip install robotframework robotframework-faker rpaframework robotframework-browser robotframework-screencaplibrary
After that please specify if everything installed fine and what version of NodeJs do you have.
Otherwise, all the commands look fine.
Hi @balonik
Thank you very much for helping me. I have a question since I’m using my laptop with windows 10 OS, do I still need to install the Linux feature to my Windows10 before I configuring the CI/CD GitLab?
My GitLab repository is based on the web only.
After I performed the config that you’ve provided, I’ve seen another error. See the screencap attached.
This is my new CI/CD config :
stages:
test-simple:
stage: build
image: python:3.8
script:
- apt-get update
- apt-get install -y python-pip xvfb libdbus-glib-1-2 libnss3 libxss1 libasound2 npm nodejs python3-opencv
- pip install robotframework robotframework-faker rpaframework robotframework-browser robotframework-screencaplibrary
- rfbrowser init
- node -v
- npm -v
- robot /builds/weh2017/kcar_automation_scripts/kcar_main_scripts/scenario_23_kcar_create_job_in.robot
You don’t need to install the Linux features on your laptop if you are using the GitLab.com with the shared runners.
The last errors are coming from the robotframework. I would suggest to refer to their documentation or community help to get better support regarding robotframework specific errors.
thank you for helping me. your help is much appreciated.
I have one last question, I need to copy geckodriver to path but I encountered an error "WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.
My command.
- wget [https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz](https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz)
- echo "geckodriver downloaded successfully"
- tar -xvzf geckodriver*
- chmod +x geckodriver
- export PATH=$PATH:/usr/local/bin/bash
Where is the geckodriver
binary located? I don’t see your PWD or where you download it. You need to move it to /usr/local/bin
or add your current PWD to PATH