Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

geonode-selenium

Testing GeoNode with Selenium.

Requirements

Mandatory:

Optional:

Setup

Dependencies

If using virtualenv:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

If using fades:

$ pip3 install --user fades

Selenium WebDriver (Gecko)

$ tag=v0.24.0
$ wget https://github.com/mozilla/geckodriver/releases/download/$tag/geckodriver-$tag-linux64.tar.gz -O- |
      tar zx -C $HOME/bin

Other releases are available from: https://github.com/mozilla/geckodriver/releases/latest

Data

$ wget https://download.osgeo.org/geotiff/samples/made_up/ntf_nord.tif -P data

Usage

If GeoNode is running:

$ ./test.sh

If GeoNode is not running (warning: it could delete existing Docker volumes created by SPCgeonode):

$ git clone https://github.com/GeoNode/geonode.git
$ ./test-docker.sh

Set GEONODE_REPOSITORY to specify a different path.

Find the commit that introduced a bug

$ git checkout -b new-test
$ # write a new test or extend an existing one
$ cd geonode/
$ export GEONODE_REPOSITORY=$(pwd)
$ git bisect start
$ git bisect bad
$ git bisect good $COMMIT
$ git bisect run ../test-docker.sh

About

End to end tests with Selenium

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.