Skip to content

Commit

Permalink
comments for changed server_url (TestLink 1.9.7)
Browse files Browse the repository at this point in the history
Version set to 0.4.0
  • Loading branch information
Luiko Czub committed Jul 16, 2013
1 parent cc3ada9 commit 29daf81
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
.settings/
build/
*.pyc
dist/
dist/
MANIFEST
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include MANIFEST.in LICENSE-2.0.txt README.md
recursive-include src *.py
recursive-include example *.py
recursive-include test *.py
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ cd test\utest
python -m unittest testlinkhelpertest testlinkapi_offline_test
```

### Changes with TestLink 1.9.7

The SERVER_URL path has changed with TestLink 1.9.7.
Use http://[YOURSERVER]/testlink/lib/api/xmlrpc/v1/xmlrpc.php

Download
--------
Expand All @@ -77,7 +81,7 @@ see [downloads]
TestLink-API-Python-client developers
-------------------------------------
* [James Stock], [Olivier Renault]
* [g4l4drim], [pade], [lczub]
* [g4l4drim], [pade], [lczub], [anton-matosov]
* anyone forgotten?


Expand All @@ -93,3 +97,4 @@ TestLink-API-Python-client developers
[g4l4drim]: https://github.com/g4l4drim/TestLink-API-Python-client
[James Stock]: https://code.google.com/p/testlink-api-python-client/
[lczub]: https://github.com/lczub/TestLink-API-Python-client
[anton-matosov]: https://github.com/anton-matosov/TestLink-API-Python-client.git
8 changes: 7 additions & 1 deletion example/TestLinkExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,20 @@
import sys

# precondition a)
# SERVEUR_URL and KEY are defined in environment
# SERVER_URL and KEY are defined in environment
# TESTLINK_API_PYTHON_SERVER_URL=http://YOURSERVER/testlink/lib/api/xmlrpc.php
# TESTLINK_API_PYTHON_DEVKEY=7ec252ab966ce88fd92c25d08635672b
#
# alternative precondition b)
# SERVEUR_URL and KEY are defined as command line arguments
# python TestLinkExample.py --server_url http://YOURSERVER/testlink/lib/api/xmlrpc.php
# --devKey 7ec252ab966ce88fd92c25d08635672b
#
# ATTENTION: With TestLink 1.9.7, cause of the new REST API, the SERVER_URL
# has changed from
# (old) http://YOURSERVER/testlink/lib/api/xmlrpc.php
# to
# (new) http://YOURSERVER/testlink/lib/api/xmlrpc/v1/xmlrpc.php
tl_helper = TestLinkHelper()
tl_helper.setParamsFromArgs('''Shows how to use the TestLinkAPI.
=> Counts and lists the Projects
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/python
# -*- coding: UTF-8 -*-

# Copyright 2012 ??? , ???
# Copyright 2012 TestLink-API-Python-client developers
#
# Licensed under Apache 2.0
#
Expand Down
3 changes: 3 additions & 0 deletions src/testlink/testlinkhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class TestLinkHelper(object):
tl_helper.connect(TestLink)
-> returns a TestLink instance
Attention: TL 197 changed the URL of XMLRPC
from http://localhost/testlink/lib/api/xmlrpc.php
to http://localhost/testlink/lib/api/xmlrpc/v1/xmlrpc.php
"""

__slots__ = ['_server_url', '_devkey']
Expand Down
2 changes: 1 addition & 1 deletion src/testlink/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
#
# ------------------------------------------------------------------------

VERSION = '0.4.0-RC1'
VERSION = '0.4.0'
2 changes: 1 addition & 1 deletion test/utest/testlinkapicallservertest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# this test requires an online TestLink Server, which connection parameters
# are defined in environment variables
# TESTLINK_API_PYTHON_DEVKEY and TESTLINK_API_PYTHON_DEVKEY
# TESTLINK_API_PYTHON_SERVER_URL and TESTLINK_API_PYTHON_DEVKEY

import unittest
from testlink import TestlinkAPIClient, TestLinkHelper
Expand Down

0 comments on commit 29daf81

Please sign in to comment.