I need to compare 2 directories. I don't need to test the content of each file; all i need to do is compare if the directory listing is the same. What is the best way of doing that using Rational Robot? Thanks for your help.
I will usually just perform a DOS level 'DIR' on the directories in question. Pipe the results to a file and do a file compare. Differences in dates, sizes, names, or content should be apparent. This type of file comparison is straightforward in WinRunner.
You could just do a DIR on each directory and redirect it to a file, then use any file comparison function that Robot supports. In WinRunner, the sequence would be something like this (using the /B/ON option to dir to get only the file names and sort them by name):