|
-
Sep 24th, 2012, 05:43 PM
#1
Thread Starter
Frenzied Member
how to code to do every possible combination?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|