mojolingo / sippy_cup

Create SIP load test scenarios the easy way
http://mojolingo.github.io/sippy_cup
MIT License
218 stars 78 forks source link

Adding options to receive 401, 403, 503, etc.. with true/false optional #84

Open davidcsi opened 9 years ago

davidcsi commented 9 years ago

It would be great if we had the ability to to things like:

etc... for all possible response status.

I tried doing it by adding:

#
def receive_401(opts = {})
    handle_response 401, opts
end

And this actually works, but always with optional="true", and I can't figure out how to set it to that (I don't know anything about Ruby)

Thanks!

David