Giter Site home page Giter Site logo

ppodgorsek / docker-robot-framework Goto Github PK

View Code? Open in Web Editor NEW
324.0 324.0 231.0 6.42 MB

Robot Framework in Docker

Home Page: https://cloud.docker.com/repository/docker/ppodgorsek/robot-framework

License: MIT License

Shell 16.38% RobotFramework 33.98% Dockerfile 49.64%
browser chrome docker firefox microsoft-edge playwright robot-framework selenium

docker-robot-framework's People

Contributors

christian-roggia avatar dencze avatar dprevost-lmi avatar jakob-em avatar jeabakker avatar juacompe avatar krizm avatar linh-ngophuochoai avatar nilsty avatar ppodgorsek avatar rkefi84 avatar rs-roy avatar ultimatedogg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-robot-framework's Issues

SimpleTest with chrome failed ?

Hi,

I'm testing your docker image with a simple ROBOT test like Simple.robot.txt

But i get error: WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally

Robot debug do not help very much:
debug.txt

And inside image chrome log file, i get a lot of:
DevTools Request: 127.0.0.1:12585/json/version. DevTools request failed

Can you help me or send me a simple working robot test sample ?

thanks !

Chromedriver has the wrong version?

Hey Paul, thanks for this docker, I'm trying to install it in a Bitbucket Pipeline but it always fails when it tries to "Open Browser" in my tests. I have a feeling it's the chromedriver version you're using..? I'm looking all over the internet and it says chromedriver is on version '2.35' and you're using '63.0' just like chromium, could it be a typo?

Error: Suite 'Tests' contains no tests.

Hi,

When I try to run a test I get [Error] Suite 'Tests' contains no tests.
I've downloaded sources from GitHub and I'm in "C:\DockerTests\docker-robot-framework-master" folder and I run following command:
docker run
-v ${PWD}/reports:/opt/robotframework/reports:Z
-v ${PWD}/test:/opt/robotframework/tests:Z
-e BROWSER=chrome
ppodgorsek/robot-framework:latest

Any hint?

BR
Jakub

Make dependency resolution more flexible

Currently, all packages which are installed have a specific version. This makes the build break often, as those versions quickly become outdated and replaced by new releases.
The installed packages should therefore be declared in a more flexible manner.

Create simple test

The repository should include a simple test in order to check that the project is always working.

[ ERROR ] Suite 'Tests' contains no tests

Getting [ ERROR ] Suite 'Tests' contains no tests when trying to run the image and when specifying either browser.

Running Docker toolbox:
command:
docker run -v /Users/dthmacpro/Documents/robotfw/reports:/opt/robotframework/reports -v /Users/dthmacpro/Documents/robotfw/test_suites:/opt/robotframework/tests -e BROWSER=firefox ppodgorsek/robot-framework:latest
[ ERROR ] Suite 'Tests' contains no tests.

not sure why it's not seeing the Tests... please assist, thanks!

Document how to switch browsers

It would be useful to have more information about how to switch browsers in test suites, by only setting the browser on the command-line.

Set up automated build of pull requests

All pull requests should be built automatically before being merged to the master branch.
The master branch should always remain stable, as it built on the Docker Hub.

Outdated Chromium causes Docker build to fail

Complete!
Last metadata expiration check: 0:00:57 ago on Tue Apr 3 08:35:14 2018.
No match for argument: chromedriver-63.0.*
No match for argument: chromium-63.0.*
Error: Unable to find a match
The command '/bin/sh -c dnf upgrade -y && dnf install -y chromedriver-$CHROMIUM_VERSION chromium-$CHROMIUM_VERSION firefox-$FIREFOX_VERSION python2-pip-9.0.1-* xauth xorg-x11-server-Xvfb-1.19.* which wget && dnf clean all' returned a non-zero code: 1

Add parallel execution support

pabot should be added to the toolchain of this chart. This would allow users to launch tests in parallel whenever it is required.

This can be done by passing environment variables to the docker container and invoking a bash script whenever required.

Internally we are currently using the following bash script:

#!/bin/sh

set -e

# Install parallel executor "pabot"
pip install --upgrade --quiet robotframework-pabot

# Set number of threads for parallel execution
RF_THREADS=4

# Launch Robot Framework instances
xvfb-run \
    --server-args="-screen 0 ${SCREEN_WIDTH}x${SCREEN_HEIGHT}x${SCREEN_COLOUR_DEPTH} -ac" \
    pabot \
        --verbose \
        --processes $RF_THREADS \
        --outputdir /opt/robotframework/reports \
        ${ROBOT_OPTIONS} \
        /opt/robotframework/tests

exit 0

dnf install -y chromedriver-66.0.* Failed, No match for arguments.

Complete!
Non-fatal scriptlet failure in rpm package libgcc
Non-fatal scriptlet failure in rpm package libgcc
Last metadata expiration check: 0:01:38 ago on Wed Jun 27 21:59:23 2018.
No match for argument: chromedriver-66.0.*
No match for argument: chromium-66.0.*
Error: Unable to find a match

cannot build the project

I ran command docker build -t robot-framework . and got the error below.

Error: Unable to find a match
The command '/bin/sh -c dnf upgrade -y	&& dnf install -y		chromedriver-63.0.*		
chromium-63.0.*		firefox-58.0-*python2-pip-9.0.1-*		xorg-x11-server-Xvfb-1.19.*	&& dnf 
clean all' returned a non-zero code: 1

My docker version as below.

docker version
Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

Missing drivers

I'm not sure how is this supposed to work, since it doesn't contain selenium drivers?

WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

Am I missing something obvious?

Automated update of dependencies in Dockerfile

Investigate if Travis could also be used to update the versions of all dependencies and to commit an updated Dockerfile whenever it is possible (merged to master via an automated pull request merge).

This would allow to regularly push updated Docker images without the need for a manual intervention.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.