List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous
abonner à la newsletter 

our obtenir des informations à jour sur chaque version - y compris les versions mineures - vous pouvez
nous pouvez vous abonner au flux RSS ou nous suivre sur les médias sociaux.
Alternativement, QF-Test fournit également des informations sur la version elle-même.

Une autre source d'information est notre blog, qui contient des articles actuels sur des thèmes généraux, sur l'entreprise QFS et aussi divers "how-tos", veuillez vous
ABonner au Blog


[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

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.