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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: miqsel-3.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for miqsel-3.0.tar.gz
Algorithm Hash digest
SHA256 f66cb2469f5d2d3b7831dadfbc163e5886bccad18b29cab8b253b677aea71ee4
MD5 5f001e354e07f3bb03402a6105408a2c
BLAKE2b-256 efc607a8f41afb8b97268b08ccc05344ff04a6284e3e99c1ad527f6c1906e134

See more details on using hashes here.

File details

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

File metadata

  • Download URL: miqsel-3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for miqsel-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d48e26598aabb57f21bca7db5e52159d7933a0dd1b40c025c255437e50b540e
MD5 f1d9c53d839c3d683f5d1eff8018575f
BLAKE2b-256 5ca5887ecb2672db953ad6dd4f021f62524b14711dd4683cb8cbc7d6ce00a435

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