How I can iterate each Function in one testcase.(rather than keyword View
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How I can iterate each Function in one testcase.(rather than keyword View
My project has dropdowncheck boxes.When I click each check box ,they have their own functionality.I try to create functionality for each check box and try to make one testcase with checkboxes.How I put iteration like one checkbox is select and do its functionality and after that second will click and do its functionality.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Because each checkbox has it's own functionality, there's not really much that you would need to do special. If there were common functionality for different check boxes, you could probably do a for loop to loop through the checkboxes and then a switch/case statement within the loop to determine which functionality to execute.
But, with each one having it's own, that wouldn't save you much code. I would just write the test sequentially for each checkbox.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
