How to call SpiraTest API with Python?

Wednesday, January 4, 2012
I write a Python code to call SpiraTest API TestRun_CreateFromTestCases , but it doesn't work.

The code,

from suds.client import Client

client = Client("")


It always errors as below,

No handlers could be found for logger "suds.client"
Traceback (most recent call last):
  File "", line 10, in <module>
  File "build\\egg\suds\", line 542, in __call__
  File "build\\egg\suds\", line 602, in invoke
  File "build\\egg\suds\", line 649, in send
  File "build\\egg\suds\", line 702, in failed
  File "build\\egg\suds\bindings\", line 265, in get_fault
suds.WebFault: Server raised fault: 'The formatter threw an exception while trying to deserialize the message: There was an erro
ile trying to deserialize parameter The InnerException message wa
rror in line 1 position 368. Expecting state 'Element'.. Encountered 'Text'  with name '', namespace ''. '.  Please see InnerExc
on for more details.'

Can anyone guide me how to do it?


Jack Fan

1 Replies
Thursday, January 5, 2012
re: jack_fan6038 Wednesday, January 4, 2012
You need to pass in an array of test cases to the function not just a single ID. If you look at the API signature, that is what it is expecting.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885


  • Started: Wednesday, January 4, 2012
  • Last Reply: Monday, January 3, 2022
  • Replies: 1
  • Views: 4638