GithubHelp home page GithubHelp logo

pbajjuri20 / kiali-qe-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kiali-qe/kiali-qe-python

0.0 0.0 0.0 1.37 MB

Python/Selenium based Kiali test automation framework

License: Apache License 2.0

Python 100.00%

kiali-qe-python's Introduction

Kiali GUI Automation

Kiali GUI QE automation framework. This framework based on pytest Testing Framework, using Widgetastic testing tools.

Project structure

  • kiali_qe/: Root directory for all the source code.
    • components: This directory contains custom browser, UI components(widgets)
    • entities: This directory contains entities/modes to create comparable data across UI and REST.
    • fixtures: Type of fixtures available here
    • pages: UI pages as python class
    • rest: REST clients
    • tests: tests
    • utils: supporting utilities

Configurations

All the configurations will be available in one location. That is env.yaml. This file is located at conf/env.yaml

To run tests

Run in virtual environment only created and activated by running:

# clone this repository
$ git clone https://github.com/Kiali-QE/kiali-qe-python.git kiali-qe-python
$ cd kiali-qe-python/

# create virtual environment
$ virtualenv .env
# enable virtual environment
$ source .env/bin/activate

# install requirements
$ pip install -r requirements.txt

# update conf/env.yaml (kiali hostname, token and selenium driver url) 

# Tests use OpenShift API.
# Needs to be logged in once in to OpenShift before to run tests.
# When we login in to OpenShift, ".kube/config" file will be created with auth token.
# This token will be used in tests to access OpenShift
# oc - OpenShift Command Line Interface (CLI) can be downloaded from OpenShift Help -> Command line tools
$ oc login https://<openshift>:8443 --username=<username> --password=<password> --insecure-skip-tls-verify=true

# The token necessary in env.yaml can be read after login
$ oc whoami -t

# run all tests
$ pytest -s
# see the log on log/kiali_qe.log

Log file

All the logs will be created under log/

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.