Skip to content

Setup distribution dir #5

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
merged 4 commits into from
Nov 27, 2012
Merged

Conversation

lczub
Copy link
Contributor

@lczub lczub commented Nov 2, 2012

Hello Olivier,

could you please check (and hopefully merge) my suggestion for an enhancement of
TestLink-API-Client-client with

  • setup.py and distribution structure
  • setting connection parameters via command line arguments
  • setting connection parameters via environment variables
  • read.md
  • central version.py info (currently set to 0.4.0-beta)
  • Method _callServer() with basic error handling
  • initial unittests
  • some minor code cleanups

Code also integrates changes and adds from g4l4drim and pade.

  • Exception: renaming TestlinkAPIClient <-> TestLinkAPIClient

I also prepare every file with a suggestion for a copyright and licence
statement. The licence statement is currently empty.
This has do be filled, when our separate discussion with James finds a
solution.

@lczub
Copy link
Contributor Author

lczub commented Nov 26, 2012

Hello Olivier,
the branch setup_distribution-dir has been updated and includes with the commits 2b1a26c and 67a7a1b now the Apache Licence 2.0 declaration and is marked with the tag v0.4.0-RC1.
Regards Luiko

@orenault orenault merged commit 67a7a1b into orenault:master Nov 27, 2012
@lkmdevTestVI
Copy link

hello ,
i use "TestLink-API-Python-client-0.4.7" in my pc with testlinik 1.9.3 ( Prague) :
when I try to use the method : reportResult(), i have this error message :

tl.reportTCResult(data)

File "/usr/local/lib/python2.7/site-packages/testlink/testlinkdecorators.py", line 105, in wrapperAddDevKey
return methodAPI(self, _argsPositional, *_argsOptional)
File "/usr/local/lib/python2.7/site-packages/testlink/testlinkdecorators.py", line 93, in wrapperWithArgs
_argsPositional, *_argsOptional)
File "/usr/local/lib/python2.7/site-packages/testlink/testlinkapigeneric.py", line 873, in callServerWithPosArgs
dictPos = self._convertPostionalArgs(methodNameAPI, argsPositional)
File "/usr/local/lib/python2.7/site-packages/testlink/testlinkapigeneric.py", line 930, in _convertPostionalArgs
raise testlinkerrors.TLArgError(new_msg)
testlink.testlinkerrors.TLArgError: reportTCResult - mismatching number of positional args 2 vs 1
expected args: testplanid, status
this is my test :
url = "http://my_server/tl_octopus/lib/api/xmlrpc.php"
devkey = "mydevkey"
testPlanName = "V1.38"
buildName = "V1.38.10"
testProjectName = "Octopus_V1_Project"
TestSuiteName = "Acceptation Tests"
TestCaseName = "Autoproduction all night"

tl = TestlinkAPIGeneric(url,devkey)
test_case_dic = tl.getTestCaseIDByName(TestCaseName)
print(test_case_dic)

print("*******************************************************************************************************")
test_plan_dic = tl.getTestPlanByName(testProjectName,testPlanName)
print(test_plan_dic)

print("*******************************************************************************************************")

data = {}
data["devKey"] = devkey
data["testcaseid"] = test_case_dic[0]['id']
data["buildname"] = buildName
data["notes"] = ""
data["testplanid"] = test_plan_dic[0]['id']
data["status"] = "f"
tl.reportTCResult(data)

could you help me, please!

@lczub
Copy link
Contributor Author

lczub commented Mar 11, 2014

Hello lkmdevTestVI,

a) don't use closed issues for new support questions
b) new Questions, Enhancements, Issues are welcome under https://github.com/lczub/TestLink-API-Python-client/issues
c) for your problem, maybe a look into the examples could help you

d) maybe the class TestlinkAPIClient would be a better solution for you than TestlinkAPIGeneric

Greetings Luiko

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