Skip to main content
Issues on Github Pull Request opened on Github Release version on Github Release date on Github

Branch

Linux Deploy

Windows Deploy

CircleCI - Docker

CodeClimate

master

https://travis-ci.org/netzulo/qacode.svg?branch=master https://ci.appveyor.com/api/projects/status/4a0tc5pis1bykt9x/branch/master?svg=true https://circleci.com/gh/netzulo/qacode.svg?&style=shield&circle-token=80384cb2233d112dc0785278d5b7c3d8c6a5686c https://api.codeclimate.com/v1/badges/46279cf9a6a47ed583d6/maintainability

Python tested versions

3.7

3.6

3.5

<=3.4

Supported

Supported

Supported

Not Supported

How to install ?

  • Install from PIP : pip install qacode

  • Install from setup.py file : python setup.py install

Documentation

How to exec tests ?

  • Tests from setup.py file : python setup.py test

  • Install from PIP file : pip install tox

  • Tests from tox : tox -l && tox -e TOX_ENV_NAME ( see tox.ini file to get environment names )

TOX Env name

Env description

py35,py36,py37

Python supported versions

flake8

Exec linter in qalab/ tests/

coverage

Generate XML and HTML reports

docs

Generate doc HTML in /docs

Configuration File

{
  "bot": {
    "log_output_file": "logs/",
    "log_name": "qacode",
    "log_level": "DEBUG",
    "mode": "remote",
    "browser": "chrome",
    "options": { "headless": false },
    "url_hub": "http://localhost:11000/wd/hub",
    "drivers_path": "../qadrivers",
    "drivers_names": [
      "chromedriver_32.exe",
      "chromedriver_64.exe",
      "chromedriver_32",
      "chromedriver_64",
      "firefoxdriver_32.exe",
      "firefoxdriver_64.exe",
      "firefoxdriver_64.exe",
      "firefoxdriver_32",
      "phantomjsdriver_32.exe",
      "phantomjsdriver_64.exe",
      "phantomjsdriver_32",
      "phantomjsdriver_64",
      "iexplorerdriver_32.exe",
      "iexplorerdriver_64.exe",
      "edgedriver_32.exe",
      "edgedriver_64.exe"
    ]
  }
}

Getting Started

Just starting example of usage before read Usage Guide (or refer to `QAcode’s Documentation`_).

from qacode.core.bots.bot_base import BotBase
from qacode.core.webs.controls.control_base import ControlBase
from qacode.utils import settings


SETTINGS = settings(
    file_path="/home/user/config/dir/",
    file_name="settings.json"
)


try:
    bot = BotBase(**SETTINGS)
    bot.navigation.get_url("http://the-internet.herokuapp.com/login")
    ctl_config = { "selector": "input[name='username']"}
    ctl = ControlBase(bot, **ctl_config)
    # END
    import pdb; pdb.set_trace() # TODO, remove DEBUG lane
    print(ctl)
except Exception as err:
    print("ERROR: {}".format(err))
finally:
    bot.close()

Download files

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

Source Distribution

qacode-0.6.5.tar.gz (93.9 kB view details)

Uploaded Source

File details

Details for the file qacode-0.6.5.tar.gz.

File metadata

  • Download URL: qacode-0.6.5.tar.gz
  • Upload date:
  • Size: 93.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for qacode-0.6.5.tar.gz
Algorithm Hash digest
SHA256 cd84916873f80a4745c7a892c783838c3a0cbedab14a7db5f462c18a95b4d0cd
MD5 47c4725428d343016a01e35cfab632c5
BLAKE2b-256 d8843ad5d6c202057cd3a5babc580f88f42ec4923f0256c35d0bab6a33b3e647

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.5 This release

1 file

0.6.4

1 file

0.6.3

1 file

0.6.2

2 files

0.6.1

2 files

0.6.0

1 file

0.5.9

2 files

0.5.8

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

3 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

1 file

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

1 file

0.3.6

1 file

0.3.5

1 file

0.3.4

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.9

1 file

0.2.8

1 file

0.2.7

1 file

0.2.6

1 file

0.2.5

1 file

0.2.4

1 file

0.1.9

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.0

1 file

0.0.9

1 file

0.0.5

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

0.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page