Skip to content

Commit 47b4748

Browse files
author
Luiko Czub
committed
new api method assignTestCaseExecutionTask (initial version) #26
1 parent c43eed7 commit 47b4748

File tree

5 files changed

+48
-2
lines changed

5 files changed

+48
-2
lines changed

CHANGES.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
Changes in TestLink-API-Python-client Source Distribution
22
=========================================================
33

4+
TestLink-API-Python-client UNDER DEVELOP v0.5.1
5+
-----------------------------------------------------------
6+
support for future TL 1.9.11 release
7+
8+
implement 1.9.11 new api method - assignTestCaseExecutionTask #26
9+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10+
11+
new TestlinkAPIGeneric and TestlinkAPIClient api method
12+
13+
- assignTestCaseExecutionTask
14+
15+
known TL Dev 1.9.11 problems
16+
17+
- [TestLink 0006433](http://mantis.testlink.org/view.php?id=6433):
18+
Add test case to test plan with assigning user raise PHP Fatal error
19+
- [TestLink 0006434](http://mantis.testlink.org/view.php?id=6434):
20+
assignTestCaseExecutionTask does not work for test plans, which has no platforms
21+
- [TestLink 0006440](http://mantis.testlink.org/view.php?id=6440):
22+
assignTestCaseExecutionTask does not assign user
23+
24+
425
TestLink-API-Python-client UNDER DEVELOP v0.4.9
526
-----------------------------------------------------------
627

src/testlink/testlinkapigeneric.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,19 @@ def testLinkVersion(self):
10331033
# TL does not know this api method, version must be < 1.9.9
10341034
pass
10351035
return tl_version
1036+
1037+
@decoApiCallAddDevKey
1038+
@decoMakerApiCallWithArgs(['user', 'testplanid', 'testcaseexternalid'],
1039+
['buildid', 'buildname', 'platformid', 'platformname'])
1040+
def assignTestCaseExecutionTask(self):
1041+
""" assigns a user to a test case execution task
1042+
1043+
user login name => tester
1044+
testcaseexternalid format PREFIX-NUMBER
1045+
1046+
args variations: buildid - buildname
1047+
platformid - platformname
1048+
"""
10361049

10371050
#
10381051
# public methods for general server calls

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.5.0-Beta'
20+
VERSION = '0.5.1-dev-26'

test/utest-online/testlinkapi_online_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ def test_assignRequirements_unknownID(self):
291291
def test_getExecCountersByBuild_unknownID(self):
292292
with self.assertRaisesRegexp(TLResponseError, '3000.*4711'):
293293
self.client.getExecCountersByBuild(4711)
294+
295+
def test_assignTestCaseExecutionTask_unknownID(self):
296+
with self.assertRaisesRegexp(TLResponseError, '3000.*4711'):
297+
self.client.assignTestCaseExecutionTask('username', 4711, 'TC-4712',
298+
buildname='build 4713',
299+
platformname='platform 4714')
294300

295301

296302

test/utest-online/testlinkapigeneric_online_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,13 @@ def test_getReqSpecCustomFieldDesignValue_unknownID(self):
343343
def test_getRequirementCustomFieldDesignValue_unknownID(self):
344344
with self.assertRaisesRegexp(TLResponseError, '7000.*4711'):
345345
self.client.getRequirementCustomFieldDesignValue(
346-
'cf_full', 4711, 4734)
346+
'cf_full', 4711, 4734)
347+
348+
def test_assignTestCaseExecutionTask_unknownID(self):
349+
with self.assertRaisesRegexp(TLResponseError, '3000.*4711'):
350+
self.client.assignTestCaseExecutionTask('username', 4711, 'TC-4712',
351+
buildname='build 4713',
352+
platformname='platform 4714')
347353
if __name__ == "__main__":
348354
#import sys;sys.argv = ['', 'Test.testName']
349355
unittest.main()

0 commit comments

Comments
 (0)