-
Notifications
You must be signed in to change notification settings - Fork 104
Fix getTestCaseCustomFieldValue "version" parameter type #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RC4 Merge Conflict solved by Anton
Version set to 0.4.0
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
uses decorators
createTestProject, createTestCase, createTestSuite, createTestPlan, getProject
createTestCase
example/TestLinkExampleGenericApi.py src/testlink/testlinkapi.py
createBuild, reportTCResult
uploadExecutionAttachment
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.