Skip to main content

Main automation lib

Project description

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.6

3.5

3.4

3.3

3.2

2.7

Supported

Supported

Supported

Not Supported

Not Supported

Supported

Code Metrics by sonarqube

Quality Gate Lines Bugs Vulnerabilities Code Smells Debt ratio Comments

INSTALLATION

With PIP

pip install qacode

With SETUP.py file

python setup.py install

Documentation

Tests

python setup.py test

TOX environments

Env name

Env description

py27,py34,py35,py36

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",
      "operadriver_32.exe",
      "operadriver_64.exe",
      "operadriver_32",
      "operadriver_64"
    ]
  }
}

Getting Started

Just starting example of usage before read Usage Guide.

from qacode.core.bots.bot_base import BotBase
from qacode.core.webs.controls.control_base import ControlBase
from qacode.core.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()

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

qacode-0.5.4.tar.gz (61.8 kB view hashes)

Uploaded Source

Built Distribution

qacode-0.5.4-py2.7.egg (189.2 kB view hashes)

Uploaded Source

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