Skip to content
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

api_tsuite, not fail if ID params does not exist for Testlink webapp #32

Closed
netzulo opened this issue Mar 16, 2018 · 0 comments
Closed
Assignees

Comments

@netzulo
Copy link
Owner

netzulo commented Mar 16, 2018

api_tsuite don't handle if ID does not exist for testlink, maybe error it's at error response structure

>>> tsuite = tlm.api_tsuite(1)
2018-03-16 12:07:26,206 - qatestlink - INFO - POST request:
2018-03-16 12:07:26,486 - qatestlink - INFO - POST response:
2018-03-16 12:07:26,486 - qatestlink - INFO -     status_code=200
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "qatestlink/core/testlink_manager.py", line 356, in api_tsuite
    properties = res_param.get('struct')['member']
TypeError: 'NoneType' object has no attribute '__getitem__'
>>> tsuite = tlm.api_tsuite(2)
2018-03-16 12:07:29,425 - qatestlink - INFO - POST request:
2018-03-16 12:07:29,548 - qatestlink - INFO - POST response:
2018-03-16 12:07:29,548 - qatestlink - INFO -     status_code=200
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "qatestlink/core/testlink_manager.py", line 356, in api_tsuite
    properties = res_param.get('struct')['member']
TypeError: 'NoneType' object has no attribute '__getitem__'
>>> tsuite = tlm.api_tsuite(3)
2018-03-16 12:07:31,526 - qatestlink - INFO - POST request:
2018-03-16 12:07:31,653 - qatestlink - INFO - POST response:
2018-03-16 12:07:31,653 - qatestlink - INFO -     status_code=200
>>> 
@netzulo netzulo self-assigned this Mar 16, 2018
netzulo pushed a commit that referenced this issue Mar 22, 2018
netzulo pushed a commit that referenced this issue Mar 22, 2018
+ [x] #26
+ [x] #27
+ [x] #28
+ [x] #29
+ [x] #30
+ [x] #31
+ [x] #32
netzulo added a commit that referenced this issue Mar 24, 2018
* [qatl] fix for issue #26

* [qatl] fix for issue #27

* [qatl] fix for issue #28

* [qatl] fix for issue #29

* [qatl] fix for issue #30

* [qatl] fix for issue #31

* [qatl] fix for issue #32

* [qatl] flake8 clean after issues fixes

+ [x] #26
+ [x] #27
+ [x] #28
+ [x] #29
+ [x] #30
+ [x] #31
+ [x] #32

* [qatl] fixes for py27

* [qatl] Update to v0.0.6

* [qatl] readme fix for pypi RST
@netzulo netzulo closed this as completed Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant