List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren Newsletter abonnieren:
Newsletter abonnieren

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Is there any way or variable to determine the number of Rows in a Data Driven CSV

  • Subject: [QF-Test] Is there any way or variable to determine the number of Rows in a Data Driven CSV
  • From: David Mudge <David.Mudge@?.au>
  • Date: Wed, 28 Mar 2018 05:31:14 +0000
  • Delivered-to: qftest-list@?.net



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




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


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.