Giter Club home page Giter Club logo

cf-ui's Introduction

CF-UI test framework

Environment setup

git clone https://github.com/Hawkular-QE/cf-ui.git
cd cf-ui
./setup.sh
source .cf-ui/bin/activate

Configuration

Edit the following property values in the conf/properties.properties file so that they represent the configuration under test:

    MIQ_<...>
    HAWKULAR_<...>
    OPENSHIFT_<...>
    SSH_<...>
    DB_<...>

Validate the Setup / Configuration

The following test is expected to successful add the Middleware Manager Provider:

python -m pytest tests/framework/test_test.py::test_cfui_test

Using Chrome web driver

Chrome driver is by default installed into .cf-ui directory and it is necessary to set PATH to it so Python Interpreter would know where to find the driver.

export PATH=$PATH:${PATH_TO_CF_UI}/.cf-ui

Click here for Chrome driver official docs

For PyCharm add Environment Variables for test in Run/Debug Configuration. Setting PATH Environment Variable may be buggy for IDE so you can also set path to driver as method attribute in session.py

Example:

driver = webdriver.Chrome("/path/to/.cf-ui/")

Configuration

All configuration on which automation is relied upon should be stored in conf/properties.properties

Properties in conf/properties.properties are overwritten by env variables with same name as in conf/properties.properties or with prefix CFUI_ So we can use framework testcases to prepare MIQ/CFME+HS for manual testcase if needed without changing conf/properties.properties file.

export KEEP_BROWSER_RUNNING=True
export MIQ_HOSTNAME=<your_MIQ_HOSTNAME>
export MIQ_PORT=80

export HAWKULAR_HOSTNAME=<your_HAWKULAR_HOSTNAME>
export HAWKULAR_PORT=80

source .cf-ui/bin/activate

cf-ui's People

Contributors

mattmahoneyrh avatar skondkar avatar vprusa avatar hhovsepy avatar

Watchers

James Cloos 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.