I am new in winRunner.I wanted to know which is the best way to record objects in GUI map file like by selecting 'Learn' option in Gui Map Editor for each screen or when you record the script,automatically record by WinRunner?
I know this is very basic question but I really wanted to know the correct way.
This is very basic question but very important for maintainance of the script. Learn all the objects of the window/screen, Rename it because it'll be helpful for maintainig the scripts later.
Otherwise while recording, winrunner will store the objects in MAP, but again you've to reanme it in the Map editor & script also.
So learning objects is proper way .....i think.
I wouln't say one is more correct than the other, just depends on how much you want to touch the scripts later.
If you aren't ever going to interact with a section of the application, then why take the time to learn the object?
If you might have the chance to program in a seciton of the app later that you aren't touching now, but are on the page/screen..then it might be worth going ahead and learning the objects to be there when you need them.
Just a matter of choice and how you want to define your best practices