Iterating a Test suite and looping the testcases within the suite

I would like to loop within a test suite unfortunately it closes the browser and performs authentication again.

the process is very slow considering the fact that login requires randomly generated otp. I have done the data binding.

Below is the script. i would be grateful if i can get an help. Thanks

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.openBrowser(’’)

WebUI.navigateToUrl(‘https://www.xxxxxxxxx’)

WebUI.setText(findTestObject(‘Object Repository/New Folder/Page_Login/input_User Name_txtUserID’), ‘Oxxxxxxxxx’)

WebUI.setEncryptedText(findTestObject(‘Object Repository/New Folder/Page_Login/input_Password_txtPassword’), ‘****************************************’)

WebUI.click(findTestObject(‘Object Repository/New Folder/Page_Login/input_Password_btnLogin’))

WebUI.setText(findTestObject(‘Object Repository/New Folder/Page_Login/input_Please Enter Entrust ID_txtEntrustID’), ‘11100011’)

WebUI.click(findTestObject(‘Object Repository/New Folder/Page_Login/input_Please Enter Entrust ID_btnEntrust’))

for(def rowNum=1; rowNum =findTestData(“data1”).getRowNumbers() ; rowNum++)
{
WebUI.click(findTestObject(‘Object Repository/New Folder/Page_Untitled Page/a_Admin’))

WebUI.click(findTestObject('Object Repository/New Folder/Page_Untitled Page/a_User Maintenance'))

WebUI.click(findTestObject('Object Repository/New Folder/Page_UserMaint/input_User Maintenance_ctl00ContentPlaceHol_2d2a24'))

WebUI.setText(findTestObject('Object Repository/New Folder/Page_UserMaint/input_User_ctl00ContentPlaceHolder1tbFirstName'), 
    variable)

WebUI.setText(findTestObject('Object Repository/New Folder/Page_UserMaint/input_User_ctl00ContentPlaceHolder1tbLastName'), 
    variable_0)

WebUI.setText(findTestObject('Object Repository/New Folder/Page_UserMaint/input__ctl00ContentPlaceHolder1tbUserName'), 
    variable_1)

WebUI.setText(findTestObject('Object Repository/New Folder/Page_UserMaint/input_Till ID_ctl00ContentPlaceHolder1tbTillID'), 
    variable_2)

WebUI.selectOptionByValue(findTestObject('Object Repository/New Folder/Page_UserMaint/select_No PrivsUBA AuditorUBA AuditorUBA Au_786a2b'), 
    '11', true)

WebUI.selectOptionByValue(findTestObject('Object Repository/New Folder/Page_UserMaint/select_BF6401 DapoyaBF6402 PerequationBF640_6eea31'), 
    '278', true)

WebUI.setText(findTestObject('Object Repository/New Folder/Page_UserMaint/input_User_ctl00ContentPlaceHolder1tbEmail'), 
    variable_3)

WebUI.click(findTestObject('Object Repository/New Folder/Page_UserMaint/input_User Maintenance_ctl00ContentPlaceHol_e2e88f'))

}

are you looking for sometnihg like:

Yes that’s the similar issue i have. I have read the article and even responded to it with a question but no one has responded to me.