Looping Reference

Hi Fadhli,

I built a simple example for you, you can use this as a template, build your payload and send your request to the server inside the Data Driver Example keyword.

But before you do that, just recreate these two file, run robot dd_example.robot and confirm you get the same result I did:

dd_example.robot

*** Settings ***
Library         DataDriver    file=dd_example.csv 	dialect=unix

Test Template     Data Driver Example

*** Test Cases ***
Dummy Test ${loan_id} ${i_name_borrower} ${user_id} ${name_borrower}

*** Keywords ***
Data Driver Example
	[Arguments]		${loan_id} 	${i_name_borrower} 	${user_id} 	${name_borrower}
	Log 	${loan_id}
	Log 	${i_name_borrower}
	Log 	${user_id}
	Log 	${name_borrower}

dd_example.csv

${loan_id},${i_name_borrower},${user_id},${name_borrower}
2300123,Muhammad,B012,Aisha
2300124,Ibrahim,B022,Abdullah
2300125,Bilal,B021,Omar
2300125,Fatima,B021,Omar

I highlighted the variable names in Orange and the corresponding values in Green in the screen shot below of test report for the files above.

Hopefully this clears it up for you,

Dave.