Skip to content

WAR-1445: Iteration by test block not working for list#313

Merged
satyakrish merged 5 commits into
developfrom
feature/WAR-1445
Jan 8, 2018
Merged

WAR-1445: Iteration by test block not working for list#313
satyakrish merged 5 commits into
developfrom
feature/WAR-1445

Conversation

@sugan19

@sugan19 sugan19 commented Nov 24, 2017

Copy link
Copy Markdown
Contributor

If list is given in per_td_block, then it should be iterated.
Currently all values in list will be printed next to next.

Test is added to warrior_fnc_test

@sugan19 sugan19 self-assigned this Nov 24, 2017

@venkat1077 venkat1077 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks good. Tested the fix and it works.

@satyakrish satyakrish left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

added comments to jira ticket as it was a design change request

@satyakrish satyakrish left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code looks good except for the one comment, pls address it so that i can approve ad merge

# iteration patterns in the command and get a updated
if isinstance(cmd, str) and '+' not in cmd:
# check if list exists in cmd
td_obj = TestData()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why intialize a new TestData object here, please use self.list_substitution_precheck

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@satyakrish
list_substitution_precheck is in TestData Class and I am using it in TestDataIterations Class, So creating a new object for it.

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

Successfully merging this pull request may close these issues.

4 participants