08-25-2010, 07:14 PM
Hi there,
I have a situation where I have to create a specific file and put it into a folder.
I need to get the file name from this file and then use this file name to search on a webtable after it has been uploaded into my application I am testing.
I created scripts for the creating the file and searching the webtable for the value
My idea is to place this file into a folder and have QTP read the name of this file and pass that value to the function that searches the webtable.
How do I achieve the part that reads the folder for the file name?
I cant hardcode the filename as I never know what it will be...
Thanks!
I have a situation where I have to create a specific file and put it into a folder.
I need to get the file name from this file and then use this file name to search on a webtable after it has been uploaded into my application I am testing.
I created scripts for the creating the file and searching the webtable for the value
My idea is to place this file into a folder and have QTP read the name of this file and pass that value to the function that searches the webtable.
How do I achieve the part that reads the folder for the file name?
I cant hardcode the filename as I never know what it will be...
Thanks!