Iterator would basically be used if your data setup step is time-consuming.
Let's assume you are reading data from an excel, based on which you are doing some processing to generate data - probably invoking a webservice or another io operation. If the processing takes 2 seconds per data and considering you have 200 data,
So, the choice basically depends on how you want your tests structured if your datasetup is long.
Regards,
Niharika
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--