Skip to main content

Main automation lib

Project description

qatestlink XMLRPC manager for Testlink

Issues on Github Pull Request opened on Github Release version on Github Release date on Github

Branch

Linux Deploy

Windows Deploy

master

https://travis-ci.org/netzulo/qatestlink.svg?branch=master https://ci.appveyor.com/api/projects/status/7low4kw7qa6a5vem/branch/master?svg=true

Python tested versions

  • 3.6

  • 3.5

  • 3.4

  • 3.3 (not supported)

  • 3.2 (not supported)

  • 2.7

Code Metrics by sonarqube

Quality Gate Lines Bugs Vulnerabilities Code Smells Debt ratio Comments

PIP install

pip install qatestlink

SETUP.py install

python setup.py install

Configuration File

{
    "connection":{
        "is_https": false,
        "host": "ntz-qa.tk",
        "port": 86
    },
    "dev_key": "1bfd2ef4ceda22b482b12f2b25457495",
    "log_level":"INFO"
}

Tests

You will need real testlink app running before you can just execute on command line

python setup.py test

TOX environments

Env name

Env description

py27,py34,py35,py36

Python supported versions

docs

Generate doc HTML in /docs

flake8

Exec linter in qalab/ tests/

coverage

Generate XML and HTML reports

Usage ( XMLRPC )

    1. Create JSON configuration ( runtime or read from file, read config section )

    1. Instance testlink_manager object testlink_manager = TLManager(settings=my_json_config)

    1. Use some method name with prefixapi_

api_login

  • XMLRPC: call to method namedtl.checkDevKey

  • Description : check if dev_key it’s valid

api_tprojects

  • XMLRPC: call to method namedtl.getProjects

  • Description : get all test projects

api_tproject

  • XMLRPC: call to method namedtl.getTestProjectByName

  • Description : get one test project filtered by name

api_tproject_tplans

  • XMLRPC: call to method namedtl.getProjectTestPlans

  • Description : get all test plans for one test project

api_tproject_tsuites_first_level

  • XMLRPC: call to method namedtl.getFirstLevelTestSuitesForTestProject

  • Description : get all test suites on first level for one test project

api_tplan

  • XMLRPC: call to method namedtl.getTestPlanByName

  • Description : get one test plan filtered by project and plan names

api_tplan_platforms

  • XMLRPC: call to method namedtl.getTestPlanPlatforms

  • Description : get one test plan filtered by project and plan names

api_tplan_builds

  • XMLRPC: call to method namedtl.getBuildsForTestPlan

  • Description : get all builds for test project filtered by id

api_tplan_tsuites

  • XMLRPC: call to method namedtl.getTestSuitesForTestPlan

  • Description : get all test suites assigned to test plan filtered by id

api_tplan_tcases

  • XMLRPC: call to method namedtl.getTestCasesForTestPlan

  • Description : get all test cases assigned to test plan filtered by id

api_tplan_build_latest

  • XMLRPC: call to method namedtl.getLatestBuildForTestPlan

  • Description : get latest build by choosing the maximum build id for a specific test plan id

api_tplan_totals

  • XMLRPC: call to method namedtl.getTotalsForTestPlan

  • Description : get totals for testplan filtered by id

api_tsuite

  • XMLRPC: call to method namedtl.getTestSuiteByID

  • Description : get test suite filtered by id

api_tsuite_tsuites

  • XMLRPC: call to method namedtl.getTestSuitesForTestSuite

  • Description : get test suites down of tree for one test suite filtered by id

api_tcase

  • XMLRPC: call to method namedtl.getTestCase

  • Description : get test case filtered by id or external id

api_tcase_by_name

  • XMLRPC: call to method namedtl.getTestCaseIDByName

  • Description : get test case filtered by name

api_tcase_report

  • XMLRPC: call to method namedtl.reportTCResult

  • Description : reports a result for a single test case

api_user_exist

  • XMLRPC: call to method namedtl.doesUserExist

  • Description : check if user name it’s valid

api_about

  • XMLRPC: call to method namedtl.about

  • Description : get default message with author and testlink version

api_say_hello

  • XMLRPC: call to method namedtl.sayHello

  • Description : get ‘Hello!’ message

api_ping

  • XMLRPC: call to method namedtl.ping

  • Description : get ‘Hello!’ message

api_ping

  • XMLRPC: call to method namedtl.repeat

  • Description : get You said: ‘your message here’ as message

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

qatestlink-0.1.0.tar.gz (43.9 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