RedHatQE / pylero

Python wrapper for the Polarion WSDL API
https://redhatqe.github.io/pylero/
MIT License
37 stars 25 forks source link

test_run.py: _custom_fields seems not initialized correctly #157

Open sleviim opened 1 year ago

sleviim commented 1 year ago

When trying to use the get_custom_field() function for getting a custom field value of a test run, the returned item is None. In test_run.py#get_custom_field there's the following assignment: cf = self._custom_fields Using print(cf) returns an empty list and it seems it wasn't initialized correctly.

Some observations:

leelavg commented 1 year ago

I applied the fix from patch https://github.com/RedHatQE/pylero/pull/151

  • didn't get this, does this patch has to do anything with the current issue? I just merged that patch.
leelavg commented 1 year ago

Notes for me: Somehow the custom fields aren't getting populated correctly when they were being set in base polarion from CustomFieldType or EnumCustomFieldType.

I did spend some good amount of time, didn't come to any conclusion, will recheck.

sleviim commented 1 year ago

Hi, I tried to do some testing and those are the results I ran into so far: