Test case Execution in Katalon Studio

I have to run the same test case 100 times with different sets of test data. i.e. 1st time run- it will pickup the 1st row test data in excel and complete the script execution. 2nd time run- it will pickup the 2nd row test data in excel and complete the script execution. it need to run for 100 times. Please help

You should read the doc:

Hi ,
It is not mentioned in the doc. Please provide solution

Then, have you tried this?

Or this:

If your CSV/Excel contains 100 lines of data, then your Test Case will be called 100 times.

correct. But we use getData(column number, row number) in the test case or test script. when we call 2nd time, how could it pick the 2nd row data ?.

Please show your code.

ok. Please see below

WebUI.sendKeys(findTestObject(‘LoginPage/userName’), findTestData(‘TestData/Login’).getValue(2,

You wrote you want to repeat this code fragment 100 times. Then how about:

for (int i = 1; i <= 100; i++) {
        findTestData(‘TestData/Login’).getValue(2, i))

Thanks a ton. let me try it out.

Calling WebUI.sendKeys 100 times is ridiculous.

The following would be better to play on.

def doSomeStuff(String username) {
    println username
    // or whatever
for (int i = 1; i <= 100; i++) {
    def username = findTestData(‘TestData/Login’).getValue(2, i)

Hi @Bharathibalaji.R,

There are many ways to use different data set for one test case. Below is the way I used, hope it is useful for you.

Context: Login to system with different username and password (multiple users)

  1. Prepare test data currently I copy/paste the same value to try, you are able to edit with others values

2.Prepare test script with variable (username/password)

3.Test Case information

  1. Create test suite with test case created, binding data for test case with test data (prepared in step#1)

  2. Run test suite and we are able to see one test case run with a set of data defined

More reference, you are able to read here: https://docs.katalon.com/katalon-studio/docs/combine-multiple-data-sources.html#manage-test-data-relationship