Hi David,
You can set a variable in your qft script like this
Set variable: NumberOfRows =${testcsv:size}
testcsv is your CSV data file name you specified for your csv file under Data driver.
Cheers
Kevin
From: qftest-list [mailto:qftest-list-bounces@xxxxxxxxxxxxxxxxxxxx]
On Behalf Of David Mudge
Sent: Wednesday, 28 March 2018 4:01 PM
To: qftest-list@xxxxxx
Subject: [QF-Test] Is there any way or variable to determine the number of Rows in a Data Driven CSV
Hi
When using a Data Driver in QF Test linked to a CSV, is there any variable or other way to determine the number of rows in that CSV before it runs the whole iteration?
For example, I would like to print to the logs that we are currently on Row $(iteration) of $(NumberOfRows)?
Currently I have a workaround solution which is to duplicate the Data Driver and place if before where my only action is to Set a Variable to the $(iteration)+1 of the Data Driver (the +1 is there
since the first iteration is set as 0)
That way when its finished processing all the rows, the last iteration will set the variable to (LastIteration)+1 and give me the number of rows in the CSV as a variable
Now I have a variable which is equal to the number of Rows in the CSV which I can then use. But I thought there might be a simpler way
Thanks
David Mudge
Test Analyst
Australian Digital Health Agency
Level 31, 400 George Street
Brisbane QLD 4000
Phone: (07) 3023 8559
Mobile: (0400) 837 499
Fax: (07) 3023 8466
Email: david.mudge@xxxxxxxxxxxxxxxxxxxx
Web: www.digitalhealth.gov.au
Important: This transmission is intended only for the use of the addressee and may contain confidential or legally privileged information. If you are not the intended recipient, you are notified that any use or dissemination of this communication is strictly
prohibited. If you receive this transmission in error please notify the author immediately and delete all copies of this transmission.