Micro Focus QTP (UFT) Forums
Creating 'n' files - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Creating 'n' files (/Thread-Creating-n-files)



Creating 'n' files - Signpost - 09-04-2009

Hey all,

I have recorded a script which creates a file in my app but now I need to make approx 2500 such files (same content just diff name is only requirement). Is it possible to add in 'n' amount of runs before the script ends?

Thanks!


RE: Creating 'n' files - Saket - 09-04-2009

Yes, That is possible through different ways. either you can run you test on multiple iterations or you can put in a loop to do so.
would like to see your code if this is possible for you.


RE: Creating 'n' files - Signpost - 09-04-2009

Ya its in the middle of a create function so just pulled out the particular piece for files. If you want any of the other functions can let me know. I removed the company name also, hope this is not an issue.


RE: Creating 'n' files - Saket - 09-04-2009

this a bit difficult for me understand it properly as thery are reference of other functions too. does this function itself creates the file for you,
or can yuou please point exactly where the new files has been creating.
In that case you should put this function in a for loop till number of times you want to create the file.
let me know if this works for you.