PIP install
-----------
``pip install qatestlink``
SETUP.py install
----------------
``python setup.py install``
Configuration File
------------------
::
{
"connection":{
"is_https": false,
"host": "qalab.tk",
"port": 86
},
"dev_key": "ae2f4839476bea169f7461d74b0ed0ac",
"log_level":"DEBUG"
}
Tests
-----
*You will need real testlink app running before you can just execute on command line*
``python setup.py test``
Usage ( *XMLRPC* )
**********************************
+ 1. Create JSON configuration ( runtime or read from file, *read config section* )
+ 2. Instance **testlink_manager** object ``testlink_manager = TLManager(settings=my_json_config)``
+ 3. Use some *method name with prefix* '**api_**'
::
from qatestlink.core.testlink_manager import TLManager
tlm = TLManager(settings={
"connection":{
"is_https": false,
"host": "qalab.tk",
"port": 86
},
"dev_key": "ae2f4839476bea169f7461d74b0ed0ac",
"log_level":"DEBUG"
}})
Now type some api_* method
tlm.api_check_devkey()