cancel
Showing results for 
Search instead for 
Did you mean: 

How I can iterate each Function in one testcase.(rather than keyword View

Highlighted
Occasional Contributor

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.

1 REPLY 1
Highlighted
Community Hero

Re: How I can iterate each Function in one testcase.(rather than keyword View

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
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors