Giter VIP home page Giter VIP logo

kibana-selenium's Introduction

kibana-selenium

Kibana testing framework which uses selenium webdriver and phantomjs.

Pre-Setup

In order to ensure operation in headless mode you will need to install phantomJS

    apt-get install phantomjs

Install

-Optional: Best practice is to setup a virtualenv before proceeding.
    pip install virtualenv
    virtualenv ~/venv/kib-sel
    . ~/venv/kib-sel/bin/activate

-Required: These steps are needed everytime you rebuild the project.
    cd /opt && git clone https://github.com/rcbops-qe/kibana-selenium.git   
    cd kibana-selenium
    mv ~/.pip/pip.conf ~/.pip/pip2.conf
    pip install -r requirements.txt
    mv ~/.pip/pip2.conf ~/.pip/pip.conf
    export PYTHONPATH=$(pwd)


-Configuration file generator: This will create the configuration file needed for test execution in iad3-2 and iad3-3
    python conf-gen.py
    
    
-Local configuration management:
    user:
        kibana
    password: on infra
        grep -R "kibana_password" /etc/openstack_deploy/user_rpco_secrets.yml
    external_vip: on infra
        IAD3-LAB02:
            grep -R "external_lb_vip_address" /etc/openstack_deploy/openstack_user_config.yml
        
        IAD3-LAB03L
            grep -R "external_lb_vip_address" /opt/rpc-openstack/jenkins-oa/inventory/group_vars/qe-iad3-lab03.yml

Test execution

python /opt/kibana-selenium/testrepo/kibana/kibana.py

Troubleshooting:

-Setup
    Most common issue is that the pip.conf file doesn't allow remote lookups. If you get a pip install error while performing step : pip install -r requirements.txt, the easiest solution is to move the ~/.pip/pip.conf file execute install and then move back the pip.conf file.
    
-Error reporting
    Currently errors are output to a file named kibana.log in the directory the test were run from.
    Screenshots are also created into the current working directory.

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.