-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cauvery Guda
committed
Sep 28, 2020
1 parent
aa0ea3d
commit d91c78c
Showing
1 changed file
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,64 @@ | ||
# zaleniumPro | ||
Zalenium demo project | ||
|
||
|
||
## Overview | ||
|
||
Zalenium Demo project | ||
|
||
|
||
## Prerequisites | ||
Python 3 and pip | ||
|
||
## Installation | ||
|
||
Clone the repo: | ||
|
||
``` | ||
$ git clone https://github.com/cauvery/zaleniumPro.git | ||
``` | ||
|
||
Install `pip` the python package installer, if you don't already have it: | ||
|
||
``` | ||
$ sudo easy_install pip | ||
``` | ||
|
||
Next, install the required dependencies: | ||
|
||
``` | ||
$ pip install -r requirements.txt | ||
``` | ||
## Pull Docker images and run docker to start zalenium | ||
|
||
``` | ||
docker pull elgalu/selenium | ||
``` | ||
|
||
``` | ||
docker pull dosel/zalenium | ||
``` | ||
|
||
``` | ||
docker run --rm -ti --name zalenium -d -p 4444:4444 -e PULL_SELENIUM_IMAGE=true -v /var/run/docker.sock:/var/run/docker.sock --privileged dosel/zalenium start | ||
``` | ||
|
||
## To view to docker console from browser | ||
http://localhost:4444/grid/console | ||
|
||
## For live preview of tests execution from browser | ||
http://localhost:4444/grid/admin/live | ||
|
||
## For zalenium dashboard | ||
http://localhsot:4444/dashboard | ||
|
||
## Execute the tests | ||
To execute the tests from command line option | ||
``` | ||
$ pytest -s tests | ||
``` | ||
|
||
To execute the tests in parallel use -n command line option | ||
``` | ||
$ pytest -s tests -n 3 | ||
``` | ||
|