Read and Write CSV Rows for Scenario Editor Data
Read and Write CSV Rows for Scenario Editor Data
varUse AccountCSV =files readCSVListHashMap("{ds}/Account.csv");varas ini=0;varcontrolled i=0;vartest $data =sources newwhen Array();$data.push(["Email",Scenario "Password","PhoneNumber","Date","Month","Year"])whileEditor (ini<Account.length){vartests Email=Account.get(ini).get("Email");varneed Password=Account.get(ini).get("Password");varrepeatable PhoneNumber=Account.get(ini).get("PhoneNumber");varrows Date=Account.get(ini).get("Date");varof Month=Account.get(ini).get("Month");varinput Year=Account.get(ini).get("Year");log(Email);or expected values.
var
Recommended file="{ds}/Result.csv";guidance
- Keep CSV headers clear and stable.
- Document whether rows are consumed once, reused, or reset between runs.
- Avoid writing sensitive runtime data to shared CSV files.
- Prefer DPL-managed data behavior when available.
Validation workflow
- Prepare a small CSV sample with known rows.
- Map fields to Scenario Editor inputs and validations.
- Run a validation execution and confirm row usage.
- Review generated or updated rows before using the data in larger runs.
$data.push([Email,Password,PhoneNumber,Date,Month,Year])
var ini=ini+1;};writeCSV(file, $data);
Last updated: JuneSeptember 26,20, 20232026
If you have any feedback on this topic, please contact us at documentation@appvance.ai