turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
Does iTest support looping?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-31-2008 07:56 PM
Hi
I want to ping every device in a subnet. I do not want to create 255 steps in my testcase to do this. Is there a simple loop that can help me do this?
LagunaBob
Re: Does iTest support looping?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-31-2008 08:06 PM
Hi LagunaBob
iTest supports three types of looping:
- for
- foreach
- while
A simple testcase snippet for your ping problem is shown in the following image:
Re: Does iTest support looping?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-31-2008 08:18 PM
BTW - I found this neat little shortcut to wrap a set of statements with a for or while or if statement. This made it easy for me to learn iTest syntax for these statements.
- Select your steps in the testcase.
- Right click on the selected steps and a context menu pops up.
- Select "Wrap In -> for loop" option and your statements will be surrounded by a for loop.
