svanoort / pyresttest

Python Rest Testing
Apache License 2.0
1.15k stars 325 forks source link

Combination of more than one condition #209

Open rkumarrb opened 8 years ago

rkumarrb commented 8 years ago

It may not be a bug and more of a question.

I would like to use condition1 "AND" condition2 in validator section of YAML. I couldn't the comparator which also support "AND" or "OR" operator.

For Example, I want to make sure returned value of the particular field is, less than 60 and greater than 30 (between 30 to 60). How can i achieve this?.

note: I can write reg ex to do this but I wonder if we have something simple already in place