Solved
Forum Discussion
nmrao
Champion Level 3
Are you expecting result is list of names?
If so,
assert object.data.Name == ['name1', 'name2'...]
Does it help?
If so,
assert object.data.Name == ['name1', 'name2'...]
Does it help?
richie
6 years agoCommunity Hero
aaah!
So you're saying rather than have individual assertions that definitely describe their location in the response - just have one assertion with the expected results being an array of values?
hahahaha! that'll do!
Thanks man!
richie!
- nmrao6 years agoChampion Level 3Exactly. It is completely ok to have single assertion which can handle either simple or complex checks.
Related Content
- 12 months agoTomA