Giter Site home page Giter Site logo

miqsel's Introduction

miqsel

Miq Selenium Server

Python Versions Build Status License: GPLV3 PyPI version Downloads Code style: black

Simple command line application to spin selenium docker container and provide vnc access.

Prerequisite:

  1. Docker:

    For setting docker environment follow below steps:

    • Fedora

      • Set Repository:
      sudo dnf -y install dnf-plugins-core
      sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
      
      • Install below packages:
      sudo dnf -y install docker-ce
      sudo systemctl start docker
      sudo systemctl enable docker
      
      • Run docker with non-root User:
      sudo groupadd docker
      sudo usermod -aG docker <non-root-user>
      
    • Ubuntu and others

  2. TigerVNC Viewer:

Installation:

pip install miqsel --user

or

 pip install git+https://github.com/digitronik/miqsel#egg=miqsel --user

Usage:

❯❯❯ miqsel --help

Usage: miqsel [OPTIONS] COMMAND [ARGS]...

  Miq Selenium Server

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  appliance  Appliance
  browser    Set Browser
  config     Configure Miq Selenium Server
  executor   Selenium executor URL
  start      Start Selenium Server
  status     Status of Selenium Server
  stop       Stop Selenium Server
  viewer     VNC viewer
  vnc        VNC URL
  • Configuration: If the project directory not set then miqsel need to run from integration_tests project directory. It will help to manage env.local.yaml.

    ❯❯❯ miqsel config
    Miq project working dir: /home/.../integration_tests
  • Status: Check status of selenium container (running/ stopped).

    ❯❯❯ miqsel status
    stopped
  • Start/Stop: The start will set command executor in env.local.yaml and provide vnc access.

    ❯❯❯ miqsel start
    Selenium Server started
    
    TigerVNC Viewer 64-bit v1.9.0
    
    ❯❯❯ miqsel stop
    
    Sun Apr 28 12:29:02 2019
     CConn:       End of stream
    Selenium Server stopped
  • Appliance: Check current appliance or set new.

    ❯❯❯ miqsel appliance
    
    ❯❯❯ miqsel appliance -s 192.168.1.1
    Appliance set to 192.168.1.1
    ❯❯❯ miqsel appliance
    192.168.1.1
  • Browser: Check current browser or set other.

    ❯❯❯ miqsel browser
    chrome
    ❯❯❯ miqsel browser --firefox
    Browser set to firefox
    ❯❯❯ miqsel browser
    firefox
  • Viewer: Take vnc access of selenium server. At the start of selenium server, vnc viewer will be invoked automatically. If the status is running and the viewer is close then viewer command will help to re-open vnc session.

    ❯❯❯ miqsel status
    running
    ❯❯❯ miqsel viewer
    TigerVNC Viewer 64-bit v1.9.0
  • Executor: Get command executor url

    ❯❯❯ miqsel executor
    http://172.17.0.2:4444/wd/hub
  • VNC: Get vnc session url

    ❯❯❯ miqsel vnc
    172.17.0.2:5999

miqsel's People

Contributors

digitronik avatar sbulage avatar niyazredhat avatar valaparthvi 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.