Create one Test Case that opens a browser, then calls a second test case and then closes the browser after the second test case completes…
In the second test case, create a loop that retrieves data from an Excel worksheet and performs a repeatable set of steps for each of the rows in the Excel worksheet that you would like to cycle through without closing the browser…
It sounds like you need a data drive test suite, which isn’t actually available, but can be done using what David describes. You have a Test Case that opens the browser, then calls all the other Test Cases you need, then closes out. It would be a series of:
WebUI.callTestCase(findTestCase('Test Cases/Test Case Location/Test Case Name'), [:], FailureHandling.CONTINUE_ON_FAILURE
The easiest way is to add a TestListener, in the left bar, which executes an action before each testCase, example: @BeforeTestSuite
def open Browser () {
WebUI.openBrowser (‘http://yourpage.com’)
}
Note: you must remove the function from the testCase because the TestListener will open the browser before each testCase