Skip to main content

Main automation lib

Project description

Downloads on Github Downloads on Pypi GitHub release

Branch

Linux Deploy

Windows Deploy

master

https://travis-ci.org/netzulo/qacode.svg?branch=master https://ci.appveyor.com/api/projects/status/4a0tc5pis1bykt9x/branch/master?svg=true

devel

https://travis-ci.org/netzulo/qacode.svg?branch=devel https://ci.appveyor.com/api/projects/status/4a0tc5pis1bykt9x/branch/devel?svg=true

Python tested versions

  • 3.6

  • 3.5

  • 3.4

  • 3.3

  • 3.2 (not supported)

  • 2.7

Code Metrics by sonarqube

Quality Gate Lines Bugs Vulnerabilities Code Smells Debt ratio Comments

PIP install

pip install qacode

SETUP.py install

python setup.py install

Configuration File

# author: Netzulo
[BOT]
# DRIVERMODE: local , remote
mode=remote
# BROWSER: firefox , chrome , iexplorer, edge, phantomjs
browser=chrome
# REMOTEDRIVER
url_hub=http://146.255.101.51:11000/wd/hub
# NODEWEBDRIVER
url_node=http://146.255.101.51:11001/wd/hub
# DRIVERS PATH
drivers_path=../../modules/qadrivers
# DRIVERS NAMES
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"]
# FILE NAME FOR LOGGER
log_name=qacode
# OUTPUT FILE NAME FOR LOGGER
log_output_file=logs

[TESTLINK]
# Url for testlink API : http://localhost/lib/api/xmlrpc/v1/xmlrpc.php
url=http://localhost/lib/api/xmlrpc/v1/xmlrpc.php
# Devkey provided by testlink: 182c5b87c776ff2956b68e23eae866d9
devkey=182c5b87c776ff2956b68e23eae866d9

[TEST_UNITARIES]
url=https://www.netzulo.com

    [TEST_FUNCTIONALS]
    url_login=http://qalab.tk:82/sessions/new
    url_logout=http://qalab.tk:82/sessions/logout
url_logged_ok=http://qalab.tk:82/
url_logged_ko=http://qalab.tk:82/sessions/
selectors_login=["#login", "#password", "[name='commit']"]
creed_user=qacode
creed_pass=qacode
    [BUILD]
# Skip driver are not support on public selenium server http://qalab.tk:11000
skip_travis_tests=True

Tests

Unitaries

nosetests tests/unitaries/TestConfig.py --tc-file="qacode/configs/settings.ini"
nosetests tests/unitaries/TestLoggerManager.py --tc-file="qacode/configs/settings.ini"
nosetests tests/unitaries/TestTestInfoBase.py --tc-file="qacode/configs/settings.example.ini"

Functionals

nosetests tests/functionals/TestBotBase.py --tc-file="qacode/configs/settings.example.ini"
    nosetests tests/functionals/TestTestInfoBot.py --tc-file="qacode/configs/settings.ini"
nosetests tests/functionals/TestNavBase.py --tc-file="qacode/configs/settings.example.ini"
nosetests tests/functionals/TestPageBase.py --tc-file="qacode/configs/settings.example.ini"
nosetests tests/functionals/TestPageLogin.py --tc-file="qacode/configs/settings.example.ini"
nosetests tests/functionals/TestControlBase.py --tc-file="qacode/configs/settings.ini"

Live example

asciicast

TODO: generate new ascii video

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.1.7.tar.gz (17.7 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