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

Feat path evaluation #162

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Feat path evaluation #162

wants to merge 6 commits into from

Conversation

josemtnzjmnz
Copy link
Collaborator

Issue #99 solved, please review the modifications in the code before accepting the pull request. When this is accepted, an automatic merge will be done in develop.

…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 .
AutomationFramework/capabilities.py Outdated Show resolved Hide resolved
AutomationFramework/page_objects/base/base_page_object.py Outdated Show resolved Hide resolved
AutomationFramework/page_objects/base/base_page_object.py Outdated Show resolved Hide resolved
AutomationFramework/page_objects/base/base_page_object.py Outdated Show resolved Hide resolved
…ded in get_tag_value_in_given_dict_by_path method of base_page_object.py file.
AutomationFramework/page_objects/base/base_page_object.py Outdated Show resolved Hide resolved
for i in range(0, len(parsed_dict)):
subdict = parsed_dict[i]
if path[0] in subdict:
return_result = self.get_tag_value_in_given_dict_by_path(auxiliar_output_list,path=path, parsed_dict=subdict[path[0]])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split line legth

@@ -240,11 +280,15 @@ def validate_get_test_case(self):
print(self.values_after_get)
test_passes = True
for key, value in self.values_after_get.items():
if not self.values_after_get[key]:
if not self.values_after_get[key]: #Check if some of the elements of values_after_get[key] is zero, empty, False or None
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eplit line length

dict_variables_to_commit = self.generic_variables_to_commit[0]
dict_variables_to_commit.pop('value_to_commit')
variables_to_search=dict_variables_to_commit
list_path_eval = self.get_tag_value_in_given_dict_by_path([],path=variables_to_search['path_list'], parsed_dict=parsed_dict)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line legth

path=variable['path_list']),
'path_string': variable['path_string'],
'path_list': variable['path_list'],
}
self.generic_values_before_commit.append(new_variable)

def get_tag_value_in_given_dict_by_path(self, path, parsed_dict):
def get_unique_tag_value_in_given_dict_by_path(self, path, parsed_dict):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method definitions inside a class are surrounded by a single blank line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request For develop High Priority to do.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants