Skip to content

Commit 8fa0d89

Browse files
author
Luiko Czub
committed
api method getLastExecutionResult accepts addional arguments #20
- platformid, platformname, buildid, buildname
1 parent adc1b06 commit 8fa0d89

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

Diff for: CHANGES.rst

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Changes in TestLink-API-Python-client Source Distribution
44
TestLink-API-Python-client UNDER DEVELOP v0.4.8
55
-----------------------------------------------
66

7+
implement 1.9.9 api changes - getLastExecutionResult #16
8+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9+
TestlinkAPIGeneric and TestlinkAPIClient api method getLastExecutionResult()
10+
accepts now following additional optional arguments (usable with TL >= 1.9.9)
11+
12+
- platformid, platformname, buildid, buildname
13+
714
implement missing 1.9.9 api method - testLinkVersion #16
815
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
916
new TestlinkAPIGeneric and TestlinkAPIClient api method to return the TL version

Diff for: example/TestLinkExample.py

+7
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,13 @@
546546
print "getLastExecutionResult", response
547547
response = myTestLink.getLastExecutionResult(newTestPlanID_A, newTestCaseID_B)
548548
print "getLastExecutionResult", response
549+
if not myTLVersion == '<= 1.9.8':
550+
# new optional arguments platformid , buildid with TL 1.9.9
551+
response = myTestLink.getLastExecutionResult(
552+
newTestPlanID_A, newTestCaseID_AA,
553+
platformid=newPlatFormID_A)
554+
print "getLastExecutionResult", response
555+
549556
response = myTestLink.getExecCountersByBuild(newTestPlanID_A)
550557
print "getExecCountersByBuild", response
551558
response = myTestLink.getExecCountersByBuild(newTestPlanID_B)

Diff for: example/TestLinkExampleGenericApi.py

+7
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,13 @@
471471
response = myTestLink.getLastExecutionResult(newTestPlanID_A,
472472
testcaseid=newTestCaseID_B)
473473
print "getLastExecutionResult", response
474+
if not myTLVersion == '<= 1.9.8':
475+
# new optional arguments platformid , buildid with TL 1.9.9
476+
response = myTestLink.getLastExecutionResult(
477+
newTestPlanID_A, testcaseid=newTestCaseID_AA,
478+
platformid=newPlatFormID_A)
479+
print "getLastExecutionResult", response
480+
474481
response = myTestLink.getExecCountersByBuild(newTestPlanID_A)
475482
print "getExecCountersByBuild", response
476483
response = myTestLink.getExecCountersByBuild(newTestPlanID_B)

Diff for: src/testlink/testlinkapigeneric.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,17 @@ def getLatestBuildForTestPlan(self):
9898

9999
@decoApiCallAddDevKey
100100
@decoMakerApiCallWithArgs(['testplanid'],
101-
['testcaseid', 'testcaseexternalid'])
101+
['testcaseid', 'testcaseexternalid',
102+
'platformid', 'platformname',
103+
'buildid', 'buildname'])
102104
def getLastExecutionResult(self):
103-
""" Gets the result of LAST EXECUTION for a particular testcase on a test plan,
104-
but WITHOUT checking for a particular build """
105+
""" Gets the result of LAST EXECUTION for a particular testcase on a test plan.
106+
If there are no filter criteria regarding platform and build,
107+
result will be get WITHOUT checking for a particular platform and build.
108+
109+
following optional arguments could only be used with TL version >= 1.9.9
110+
- platformid, platformname, buildid, buildname
111+
"""
105112

106113
@decoApiCallWithoutArgs
107114
def sayHello(self):

Diff for: src/testlink/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
#
1818
# ------------------------------------------------------------------------
1919

20-
VERSION = '0.4.8-dev-14'
20+
VERSION = '0.4.8-dev-20'

0 commit comments

Comments
 (0)