Python language runner for Gauge
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Adding issue template Sep 3, 2016
docs minor spell correction and gauge link addition for reference (#107) Aug 30, 2018
gauge-proto @ 5dc343c Collected step execution screenshots in step execution result getgaug… Aug 16, 2018
getgauge fix parsing for methods inside class. #115 Oct 30, 2018
skel Style of coding enhanced Sep 4, 2018
tests fix parsing for methods inside class. #115 Oct 30, 2018
.gitignore Replace redbaron with parso for Python 3.7 support #96 Aug 2, 2018
.gitmodules Initial steup and adding gauge-proto as submodule Feb 6, 2016
.travis.yml Fixed java home path Oct 18, 2018
LICENSE.txt Adding license badge Jan 26, 2017
MANIFEST.in Converting README.md to README.rst Sep 24, 2016
README.md Update README.md Aug 6, 2018
appveyor.yml Updated build configs for travis and appveyor. Oct 17, 2018
build.py running coverage tool as module. Dec 3, 2018
check_and_install_getgauge.py #120 Fix for running commands in path Nov 2, 2018
genproto.sh Resolving protobuf dep collision with grpc Apr 25, 2018
python.json Updating version to 0.3.5 Sep 13, 2018
requirements.txt Pin grpcio version Oct 31, 2018
setup.tmpl Pin grpcio version Oct 31, 2018
start.bat Install getgauge module if not installed already #53 May 15, 2018
start.py Using os._exit to exit form all threads #110 Oct 22, 2018
start.sh Install getgauge module if not installed already #53 May 15, 2018
tox.ini Replace redbaron with parso for Python 3.7 support #96 Aug 2, 2018

README.md

Gauge-Python

Build Status Build status

This project adds Python language plugin for gauge.

Getting started

Pre-requisite

Installation

gauge install python

Create a gauge-python project

gauge init python

Run tests

gauge run specs

Useful links

Alternate Installation options

Install specific version

gauge install python -v 0.2.3
[pip / pip3] install getgauge

Offline installation

gauge install python --file gauge-python-0.2.3.zip
[pip / pip3] install getgauge

Nightly installation

To install python nightly, download the latest nightly from here.

Once you have the downloaded nightly gauge-python-$VERSION.nightly-yyyy-mm-dd.zip, install using:

gauge install python -f gauge-python-$VERSION.nightly.yyyy-mm-dd.zip
[pip / pip3] install --pre getgauge==$VERSION.dev.yyyymmdd

Build from Source

Pre-Requisites
Installing package dependencies
pip install -r requirements.txt
Tests
python build.py --test
Tests Coverage
python build.py --test
coverage report -m
Installing
python build.py --install
Creating distributable
python build.py --dist

This will create a .zip file in bin directory and a .tar.gz file in dist directory. The zip file can be uploaded to Github release and the .tar.gz file can be uploaded to PyPi

Uploading to PyPI
twine upload dist/FILE_NAME
Creating Nightly distributable
NIGHTLY=true python build.py --dist

This will create the .zip nightly file and a .dev.DATE.tar.gz(PyPi pre release package) file.

Examples

  • Selenium: This project serves as an example for writing automation using Gauge. It uses selenium and various Gauge/Gauge-Python features. For more details, Check out the gauge-example-python repository.

  • Selenium and REST API: This project shows an example of how to setup Gauge, Gauge Python and Magento to test REST API. For more details, Check out the blog or gauge-magento-test repository.

License

The Gauge-Python is an open-sourced software licensed under the MIT license.

Copyright

Copyright 2018 ThoughtWorks, Inc.