Branch |
Linux Deploy |
Windows Deploy |
CircleCI - Docker |
CodeClimate |
|
|---|---|---|---|---|---|
master |
|||||
Python tested versions
3.6 |
3.5 |
3.4 |
3.3 |
3.2 |
2.7 |
|---|---|---|---|---|---|
Supported |
Supported |
Supported |
Not Supported |
Not Supported |
Supported |
Prerequisites
Prerequisites : pip install qautils
How to install ?
Install from PIP : pip install qacode
Install from setup.py file : python setup.py install
Documentation
How to use library, searching for Usage Guide.
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 |
|---|---|
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 qautils.files 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()
Metadata
Release files for qacode 0.5.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qacode-0.5.7.tar.gz | 63.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qacode-0.5.7-py3.5.egg | Legacy Egg format | - | - | Details |
Total release size: 205.8 kB
Release files / qacode-0.5.7.tar.gz
| Download URL | qacode-0.5.7.tar.gz |
|---|---|
| Size | 63.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9b087b8c90d351c4c3e011c36d7adb71c36fa92fe2b71b57862f89b9ea7bef4
|
|
BLAKE2b-256 checksum How to use checksums |
d7a229ffab061275623acec3792a915a7b823f6080df593c3f65405b98fdb397
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.5
|
Release files / qacode-0.5.7-py3.5.egg
| Download URL | qacode-0.5.7-py3.5.egg |
|---|---|
| Size | 142.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
28eedbc9dafaf7dd14e1aa551aabd39375627b481caf1bc093ff934c3a7b5bce
|
|
BLAKE2b-256 checksum How to use checksums |
b36c643e12d8cbbae9fc2566ebcb65b7e642b6db40b9b2386f5d0b2a37050323
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.5
|