-
Notifications
You must be signed in to change notification settings - Fork 2
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
Skip when a test doesn't match the value or retrieve none #99
Comments
Method get_tag_value_in_given_dict_by_path of BasePageObject is not working as expected. When we evaluate the path of a yaml variable in the dict parsed from a get config response and the result of the evaluation is a list of elements (like more than one subinterface or protocols) the type of the result of the evaluation is a list. The software doesn't handle properly the list and threats it as a dict causing errors that doesn't seem to show. For making the tests run as expected we have to be sure to not get a list from the evaluation of the yaml variable path in the parsed response dict. We achieve this by deleting manually the items of a list in the router (Like deleting all the subinterfaces of the interface we want to test) |
Date: 02/15/2020 The Method get_tag_value_in_given_dict_by_path of BasePageObject is not working as expected. The method needs to handle the following behaviors:
Examples:
Once parced this XML the dictionary just have one entry after data. In this case the
Once parced this XML the dictionary has two entries after data. In this case the Expected result: Handle the 2,3 and 4 possible outcomes. |
Hi @sbarguil. I have almost solved this issue but I don't understand this cause:
I would like to test the code for different inputs. Could you provide me a set of inputs or do you prefer to try the code on you own? |
…integrated in base_page_object.py
@sbarguil, @oscargdd or @vlopezalvarez. Who wants to try and test my code? I tried it using the inputs contained in the uploaded file (commit 71d404a) but it is preferable that someone else tests the code with a wide variety of inputs. Regards, Jose. |
I have tried different inputs with successfully results, here the last commit cede6a2 |
…ct_by_path of base_page_object.py in order to get a list with more than one element if exist in the path. The rest of files have been changed to make a get-config test that try the issue .
…ded in get_tag_value_in_given_dict_by_path method of base_page_object.py file.
No description provided.
The text was updated successfully, but these errors were encountered: