Create JSON configuration ( runtime or read from file, read config section )
Instance Bot object
from qacode .core .bot import BotBase
from qautils .files import settings
cfg = settings (file_path = "./testlink-tests/configs/" )
bot = BotBase (** cfg )
Instance Testlink Page object
from testlinktests .core .pages import (PageLogin , PageIndex )
login = PageLogin (bot , ** {"url" : "http://netzulo.tk:88/login.php" })
index = PageIndex (bot , ** {"url" : "http://netzulo.tk:88/index.php" })
is_logged = login .login ("admin" , "admin" )
if not is_logged :
raise Exception ("Login not working" )
index .menu_top ()
index .menu_right ()
index .menu_left ()
Create JSON configuration ( runtime or read from file, read config section )
Instance testlink_manager object testlink_manager = TLManager(settings=my_json_config)
Use some method name with prefix 'api_ '
XMLRPC : call to method named 'tl.checkDevKey '
Description : check if dev_key it's valid
XMLRPC : call to method named 'tl.getProjects '
Description : get all test projects
XMLRPC : call to method named 'tl.getTestProjectByName '
Description : get one test project filtered by name
XMLRPC : call to method named 'tl.getProjectTestPlans '
Description : get all test plans for one test project
api_tproject_tsuites_first_level
XMLRPC : call to method named 'tl.getFirstLevelTestSuitesForTestProject '
Description : get all test suites on first level for one test project
XMLRPC : call to method named 'tl.getTestPlanByName '
Description : get one test plan filtered by project and plan names
XMLRPC : call to method named 'tl.getTestPlanPlatforms '
Description : get one test plan filtered by project and plan names
XMLRPC : call to method named 'tl.getBuildsForTestPlan '
Description : get all builds for test project filtered by id
XMLRPC : call to method named 'tl.getTestSuitesForTestPlan '
Description : get all test suites assigned to test plan filtered by id
XMLRPC : call to method named 'tl.getTestCasesForTestPlan '
Description : get all test cases assigned to test plan filtered by id
XMLRPC : call to method named 'tl.getLatestBuildForTestPlan '
Description : get latest build by choosing the maximum build id for a specific test plan id
XMLRPC : call to method named 'tl.getTotalsForTestPlan '
Description : get totals for testplan filtered by id
XMLRPC : call to method named 'tl.getTestSuiteByID '
Description : get test suite filtered by id
XMLRPC : call to method named 'tl.getTestSuitesForTestSuite '
Description : get test suites down of tree for one test suite filtered by id
XMLRPC : call to method named 'tl.getTestCase '
Description : get test case filtered by id or external id
XMLRPC : call to method named 'tl.getTestCaseIDByName '
Description : get test case filtered by name
XMLRPC : call to method named 'tl.reportTCResult '
Description : reports a result for a single test case
XMLRPC : call to method named 'tl.doesUserExist '
Description : check if user name it's valid
XMLRPC : call to method named 'tl.about '
Description : get default message with author and testlink version
XMLRPC : call to method named 'tl.sayHello '
Description : get 'Hello!' message
XMLRPC : call to method named 'tl.ping '
Description : get 'Hello!' message
XMLRPC : call to method named 'tl.repeat '
Description : get You said: 'your message here' as message