Sign inSign up

ramb0/selenium-test

By ramb0

Updated over 3 years ago

Image
0

156

ramb0/selenium-test repository overview

A Selenium testing image for tests written in Python

Overcomes any issues with services running on none http ports by using apache and proxy pass.

To run, create a directory eg my-directory

Place your test file in here and call it test.py

Create a file called 000-default.conf and enter a virtual host i.e.

<VirtualHost *:80>
    ProxyPreserveHost On

    ProxyPass / http://192.168.240.60:9966/
    ProxyPassReverse / http://192.168.240.60:9966/
</VirtualHost>

Where http://192.168.240.60:9966/ is the service that will be redirected to from http://127.0.0.1

then:

In the test.py file, run all tests again http://127.0.0.1

then run:

docker run --rm -v $PWD/my-directory:/home/tests -it ramb0selenium-test

Tag summary

Content type

Image

Digest

sha256:430ade72f

Size

490.7 MB

Last updated

over 3 years ago

docker pull ramb0/selenium-test