How to get the current count of Data-Driven Loop by using script?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2021
09:12 AM
03-15-2021
09:12 AM
How to get the current count of Data-Driven Loop by using script?
Hi all,
I have a Data-Driven Loop and the data variable is a .csv file.
Is there any way to know the current count number of the running Data-Driven Loop? The simplest way could be adding the numbers in .csv file but I'm trying to not doing that.
Is it possible to get the count number by using script?
Thanks!
Solved! Go to Solution.
Labels:
- Labels:
-
Data-Driven Testing
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2021
11:26 AM
03-15-2021
11:26 AM
Hi,
I am not sure that data-driven loop provides a loop counter, so either add a column to the datafile as you already suggested or implement a counter variable in your test code. (Exact implementation may depend on how data-driven loop is implemented in your case.)
Regards,
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
