Giter VIP home page Giter VIP logo

cheesecake-ui-tests's Introduction

cheescake-ui-tests

UI tests for Pantheon v2 using Selenium + Python.

Pre-requisites

  • python3
  • google chrome (not chromium)

Setup

Install and create virtualenv (This step should be executed only when setting up the project for the first time)

  • Install virtualenv

python3 -m pip install --user virtualenv

  • Create virtualenv

python3 -m venv env

  • Activate the virtual environment:

$ source env/bin/activate

  • Install dependencies for setting up tests:

$ pip install -r requirements.txt

  • Set Python Path to the current directory:

export PYTHONPATH = "<path to your current directory>"

  • To Check if PYTHONPATH is set correctly to the current directory:

echo $PYTHONPATH

PYTHONPATH should not be blank and should be your current directory.

Execute tests:

  • Make the changes in the config file for actual values.

cp config.ini.sample config.ini

Make the appropriate changes to base URL,username and password fields in config.ini file. You can reach out to any of the contributors for the actual values to be used. By default, the tests will run in headless mode. If you choose to run otherwise, change the value to "no".

  • To run the test against QA env, set the environment variable appropriately. export PANTHEON_ENV=qa Acceptable values for PANTHEON_ENV variable are dev/qa/stage.

  • To execute the tests: lcc run

  • To view the reports on console after you ran the tests: lcc report

  • To view the report in browser: firefox report/report.html

  • User can choose to run the tests for different environments listed in config.ini file by passing the 'env' and 'base_url' parameter in 'base.config_reader(, <base_url>)' method present inside browser_util.py file

  • To run a single test: lcc run <test_file_name> e.g. lcc run login_test

Deactivate virtualenv: $ deactivate

cheesecake-ui-tests's People

Contributors

anarang avatar debam-das avatar jkalra30 avatar jmarrero avatar noopurmath3 avatar pbadak avatar rutdeshm avatar

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.