I'm trying to figure out how to test every possible combination when there are multiple options. For instance, there is a webservice that takes in a request with multiple options:
optionColor: (possible option is blue, red, green)
optionNumber: (possible option is 1, 2, 3, 4, 5)
optionDay (possible option is monday, tuesday, wednesday, thursday, friday, saturday, sunday)
So in the request, I could send
<optionColor>blue</optionColor>
<optionNumber>2</optionNumber>
<optionDay>tuesday</optionDay>
Above is one possible combination. Now I'd like to programmatically code it in a way that I could send every possible combination request. I think it may require permutation or something like that. Any one have an idea? Thanks.


Reply With Quote
