Skip to content

Conversation

@citizen-stig
Copy link
Contributor

No description provided.

anton-matosov and others added 28 commits March 11, 2013 18:08
RC4 Merge Conflict solved by Anton
Error message details {'message': 'Parameter (version) must be an integer (current value: 1).', 'code': 210}

Tested on TestLink 1.9
Fix getTestCaseCustomFieldValue "version" parameter type
Version changed to 0.4.0-PatchMode
createTestProject, createTestCase, createTestSuite, createTestPlan,
getProject
	example/TestLinkExampleGenericApi.py
	src/testlink/testlinkapi.py
getTestProjectByName, getProjectTestPlans, getTotalsForTestPlan,
getBuildsForTestPlan
getLatestBuildForTestPlan, getTestPlanByName

decorator decoApiCallReplaceEmptyResponse replaced with decarator
factory decoMakerApiCallReplaceTLResponseError
getTestSuitesForTestPlan, getTestSuiteByID, getTestSuitesForTestSuite,
getFirstLevelTestSuitesForTestProject, getTestCasesForTestSuite
getTestCasesForTestPlan, getTestCaseIDByName, getFullPath

Attention: behaviour getTestCaseIDByName optional arguments are changed
case only optional argument testsuitename is used:
- v0.4.0: getTestCaseIDByName('a_TestCaseName', 'a_TestSuiteName')
- v0.4.5: getTestCaseIDByName('a_TestCaseName',
testsuitename='a_TestSuiteName')
case only optional argument testprojectname is used:
- v0.4.0: getTestCaseIDByName('a_TestCaseName', None,
'a_TestProjectName')
- v0.4.5: getTestCaseIDByName('a_TestCaseName',
testprojectname='a_TestProjectName')
case only optional argument testcasepathname is used:
- v0.4.0: not supported
- v0.4.5: getTestCaseIDByName('a_TestCaseName',
testcasepathname='a_TestProjectName::a_TestSuiteName::a_TestCaseName')

TestlinkAPIGeneric.getTestCaseIDByName will return the server response
1:1, what could be either a dictionary or a list

TestlinkAPIClient.getTestCaseIDByName converts the server response 1:1,
so that  always a list will be returned (consistent with v0.4.0
behaviour)

With v0.4.0, TestlinkAPIClient.getFullPath always returns the error code
234 
reason was, that the argument nodeid was converted to str(nodeid), but
the server expects an integer. with v0.4.5, this is fixed - no
convertion to string will be done
getLastExecutionResult, getTestCaseCustomFieldDesignValue,
getTestCaseAttachments

- version changed to v0.4.5-beta
- now, all v0.4.0 API methods from TestlinkAPIClient are shifted to
TestlinkAPIGeneric
module testlinkargs is used as a 'singleton' to register the supported
TestLink API methods and there (positional and optional) arguments
- replace testlinkapigeneric.positionalArgNamesDefault

new decorator factory decoMakerApiCallWithArgs() 
- realize, that the decorator decoApiCallWithArgs could register API
methods and there arguments with new function
testlinkargs.registerMethod()
separation makes module testlinkapigeneric more readable
example about description of all implemented api method 

```
import testlink
tlh = testlink.TestLinkHelper()
tls = tlh.connect(testlink.TestlinkAPIGeneric)
for m in testlink.testlinkargs._apiMethodsArgs.keys():
    print tls.whatArgs(m), '\n'

```
new TestLink-API-Python-client release candidate v0.4.5-RC1
@orenault orenault merged commit 772fb8a into orenault:master May 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants