Skip to content

Commit 29daf81

Browse files
author
Luiko Czub
committed
comments for changed server_url (TestLink 1.9.7)
Version set to 0.4.0
1 parent cc3ada9 commit 29daf81

File tree

8 files changed

+21
-6
lines changed

8 files changed

+21
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
.settings/
44
build/
55
*.pyc
6-
dist/
6+
dist/
77
MANIFEST

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include MANIFEST.in LICENSE-2.0.txt README.md
22
recursive-include src *.py
33
recursive-include example *.py
4+
recursive-include test *.py

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ cd test\utest
6767
python -m unittest testlinkhelpertest testlinkapi_offline_test
6868
```
6969

70+
### Changes with TestLink 1.9.7
71+
72+
The SERVER_URL path has changed with TestLink 1.9.7.
73+
Use http://[YOURSERVER]/testlink/lib/api/xmlrpc/v1/xmlrpc.php
7074

7175
Download
7276
--------
@@ -77,7 +81,7 @@ see [downloads]
7781
TestLink-API-Python-client developers
7882
-------------------------------------
7983
* [James Stock], [Olivier Renault]
80-
* [g4l4drim], [pade], [lczub]
84+
* [g4l4drim], [pade], [lczub], [anton-matosov]
8185
* anyone forgotten?
8286

8387

@@ -93,3 +97,4 @@ TestLink-API-Python-client developers
9397
[g4l4drim]: https://github.com/g4l4drim/TestLink-API-Python-client
9498
[James Stock]: https://code.google.com/p/testlink-api-python-client/
9599
[lczub]: https://github.com/lczub/TestLink-API-Python-client
100+
[anton-matosov]: https://github.com/anton-matosov/TestLink-API-Python-client.git

example/TestLinkExample.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,20 @@
5050
import sys
5151

5252
# precondition a)
53-
# SERVEUR_URL and KEY are defined in environment
53+
# SERVER_URL and KEY are defined in environment
5454
# TESTLINK_API_PYTHON_SERVER_URL=http://YOURSERVER/testlink/lib/api/xmlrpc.php
5555
# TESTLINK_API_PYTHON_DEVKEY=7ec252ab966ce88fd92c25d08635672b
5656
#
5757
# alternative precondition b)
5858
# SERVEUR_URL and KEY are defined as command line arguments
5959
# python TestLinkExample.py --server_url http://YOURSERVER/testlink/lib/api/xmlrpc.php
6060
# --devKey 7ec252ab966ce88fd92c25d08635672b
61+
#
62+
# ATTENTION: With TestLink 1.9.7, cause of the new REST API, the SERVER_URL
63+
# has changed from
64+
# (old) http://YOURSERVER/testlink/lib/api/xmlrpc.php
65+
# to
66+
# (new) http://YOURSERVER/testlink/lib/api/xmlrpc/v1/xmlrpc.php
6167
tl_helper = TestLinkHelper()
6268
tl_helper.setParamsFromArgs('''Shows how to use the TestLinkAPI.
6369
=> Counts and lists the Projects

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/python
22
# -*- coding: UTF-8 -*-
33

4-
# Copyright 2012 ??? , ???
4+
# Copyright 2012 TestLink-API-Python-client developers
55
#
66
# Licensed under Apache 2.0
77
#

src/testlink/testlinkhelper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class TestLinkHelper(object):
4747
tl_helper.connect(TestLink)
4848
-> returns a TestLink instance
4949
50+
Attention: TL 197 changed the URL of XMLRPC
51+
from http://localhost/testlink/lib/api/xmlrpc.php
52+
to http://localhost/testlink/lib/api/xmlrpc/v1/xmlrpc.php
5053
"""
5154

5255
__slots__ = ['_server_url', '_devkey']

src/testlink/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
#
1818
# ------------------------------------------------------------------------
1919

20-
VERSION = '0.4.0-RC1'
20+
VERSION = '0.4.0'

test/utest/testlinkapicallservertest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
# this test requires an online TestLink Server, which connection parameters
2121
# are defined in environment variables
22-
# TESTLINK_API_PYTHON_DEVKEY and TESTLINK_API_PYTHON_DEVKEY
22+
# TESTLINK_API_PYTHON_SERVER_URL and TESTLINK_API_PYTHON_DEVKEY
2323

2424
import unittest
2525
from testlink import TestlinkAPIClient, TestLinkHelper

0 commit comments

Comments
 (0)