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

automatic query of test steps raises server side exception #57

Closed
ergorion opened this issue Mar 29, 2022 · 2 comments
Closed

automatic query of test steps raises server side exception #57

ergorion opened this issue Mar 29, 2022 · 2 comments

Comments

@ergorion
Copy link
Contributor

It seems that whenever I query a work item, at the end there is an additional call to getTestSteps. Unfortunately, this raises a server side exception, that is only visible if you used log level DEBUG. Is there a way to make this call to getTestSteps optional?

2022-03-29 10:28:29 DEBUG HTTP Post to https://server/polarion/ws/services/TestManagementWebService:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">soap-env:Header<ns1:sessionID xmlns:ns1="http://ws.polarion.com/session" soap-env:actor="http://schemas.xmlsoap.org/soap/actor/next" soap-env:mustUnderstand="0">-46616533766877033</ns1:sessionID></soap-env:Header>soap-env:Body<ns0:getTestSteps xmlns:ns0="http://ws.polarion.com/TestManagementWebService-impl">ns0:urisubterra:data-service:objects:/default/prefix_trunk${WorkItem}prefix-53229</ns0:uri></ns0:getTestSteps></soap-env:Body></soap-env:Envelope>
2022-03-29 10:28:29 DEBUG Resetting dropped connection: server
2022-03-29 10:28:29 DEBUG https://server:443 "POST /polarion/ws/services/TestManagementWebService HTTP/1.1" 500 None
2022-03-29 10:28:29 DEBUG HTTP Response from https://server/polarion/ws/services/TestManagementWebService (status: 500):

soapenv:Server.userExceptionjava.lang.IllegalArgumentException: testCase does not have a test steps field defined: PObject(WorkItem; subterra:data-service:objects:/default/prefix_trunk${WorkItem}prefix-53229)java.lang.IllegalArgumentException: testCase does not have a test steps field defined: PObject(WorkItem; subterra:data-service:objects:/default/prefix_trunk${WorkItem}prefix-53229)
at com.polarion.alm.tracker.internal.TestManagementService.setTestSteps(TestManagementService.java:444)
at com.polarion.alm.ws.services.TestManagementWebService.getTestSteps(TestManagementWebService.java:418)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

....

@jesper-raemaekers
Copy link
Owner

I'm sure an option to disable it is possible. Does this error cause problems somewhere?
For the python but it should fail and continue.

jesper-raemaekers added a commit that referenced this issue Apr 1, 2022
…ailable before requesting them from the server #57
@jesper-raemaekers
Copy link
Owner

I've opted to insert a check before executing the query. This failure should not longer happen.

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

No branches or pull requests

2 participants