Open Sunil-onecom opened 1 year ago
hi, how about the jdk version? this url is serviced by java process. and how about the console output of the java process?
Jdk version is java-11-openjdk, When I'm expecting the same command on my system which is ubuntu:20.04 robot --console verbose -x xunit.xml --outputdir reports -i 'Login' Test_Cases
Test cases are running without any error but when execting same command on ubuntu:20.04 container I'm getting this error.
This is my Dockerfile
`FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive ENV LANG=en_US.UTF-8
RUN apt-get update \ && apt-get install -y wmctrl xdotool libcanberra-gtk0 libcanberra-gtk-module libopencv4.2-java \ libcanberra-gtk0 libcanberra-gtk-module libopencv4.2-java tesseract-ocr libtesseract-dev libtesseract4 \ build-essential libssl-dev libffi-dev python-dev \ python3-pip python-dev gcc phantomjs firefox libopencv-dev tesseract-ocr \ xvfb zip unzip wget ntpdate openjdk-11-jdk \ libnss3-dev libxss1 libappindicator3-1 libindicator7 gconf-service libgconf-2-4 libpango1.0-0 xdg-utils fonts-liberation \ && rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
RUN export JAVA_HOME RUN ln -s /usr/lib/jni/libopencv_java420.so /usr/lib/libopencv_java.so COPY requirements.txt .
RUN pip install -r requirements.txt
RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz \ && tar xvzf geckodriver-.tar.gz \ && rm geckodriver-.tar.gz \ && mv geckodriver /usr/local/bin \ && chmod a+x /usr/local/bin/geckodriver
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& dpkg -i google-chrome.deb \
&& rm google-chrome.deb \
&& CHROME_MAJOR_VERSION=$(google-chrome --version | sed 's/. ([0-9]+)../\1/') \
&& CHROME_DRIVER_FILE=$(wget -q -O - https://chromedriver.storage.googleapis.com/ | sed "s,.
WORKDIR / RUN mkdir /Testcases COPY . /Testcases/ `
@Sunil-onecom , so your local Ubuntu has been installed desktop, and you execute robot command from desktop, right? Do the docker image include desktop?
if yes, maybe should set "DISPLAY" environment variable, before execute test cases. https://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-can-be-used-for-visual-testing
and also could check https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Right, my local Ubuntu has been installed desktop. Docker image includes no desktop. We can't open desktop in containers
Hi, We are trying to run SikuliLibrary on the docker container but we are getting this error