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 container and provide vnc access.

Prerequisite:

  1. Podman/Docker:

    Make sure podman or docker running on your system.

  2. VNC Viewer:

    You can choose any vnc viewer but most of user used tigervnc.

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.3.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: miqsel-2.3.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for miqsel-2.3.tar.gz
Algorithm Hash digest
SHA256 0f35546441e20741dc79e579978c05ca9b60d1e8bca70513398351342f3e56a0
MD5 448ff7485d2333d6f5f8ffb6e8ed5804
BLAKE2b-256 e3c1b9b65a2960b91ff4534ecf7942063d12fc8048e8de9ad2a17a88827b5e47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: miqsel-2.3-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.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for miqsel-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7040634cb4a78382e35353e530e23c26e36856115e2fceb71b992bbd5e795347
MD5 1150bedda037eb493fceedac56b10ccd
BLAKE2b-256 18019146667b8a3140fcb9626dc43520a2ce83f51c7eb9883897491a24cae42b

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