Skip to main content

A front-end monkey testing tool

Project description

Pixies

A front-end monkey testing suite based on Python webdriver.

Watch out for the flying pixies!

Usage

Quick start

pip install pixies

Download Chrome Webdriver binariy, and add it to the System PATH.

import pixies
from pixies.species import Clicker, Scroller, Toucher, Typer, Resizer

cage = pixies.Cage(
    'https://news.baidu.com',
    pixieList=[
        Clicker, Scroller, Toucher, Typer, Resizer
    ])
cage.release()

Params

class pixies.Cage(
    url, # necessary
    pixieList = [
        Clicker, Scroller, Toucher, Typer, Resizer
    ], # optional, all pixie species by default
    weightList = [], # optional, equal weight by default
    browser = 'chrome', # optional, 'safari'|'chrome'|'firefox'
    stopAtError = True, # optional
)
method pixies.Cage.release(
    length = 100 # optional, times to run pixies
)

Species

Different pixie species do different things to the page.

Clicker

  • Randomly click on the page visible area

  • Prevent navigation automatically

  • Switch back immediately when new pages are openned

  • Identify clickable objects and focus on them

Scroller

  • Randomly scroll to different places of the main page

Resizer

  • Resize the page randomly

  • Identify the max and min size of the page automatically

Typer

  • Generates random UTF-8 BMP characters and control keys (such as shift, enter, ESC stc.) and send them to the currently active element

  • Prevent the page from navigating away

  • Identify input objects and send keys to them

Toucher

  • Imitate touch events, supporting path touching

Dragger

  • [TODO]

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

pixies-1.0.3.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

pixies-1.0.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file pixies-1.0.3.tar.gz.

File metadata

  • Download URL: pixies-1.0.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for pixies-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9f66d5bd55f980aeead57b112ff3cc3e1b963ffe4d842d45f786aa67e91bee77
MD5 6d5c7db6afc4292024569ab05c115f99
BLAKE2b-256 7cb099d861303efe49d79058d440021a79e4398ab130e720270a15804edad6a3

See more details on using hashes here.

File details

Details for the file pixies-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pixies-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for pixies-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 094b132e1060765ee128e44ac2f5296d6f8655ae1d812d394eda064de777c141
MD5 575f662546f25eb9ca5b5c79d7fbca0d
BLAKE2b-256 774efe138ec91f3ac264b4b39c73e35258a16dc8520ab23c6085bf22ecf2973a

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