Skip to main content

Miq Selenium Server for local testing

Project description

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
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

miqsel-2.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

miqsel-2.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file miqsel-2.2.tar.gz.

File metadata

  • Download URL: miqsel-2.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for miqsel-2.2.tar.gz
Algorithm Hash digest
SHA256 14d934423f2009bbd0a19a3c5da8f523b5f140bbeaa31afb4f0a7a881a3e2518
MD5 258a43c491269001dbf4e0eabbaa7550
BLAKE2b-256 62ffeb6ebe17476a4612c17cc6023b9c97df958f991d72fd34f90cd90237bee7

See more details on using hashes here.

File details

Details for the file miqsel-2.2-py3-none-any.whl.

File metadata

  • Download URL: miqsel-2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for miqsel-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f31c482542e66cace689b66d4202b1f7ce70a338a8afa6810743ed80ef46fb
MD5 6e751cf95dd6aaa47b85060b41dc5f9e
BLAKE2b-256 1e348e2f26dff580561483839ac29dc3154356e684fe8cc38c8395d926a8350b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page